🥧

Raspberry PiにRDP接続した際の表示乱れを回避する

2024/06/05に公開

Raspberry Piにxrdpをインストールし、Windows 11からリモートデスクトップで接続したところ、ブラウザ(Chromium, Firefox)が以下のように表示が崩れてしまいました。

Broken firefox
表示が崩れたFirefox

以下を参考に設定したところ、表示されるようになりました。
https://forums.raspberrypi.com/viewtopic.php?t=359928#p2175283

Fixed Firefox
設定後のFirefox

環境

モデル: Raspberry Pi 4B 4GB
OS: Raspberry Pi OS (64-bit) (2024-05-29)

対処法

以下のコマンドを実行します。

sudo adduser xrdp ssl-cert

次に/etc/X11/xrdp/xorg.confを修正します。
Section "Device"の中にあるOption "DRMDevice"の値を""に変えます。以下のようなイメージです。

/etc/X11/xrdp/xorg.conf
Section "Device"
    Identifier "Video Card (xrdpdev)"
    Driver "xrdpdev"
    # Option "DRMDevice" "/dev/dri/renderD128"
    Option "DRMDevice" ""
    Option "DRI3" "1"
EndSection

最後にOSをrebootします。

sudo reboot

以上です。

Discussion