tech-x11 archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

amdgpu driver



I have been using an ATI Radeon HD 5450 since 2020 and my original xorg.conf
from then didn't specify a Device section and it worked fine up until about
two years ago when several programs started trashing the window they were
operating in (but not the rest of the display though).

I decided to try to solve the problem so started over with X --configure
which automatically set up the two monitors and the xorg.conf.new file and
assigned the 'amdgpu' device driver to them in the Device Section. However,
this config file doesn't work as X can no longer find the the display devices:

Using NetBSD 11.99.6 #0: Fri Jun 12 11:48:20 EDT 2026

[  5377.027] (II) LoadModule: "amdgpu"
[  5377.027] (II) Loading /usr/X11R7/lib/modules/drivers/amdgpu_drv.so
[  5377.027] (II) Module amdgpu: vendor="X.Org Foundation"
[  5377.027]    compiled for 1.21.1.23, module version = 23.0.0
[  5377.027]    Module class: X.Org Video Driver
[  5377.027]    ABI class: X.Org Video Driver, version 25.2
[  5377.027] (II) AMDGPU: Driver for AMD Radeon:
        All GPUs supported by the amdgpu kernel driver
[  5377.027] (--) Using wscons driver on /dev/ttyE4 in pcvt compatibility mode (version 3.32)
[  5377.027] (--) using VT number 5
[  5377.037] (EE) No devices detected.
[  5377.037] (EE)
Fatal server error:
[  5377.037] (EE) no screens found(EE)

If I delete the Device sections from the xorg.conf.new file, things work as
with the original (with no Device sections).

So my questions are what is the current method for setting up an ATI Radeon
HD 5450 (that doesn't trash the window) and why does X --configure create a
config file that doesn't work?

xorg.conf.new shown at the end

------------------- /etc/X11/xorg.conf used since 2020 :

Section "ServerLayout"
        Identifier     "X.org Configured"
        Screen          0  "Screen0" 0 0
        InputDevice    "Mouse0" "CorePointer"
        InputDevice    "Keyboard0" "CoreKeyboard"
EndSection

Section "ServerFlags"
        Option  "DontVTSwitch"  "off"
        Option  "DontZap"       "off"
EndSection

Section "Module"
        Load  "dri"
        Load  "dri2"
        Load  "glx"
EndSection

Section "DRI"
        Group "wheel"
        Mode 0660
EndSection

Section "InputDevice"
        Identifier  "Keyboard0"
        Driver      "kbd"
        Option      "XkbOptions" "ctrl:swapcaps"
EndSection

Section "InputDevice"
        Identifier  "Mouse0"
        Driver      "mouse"
        Option      "Protocol" "wsmouse"
        Option      "Device" "/dev/wsmouse"
        Option      "ZAxisMapping" "4 5 6 7"
EndSection

Section "Screen"
        Identifier "Screen0"
        SubSection "Display"
                Viewport   0 0
                Depth     24
                Virtual   3840 1800
        EndSubSection
EndSection

The Xorg log :

[  4022.876] (II) LoadModule: "ati"
[  4022.876] (II) Loading /usr/X11R7/lib/modules/drivers/ati_drv.so
[  4022.876] (II) Module ati: vendor="X.Org Foundation"
[  4022.876]    compiled for 1.21.1.23, module version = 22.0.0
[  4022.876]    Module class: X.Org Video Driver
[  4022.876]    ABI class: X.Org Video Driver, version 25.2
[  4022.876] (II) LoadModule: "radeon"
[  4022.876] (II) Loading /usr/X11R7/lib/modules/drivers/radeon_drv.so
[  4022.876] (II) Module radeon: vendor="X.Org Foundation"
[  4022.876]    compiled for 1.21.1.23, module version = 22.0.0
[  4022.876]    Module class: X.Org Video Driver
[  4022.876]    ABI class: X.Org Video Driver, version 25.2
[  4022.876] (II) LoadModule: "modesetting"
[  4022.876] (II) Loading /usr/X11R7/lib/modules/drivers/modesetting_drv.so
[  4022.876] (II) Module modesetting: vendor="X.Org Foundation"
[  4022.876]    compiled for 1.21.1.23, module version = 1.21.1
[  4022.876]    Module class: X.Org Video Driver
[  4022.876]    ABI class: X.Org Video Driver, version 25.2
[  4022.876] (II) LoadModule: "vesa"
[  4022.876] (II) Loading /usr/X11R7/lib/modules/drivers/vesa_drv.so
[  4022.876] (II) Module vesa: vendor="X.Org Foundation"
[  4022.876]    compiled for 1.21.1.23, module version = 2.6.0
[  4022.876]    Module class: X.Org Video Driver
[  4022.876]    ABI class: X.Org Video Driver, version 25.2
[  4022.876] (II) LoadModule: "wsfb"
[  4022.877] (II) Loading /usr/X11R7/lib/modules/drivers/wsfb_drv.so
[  4022.877] (II) Module wsfb: vendor="X.Org Foundation"
[  4022.877]    compiled for 1.21.1.23, module version = 0.4.0
[  4022.877]    ABI class: X.Org Video Driver, version 25.2
[  4022.877] (II) RADEON: Driver for ATI/AMD Radeon chipsets:

..

I then used xrandr to set up my two monitors:
xrandr --output DVI-0 --primary --pos 0x0
xrandr --output HDMI-0 --right-of DVI-0

------------------------

xorg.conf.new :

Section "ServerLayout"
	Identifier     "X.org Configured"
	Screen      0  "Screen0" 0 0
	Screen      1  "Screen1" RightOf "Screen0"
	InputDevice    "Mouse0" "CorePointer"
	InputDevice    "Keyboard0" "CoreKeyboard"
EndSection

Section "Files"
	ModulePath   "/usr/X11R7/lib/modules"
	FontPath     "/usr/X11R7/lib/X11/fonts/misc/"
	FontPath     "/usr/X11R7/lib/X11/fonts/TTF/"
	FontPath     "/usr/X11R7/lib/X11/fonts/Type1/"
	FontPath     "/usr/X11R7/lib/X11/fonts/75dpi/"
	FontPath     "/usr/X11R7/lib/X11/fonts/100dpi/"
	FontPath     "/usr/pkg/share/fonts/X11/misc/"
	FontPath     "/usr/pkg/share/fonts/X11/TTF/"
	FontPath     "/usr/pkg/share/fonts/X11/Type1/"
	FontPath     "/usr/pkg/share/fonts/X11/75dpi/"
	FontPath     "/usr/pkg/share/fonts/X11/100dpi/"
EndSection

Section "Module"
	Load  "dri"
	Load  "dri2"
	Load  "glx"
	Load  "shadow"
EndSection

Section "InputDevice"
	Identifier  "Keyboard0"
	Driver      "kbd"
	Option      "XkbdOptions" "ctrl:swapcaps"
EndSection

Section "InputDevice"
	Identifier  "Mouse0"
	Driver      "mouse"
	Option	    "Protocol" "wsmouse"
	Option	    "Device" "/dev/wsmouse"
	Option	    "ZAxisMapping" "4 5 6 7"
EndSection

Section "Monitor"
	Identifier   "Monitor0"
	VendorName   "Monitor Vendor"
	ModelName    "Monitor Model"
EndSection

Section "Monitor"
	Identifier   "Monitor1"
	VendorName   "Monitor Vendor"
	ModelName    "Monitor Model"
EndSection

Section "Device"
        ### Available Driver options are:-
        ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
        ### <string>: "String", <freq>: "<f> Hz/kHz/MHz",
        ### <percent>: "<f>%"
        ### [arg]: arg optional
        #Option     "Accel"              	# [<bool>]
        #Option     "SWcursor"           	# [<bool>]
        #Option     "EnablePageFlip"     	# [<bool>]
        #Option     "SubPixelOrder"      	# [<str>]
        #Option     "ZaphodHeads"        	# <str>
        #Option     "AccelMethod"        	# <str>
        #Option     "DRI3"               	# [<bool>]
        #Option     "DRI"                	# <i>
        #Option     "ShadowPrimary"      	# [<bool>]
        #Option     "TearFree"           	# [<bool>]
        #Option     "DeleteUnusedDP12Displays" 	# [<bool>]
        #Option     "VariableRefresh"    	# [<bool>]
        #Option     "AsyncFlipSecondaries" 	# [<bool>]
	Identifier  "Card0"
	Driver      "amdgpu"
	BusID       "PCI:11:0:0"
EndSection

Section "Device"
        ### Available Driver options are:-
        ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
        ### <string>: "String", <freq>: "<f> Hz/kHz/MHz",
        ### <percent>: "<f>%"
        ### [arg]: arg optional
        #Option     "Accel"              	# [<bool>]
        #Option     "SWcursor"           	# [<bool>]
        #Option     "EnablePageFlip"     	# [<bool>]
        #Option     "SubPixelOrder"      	# [<str>]
        #Option     "ZaphodHeads"        	# <str>
        #Option     "AccelMethod"        	# <str>
        #Option     "DRI3"               	# [<bool>]
        #Option     "DRI"                	# <i>
        #Option     "ShadowPrimary"      	# [<bool>]
        #Option     "TearFree"           	# [<bool>]
        #Option     "DeleteUnusedDP12Displays" 	# [<bool>]
        #Option     "VariableRefresh"    	# [<bool>]
        #Option     "AsyncFlipSecondaries" 	# [<bool>]
	Identifier  "Card1"
	Driver      "amdgpu"
	BusID       "PCI:11:0:1"
EndSection

Section "Screen"
	Identifier "Screen0"
	Device     "Card0"
	Monitor    "Monitor0"
	SubSection "Display"
		Viewport   0 0
		Depth     1
	EndSubSection
	SubSection "Display"
		Viewport   0 0
		Depth     4
	EndSubSection
	SubSection "Display"
		Viewport   0 0
		Depth     8
	EndSubSection
	SubSection "Display"
		Viewport   0 0
		Depth     15
	EndSubSection
	SubSection "Display"
		Viewport   0 0
		Depth     16
	EndSubSection
	SubSection "Display"
		Viewport   0 0
		Depth     24
		Virtual   3840 1800
	EndSubSection
EndSection

Section "Screen"
	Identifier "Screen1"
	Device     "Card1"
	Monitor    "Monitor1"
	SubSection "Display"
		Viewport   0 0
		Depth     1
	EndSubSection
	SubSection "Display"
		Viewport   0 0
		Depth     4
	EndSubSection
	SubSection "Display"
		Viewport   0 0
		Depth     8
	EndSubSection
	SubSection "Display"
		Viewport   0 0
		Depth     15
	EndSubSection
	SubSection "Display"
		Viewport   0 0
		Depth     16
	EndSubSection
	SubSection "Display"
		Viewport   0 0
		Depth     24
		Virtual   3840 1800
	EndSubSection
EndSection



Home | Main Index | Thread Index | Old Index