Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 10-19-2010, 08:55 PM   #1
LQ Newbie
Registered: Oct 2010
Posts: 9

Rep: Reputation: 0
Laptop server goes to sleep and will not stay awake

I have an old Acer laptop that I am trying to use as a server for Vortexbox (Fedora distro that turns computer into a media server for use with DLNA and Logitech Squeezeboxes).

Randomly the laptop will go into standby mode and I cannot figure out why. It's very annoying since when the laptop goes to standby the server goes down and all my boxes disconnect. Everything reconnects when I simply press a key on the laptop and it wakes up and the screen turns back on.

Here's what I've tried:
I've tried checking the BIOS for power management settings and there are none.

I think my CMOS battery is fried since the time keeps drifting. I tried to replace it but could not get to the battery (either through the keyboard or the back of the laptop) so I put in a cron.hourly script that would fix the time every hour and it's keeping things on point in terms of the time but the sleep issues are still there (of note the script does not run when the laptop is sleeping). This is my first script ever so I'm a big newbie...

The laptop battery is nonfunctional (I leave it plugged in all the time anyway). Not sure if that has anything to do with it.

I installed FreeNX and NoMachine for remote desktop to Gnome. When I have a remote desktop session open on another computer it SEEMS to last longer between sleeping.

I tried reading about ACPI and sleepstates and I'm totally lost. I downloaded some thing called ACPItool and ran it to get the following output:

[vortexbox.localdomain ~]# acpitool -e
Kernel version : - ACPI version : 20090320
Battery #1 : present
Remaining capacity : unknown, 0.00%
Design capacity : 2000 mAh
Last full capacity : 65524 mAh
Present rate : 0 mA
Charging state : charged
Battery type : rechargeable
Model number : 12ZL
Serial number : 11821

AC adapter : on-line
Fan : <not available>

CPU type : Mobile AMD Sempron(tm) Processor 3000+
CPU speed : 1800.014 MHz
Cache size : 128 KB
Bogomips : 3600.02
Processor ID : 0
Bus mastering control : yes
Power management : yes
Throttling control : no
Limit interface : no
Active C-state : C0
C-states (incl. C0) : 3
Usage of state C1 : 15534787 (88.6 %)
Usage of state C2 : 575 (0.0 %)

Thermal zone 1 : ok, 53 C
Trip points :
critical (S5): 97 C
passive: 93 C: tc1=2 tc2=3 tsp=40 devices=CPU0

Device S-state Status Sysfs node
1. PCI0 S5 disabled no-busci0000:00
2. LAN S5 disabled pci:0000:00:04.0
3. MODM S3 disabled pci:0000:00:02.6
4. USB0 S3 disabled pci:0000:00:03.0
5. USB1 S3 disabled pci:0000:00:03.1
6. USB2 S3 disabled pci:0000:00:03.2
7. USB3 S3 disabled

Ideally I don't know if the laptop can WOL but if not at least having it be on and awake all the time is fine. Any thoughts? I'd rather not buy a nettop to replace my laptop if I can avoid it since it functions well.

Old 10-19-2010, 10:17 PM   #2
Registered: Jun 2009
Distribution: Debian Squeeze, centOS
Posts: 229

Rep: Reputation: 36
try setting sleep to 0 in /etc/rc.sysinit
and try putting this in your xorg.conf
Server Layout
BlankTime 0
StandbyTime 0
SuspendTime 0
OfTime 0 
Old 10-19-2010, 11:28 PM   #3
LQ Newbie
Registered: Oct 2010
Posts: 9

Original Poster
Rep: Reputation: 0
I looked at the etc/rc.sysinit file and searched for sleep. This is the only reference I can find. Is usleep the same as sleep?

# Now that we have all of our basic modules loaded and the kernel going,
# let's dump the syslog ring somewhere so we can find it later
[ -f /var/log/dmesg ] && mv -f /var/log/dmesg /var/log/dmesg.old
dmesg -s 131072 > /var/log/dmesg

# create the crash indicator flag to warn on crashes, offer fsck with timeout
touch /.autofsck &> /dev/null

if [ "$PROMPT" != no ]; then
while :; do
pid=$(/sbin/pidof getkey)
[ -n "$pid" -o -e /var/run/getkey_done ] && break
usleep 100000
[ -n "$pid" ] && kill -TERM "$pid" >/dev/null 2>&1
} &
if strstr "$cmdline" confirm ; then
touch /var/run/confirm
if [ "$PROMPT" != "no" ]; then
/sbin/getkey i && touch /var/run/confirm
touch /var/run/getkey_done
[ "$PROMPT" != no ] && rm -f /var/run/getkey_done

Also I could not find the xorg.conf file. I looked in etc/x11?
Old 11-02-2010, 08:25 PM   #4
Registered: Jun 2009
Distribution: Debian Squeeze, centOS
Posts: 229

Rep: Reputation: 36
look in /etc/X11


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Each time my laptop is put to sleep, the keyboard doesn't work upon awake. Nicolas.Perrault Linux - Laptop and Netbook 13 09-29-2013 06:48 PM
how to awake my laptop ? mq15 Linux - Laptop and Netbook 3 04-27-2009 02:35 AM
Searching for Server (BOOTP/DHCP) <sleep> <sleep> .. .. Eileen Linux - Networking 12 10-21-2005 02:14 AM
laptop hard drive won't stay down synaptical Linux - Laptop and Netbook 5 06-24-2005 09:33 AM
How do you stay awake? bkeating General 20 01-25-2003 05:40 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:21 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration