Preventing Sleep


14 posts
by MadDoc » Thu Aug 23, 2012 5:42 am
Hi,

My pi is running Raspbmc and it's great. The pi is connected via hdmi to an AV receiver which, in turn, is connected via hdmi to my TV.

The pi and receiver are in a different room to the TV. The pi is to be left on continuously but the receiver and TV get turned off when not needed.

I'm experiencing a weird problem where sometimes, generally after turning back on the TV and amp, no signal is output from the pi. Ordinarily there isn't a keyboard plugged in (the pi is in a cupboard) but even plugging one in and pressing keys does not wake the pi. I know the pi is still functioning because I can SSH into it with no problem. The only way to get the signal back is to reboot the pi.

I wonder if the pi is maybe putting the display to sleep?? Is there a way to prevent this?
Posts: 7
Joined: Sun Aug 19, 2012 10:16 pm
by jose1711_ » Thu Aug 23, 2012 6:20 am
only happens to me when xbmc crashes and console screensaver turns itself on after some time. if it happens i do fbset -depth 8 && fbset -depth 16 and start xbmc again. might be the same issue. jose
Posts: 44
Joined: Sat Jul 21, 2012 10:03 am
by Jim JKla » Thu Aug 23, 2012 7:35 am
Your guess is a good one and the current stage of development is such that we are identifying issues like this and testing solutions.

This is all part of the ongoing tapestry If you do find a solution please make sure you post the feedback you will not be the only one using a setup like the one you describe.

Idealy you should try and get a spare SD card install one of the other images say wheezy and see if you get the same effect if it is the same or different post because either way it may help trace the core issue. ;)
Noob is not derogatory the noob is just the lower end of the noob--geek spectrum being a noob is just your first step towards being an uber-geek ;)

If you find a solution please post it in the wiki the forum dies too quick
User avatar
Posts: 1935
Joined: Sun Jan 29, 2012 11:15 pm
Location: Newcastle upon Tyne UK
by MadDoc » Thu Aug 23, 2012 7:50 am
Thanks. I'll experiment when I get back home and report back.
Posts: 7
Joined: Sun Aug 19, 2012 10:16 pm
by james968 » Thu Aug 23, 2012 8:54 am
I just did a little searching and found this:

By default, the Linux kernel will use screen-save option to disable it you need to type command (it turns off monitor VESA powersaving features):

$ setterm -powersave off -blank 0


From this article:http://www.cyberciti.biz/tips/linux-disable-screen-blanking-screen-going-blank.html

I'm also interested in a solution, I can't test it right now, but let me know if it works. (I'm running just a text console, and don't have any keyboard plugged in. I'd like to be able to switch to the inputs to the Pi and just see what's on the display without have to dig up a keyboard, plug it in......etc).
Posts: 29
Joined: Tue Jul 17, 2012 8:52 am
by 355/113 » Fri Aug 24, 2012 4:41 pm
I'm having the same problem with my Pi going to sleep about every 10 minutes or so. I tried this:
$ setterm -powersave off -blank 0
before "startx" command but it apparently did nothing. Maybe I did it wrong?

Thanks for any clues!
Posts: 25
Joined: Wed Aug 22, 2012 2:22 am
by Rasadmin » Mon Oct 01, 2012 12:53 pm
I had the same problem here.
I found this solution elsewhere in these forums and it works for me:

sudo nano /etc/lightdm/lightdm.conf

In that file, look for:
[SeatDefault]

and insert this line:
xserver-command=X -s 0 dpms

My test monitor has been on for a couple of days now :-)
User avatar
Posts: 2
Joined: Mon Oct 01, 2012 12:20 pm
by MadDoc » Tue Oct 02, 2012 10:06 am
Thanks - I'll give it a go.
Posts: 7
Joined: Sun Aug 19, 2012 10:16 pm
by Mekai » Mon Feb 25, 2013 10:01 am
Rasadmin wrote:I had the same problem here.
I found this solution elsewhere in these forums and it works for me:

sudo nano /etc/lightdm/lightdm.conf

In that file, look for:
[SeatDefault]

and insert this line:
xserver-command=X -s 0 dpms

My test monitor has been on for a couple of days now :-)


This didnt work for me :(
Posts: 18
Joined: Tue Jan 22, 2013 10:52 am
by Mekai » Mon Feb 25, 2013 11:43 am
I am just trying to get my regular Raspbian to stop going into monitor sleep.
Posts: 18
Joined: Tue Jan 22, 2013 10:52 am
by RaTTuS » Mon Feb 25, 2013 12:10 pm
Mekai wrote:I am just trying to get my regular Raspbian to stop going into monitor sleep.

console mode ?
do this :-
viewtopic.php?f=29&t=35054#p296180
1QC43qbL5FySu2Pi51vGqKqxy3UiJgukSX - Prosliver FTW
"That's not right, the badgers have moved the goalposts."
User avatar
Posts: 4162
Joined: Tue Nov 29, 2011 11:12 am
Location: North West UK
by Mekai » Mon Feb 25, 2013 12:41 pm
RaTTuS wrote:
Mekai wrote:I am just trying to get my regular Raspbian to stop going into monitor sleep.

console mode ?
do this :-
viewtopic.php?f=29&t=35054#p296180


Didnt do the trick for me, i am in "startx mode" i don´t know if that changes anything for me.
Posts: 18
Joined: Tue Jan 22, 2013 10:52 am
by 42wolf » Sat Jun 29, 2013 2:04 am
I have the same problem too , I tried all of it ,but it doesn't work……
Posts: 1
Joined: Wed Jun 19, 2013 9:42 am
by csik » Tue Nov 26, 2013 12:38 am
Above solution did not work for me either, most recent Raspian on rev 2 512

BUT! Confirmed working:
in:
sudo nano /etc/kbd/config
edit these values to:
BLANK_TIME=0
POWERDOWN_TIME=0
Posts: 1
Joined: Tue Nov 26, 2013 12:35 am