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

修改文件方法为转载

相关推荐
嵌入小生0071 小时前
双向链表、双向循环链表之间的异同---嵌入式入门---Linux
linux·c语言·数据结构·链表·嵌入式·小白
CQ_YM14 小时前
ARM之I2C
arm开发·单片机·嵌入式硬件·嵌入式
梵刹古音20 小时前
【C语言】 字符型变量
c语言·开发语言·嵌入式
2401_859049081 天前
lvgl移植到Linux踩坑
linux·运维·arm开发·elasticsearch·嵌入式·ubantu
嵌入小生0071 天前
单向链表的常用操作方法---嵌入式入门---Linux
linux·开发语言·数据结构·算法·链表·嵌入式
Hello_Embed1 天前
libmodbus 源码分析(接收请求篇)
笔记·学习·嵌入式·freertos·modbus
Hello_Embed2 天前
libmodbus 源码分析(发送请求篇)
笔记·单片机·嵌入式·freertos·libmodbus
梵刹古音2 天前
【C语言】 定义变量
c语言·开发语言·嵌入式
CQ_YM4 天前
ARM之I2C与ADC
arm开发·嵌入式硬件·嵌入式·arm
plmm烟酒僧4 天前
使用 Lua 进行汽车 UDS 诊断:轻量级脚本化诊断新思路
嵌入式·lua·汽车电子·uds诊断·汽车诊断·can通信·诊断协议