You are not logged in.

#1 2022-07-16 02:18:28

coolreader18
Member
Registered: 2021-04-12
Posts: 4

`randr: failed to create shared pixmap` only when AMD is primary gpu

I'm not a newbie, but this problem sure is making me feel like one. HDMI output doesn't work at all for me - it shows up in xrandr, and the name of the display and everything is detected, but trying to switch to it puts a `randr: failed to create shared pixmap` in the xorg log. Also, if I switch my xorg.conf to have `Device "NVIDIA"`, then I can use HDMI outputs, but then my laptop monitor doesn't work. (Windows partition works fine with HDMI.) This has stumped me on and off for like, a year+, and just today I had the bright idea to look in the xorg log but then all the other topics with the same error message said something along the lines of "oh this stopped happening for me under Linux 5.15" and here I still am, running 5.18.10-arch1-1. My laptop is a Asus FX505DU, my xrandr output (with `Device "AMD"`) is

Screen 0: minimum 320 x 200, current 1920 x 1080, maximum 16384 x 16384
eDP connected 1920x1080+0+0 (normal left inverted right x axis y axis) 344mm x 193mm
   1920x1080    144.00*+  60.02  
   1680x1050    144.00  
   1280x1024    144.00  
   1440x900     144.00  
   1280x800     144.00  
   1280x720     144.00  
   1024x768     144.00  
   800x600      144.00  
   640x480      144.00  
HDMI-1-0 connected (normal left inverted right x axis y axis)
   800x600       60.32 + 119.97    85.06    75.00    72.19    56.25  
   1920x1080     60.00    59.94    50.00    23.98  
   1600x1200     60.00  
   1400x1050     59.98  
   1280x1024     75.02  
   1280x960      60.00  
   1280x720      60.00    59.94    50.00  
   1152x864      75.00  
   1024x768      85.00    75.03    70.07    60.00  
   720x576       50.00  
   720x480       59.94  
   640x480       75.00    72.81    59.94    59.93

`xrandr --listproviders`":

Providers: number : 2
Provider 0: id: 0x53 cap: 0xf, Source Output, Sink Output, Source Offload, Sink Offload crtcs: 4 outputs: 1 associated providers: 1 name:AMD Radeon Vega 10 Graphics @ pci:0000:05:00.0
Provider 1: id: 0x1f5 cap: 0x2, Sink Output crtcs: 4 outputs: 1 associated providers: 1 name:NVIDIA-G0

Offline

#2 2022-07-16 07:18:36

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,546

Re: `randr: failed to create shared pixmap` only when AMD is primary gpu

https://wiki.archlinux.org/title/PRIME#Reverse_PRIME - see the blue note.
In doubt, remove xf86-video-amdgpu and see whether it works w/ the modesetting driver and also explicitly

xrandr --setprovideroutputsource 0x1f5 0x53 # nb. that the ID might change when switching to the modesetting driver

Windows partition works fine with HDMI.

Probably unrelated, but make sure to check the 3rd link below.

Offline

Board footer

Powered by FluxBB