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

Bug#1102332: xorgxrdp: Xorg.conf missing amdgpu in DRMAllowList



Package: xorgxrdp
Version: 1:0.10.2-1
Severity: normal

Dear Maintainer,

*** Reporter, please consider answering these questions, where appropriate ***

   * What led up to the situation?

   Noticed that the Glamor driver was not being used with xRDP and there was
   not acceleration.

   * What exactly did you do (or not do) that was effective (or
     ineffective)?

   I have an AMD 7940HS. It uses the amdgpu driver for the iGPU. I noticed that
   only radeon and i915 were listed in /etc/X11/xrdp/xorg.conf. Added 'amdgpu'
   to the end of the list, keeping the others.

   * What was the outcome of this action?

   Glamor is being used and there is acceleration. This also fixed some weird
   bugs that were happening with i3 + picom. Terminal windows would randomly
   become transparent and unusable for example.

-- System Information:
Debian Release: trixie/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 6.12.21-amd64 (SMP w/16 CPU threads; PREEMPT)
Kernel taint flags: TAINT_WARN
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages xorgxrdp depends on:
ii  libc6                                  2.41-6
ii  libepoxy0                              1.5.10-2
pn  xorg-input-abi-24                      <none>
ii  xserver-xorg-core [xorg-video-abi-25]  2:21.1.16-1

Versions of packages xorgxrdp recommends:
ii  xorg  1:7.7+24

xorgxrdp suggests no packages.

-- Configuration Files:
/etc/X11/xrdp/xorg.conf changed:
Section "ServerLayout"
    Identifier "X11 Server"
    Screen "Screen (xrdpdev)"
    InputDevice "xrdpMouse" "CorePointer"
    InputDevice "xrdpKeyboard" "CoreKeyboard"
EndSection
Section "ServerFlags"
    # This line prevents "ServerLayout" sections in xorg.conf.d files
    # overriding the "X11 Server" layout (xrdp #1784)
    Option "DefaultServerLayout" "X11 Server"
    Option "DontVTSwitch" "on"
    Option "AutoAddDevices" "off"
    Option "AutoAddGPU" "off"
EndSection
Section "Module"
    Load "dbe"
    Load "ddc"
    Load "extmod"
    Load "glx"
    Load "int10"
    Load "record"
    Load "vbe"
    Load "glamoregl"
    Load "xorgxrdp"
    Load "fb"
EndSection
Section "InputDevice"
    Identifier "xrdpKeyboard"
    Driver "xrdpkeyb"
EndSection
Section "InputDevice"
    Identifier "xrdpMouse"
    Driver "xrdpmouse"
EndSection
Section "Monitor"
    Identifier "Monitor"
    Option "DPMS"
    HorizSync 30-80
    VertRefresh 60-75
    ModeLine "1920x1080" 138.500 1920 1968 2000 2080 1080 1083 1088 1111 +hsync -vsync
    ModeLine "1280x720" 74.25 1280 1720 1760 1980 720 725 730 750 +HSync +VSync
    Modeline "1368x768" 72.25 1368 1416 1448 1528 768 771 781 790 +hsync -vsync
    Modeline "1600x900" 119.00 1600 1696 1864 2128 900 901 904 932 -hsync +vsync
EndSection
Section "Device"
    Identifier "Video Card (xrdpdev)"
    Driver "xrdpdev"
    Option "DRMDevice" "/dev/dri/renderD128"
    Option "DRI3" "1"
    Option "DRMAllowList" "i915 radeon amdgpu"
EndSection
Section "Screen"
    Identifier "Screen (xrdpdev)"
    Device "Video Card (xrdpdev)"
    # Comment out this line for xorg < 1.18.0
    GPUDevice ""
    Monitor "Monitor"
    DefaultDepth 24
    SubSection "Display"
        Depth 24
        Modes "640x480" "800x600" "1024x768" "1280x720" "1280x1024" "1600x900" "1920x1080"
    EndSubSection
EndSection


-- no debconf information


Reply to: