Summary: | ATI radeon driver displays nothing or a client refused to switch message on hybrid graphics | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Product: | xorg | Reporter: | Saurav <sengupta01.saurav> | ||||||||||
Component: | Driver/Radeon | Assignee: | xf86-video-ati maintainers <xorg-driver-ati> | ||||||||||
Status: | RESOLVED NOTABUG | QA Contact: | Xorg Project Team <xorg-team> | ||||||||||
Severity: | normal | ||||||||||||
Priority: | medium | CC: | frederic.romagne | ||||||||||
Version: | unspecified | ||||||||||||
Hardware: | Other | ||||||||||||
OS: | Linux (All) | ||||||||||||
Whiteboard: | |||||||||||||
i915 platform: | i915 features: | ||||||||||||
Attachments: |
|
Description
Saurav
2016-04-04 10:12:11 UTC
Created attachment 122693 [details]
Sample XOrg configuration for the radeon driver
Created attachment 122694 [details]
XOrg log for the radeon driver
I have experienced this with version 7.6.1-3.20160215gitd41fccc of xorg-x11-drv-ati on Fedora 23 and version 7.5.0+git20150819-0ubuntu1 of xserver-xorg-video-ati on Ubuntu 15.10. I am unsure which generic version is applicable to this bug. Please attach the full dmesg output. Created attachment 122716 [details]
Full dmesg log
Looks like the AMD GPU has no physical display connections, so running X on that alone isn't possible, and I'm not sure vgaswitcheroo is useful either. (In reply to Michel Dänzer from comment #6) > Looks like the AMD GPU has no physical display connections, so running X on > that alone isn't possible, and I'm not sure vgaswitcheroo is useful either. How does fglrx work on Ubuntu 15.10, then? Booting with fglrx installed (which creates the XOrg configuration file I have posted for radeon but with "fglrx" instead of "radeon" for the driver) works properly and selects the AMD chip. The active GPU is shown as the AMD one in both the GUI (Unity/GNOME system details panel) and by the text-mode tools (glxinfo, inxi, etc.). Also, with the radeon driver, the system does not select the AMD chip for HDMI either. (In reply to Saurav from comment #7) > (In reply to Michel Dänzer from comment #6) > > Looks like the AMD GPU has no physical display connections, so running X on > > that alone isn't possible, and I'm not sure vgaswitcheroo is useful either. > > How does fglrx work on Ubuntu 15.10, then? Booting with fglrx installed > (which creates the XOrg configuration file I have posted for radeon but with > "fglrx" instead of "radeon" for the driver) works properly and selects the > AMD chip. The active GPU is shown as the AMD one in both the GUI > (Unity/GNOME system details panel) and by the text-mode tools (glxinfo, > inxi, etc.). The intel driver still drives the display. fglrx just copies the rendered content to the intel display buffer. > > Also, with the radeon driver, the system does not select the AMD chip for > HDMI either. The AMD chip you have does not even have display hardware. You have a muxless system which means the dGPU is only used for offscreen rendering. The dGPU renders to an offscreen buffer and it's copied to the integrated GPU for display. (In reply to Alex Deucher from comment #8) > (In reply to Saurav from comment #7) > > (In reply to Michel Dänzer from comment #6) > > > Looks like the AMD GPU has no physical display connections, so running X on > > > that alone isn't possible, and I'm not sure vgaswitcheroo is useful either. > > > > How does fglrx work on Ubuntu 15.10, then? Booting with fglrx installed > > (which creates the XOrg configuration file I have posted for radeon but with > > "fglrx" instead of "radeon" for the driver) works properly and selects the > > AMD chip. The active GPU is shown as the AMD one in both the GUI > > (Unity/GNOME system details panel) and by the text-mode tools (glxinfo, > > inxi, etc.). > > The intel driver still drives the display. fglrx just copies the rendered > content to the intel display buffer. > > > > > Also, with the radeon driver, the system does not select the AMD chip for > > HDMI either. > > The AMD chip you have does not even have display hardware. You have a > muxless system which means the dGPU is only used for offscreen rendering. > The dGPU renders to an offscreen buffer and it's copied to the integrated > GPU for display. OK, so is it possible to do something similar (copying to the Intel buffer) with the radeon driver? (In reply to Saurav from comment #9) > > OK, so is it possible to do something similar (copying to the Intel buffer) > with the radeon driver? Yes. Remove your xorg config and follow these instructions: https://wiki.archlinux.org/index.php/PRIME (In reply to Alex Deucher from comment #10) > (In reply to Saurav from comment #9) > > > > OK, so is it possible to do something similar (copying to the Intel buffer) > > with the radeon driver? > > Yes. Remove your xorg config and follow these instructions: > https://wiki.archlinux.org/index.php/PRIME OK, I have followed these instructions and PRIME is working on both Fedora 23 and Ubuntu 15.10, although it seems that setting DRI_PRIME is as far as it is possible to go with the radeon driver because it does not do the offloading automatically if I use an XOrg configuration file, so I will have to use a start-up script or something if I want to use it, as mentioned in the Arch wiki article. Thanks for the help. (In reply to Saurav from comment #11) > [...] it seems that setting DRI_PRIME is as far as it is possible to go with > the radeon driver because it does not do the offloading automatically if I use > an XOrg configuration file, so I will have to use a start-up script or > something if I want to use it, as mentioned in the Arch wiki article. If you enable DRI3 with Option "DRI" "3", DRI_PRIME=1 works automagically. Can this report be resolved? (In reply to Michel Dänzer from comment #12) > If you enable DRI3 with Option "DRI" "3", DRI_PRIME=1 works automagically. How? Do you mean that the offloading will be done automatically, without having to explicitly set DRI_PRIME=1? I tried putting Option "DRI" "3" in an XOrg configuration file in the "Device" section for Driver "radeon", which results in the same error as before. Otherwise, at least on my system, DRI_PRIME=1 works without having to do xrandr --setprovideroffloadsink and also without explicitly setting up an XOrg configuration with Option "DRI" "3" on both Fedora 23 and Ubuntu 16.04, but I do have to explicitly set DRI_PRIME=1. What I was looking for would be a way to make the radeon driver do the offloading automatically without having to manually set DRI_PRIME=1. (In reply to Saurav from comment #13) > What I was looking for would be a way to make the radeon driver > do the offloading automatically without having to manually set DRI_PRIME=1. FWIW, with DRI3, you can enable PRIME offloading via ~/.drirc, either for all applications (but note that doing so will likely break the compositing manager, because GLX_EXT_texture_from_pixmap isn't supported with PRIME offloading) or for individual applications. Also, current versions of GNOME (as available e.g. in Fedora 25) allow enabling PRIME offloading in the launcher application properties. Anyway, there's no Xorg radeon driver bug here, resolving accordingly. |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.