LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook
User Name
Password
Linux - Laptop and Netbook Having a problem installing or configuring Linux on your laptop? Need help running Linux on your netbook? This forum is for you. This forum is for any topics relating to Linux and either traditional laptops or netbooks (such as the Asus EEE PC, Everex CloudBook or MSI Wind).

Notices

Reply
 
LinkBack Search this Thread
Old 10-24-2006, 05:09 PM   #1
Newb_Linux_Geek
Member
 
Registered: Nov 2003
Location: Milky Way Galaxy
Distribution: Mandriva 2010
Posts: 35

Rep: Reputation: 15
Attempt at Suspending laptop causes laptop to stop responding


Hey all. I have a Sony laptop and when I try to suspend the computer to either memory or to disk the laptop doesn't come back.
Using the commands:

su
root passwd
cd /sys/power/
echo -n mem > state

Here is the log file for suspending to memory:

Oct 24 15:30:16 localhost kernel: Stopping tasks: ================================================================================|
Oct 24 15:30:16 localhost kernel: Restarting tasks... done
Oct 24 15:30:17 localhost kernel: agpgart: Found an AGP 2.0 compliant device at 0000:00:00.0.
Oct 24 15:30:17 localhost kernel: agpgart: Putting AGP V2 device at 0000:00:00.0 into 4x mode
Oct 24 15:30:17 localhost kernel: agpgart: Putting AGP V2 device at 0000:01:05.0 into 4x mode
Oct 24 15:34:12 localhost syslogd 1.4.1: restart.


------------------------------------------------------

su
root passwd
cd /sys/power/
echo -n disk > state

Here is the log file for suspending to disk:

Oct 24 15:34:33 localhost keytable: Loading keymap: us succeeded
Oct 24 15:34:33 localhost loadkeys: Loading /usr/lib/kbd/keymaps/include/compose.latin.inc.gz
Oct 24 15:34:33 localhost keytable: Loading compose keys: compose.latin.inc succeeded
Oct 24 15:34:33 localhost keytable: succeeded
Oct 24 15:34:33 localhost crond[5299]: (CRON) STARTUP (fork ok)
Oct 24 15:34:33 localhost crond: crond startup succeeded
Oct 24 15:34:34 localhost anacron[5364]: Anacron 2.3 started on 2006-10-24
Oct 24 15:34:34 localhost anacron: anacron startup succeeded
Oct 24 15:34:34 localhost anacron[5364]: Normal exit (0 jobs run)
Oct 24 15:34:35 localhost rc: Starting kheader: succeeded
Oct 24 15:34:37 localhost kernel: [drm] Initialized drm 1.0.0 20040925
Oct 24 15:34:37 localhost kernel: ACPI: PCI Interrupt Link [LNK0] enabled at IRQ 10
Oct 24 15:34:37 localhost kernel: ACPI: PCI Interrupt 0000:01:05.0[A] -> Link [LNK0] -> GSI 10 (level, low) -> IRQ 10
Oct 24 15:34:37 localhost kernel: [drm] Initialized radeon 1.16.0 20050311 on minor 0:
Oct 24 15:34:38 localhost kernel: agpgart: Found an AGP 2.0 compliant device at 0000:00:00.0.
Oct 24 15:34:38 localhost kernel: agpgart: Putting AGP V2 device at 0000:00:00.0 into 4x mode
Oct 24 15:34:38 localhost kernel: agpgart: Putting AGP V2 device at 0000:01:05.0 into 4x mode
Oct 24 15:34:42 localhost dhclient: DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 8
Oct 24 15:34:50 localhost dhclient: DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 15
Oct 24 15:35:05 localhost dhclient: DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 3
Oct 24 15:35:08 localhost dhclient: No DHCPOFFERS received.
Oct 24 15:35:08 localhost ifplugd(eth1)[2656]: client: Determining IP information for eth1... failed.
Oct 24 15:35:08 localhost ifplugd(eth1)[2656]: Program execution failed, return value is 1.
Oct 24 15:35:08 localhost ifplugd(eth1)[2656]: Exiting.
Oct 24 15:40:20 localhost syslogd 1.4.1: restart.

-----------------------------------------------------------------

I'm not sure if this is enough information for anyone to start helping me but it might be a place to start.
 
Old 10-29-2006, 12:47 PM   #2
avheretic
Member
 
Registered: Oct 2005
Distribution: Slackware 11
Posts: 45

Rep: Reputation: 15
Could you please elaborate on what do you mean when you say - "the laptop doesn't come back" ? Does the display not resume, are you noticing any hard-disk activity, does the keyboard work ie. can you Ctrl-Alt-Del to restart the laptop ?

Which kernel are you running (uname -a) and there any modules loaded (lsmod) when you suspend ? Suspend to disk is a bit more complicated as compared to T3 ie. Suspend-to-RAM. You will be better off using an application like suspend2 to get disk suspend (hibernation in Windows) working.
 
Old 11-10-2006, 11:19 PM   #3
Newb_Linux_Geek
Member
 
Registered: Nov 2003
Location: Milky Way Galaxy
Distribution: Mandriva 2010
Posts: 35

Original Poster
Rep: Reputation: 15
What I mean by it doesn't come back it goes into a startup screen and just locks, with no hard drive activity, but massive processor activity because my laptop's cooling fans go full bore. No matter what buttons I push on it, nothing works. When I turn the power off and turn it back on it works like normal but I have to run FSCK.

Sequence of events:

Suspend to ram:
Stopping tasks ==================================================================|
hda: lost interrupt
hda: lost interrupt

Then system power down into suspend-to-ram mode. Red blinking light comes on as is suppose to happen when in suspend-to-ram mode. Press key to reinitialize. Power comes back. Standard power consumption, to my knowledge. Display off, power on, no drive activity. Fan seems to be running hard, as if processor is running with 100 consumption. Hard reboot.


Syspend to Disk:
System appears to go down perfectly fine. Turn power back on. Boot linux. Read pages from disk and then restarted.


Modules loaded:
radeon 76672 1
drm 60404 2 radeon
cpufreq_ondemand 5052 0
cpufreq_conservative 6116 0
cpufreq_powersave 1280 0
p4_clockmod 3720 0
speedstep_lib 3364 1 p4_clockmod
freq_table 3460 1 p4_clockmod
raw 6592 1
md5 3584 1
ipv6 234016 8
snd_seq_dummy 2532 0
snd_seq_oss 31136 0
snd_seq_midi_event 5696 1 snd_seq_oss
snd_seq 46960 5 snd_seq_dummy,snd_seq_oss,snd_seq_midi_event
snd_seq_device 6828 3 snd_seq_dummy,snd_seq_oss,snd_seq
snd_pcm_oss 48960 0
snd_mixer_oss 16896 1 snd_pcm_oss
snd_ali5451 21220 1
snd_ac97_codec 83900 1 snd_ali5451
snd_pcm 79784 3 snd_pcm_oss,snd_ali5451,snd_ac97_codec
snd_timer 20548 2 snd_seq,snd_pcm
snd_page_alloc 8392 1 snd_pcm
snd 46116 11 snd_seq_oss,snd_seq,snd_seq_device,snd_pcm_oss,snd_mixer_oss,snd_ali5451,snd_ac97_codec,snd_pcm,snd_ timer
soundcore 7008 1 snd
ipt_IFWLOG 2788 1
ipt_psd 43428 1
ip_set_iptree 5544 2
ipt_REJECT 4256 4
ipt_LOG 6272 8
ipt_state 1312 14
ipt_pkttype 1184 4
ipt_set 1920 2
ipt_CONNMARK 1696 0
ipt_MARK 1984 0
ipt_ROUTE 4260 0
ipt_connmark 1216 0
ipt_owner 2432 0
ipt_recent 9292 0
ipt_iprange 1312 0
ipt_physdev 1744 0
ipt_multiport 2112 0
ipt_conntrack 1792 0
iptable_mangle 2016 0
ip_set_portmap 3840 0
ip_set_macipmap 3780 0
ip_set_ipmap 3872 0
ip_set_iphash 5924 0
ip_set 18876 11 ip_set_iptree,ipt_set,ip_set_portmap,ip_set_macipmap,ip_set_ipmap,ip_set_iphash
ip_nat_irc 1824 0
ip_nat_tftp 1216 0
ip_nat_ftp 2560 0
iptable_nat 20212 3 ip_nat_irc,ip_nat_tftp,ip_nat_ftp
ip_conntrack_irc 70352 1 ip_nat_irc
ip_conntrack_tftp 3088 1 ip_nat_tftp
ip_conntrack_ftp 71408 1 ip_nat_ftp
ip_conntrack 40824 9 ipt_state,ipt_conntrack,ip_nat_irc,ip_nat_tftp,ip_nat_ftp,iptable_nat,ip_conntrack_irc,ip_conntrack_ tftp,ip_conntrack_ftp
iptable_filter 2080 1
ip_tables 20416 20 ipt_IFWLOG,ipt_psd,ipt_REJECT,ipt_LOG,ipt_state,ipt_pkttype,ipt_set,ipt_CONNMARK,ipt_MARK,ipt_ROUTE, ipt_connmark,ipt_owner,ipt_recent,ipt_iprange,ipt_physdev,ipt_multiport,ipt_conntrack,iptable_mangle ,iptable_nat,iptable_filter
8139too 21760 0
mii 4704 1 8139too
af_packet 16392 2
pcmcia 20648 4
yenta_socket 20328 2
rsrc_nonstatic 11200 1 yenta_socket
pcmcia_core 43300 3 pcmcia,yenta_socket,rsrc_nonstatic
eth1394 16936 0
video 14052 0
thermal 10920 0
tc1100_wmi 5092 0
processor 17876 1 thermal
fan 3172 0
container 3008 0
button 4848 0
battery 7460 0
ac 3268 0
ide_cd 37988 0
ohci1394 32340 0
ieee1394 289560 2 eth1394,ohci1394
loop 14504 0
nls_iso8859_1 3680 2
ntfs 212792 2
ati_agp 6732 1
agpgart 29032 2 drm,ati_agp
nvram 7400 0
joydev 8128 0
tsdev 5984 0
ehci_hcd 29192 0
uhci_hcd 29136 0
usbcore 108348 3 ehci_hcd,uhci_hcd
evdev 7648 1
reiserfs 266516 3



The kernel that I use is the 2.6.12-12mdk. In the next few months I will be making the change to the 2.6.17-5mdv kernel.
 
Old 11-11-2006, 03:11 PM   #4
biophysics
Member
 
Registered: Jan 2002
Location: Germany
Distribution: Kubuntu
Posts: 444

Rep: Reputation: 30
1. OK your method of suspend it a bit wrong.
2. You most likely have to unload a lot of modules and then suspend.
3. You did not say your kernel version (uname -a) or distribution
4. I suggest you to use a new suspend method called suspend2 http://www.suspend2.net It is faster, reliable and just works always.
5. I have been using it for a lot of time and it is stable. But you have to compile and install your kernel.
6. Check http://wiki.suspend2.net and there are links to HOWTO for many major distros.
7. Alternatively, if you want to stick to your old suspend method then download something called hibernate script from the above website. Use hibernate script to suspend - it will unload unnecessary kernel modules (that cause problems). The hibernate script WILL work with both OLD and NEW suspend methods.
 
Old 11-14-2006, 07:38 PM   #5
Newb_Linux_Geek
Member
 
Registered: Nov 2003
Location: Milky Way Galaxy
Distribution: Mandriva 2010
Posts: 35

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by biophysics
3. You did not say your kernel version (uname -a) or distribution
Code:
uname -a
Linux localhost 2.6.12-12mdk #1 Fri Sep 9 18:15:22 CEST 2005 i686 Intel(R) Celeron(R) CPU 2.40GHz unknown GNU/Linux
I did put it in my last post. I currently use the 2.6.12 kernel and use Mandriva 2006 on the computer in question.

And yes suspend2 does suspend the computer to hard drive, but it does not suspend the computer to memory. The reason I would like to have suspend to mem working is that my battery life is terrible and by loading off the hard drive it kills my battery before it even comes up. At least that is true with windows.

I know that you are going to say for me to get a new battery, I have a new battery and it does the same. It will easily take 25% of my battery to bring the computer up from a cold start in windows and 15% of my battery from a cold start to boot into linux.

If anyone has any other suggestions I'm willing to entertain them.
 
Old 11-15-2006, 09:51 PM   #6
Tyante
LQ Newbie
 
Registered: Oct 2004
Location: California
Distribution: Slackware, Debian, FreeBSD
Posts: 10

Rep: Reputation: 0
sleep script

I am working on putting my laptop to sleep as well. Currently I use a script to uninstall the USB modules before sleeping and reinstalls them when waking up.

Code:
#!/bin/sh
# sleep.sh test script for suspend-to-ram with ACPI

if [ "$UID" != "0" ]; then
   echo 'This script can only be run by root.'
   exit 1
fi

# remove USB for external mouse before sleeping
if lsmod | grep '^usbhid' >/dev/null ; then
   /sbin/modprobe -r -s usbhid
fi
if lsmod | grep '^uhci_hcd' >/dev/null ; then
   /sbin/modprobe -r -s uhci_hcd
fi
if lsmod | grep '^ehci_hcd' >/dev/null ; then
   /sbin/modprobe -r -s ehci_hcd
fi

# save system time
hwclock --systohc

# go to sleep
echo -n mem > /sys/power/state

# restore USB support 
if !(lsmod | grep '^ehci_hcd') >/dev/null ; then
   /sbin/modprobe -s ehci_hcd
fi
if !(lsmod | grep '^uhci_hcd') >/dev/null ; then
   /sbin/modprobe -s uhci_hcd
fi
if !(lsmod | grep '^usbhid')   >/dev/null ; then
   /sbin/modprobe -s usbhid
fi

# restore system time
hwclock --hctosys
Hopefully this helps some.
 
Old 11-15-2006, 09:52 PM   #7
Tyante
LQ Newbie
 
Registered: Oct 2004
Location: California
Distribution: Slackware, Debian, FreeBSD
Posts: 10

Rep: Reputation: 0
another script

Another script I have recently come across may help you. It is named sleep.sh in a tarball you can download at http://www.kananov.com/pub/acpi-scripts.tgz

It takes care of removing kernel modules before going to sleep and reinstalling them when waking up.
 
  


Reply


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I stop my laptop from suspending? erikcw Linux - Laptop and Netbook 2 12-19-2005 01:28 PM
laptop screen flickering when suspending chado Linux - Laptop and Netbook 0 12-13-2005 09:12 AM
Suspending/Sleeping Laptop? lmcilwain Linux - Laptop and Netbook 24 08-03-2005 12:21 AM
Laptop keyboard stops responding after usb mouse installed koloth Slackware 2 07-11-2005 07:50 AM
Laptop kernel recompile, attempt #2. Guru advise needed please.. Pcghost Linux - General 3 04-10-2003 05:15 PM


All times are GMT -5. The time now is 12:59 PM.

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