Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

xorgxrdp crashes when using AMD GPU related Xorg config #223

Closed
gamelaster opened this issue Jun 30, 2022 · 3 comments
Closed

xorgxrdp crashes when using AMD GPU related Xorg config #223

gamelaster opened this issue Jun 30, 2022 · 3 comments

Comments

@gamelaster
Copy link

xrdp: 0.9.19 (AUR)
xorgxrdp: 0.2.18 (AUR xorgxrdp-glamor)

This is highly related to neutrinolabs/xrdp#2010 and neutrinolabs/xrdp#1550 . I had exact same issues, dev tty access, etc. etc. After removing this Xorg config, xorgxrdp works absolutely fine:

Section "Device"
  Identifier    "AMDgpu"
  Driver        "amdgpu"
  Screen        0
  BusID         "PCI:6:0:0"
EndSection

I'm using this Xorg config to force Xorg to use specific GPU (due I have multi GPU setup). I know there is a workaround to not load Load Xorg configs, but firstly, why this doesn't work, as xorgxrdp should support AMD GPU (I built it with glamor support)? Also, if this will ever not work, is there any easy way of just ignore that specific .conf file?

Thank you very much.

@seflerZ
Copy link
Contributor

seflerZ commented Sep 21, 2022

xrdp has it's own xorg.conf(/etc/X11/xrdp/xorg.conf) and it will be loaded by xrdp-sesman when starting xorg session. It's not recommended to change it. If you want to use specified GPU, it's better to do it in Mesa configurations. Try use this env: MESA_D3D12_DEFAULT_ADAPTER_NAME. You can have more details here and you can use glxinfo -B | grep OpenGL to check if it works

@timtas
Copy link

timtas commented Jan 28, 2023

I think you should change the xorg.conf, and add

Option "AutoAddGPU" "off"

instead of "AutoAddDevices"

I had a similar problem with my intel gpu and as I also run a real display server, was not willing to delete the intel bit.

If you however add the above to /etc/X11/xrdp/xorg.conf, xordxrdp will leave the hardware stuff, but the other X server can still use it.

@gamelaster
Copy link
Author

@timtas Thanks! This sounds like it can help. Since I don't use xorgxrdp at the moment, I can't test it, so I will close the issue, and will re-open it if your solution will not help me. (or if it will be not working for someone else).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants