View Single Post
  #1   (View Single Post)  
Old 26th June 2022
J65nko J65nko is offline
Administrator
 
Join Date: May 2008
Location: Budel - the Netherlands
Posts: 3,975
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, 3 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