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

修改文件方法为转载

相关推荐
济61713 小时前
ARM Linux 驱动开发篇---Linux字符设备驱动代码阅读指南---附设备树LED驱动实战案例
linux·嵌入式·嵌入式linux驱动开发
担水老头13 小时前
蓝桥杯嵌入式赛道解决LCD和LED引脚冲突的问题
嵌入式
Hello_Embed1 天前
STM32CubeIDE 创建第1个工程
stm32·单片机·嵌入式·ai编程
炸膛坦客1 天前
嵌入式 - 数据结构与算法:(1-1)数据结构 - 顺序表(Sequential List)
数据结构·算法·嵌入式
iCxhust2 天前
一块电路板的自觉
单片机·嵌入式硬件·嵌入式·微机原理
FreakStudio2 天前
MicroPython 内核开发者直接狂喜!这个 Claude 插件市场,把开发全流程做成了「对话式外挂」
python·单片机·嵌入式·面向对象·并行计算·电子diy
iCxhust4 天前
【无标题】8086/8088裸机对于学习微机原理的重要意义
汇编·单片机·嵌入式硬件·嵌入式·微机原理
左手厨刀右手茼蒿4 天前
Linux 内核中的设备驱动开发:从字符设备到网络设备
linux·嵌入式·系统内核
吃米饭5 天前
HC32L021C8UB 移植 FreeRTOS
stm32·嵌入式·freertos·rtos
2023自学中5 天前
make clean 与 make distclean
linux·嵌入式