Tiny Core Linux
Tiny Core Base => Raspberry Pi => Topic started by: thorald on June 05, 2017, 04:22:34 AM
-
Hi!
Is there a way to prevent the hdmi to go to sleep?
Im running over ssh with a screen hooked up, but after a few minutes the picture disappears, but the power is still on.
And the other way around, how do I turn hdmi off.
Cheers
-
For Xorg, I think
xset s off -dpms
should work.
For CLI only, try
setterm -blank 0
To completely turn off the display (needs rpi-vc.tcz to be loaded)
tvservice -o
... and to turn it back on
tvservice -p
NOTE: after turning the display off, you will have to blindly enter the command to turn it on again. Or via ssh or other means.
Also note, you may then have to switch VTs back and forth (CTRL+ALT+F1, CTRL+ALT+F2) to get the display activated.
-
Thank you!
Will try!
-
I installed rpi-vc and got it working:)
Nice to be able to turn on and off the screen.
The issue is that since i only use this machine with ssh, no mouse or keyboard, but need to see information from the screen.
Is there a way to simulate a keyboard keypress or a mouse, that keeps the system from entering the screen to sleep mode?
-
What about the xset and setterm commands mentioned above?
-
Oh sorry, i missed to include that.
neither setterm or xset can be found..
-
Sorry as well, didn't mention where to get those tools from
setterm is provided by util-linux.tcz
xset is provided by Xlibs.tcz
By the way, if you don't know which extension provides a certain file, you can find out by using the "Provides" feature via the Apps GUI or tce-ab CLI tool.
-
Tried it on a RPi3 through ssh and noticed it's a little fussy.
For X
ssh <IP> "DISPLAY=:0.0 xset s off -dpms"
CLI alternative, util-linux.tcz not needed.
### ESC [ 9 ; n ] Set screen blank timeout to n minutes. "0" to disable.
### ESC [ 13 ] Unblank the screen.
ssh <IP> "echo -e '\033[9;0]' >> /dev/tty1; echo -e '\033[13]' >> /dev/tty1"
-
Ah thank you!
Got it working!
* I did not try xset, since i dont´t need it. CLI commands does work!