WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: How do I disable auto sleep?  (Read 8898 times)

Offline Karthanis

  • Newbie
  • *
  • Posts: 3
How do I disable auto sleep?
« on: June 17, 2011, 09:58:34 PM »
I'm using an Atom based machine to monitor 12 webcams at a hotel.

I use a html files that is the home page for Firefox and have setup TinyCore so the dock just has icons for Firefox and Shutdown.

The machine isn't ever touched once it is running, but the screen keeps going to sleep....

How do I stop this from happening?  I choose TinyCore over Ubuntu so I didn't need to strip everything out of it, but keeping the screen on so the staff can see the cameras is EXTREMELY important.  I'll have to reload if TC can't handle it...

Please help?  Thanks!

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11618
Re: How do I disable auto sleep?
« Reply #1 on: June 17, 2011, 10:13:15 PM »
Hi Karthanis

Try   xset s off   and see if that does it.

Offline Karthanis

  • Newbie
  • *
  • Posts: 3
Re: How do I disable auto sleep?
« Reply #2 on: June 17, 2011, 10:32:15 PM »
I am testing that out now.  Thank you for the very quick (17 minutes?!?!?!?) reply!

Question I have though, if this works, will it be persistant?  Do I need to put a file into .X.d to call it all the time?

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11618
Re: How do I disable auto sleep?
« Reply #3 on: June 17, 2011, 10:38:33 PM »
Hi Karthanis

You can add the command to /opt/bootlocal.sh.

Offline Karthanis

  • Newbie
  • *
  • Posts: 3
Re: How do I disable auto sleep?
« Reply #4 on: June 17, 2011, 11:03:54 PM »
Thank you Rich for your help!

This has solved my issue.  I can now enjoy my weekend in peace!

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11618
Re: How do I disable auto sleep?
« Reply #5 on: June 17, 2011, 11:07:03 PM »
Hi Karthanis

Glad I could help.

Offline Guy

  • Hero Member
  • *****
  • Posts: 1089
Re: How do I disable auto sleep?
« Reply #6 on: June 17, 2011, 11:08:33 PM »
You can also add

xset s off

to ~/.xsession
Many people see what is. Some people see what can be, and make a difference.

Offline thealy

  • Newbie
  • *
  • Posts: 7
Re: How do I disable auto sleep?
« Reply #7 on: September 29, 2011, 03:58:49 AM »
I have just started to use TinyCore and I have a similar problem with auto sleep coming on when not required,  I need the monitor on all the time for the application that I am using (displaying an Openscenegraph model). 

I have entered in :  xset s off at the command prompt, however the auto sleep remains on and the system goes to sleep after a period (wakes up on a keyboard press).  I have also added xset s off to /opt/bootlocal.sh and ~/.xsession and restarted (with a backup), but again the system goes to sleep after a period.  The /opt/bootlocal.sh file still contains  xset s off  however the ~/.xsession file does not (both were edited using sudo).     

I am using TinyCore V4.0 and I have also installed the ati-fglrx and ati-catalst packages for the graphics card I am using (which all work okay).

Any further help will be useful, thanks.

Terry

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14814
Re: How do I disable auto sleep?
« Reply #8 on: September 29, 2011, 04:16:19 AM »
I had a similar problem with an old toshiba laptop - except in my case when the monitor went to sleep it never woke up.

I put the xset command in ~/.X.d/xset and that cured the problem

Offline thealy

  • Newbie
  • *
  • Posts: 7
Re: How do I disable auto sleep?
« Reply #9 on: September 29, 2011, 05:13:44 AM »
HI Juanito thanks for the quick reply.  Have just tried this and restarted system (xset s off is still in ~/.X.d/xset at reboot), but system is still going to sleep on me (for info : other OS on the same system don't do this so I'm sure it's a TinyCore setting that I'm not getting right).   Any other ideas ? Thanks again. Terry   

Offline thealy

  • Newbie
  • *
  • Posts: 7
Re: How do I disable auto sleep?
« Reply #10 on: September 29, 2011, 10:27:44 AM »
adding :-

xset s off
xset s noblank
xset -dpms

to the ~/.X.d/xset file has worked for me.

Thanks. 

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: How do I disable auto sleep?
« Reply #11 on: September 29, 2011, 11:04:41 AM »
If you are running Xorg:
Add a section to /etc/X11/xorg.conf
---
Section "ServerFlags"
        Option "blank time" "0"
        Option "standby time" "0"
        Option "suspend time" "0"
        Option "off time" "0"
End Section
---

Offline thealy

  • Newbie
  • *
  • Posts: 7
Re: How do I disable auto sleep?
« Reply #12 on: September 30, 2011, 09:02:41 AM »
okay will try that out too. 
thanks for the help.