Raspberry Pi - Desative o sleep para evitar o desligamento da tela: mudanças entre as edições
De Área31 Hackerspace
Sem resumo de edição |
Sem resumo de edição |
||
(3 revisões intermediárias pelo mesmo usuário não estão sendo mostradas) | |||
Linha 6: | Linha 6: | ||
#@xscreensaver -no-splash | #@xscreensaver -no-splash | ||
@xset s off | @xset s off | ||
@xset - | @xset -dpms | ||
@xset s noblank | @xset s noblank | ||
Linha 15: | Linha 15: | ||
<pre> | <pre> | ||
Section "Monitor" | |||
Identifier "LVDS0" | |||
Option "DPMS" "false" | |||
EndSection | |||
Section "ServerLayout" | Section "ServerLayout" | ||
Identifier "ServerLayout0" | Identifier "ServerLayout0" | ||
Option "BlankTime" "0" | |||
Option "StandbyTime" "0" | Option "StandbyTime" "0" | ||
Option "SuspendTime" "0" | Option "SuspendTime" "0" | ||
Linha 22: | Linha 28: | ||
EndSection | EndSection | ||
</pre> | </pre> | ||
Linha 31: | Linha 38: | ||
Verifique se está definido: | Verifique se está definido: | ||
cat /sys/module/kernel/parameters/consoleblank | cat /sys/module/kernel/parameters/consoleblank | ||
ou adicione o seguinte parâmetro ao boot: | |||
consoleblank=0 | |||
Linha 37: | Linha 49: | ||
[[Categoria:Linux]] | [[Categoria:Linux]] | ||
[[Categoria:KnowledgeBase]] | [[Categoria:KnowledgeBase]] | ||
[[Categoria:Embarcados]] | |||
Referências: | Referências: | ||
http://www.cyberciti.biz/tips/linux-disable-screen-blanking-screen-going-blank.html | http://www.cyberciti.biz/tips/linux-disable-screen-blanking-screen-going-blank.html |
Edição atual tal como às 15h27min de 19 de setembro de 2017
LXDE
Adicione ao arquivo do LXDE as opções de desativar o sleep:
vi /etc/xdg/lxsession/LXDE/autostart
#@xscreensaver -no-splash @xset s off @xset -dpms @xset s noblank
Xorg
vi /etc/X11/xorg.conf.d/10-monitor.conf
Section "Monitor" Identifier "LVDS0" Option "DPMS" "false" EndSection Section "ServerLayout" Identifier "ServerLayout0" Option "BlankTime" "0" Option "StandbyTime" "0" Option "SuspendTime" "0" Option "OffTime" "0" EndSection
Console
echo "setterm -blank 0" >> /etc/conf.d/local.start
ou altere a linha do kernel no boot, adicionando o parâmetro "consoleblank=0".
Verifique se está definido:
cat /sys/module/kernel/parameters/consoleblank
ou adicione o seguinte parâmetro ao boot:
consoleblank=0
Referências:
http://www.cyberciti.biz/tips/linux-disable-screen-blanking-screen-going-blank.html