我正在运行 raspbian,并将其用作零售中心的电视显示设备。
我在启动时使用 .profile 中的这一行运行 chromium
xinit /usr/bin/chromium --kiosk --incognito www.mysite.com
但是,禁用消隐的解决方案似乎都不起作用(尽管如果我在 raspbian gui 中它们确实起作用)。
显示屏幕不会出现空白是非常重要的(正如您可以想象的那样)......
有没有人对此有任何解决方案?
我正在运行 raspbian,并将其用作零售中心的电视显示设备。
我在启动时使用 .profile 中的这一行运行 chromium
xinit /usr/bin/chromium --kiosk --incognito www.mysite.com
但是,禁用消隐的解决方案似乎都不起作用(尽管如果我在 raspbian gui 中它们确实起作用)。
显示屏幕不会出现空白是非常重要的(正如您可以想象的那样)......
有没有人对此有任何解决方案?
KBD 似乎是导致屏幕空白的原因。
您可以通过 KBD 的配置文件 /etc/kbd/config 禁用 KBD 的屏幕消隐。
使用 vi、nano 或 leafpad 等文本编辑器打开它。
请注意,这需要管理权限。
然后换行
BLANK_TIME=30
至
BLANK_TIME=0
为了使这些设置生效,重新启动/重新启动您的 RPi,或使用以下命令重新启动 KBD:
sudo /etc/init.d/kbd restart
如果您在那之后仍然出现空白,那么更改 LightDM 的配置可能会解决它。
编辑 LightDM 的配置文件(/etc/lightdm/lightdm.conf,需要root),在“[SeatDefaults]”行之后添加以下行
xserver-command=X -s 0 dpms
请注意,我只测试了 KBD 方法!
资料来源:
http ://www.raspberrypi.org/forums/viewtopic.php?f=28&t=18181
http://www.raspberrypi.org/forums/viewtopic.php?f=66&t=18200&p=180271#p180271
我做了什么来使用 Raspbian 在我的 Raspberry Pi 2 上禁用屏幕消隐。
在以下位置创建了一个文件/etc/X11/Xsession.d/
:
# /etc/X11/Xsession.d/98x11-screen_blank
xset s off
xset -dpms
xset s noblank
确保您已xset
安装。最新的 Raspbian 已经有了。
你必须把这些行 [1]
@xset s noblank
@xset s off
@xset -dpms
进入文件 [2]
~/.config/lxsession/LXDE/autostart
[1] https://www.raspberrypi.org/forums/viewtopic.php?t=57552
[2] https://wiki.archlinux.org/index.php/LXDE#Autostart_Programs
如果要在每次启动时禁用空白屏幕,只需键入:
sudo nano /etc/lightdm/lightdm.conf
并在 [SeatDefaults] 部分添加或取消注释此行:
xserver-command=X -s 0 -dpms
然后:
ctrl + x
y
press enter
reboot
等待 20 分钟,它应该仍然打开。这是如果您正在使用 Pixel 运行 Raspbian-jessie。