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

修改文件方法为转载

相关推荐
阿钱真强道5 小时前
25 鸿蒙LiteOS GPIO轮询模式实战教程:电平读取与上升沿检测
嵌入式·harmonyos·liteos·开源鸿蒙·瑞芯微·rk2206
秋越5 小时前
从工程角度理解嵌入式C语言关键字
c语言·开发语言·嵌入式·嵌入式软件开发·嵌入式c语言·c语言关键字
bbaydnog6 小时前
STM32调试三板斧:printf重定向、HardFault定位、逻辑分析仪抓波形,从此告别瞎改代码
stm32·嵌入式·调试
凉、介21 小时前
深入理解 ARMv8-A|处理器模式与寄存器
笔记·学习·嵌入式·arm
2023自学中1 天前
imx6ull 开发板,手机,MQTT 物联网通信实验。
linux·服务器·物联网·嵌入式·开发板·应用编程
lularible1 天前
从沙子到车辙(4.5):时间同步与PTP
开源·嵌入式·汽车电子
求知喻1 天前
KEIL5进行MSPM0开发
嵌入式
lularible1 天前
从沙子到车辙(4.3):板级通信——CAN / CAN-FD
开源·嵌入式·汽车电子
程序员打怪兽1 天前
嵌入式C语言
嵌入式
凉、介1 天前
深入理解 ARMv8-A|异常/中断处理
笔记·学习·嵌入式·arm