树莓派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

修改文件方法为转载

相关推荐
xyx-3v15 小时前
telnet不是内部或外部命令
嵌入式
Dr.kangder20 小时前
嵌入式面试总结(一)——嵌入式系统实时性
面试·职场和发展·架构·嵌入式·虚拟化
NiCo2 天前
在 Windows 上跑 lwIP(四):敲电子木鱼,享赛博人生
嵌入式
Dr.kangder2 天前
嵌入式软件测试(十五)——模型检查技术原理与应用
软件测试·测试工具·架构·嵌入式·静态分析
Dr.kangder2 天前
嵌入式处理器虚拟化仿真技术(九)——SimpleScalar原理与应用
嵌入式硬件·架构·嵌入式·虚拟化·仿真
Dr.kangder2 天前
嵌入式处理器架构解析(十)——DSP+FPGA
fpga开发·架构·嵌入式
不弃君3 天前
在 Windows 上用 MinGW 搭建 lwIP 调试环境:方法与踩坑实录
windows·网络协议·tcp/ip·嵌入式·mingw·lwip
Embedded-Xin3 天前
中间件—zenoh零基础入门
linux·中间件·rust·机器人·自动驾驶·嵌入式
橘色的喵3 天前
ARM-Linux 嵌入式消息总线:高优先级驱逐机制设计
linux·arm开发·性能优化·嵌入式·newosp