Raspberry Pi - Desative o sleep para evitar o desligamento da tela: mudanças entre as edições
De Área31 Hackerspace
(Criou página com '= X = 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 -dp ms @xset s nobl...') |
Sem resumo de edição |
||
(4 revisões intermediárias pelo mesmo usuário não estão sendo mostradas) | |||
Linha 1: | Linha 1: | ||
= | = LXDE = | ||
Adicione ao arquivo do LXDE as opções de desativar o sleep: | Adicione ao arquivo do LXDE as opções de desativar o sleep: | ||
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 | ||
= Xorg = | |||
vi /etc/X11/xorg.conf.d/10-monitor.conf | |||
<pre> | |||
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 | |||
</pre> | |||
Linha 17: | 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 23: | 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