LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 10-06-2012, 06:09 PM   #1
rokyo
Member
 
Registered: Oct 2012
Posts: 74

Rep: Reputation: Disabled
Suspend when laptop-lid is closed doesn't work for me on Debian


Hello everybody,

I have a problem with Debian 6.0.6 on my Sony Vaio VGN-315H laptop when trying to put the laptop to suspend mode by closing its lid.

When I close the lid, the screen goes black except for a small white underscore (like on the console) in the upper left corner of the screen. When I open the lid back up, it stays that way and does not react to keypresses or a short push of the power button. I have to hold the power button to turn the laptop off completely, then turn it on again.

The same thing also happens when I disconnect the power cord while the laptop is on, even though it should normally switch to using the battery.

/var/log/messages only logs the line "device eth0 left promiscuous mode" when this happens!

This is on a clean install of Debian 6.0.6 while a clean install of RHEL 6 on the same laptop shows the regular behavior of putting the laptop to sleep when closing the lid and waking it back up after opening the lid and pressing a key or pushing the power button once.

Does anyone have any idea what could be wrong with my Debian?

The hardware on that laptop consists of a GeForce Go 6400 (using nouveau) and a Intel Wireless 2200 card (using iw2200).

Thank you in advance for your suggestions!

rokyo

--------------------------------------------------------
EDIT:

Oh yeah, pm-suspend.log does also log something when the lid is being closed:
Code:
Sat Oct  6 23:36:31 CAT 2012: Running hooks for suspend.
/usr/lib/pm-utils/sleep.d/000kernel-change suspend suspend:success.
/usr/lib/pm-utils/sleep.d/00logging suspend suspend:Linux scifi 2.6.32-5-686 #1 SMP Sun Sep 23 09:49:36 UTC 2012 i686 GNU/Linux
Module                  Size  Used by
usb_storage            31033  0 
michael_mic             1506  0 
arc4                     974  0 
ecb                     1405  0 
lib80211_crypt_tkip     6709  0 
aes_i586                6816  0 
aes_generic            25738  1 aes_i586
lib80211_crypt_ccmp     3643  0 
acpi_cpufreq            4951  0 
cpufreq_conservative     4018  0 
cpufreq_userspace       1480  0 
cpufreq_powersave        602  0 
cpufreq_stats           1997  0 
parport_pc             15799  0 
ppdev                   4058  0 
lp                      5570  0 
parport                22554  3 parport_pc,ppdev,lp
binfmt_misc             4907  1 
uinput                  4796  1 
ipt_REJECT              1517  1 
ipt_LOG                 3570  5 
xt_limit                1088  7 
xt_tcpudp               1743  7 
ipt_addrtype            1345  4 
xt_state                 927  7 
ip6table_filter         1908  1 
ip6_tables              8572  1 ip6table_filter
nf_nat_irc              1002  0 
nf_conntrack_irc        2535  1 nf_nat_irc
nf_nat_ftp              1519  0 
nf_nat                 10568  2 nf_nat_irc,nf_nat_ftp
nf_conntrack_ipv4       7597  9 nf_nat
nf_defrag_ipv4           779  1 nf_conntrack_ipv4
nf_conntrack_ftp        4272  1 nf_nat_ftp
nf_conntrack           38075  7 xt_state,nf_nat_irc,nf_conntrack_irc,nf_nat_ftp,nf_nat,nf_conntrack_ipv4,nf_conntrack_ftp
iptable_filter          1790  1 
ip_tables               7706  1 iptable_filter
x_tables                8327  8 ipt_REJECT,ipt_LOG,xt_limit,xt_tcpudp,ipt_addrtype,xt_state,ip6_tables,ip_tables
fuse                   44268  1 
loop                    9769  0 
firewire_sbp2           9647  0 
snd_hda_codec_realtek   163390  1 
snd_hda_intel          16823  4 
snd_hda_codec          46062  2 snd_hda_codec_realtek,snd_hda_intel
snd_hwdep               4054  1 snd_hda_codec
snd_pcm                47226  3 snd_hda_intel,snd_hda_codec
nouveau               314900  2 
pcmcia                 16194  0 
snd_seq                35463  0 
ttm                    33394  1 nouveau
snd_timer              12270  3 snd_pcm,snd_seq
drm_kms_helper         18569  1 nouveau
ipw2200               108368  0 
tifm_sd                 6506  0 
snd_seq_device          3673  1 snd_seq
yenta_socket           16403  1 
i2c_i801                6462  0 
libipw                 18439  1 ipw2200
drm                   112621  4 nouveau,ttm,drm_kms_helper
i2c_algo_bit            3493  1 nouveau
rng_core                2178  0 
mmc_core               38685  1 tifm_sd
tifm_7xx1               3014  0 
rsrc_nonstatic          7057  1 yenta_socket
video                  14605  0 
i2c_core               12803  5 nouveau,drm_kms_helper,i2c_i801,drm,i2c_algo_bit
sony_laptop            20205  0 
snd                    34423  14 snd_hda_codec_realtek,snd_hda_intel,snd_hda_codec,snd_hwdep,snd_pcm,snd_seq,snd_timer,snd_seq_device
tifm_core               3260  2 tifm_sd,tifm_7xx1
output                  1204  1 video
pcmcia_core            20450  3 pcmcia,yenta_socket,rsrc_nonstatic
soundcore               3450  1 snd
snd_page_alloc          5045  2 snd_hda_intel,snd_pcm
joydev                  6739  0 
evdev                   5609  16 
battery                 3782  0 
lib80211                2870  4 lib80211_crypt_tkip,lib80211_crypt_ccmp,ipw2200,libipw
ac                      1640  0 
button                  3598  1 nouveau
processor              26327  2 acpi_cpufreq
rfkill                 10264  1 sony_laptop
pcspkr                  1207  0 
psmouse                44837  0 
serio_raw               2916  0 
ext4                  256936  3 
mbcache                 3762  1 ext4
jbd2                   56251  1 ext4
crc16                   1027  1 ext4
usbhid                 28016  0 
hid                    50909  1 usbhid
sg                     19937  0 
sr_mod                 10770  0 
sd_mod                 26013  5 
crc_t10dif              1012  1 sd_mod
cdrom                  26435  1 sr_mod
ata_generic             2247  0 
uhci_hcd               16057  0 
ata_piix               17736  4 
firewire_ohci          16725  0 
libata                115869  2 ata_generic,ata_piix
thermal                 9206  0 
ehci_hcd               28689  0 
firewire_core          31243  2 firewire_sbp2,firewire_ohci
crc_itu_t               1035  1 firewire_core
e100                   22317  0 
mii                     2714  1 e100
thermal_sys             9378  3 video,processor,thermal
scsi_mod              105001  6 usb_storage,firewire_sbp2,sg,sr_mod,sd_mod,libata
usbcore                99426  5 usb_storage,usbhid,uhci_hcd,ehci_hcd
nls_base                4541  1 usbcore
             total       used       free     shared    buffers     cached
Mem:       2073624    1567888     505736          0      14644    1163300
-/+ buffers/cache:     389944    1683680
Swap:      1894392          0    1894392
success.
/usr/lib/pm-utils/sleep.d/00powersave suspend suspend:success.
/etc/pm/sleep.d/10_unattended-upgrades-hibernate suspend suspend:success.
/usr/lib/pm-utils/sleep.d/49bluetooth suspend suspend:not applicable.
/usr/lib/pm-utils/sleep.d/55NetworkManager suspend suspend:not applicable.
/usr/lib/pm-utils/sleep.d/70action_wpa suspend suspend:success.
/usr/lib/pm-utils/sleep.d/75modules suspend suspend:not applicable.
/usr/lib/pm-utils/sleep.d/90clock suspend suspend:not applicable.
/usr/lib/pm-utils/sleep.d/94cpufreq suspend suspend:success.
/usr/lib/pm-utils/sleep.d/95anacron suspend suspend:success.
/usr/lib/pm-utils/sleep.d/95led suspend suspend:not applicable.
/usr/lib/pm-utils/sleep.d/98video-quirk-db-handler suspend suspend:/usr/lib/pm-utils/sleep.d/98video-quirk-db-handler: line 101: /sys/class/dmi/id/board_name: No such file or directory
/usr/lib/pm-utils/sleep.d/98video-quirk-db-handler: line 101: /sys/class/dmi/id/board_version: No such file or directory
/usr/lib/pm-utils/sleep.d/98video-quirk-db-handler: line 101: /sys/class/dmi/id/board_vendor: No such file or directory
success.
/usr/lib/pm-utils/sleep.d/99video suspend suspend:kernel.acpi_video_flags = 0
success.
Sat Oct  6 23:36:31 CAT 2012: performing suspend

Last edited by rokyo; 10-06-2012 at 06:18 PM.
 
Old 10-06-2012, 06:26 PM   #2
jlinkels
Senior Member
 
Registered: Oct 2003
Location: Bonaire
Distribution: Debian Wheezy/Jessie/Sid, Linux Mint DE
Posts: 4,493

Rep: Reputation: 635Reputation: 635Reputation: 635Reputation: 635Reputation: 635Reputation: 635
I have installed Debian Wheezy (which is 7 I think) on a VAIO and suspending worked wonderfully. Even better than on other machines. Suspending was about the onlything that worked on that VAIO but that is a different story.

It might be that Debian 6.0 doesn't handle sleep well at all, or that it doesn't recognize the lid sensor.

See if you have a sleep button on the keyboard (Fn-F4 or something) or maybe a dedicated button, or maybe you have to press the power button for a short moment. Does that work?

Try one of these: (you might have to be root)
Code:
pmi action suspend
echo -n mem > /sys/power/state  # suspend to ram
If the command line thingy work, Debian does not recognize the keys or lid sensor. If you report back I can try to help you from there.

If even the command line doesn't work, the suspend function in Debian 6.0 cannot handle the VAIO yet. No matter how much I am against "try the next distro when something doesn't work", I can recommend Debian Wheezy. It is frozen anyway and becoming stable soon.

jlinkels

PS: now I see the log you posted. As it seems sensors etc. work. But the suspend function crashes. Try Wheezy.

Last edited by jlinkels; 10-06-2012 at 06:28 PM.
 
Old 10-06-2012, 06:44 PM   #3
rokyo
Member
 
Registered: Oct 2012
Posts: 74

Original Poster
Rep: Reputation: Disabled
Thank you for your quick answer!

Debian does recognize the lid sensor, because when I open the Gnome Power Management and tell it to go "blank screen" when the lid is closed, it does just that... only "suspend" doesn't work.

The laptop does have a "sleep button" (Fn-F12), but the Fn-keys all do not work under Linux anyways, so I can't use them.

The commands you posted give the following result on my console:

Code:
pmi action suspend
bash: pmi: command not found
Code:
echo -n mem > /sys/power/state  # suspend to ram
Does the same as closing the lid: Screen goes black but can't be turned on again. Only hard-reboot brings the laptop back to life.
 
Old 10-06-2012, 11:50 PM   #4
jlinkels
Senior Member
 
Registered: Oct 2003
Location: Bonaire
Distribution: Debian Wheezy/Jessie/Sid, Linux Mint DE
Posts: 4,493

Rep: Reputation: 635Reputation: 635Reputation: 635Reputation: 635Reputation: 635Reputation: 635
In that case I cannot draw another conclusion as Debian Squeeze cannot handle that. It is a lousy advice, I know, but try Wheezy.

jlinkels
 
Old 10-07-2012, 04:19 AM   #5
rokyo
Member
 
Registered: Oct 2012
Posts: 74

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by jlinkels View Post
PS: now I see the log you posted. As it seems sensors etc. work. But the suspend function crashes. Try Wheezy.
I'm afraid Wheezy's Gnome 3 is not going to run on this 8-year-old laptop. I tried Fedora 16 once and it was very slow even in forced fallback mode. Or is there a version of Wheezy with Mate Desktop?
 
Old 10-07-2012, 08:59 AM   #6
jlinkels
Senior Member
 
Registered: Oct 2003
Location: Bonaire
Distribution: Debian Wheezy/Jessie/Sid, Linux Mint DE
Posts: 4,493

Rep: Reputation: 635Reputation: 635Reputation: 635Reputation: 635Reputation: 635Reputation: 635
While Debian does not offer obsoleted packages (like KDE3, Gnome2), it does offer all packages all packages all the time. (Well almost). As far as I can see Mate is supported, but you should check for yourself. This policy of package selection is different from other distro's which often offer a fixed selection or different versions for different desktops.

I think you have a choice which desktop you install during the installation process, but if not, install without a desktop first. After the installation is completed, install the desktop of your choice. I even believe you can try the suspend mechanism in commmand line mode provided you have installed the laptop packages during installation.

jlinkels
 
Old 10-07-2012, 10:31 AM   #7
rokyo
Member
 
Registered: Oct 2012
Posts: 74

Original Poster
Rep: Reputation: Disabled
That sounds good so far! Just one more question: Will it be possible for me to upgrade from the Beta2 that is available now to the final version of Wheezy when it comes out in 2013 without having to reinstall the OS?

If so, I'll just install Wheezy Beta2 now and check out Mate.
 
Old 10-07-2012, 07:06 PM   #8
jlinkels
Senior Member
 
Registered: Oct 2003
Location: Bonaire
Distribution: Debian Wheezy/Jessie/Sid, Linux Mint DE
Posts: 4,493

Rep: Reputation: 635Reputation: 635Reputation: 635Reputation: 635Reputation: 635Reputation: 635
Quote:
Originally Posted by rokyo View Post
That sounds good so far! Just one more question: Will it be possible for me to upgrade from the Beta2 that is available now to the final version of Wheezy when it comes out in 2013 without having to reinstall the OS?
No problem at all. Upgrading to Stable, either from Testing (Beta2 in this case) or the previous Stable is usually painless.

jlinkels
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Doesn't suspend when lid is closed in 13.37 enine Slackware 4 05-25-2011 03:30 AM
Screen not useable after laptop lid closed yuchankit Slackware 9 09-29-2010 05:36 AM
Suspend to RAM on lid closure does not work: Toshiba Satellite L300/Debian lenny jgrnst Linux - Laptop and Netbook 6 11-29-2008 09:41 PM
Standby on laptop when lid closed LDJ Linux - Newbie 5 01-16-2007 07:08 PM
laptop lid won't shut off when closed houler Slackware 32 08-28-2005 12:59 AM


All times are GMT -5. The time now is 03:02 AM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration