View previous topic :: View next topic |
Author |
Message |
eccerr0r Watchman
Joined: 01 Jul 2004 Posts: 9679 Location: almost Mile High in the USA
|
Posted: Wed Jun 02, 2021 9:55 pm Post subject: Loading Xorg video drivers that aren't in portage? |
|
|
Ever since Gentoo deprecated a bunch of the lesser used video drivers that X.org still supports, this has sort of been a problem with a multi-setup build that would load on any machine. Drivers such as xf86-video-sis, xf86-video-chips, xf86-video-s3, xf86-video-trident, xf86-video-tdfx, etc., etc. are no longer supported but you can still build them from the xorg source.
However what doesn't seem to work, if you build the drivers separately, only the video cards whose drivers are in portage are autodetected.
Anyone know how to make it load/autodetect whatever card is installed? Is there some xorg-server patches that are needed to get this to work?
Also how about hotplug in xorg, specifically for the USB display drivers, but PCIe could be hotplug... ? I guess it would be a workaround to just have everything plugged in prior to starting but USB video is more of an issue... _________________ Intel Core i7 2700K/Radeon R7 250/24GB DDR3/256GB SSD
What am I supposed watching? |
|
Back to top |
|
|
GDH-gentoo Veteran
Joined: 20 Jul 2019 Posts: 1530 Location: South America
|
Posted: Thu Jun 03, 2021 1:42 am Post subject: Re: Loading Xorg video drivers that aren't in portage? |
|
|
eccerr0r wrote: | However what doesn't seem to work, if you build the drivers separately, only the video cards whose drivers are in portage are autodetected. |
Are you sure? The code for autodetection of the cards that correspond to all those drivers you mention seems to be still there in version 1.20.11. |
|
Back to top |
|
|
eccerr0r Watchman
Joined: 01 Jul 2004 Posts: 9679 Location: almost Mile High in the USA
|
Posted: Thu Jun 03, 2021 3:14 am Post subject: |
|
|
Well, I meant the default configuration - as in, no xorg.conf.
Without an xorg.conf or entries in xorg.conf.d, Xorg will not load non-portage modules, so something with Gentoo is happening but this is "unsupported" by Gentoo...so this is quite weird...
BTW, how I added the modules: created overlay, copied an existing ebuild -- but added in bits for the deleted driver. Emerged that driver but starting X won't pick automatically up the driver. Adding the driver in xorg.conf is the only way that I could find to pick up the driver. _________________ Intel Core i7 2700K/Radeon R7 250/24GB DDR3/256GB SSD
What am I supposed watching? |
|
Back to top |
|
|
GDH-gentoo Veteran
Joined: 20 Jul 2019 Posts: 1530 Location: South America
|
Posted: Thu Jun 03, 2021 2:50 pm Post subject: |
|
|
eccerr0r wrote: | Adding the driver in xorg.conf is the only way that I could find to pick up the driver. |
What does Xorg propose in the "Matched <driver> as autoconfigured driver <order>" lines of Xorg.*.log if you don't? |
|
Back to top |
|
|
eccerr0r Watchman
Joined: 01 Jul 2004 Posts: 9679 Location: almost Mile High in the USA
|
Posted: Thu Jun 03, 2021 4:56 pm Post subject: |
|
|
Code: | [388079.918] (II) Applying OutputClass "Radeon" to /dev/dri/card0
[388079.918] loading driver: radeon
[388079.918] (==) Matched radeon as autoconfigured driver 0
[388079.918] (==) Matched ati as autoconfigured driver 1
[388079.918] (==) Matched modesetting as autoconfigured driver 2
[388079.918] (==) Matched fbdev as autoconfigured driver 3
[388079.919] (==) Matched vesa as autoconfigured driver 4
[388079.919] (==) Assigned the driver to the xf86ConfigLayout
[388079.919] (II) LoadModule: "radeon"
|
The out-of-portage driver does not show up here. However if I muck with the xorg.conf file and explicitly add a "Device" section, it will load the driver and initialize it. And of course no Matched section in Xorg.0.log when hardcoding the Device section.
Perhaps the probe routine for this specific driver is incompatible with autoprobe, maybe this is why it doesn't work? Doesn't seem right because if you force it and the card isn't there, it still needs to fail gracefully and not hang the machine.
It's just curious because it seems that my other machine with two cards (onboard chipset and pcie), both cards are autodetected/drivers loaded, but the displays aren't necessarily configured. This is fine, can xrandr the displays up -- not so with the out of portage driver.
--
Hmm... perhaps I need a udev rule, though no clue what I'd need...? _________________ Intel Core i7 2700K/Radeon R7 250/24GB DDR3/256GB SSD
What am I supposed watching? |
|
Back to top |
|
|
GDH-gentoo Veteran
Joined: 20 Jul 2019 Posts: 1530 Location: South America
|
Posted: Thu Jun 03, 2021 9:46 pm Post subject: |
|
|
eccerr0r wrote: | Code: | [388079.918] (II) Applying OutputClass "Radeon" to /dev/dri/card0
[388079.918] loading driver: radeon
[388079.918] (==) Matched radeon as autoconfigured driver 0
[388079.918] (==) Matched ati as autoconfigured driver 1
[388079.918] (==) Matched modesetting as autoconfigured driver 2
[388079.918] (==) Matched fbdev as autoconfigured driver 3
[388079.919] (==) Matched vesa as autoconfigured driver 4
[388079.919] (==) Assigned the driver to the xf86ConfigLayout
[388079.919] (II) LoadModule: "radeon"
|
|
As far as I can tell, there is an OutputClass section in xorg.conf or some xorg.conf.d/* file telling Xorg to use the radeon driver for this card, and Xorg's autoconfiguration mechanism guesses that the suitable driver for the card is the ati driver. So does this mean that the configuration / guess is wrong? |
|
Back to top |
|
|
eccerr0r Watchman
Joined: 01 Jul 2004 Posts: 9679 Location: almost Mile High in the USA
|
Posted: Thu Jun 03, 2021 10:33 pm Post subject: |
|
|
Oh, ATI is correct, would be the main video - but the USB video that doesn't show should be an alternate/second display. I can't disable ATI to see what would happen if USB was only, but the ATI + intel seems to work...
Perhaps there's an outputclass default xorg.conf(where?) I can't find for the existing drivers... hmm _________________ Intel Core i7 2700K/Radeon R7 250/24GB DDR3/256GB SSD
What am I supposed watching? |
|
Back to top |
|
|
GDH-gentoo Veteran
Joined: 20 Jul 2019 Posts: 1530 Location: South America
|
Posted: Thu Jun 03, 2021 11:10 pm Post subject: |
|
|
eccerr0r wrote: | Oh, ATI is correct, would be the main video - but the USB video that doesn't show [...] |
USB video? Do you mean there is another card in addition to /dev/dri/card0 (the ATI one)? Does it also have an associated /dev/dri/card* character special file? Can you share the entire Xorg.*.log file when you use xorg.conf to make Xorg load the driver you want?
eccerr0r wrote: | Perhaps there's an outputclass default xorg.conf(where?) |
There seems to be one with an Identifier "Radeon" entry. ls /etc/X11/xorg.conf*. |
|
Back to top |
|
|
eccerr0r Watchman
Joined: 01 Jul 2004 Posts: 9679 Location: almost Mile High in the USA
|
|
Back to top |
|
|
eccerr0r Watchman
Joined: 01 Jul 2004 Posts: 9679 Location: almost Mile High in the USA
|
Posted: Tue Dec 14, 2021 5:11 pm Post subject: |
|
|
Got a little further - I patched xorg-server to automatically try loading the usb drivers on startup, and it now does... Seems these usb drivers are not attempted to load if not explicitly in xorg.conf unlike other drivers which are autodetected from PCI.
whether this is now useful...stay tuned. One thing's for sure: hot plug while X is running will never work as far as I can tell, but at least hopefully autoconfig will work. I hope. _________________ Intel Core i7 2700K/Radeon R7 250/24GB DDR3/256GB SSD
What am I supposed watching? |
|
Back to top |
|
|
|