LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   Having trouble with sleeping Debian (https://www.linuxquestions.org/questions/debian-26/having-trouble-with-sleeping-debian-4175419805/)

r0sko 08-01-2012 02:01 PM

Having trouble with sleeping Debian
 
Hi!
I have a trouble with my debian "server" which runs only in console mode.
After a while(I don't actually measured the time, but I think it is not constant) the OS working, the console are on(showing the console and the cursor is blinking) but it seems that all services are sleeping. Samba stops, rtorrent stops, and of course - lighttpd stops, no SSH and etc...
When I go and physically press any key on the console(doesn't matter if I'm logged in or not), everything comes up and working within next time.

Added this to /etc/rc.local to disable auto console sleep
Code:

/usr/bin/setterm -blank 0
..with no result(I mean - yes, monitor is working, but this happens again)..

Sorry if my english is BAD, but that is...

You can ask questions, if I forgot something, thanks!

bigrigdriver 08-02-2012 08:17 AM

Try adding the powersave option to the setterm command.
Code:

setterm -powersave off -blank 0

r0sko 08-02-2012 10:25 AM

Code:

root@seedbox:~# setterm -powersave off -blank 0
cannot (un)set powersave mode

Something is wrong.. but I don't know what..

r0sko 08-02-2012 12:52 PM

Please help, I said "server", yes, but its important for me to be online, not to sleep for about 8 hours over the night :S !

What is causing the problem with setterm command that i posted up? I turned off acpid, but nothing changes(I mean - same output from setterm, that cannot un(set) ).

Thanks!

r0sko 08-04-2012 02:28 AM

Also - added
Code:

acpi=off apm=off
to the
Code:

GRUB_CMDLINE_LINUX_DEFAULT
.. reboot and.. nothing changed!

The above works, I have forgot to run update-grub after changing the configs...

For now, I think the topic is [SOLVED], thanks goes to bigrigdriver because he tryed to help!


All times are GMT -5. The time now is 06:09 PM.