网站首页 > 资源文章 正文
树莓派隐藏鼠标光标和修改启动界面
最佳解决思路
试试’unclutter’
此程序的目的是在鼠标移动一段时间后隐藏指针。使用它,您可以使指针仅在用户触摸屏幕时显示,并在其后立即消失。 (也许这不是你的目标。但它比你的替代方案容易得多= P)
要使用,请安装它
sudo apt-get install unclutter
然后运行它
unclutter -idle 0.01 -root
数字是指针消失前的秒数(在这种情况下,为1/100秒)
次佳解决思路
如果您从不希望光标出现(适用于触摸屏),那么根据我的经验,unclutter是不够的。相反,您可以在启动X时使用-nocursor。
例:
startx -nocursor
请参阅http://www.x.org/wiki/AdvancedTopicsFAQ/#index1h2
第三种解决思路
如果你使用lightdm:
编辑/etc/lightdm/lightdm.conf添加:
xserver-command=X -bs -core -nocursor
如果你使用nodm:
通过替换来编辑/etc/default/nodm:
NODM_X_OPTIONS='-nolisten tcp'
同
NODM_X_OPTIONS='-nolisten tcp -nocursor'
这是建立从吉布斯非常有帮助的答案
树莓派修改启动界面
1.设置主题
sudo plymouth-set-default-theme details
可以通过 sudo plymouth-set-default-theme -l 查看有哪些主题
2.禁用Raspberry PI屏幕颜色测试
sudo nano /boot/config.txt
在最后添加:
disable_splash=1
3.屏蔽树莓派在初始化中的代码流显示
sudo nano /boot/cmdline.txt
修改 console 为 tty3 ,在 rootwait 后添加 quiet splash plymouth.ignore-serial-consoles logo.nologo loglevel=3 disable_overscan=1
4.设置启动屏幕
4.1安装fbi,framebuffer图像查看器,以root身份运行
sudo apt-get install fbi
如果运行过程中出现问题,先执行 sudo apt-get update 升级一下apt-get.
4.2在root权限下创建
/etc/systemd/system/splashscreen.service
增加如下内容(其中/etc/splash.png为需要开机显示的图像):
[Unit]
Description=Splashscreen
DefaultDependencies=no
After=basic.target
[Service]
ExecStart=/usr/bin/fbi -d /dev/fb0 --noverbose -a /etc/splash.png
StandardInput=tty
StandardOutput=tty
[Install]
WantedBy=sysinit.target
4.3 开机自启
systemctl enable splashscreen //开启开机自启动
systemctl disable splashscreen //关闭开机自启动
systemctl status splashscreen //查看服务当前状态
4.4 启动服务
当创建服务后,可以
systemctl start splashscreen(开启服务)
systemctl status splashscreen(查看相关服务的当前状态)
systemctl stop splashscreen (停止相关的服务)
参考文档:
如何隐藏鼠标光标
https://ubuntuqa.com/article/2996.html
树莓派修改启动界面
https://www.cnblogs.com/Java-Script/p/11095826.html
修改树莓派的开机启动画面
https://shumeipai.nxez.com/2018/12/16/customize-the-boot-startup-screen-of-the-raspberry-pi.html
猜你喜欢
- 2024-10-02 JVM发生CMS GC的 5 种情况,你知道的肯定不全
- 2024-10-02 RabbitMQ 实现延迟队列的两种方式
- 2024-10-02 用树莓派做一个木制 LED 游戏显示器 的教程
- 2024-10-02 华硕ROG Zenith Extreme Alpha主板评测:超跑级座驾已不足以形容
- 2024-10-02 常见端口详解及攻击策略 (15年前的黑客经典)
- 2024-10-02 小福利,菜鸟练级必备电子书(2021菜鸟教程)
- 2024-10-02 Linux磁盘管理(Linux磁盘管理实验)
- 2024-10-02 Linux分区命令与格式化实战案例(linux 分区格式)
- 2024-10-02 华硕ROG Zenith Extreme Alpha主板评测:主板界的航空母舰
- 2024-10-02 电脑端口基础知识(非常详细)(电脑端口百科)
你 发表评论:
欢迎- 05-1430个在线地图瓦片URL分享
- 05-1425个在线地图瓦片URL分享
- 05-14PixelStyle for Mac(mac照片编辑器)
- 05-14一篇文章带你了解CSS3 3D 转换知识
- 05-14我们的世界是假的?马斯克:我们生活在高文明模拟的矩阵游戏中
- 05-14【视觉AI的基石】斯坦福大学笔记!带你吃透卷积神经网络 (CNN)
- 05-14潮流 | 通过AAPE的新价目,无虑入荷未来主义服饰
- 05-14身份证查询服务API:准确识别身份证信息
- 最近发表
- 标签列表
-
- 电脑显示器花屏 (79)
- 403 forbidden (65)
- linux怎么查看系统版本 (54)
- 补码运算 (63)
- 缓存服务器 (61)
- 定时重启 (59)
- plsql developer (73)
- 对话框打开时命令无法执行 (61)
- excel数据透视表 (72)
- oracle认证 (56)
- 网页不能复制 (84)
- photoshop外挂滤镜 (58)
- 网页无法复制粘贴 (55)
- vmware workstation 7 1 3 (78)
- jdk 64位下载 (65)
- phpstudy 2013 (66)
- 卡通形象生成 (55)
- psd模板免费下载 (67)
- shift (58)
- localhost打不开 (58)
- 检测代理服务器设置 (55)
- frequency (66)
- indesign教程 (55)
- 运行命令大全 (61)
- ping exe (64)
本文暂时没有评论,来添加一个吧(●'◡'●)