Tiny Core Linux

Tiny Core Base => Raspberry Pi => Topic started by: Chau on January 25, 2018, 11:54:46 AM

Title: [SOLVED] Prevent HDMI from sleeping
Post by: Chau on January 25, 2018, 11:54:46 AM
Having setup my PI with a simple image viewer (http://forum.tinycorelinux.net/index.php/topic,21566.0.html (http://forum.tinycorelinux.net/index.php/topic,21566.0.html)) I now face the problem, that my screen turns off after a few minutes. I guess picore thinks that since I do not interact with it, it can safely turn off the screen.

I found this post http://forum.tinycorelinux.net/index.php/topic,21118.msg132038.html#msg132038 (http://forum.tinycorelinux.net/index.php/topic,21118.msg132038.html#msg132038) which seem to discuss the same issue.

I don't have Xorg installed, so
Code: [Select]
xset should be irrelevant for me. It tried the other method
Code: [Select]
setterm -blank 0 but I get the error message:

Code: [Select]
setterm: terminal vt102 does not support --blank
Are there some configuration options that I can set to prevent the PI from sleeping due to inactivity?
Title: Re: Prevent HDMI from sleeping
Post by: Rich on January 25, 2018, 12:46:43 PM
Hi Chau
Did you try this:
http://forum.tinycorelinux.net/index.php/topic,20382.msg126916.html#msg126916
Title: Re: Prevent HDMI from sleeping
Post by: Chau on January 25, 2018, 01:20:33 PM
Hi Chau
Did you try this:
http://forum.tinycorelinux.net/index.php/topic,20382.msg126916.html#msg126916

Hi Rich

No I haven't seen that post, but it seems to do just what I want.

For future reference, this is what I put into /home/tc/.profile:

Code: [Select]
echo -e '\033[9;0]'
Thanks for pointing me in that direction!
Title: Re: Prevent HDMI from sleeping
Post by: Rich on January 25, 2018, 01:33:15 PM
Hi Chau
Glad to hear it worked. I'll mark this thread as solved.