DaemonForums  

Go Back   DaemonForums > Miscellaneous > Guides

Guides All Guides and HOWTO's.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 26th June 2022
J65nko J65nko is offline
Administrator
 
Join Date: May 2008
Location: Budel - the Netherlands
Posts: 3,992
Default Xorg.conf : Selecting Vesa driver

This script is a modification of http://daemonforums.org/showthread.php?t=11734 and was written to help with the graphic card issue of http://daemonforums.org/showthread.php?t=12100

The problematic card in that discussion was a nVidia NVS-3100M and that is the reason for the name of the device identifier.

You can use the script when the probed X Window driver does not work and you want to try the "slower" generic VESA driver.

Code:
#!/bin/sh

DEST='/usr/X11R6/share/X11/xorg.conf.d/'
#DEST=/tmp/

cat <<END >${DEST}Vesa_driver.conf

Section "Device"
         Identifier "My_NVS-3100M"
         Driver "vesa"
EndSection

# --- end of file ---
END

When I run it on my OpenBSD 7.1 system it indeed switches from the nv driver to the vesa driver.

Code:
[ 18688.949] Current Operating System: OpenBSD lenap.utp.xnet 7.1 GENERIC.MP#3 amd64
[ 18688.949]  
[ 18688.949] Current version of pixman: 0.40.0
[ 18688.949]    Before reporting problems, check http://wiki.x.org
        to make sure that you have the latest version.
[ 18688.949] Markers: (--) probed, (**) from config file, (==) default setting,
        (++) from command line, (!!) notice, (II) informational,
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[ 18688.949] (==) Log file: "/var/log/Xorg.0.log", Time: Sun Jun 26 02:14:33 2022
[ 18688.967] (==) Using system config directory "/usr/X11R6/share/X11/xorg.conf.d"
[ 18689.028] (==) No Layout section.  Using the first Screen section.
[ 18689.028] (**) |-->Screen "Screen0" (0)
[ 18689.028] (**) |   |-->Monitor "Monitor0"
[ 18689.030] (==) No device specified for screen "Screen0".
        Using the first device section listed.
[ 18689.030] (**) |   |-->Device "My_NVS-3100M"
[ 18689.548] (II) Loading /usr/X11R6/lib/modules/drivers/vesa_drv.so
[ 18689.575] (II) Module vesa: vendor="X.Org Foundation"
[ 18689.575]    compiled for 1.21.1.3, module version = 2.3.4
[ 18689.575]    Module class: X.Org Video Driver
[ 18689.575]    ABI class: X.Org Video Driver, version 25.2
[ 18689.575] (II) VESA: driver for VESA chipsets: vesa

[snip]
[ 18689.658] (II) VESA(0): initializing int10
[ 18689.658] (II) VESA(0): Primary V_BIOS segment is: 0xc000
[ 18689.708] (II) VESA(0): VESA BIOS detected
[ 18689.708] (II) VESA(0): VESA VBE Version 3.0
[ 18689.708] (II) VESA(0): VESA VBE Total Mem: 262144 kB
[ 18689.708] (II) VESA(0): VESA VBE OEM: NVIDIA
[ 18689.708] (II) VESA(0): VESA VBE OEM Software Rev: 5.113
[ 18689.708] (II) VESA(0): VESA VBE OEM Vendor: NVIDIA Corporation
[ 18689.708] (II) VESA(0): VESA VBE OEM Product: G71 Board - q455h501
[ 18689.708] (II) VESA(0): VESA VBE OEM Product Rev: Chip Rev   
[ 18689.740] (==) VESA(0): Depth 24, (--) framebuffer bpp 32
[ 18689.740] (==) VESA(0): RGB weight 888
[ 18689.740] (==) VESA(0): Default visual is TrueColor
In my case the VESA driver works as well as the "nv" driver. Maybe I leave it that way

The script creates a configuration file/module in /usr/X11R6/share/X11/xorg.conf.d
After running that directory contains:
Code:
ls -l /usr/X11R6/share/X11/xorg.conf.d
total 24
-rw-r--r--  1 root  bin      92 Apr 16  2019 10-amdgpu.conf
-rw-r--r--  1 root  bin      92 Feb 20  2018 10-radeon.conf
-rw-r--r--  1 root  bin     979 Nov  5  2011 50-fpit.conf
-rw-r--r--  1 root  bin    1762 Dec  5  2017 70-synaptics.conf
-rw-r--r--  1 root  wheel   402 Jun 24 21:43 MonitorAnbonn.conf
-rw-r--r--  1 root  wheel   112 Jun 26 02:11 Vesa_driver.conf
Attached Files
File Type: sh XorgVesa.sh (793 Bytes, 6 views)
__________________
You don't need to be a genius to debug a pf.conf firewall ruleset, you just need the guts to run tcpdump

Last edited by J65nko; 26th June 2022 at 12:48 AM.
Reply With Quote
Reply

Tags
vesa, xorg.conf

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
selecting all? rain1 General software and network 4 22nd April 2016 11:32 PM
xorg.conf doesn't exist & I want to keep record of my working Xorg setting daemonfowl OpenBSD General 14 28th August 2012 01:13 AM
xorg.conf is not necessary ? sw2wolf OpenBSD General 5 1st June 2012 02:42 AM
X11 with VESA or graphic card HD5870 driver with 1440x900 resolution does not work openBSDheart OpenBSD General 10 12th December 2011 10:53 PM
xorg.conf overriden? delboy FreeBSD General 4 3rd February 2010 10:37 AM


All times are GMT. The time now is 02:08 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2022, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick