树莓派4B最新系统Bullseye 64 bit使用xrdp远程桌面黑屏卡顿问题

1、树莓派换源

打开源文件

bash 复制代码
sudo nano /etc/apt/sources.list

注释原来的,更换为清华源

bash 复制代码
deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye main contrib non-free 
deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye-updates main contrib non-free 
deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye-backports main contrib non-free 
deb https://mirrors.tuna.tsinghua.edu.cn/debian-security bullseye-security main contrib non-free

打开raspi.list文件

bash 复制代码
sudo nano /etc/apt/sources.list.d/raspi.list

注释原来的,更换为

bash 复制代码
deb http://mirrors.tuna.tsinghua.edu.cn/raspberrypi/ bullseye main

更新软件目录和软件:

bash 复制代码
sudo apt update
sudo apt upgrade

2、安装xrdp

bash 复制代码
sudo apt-get install tightvncserver
sudo apt-get install xrdp 
sudo service xrdp restart

3、修改文件

登录树莓派后,打开这个文件:/etc/X11/xrdp/xorg.conf

在文件中找到:Option "DRMDevice" "/dev/dri/renderD128"

将上述这一行注释掉,增加:Option "DRMDevice" ""

保存后重新启动

此方法测试后:确实pi用户能rdp登录到桌面了。但是,但是,没有了图形驱动性能差,非常卡顿~~

编辑脚本 /usr/bin/startlxde-pi 的内容,更改第44行:(解决卡顿问题)

exec /usr/bin/lxsession -s LXDE-pi -e LXDE

在其末尾加上参数,最终内容改为与53行(倒数第2行)一样:

exec /usr/bin/lxsession -s LXDE-pi -e LXDE -w openbox-lxde-pi

修改文件方法为转载

相关推荐
左手厨刀右手茼蒿3 天前
PCIe设备驱动开发:从枚举到DMA传输的完整链路
linux·嵌入式·系统内核
济6173 天前
I.MX6U Linux 驱动开发篇---零基础必看!中断实验(按键中断 + 定时器消抖 + 设备树配置实战教程)--- Ubuntu20.04
linux·驱动开发·嵌入式·嵌入式linux驱动开发
凉、介3 天前
Linux 设备驱动匹配机制
linux·笔记·单片机·学习·操作系统·嵌入式
凉、介4 天前
Virtio 系列(一):框架概览
笔记·学习·嵌入式·虚拟化·virtio
charlie1145141914 天前
RK3506B: buildroot:出一份正规的最小 rootfs
开发语言·嵌入式·开源项目·rk3506b
piaoyiren4 天前
串口指令控制8路LED音乐流水灯程序
51单片机·嵌入式·普中
青衫嵌入式5 天前
懂了汽车,就懂了 C 语言面向对象编程
嵌入式
华清远见IT开放实验室5 天前
从嵌入式到具身智能:嵌入式AI机器狗FS_D2,一站式打通高校嵌入式+AI+机器人教学全链路
人工智能·ai·嵌入式·实验室·具身智能·高校
piaoyiren5 天前
STC8 6 位数字密码锁程序功能
51单片机·嵌入式·普中
dddwjzx6 天前
嵌入式Linux C应用编程入门——高级I/O
linux·嵌入式