Page 1 of 1

[SOLVED] Dell 1545 laptop lid switch suspend/hibernate

Posted: Thu Mar 25, 2010 2:53 pm
by BopNiblets
Hi guys, running Mint 8 on this laptop, Suspend/Hibernate/Resume works ok using the power switch and menu option, but has a problem resuming from suspend and hibernate when closing the lid, no matter what I set it to in Power Options, it powers up when I open the lid or press power after opening the lid but the screen always remains off.

The only option that seems to work is Blank Screen, and maybe Shutdown, but they aren't the ideal options, wondering if this is fixable thanks. :)

Re: Dell Inspiron 1545 laptop lid switch suspend/hibernate i

Posted: Thu Mar 25, 2010 6:56 pm
by remoulder
Please search for a solution in the forums as per the Forum rules in the Red bar.

Re: Dell Inspiron 1545 laptop lid switch suspend/hibernate i

Posted: Thu Mar 25, 2010 7:24 pm
by dawgdoc
BopNiblets,

In the event your search does not provide a solution, the forum rules also outlines what information is needed for someone to provide adequate assistance.

Re: Dell Inspiron 1545 laptop lid switch suspend/hibernate i

Posted: Thu Mar 25, 2010 8:48 pm
by BopNiblets
Ok I did a search already and found nothing that's why I posted new topic.
The lid switch is connected to PNP0C0D/button/input0 according to System Hardinfo benchmark tool... not sure what other info I can post

I did a test of playing some music in rythmbox then closing the lid to suspend/hibernate, then when I opened it the music plays for a bit indicating it does resume the system then the music starts looping, but the screen never comes back on at all.

Perhaps this is an ubuntu issue too? Not sure what if anything I can do to resolve this on the Mint forums then?

Re: Dell Inspiron 1545 laptop lid switch suspend/hibernate i

Posted: Thu Mar 25, 2010 11:36 pm
by dawgdoc
Many have had problems with suspend/hibernate functions due to swap partition being smaller than the amount of RAM. This was not originally a problem for me. It did surface when I added RAM without increasing my swap size. This may not be your problem, since you have problems when you close the lid, not when you use the GUI. Of course, it could be intermittent based on how much RAM is committed when you set it to suspend/hibernate. If you have more RAM committed than swap available at the time you go to suspend/hibernate you will have problems.

To check RAM and Swap sizes:

Code: Select all

inxi
and

Code: Select all

inxi -P
Post the output of these commands once you have run them.

If you check this and it does not indicate an undersized swap partition as a possible source of the problem, then you will need to post the information outlined in the forum rules for someone to carry this assistance further.

Re: Dell Inspiron 1545 laptop lid switch suspend/hibernate i

Posted: Fri Mar 26, 2010 8:18 pm
by BopNiblets
Gparted says my swap is about 9.5 gigs (4GB RAM) so I doubt that's the problem, I didn't set it to that of course I just used the full HD size to install so mint set that up.

Re: Dell Inspiron 1545 laptop lid switch suspend/hibernate i

Posted: Sat Mar 27, 2010 12:01 am
by dawgdoc
I agree.
BopNiblets wrote: ...so I doubt that's the problem,
We still need more info.

From the forum rules:
It will make things easier for all that wants to help in the forum if you followed a few simple rules before posting

C Include the version (Gloria or Mint 7 and so on) and edition (main, KDE, XFCE, Fluxbox ...)
D If you get error message(s) please include the correct and complete error message
E Almost all problems have a hardware component - run lspci in a terminal and include. If it is a USB device also include lsusb
F If the problem is about a particular "device", like a sound card or a wifi card, found in lspci run lspci -vvnn and post the section for that device (that section only please - it's a very long list)
Also the output from

Code: Select all

inxi -G
It makes a difference, we can not search for information or draw on learned knowledge without something to go on.

Re: Dell Inspiron 1545 laptop lid switch suspend/hibernate i

Posted: Sun Mar 28, 2010 5:02 pm
by BopNiblets
inxi:
CPU[-Dual core Intel Core2 Duo T6500 (SMP) clocked at 1200.000 Mhz-] Kernel[-2.6.31-20-generic i686-] Up[-6 min-] Mem[-492.5/3526.7MB-] HDD[-250.1GB(1.6% used)-] Procs[-174-] Client[-Shell-] inxi[-1.2.6-]

inxi -P
Partition: ID:/ size: 220G used: 3.8G (2%) fs: ext4 ID:swap-1 size: 10.17GB used: 0.00GB (0%) fs: swap

inxi -G
Graphics: Card ATI M92 LP [Mobility Radeon HD 4300 Series] X.Org 1.6.4 Res: 1366x768@60.0hz
GLX Renderer ATI Mobility Radeon HD 4300 Series GLX Version 1.4 (2.1.9016)

Re: Dell Inspiron 1545 laptop lid switch suspend/hibernate i

Posted: Sun Mar 28, 2010 6:02 pm
by dawgdoc
I see between your graphics output
BopNiblets wrote:inxi -G
Graphics: Card ATI M92 LP [Mobility Radeon HD 4300 Series] X.Org 1.6.4 Res: 1366x768@60.0hz
GLX Renderer ATI Mobility Radeon HD 4300 Series GLX Version 1.4 (2.1.9016)
and that of others with ATI Mobile Graphics :
GLX Renderer ATI Radeon HD 4870 X2 GLX Version 2.1.9016 Direct Rendering Yes
and
GLX Renderer ATI Radeon HD 4600 Series GLX Version 2.1.9016 Direct Rendering Yes
has to do with Direct Rendering. Theirs both indicate YES, meaning 3d graphics is enabled. Yours may be, but instead of GLX Version 2.1.9016 it has GLX Version 1.4 (2.1.9016).

Your system is capable of Suspend/Hibernate, you said it works from the Quit Menu in your first post, but not from closing the lid. And you said you had checked and tried different options in the Power Management Utility. Your RAM/Swap size does not appear to be the trouble maker. So, even though I may be going astray from your problem. Check and see if you have the latest drivers available installed for you graphics card.
Menu > Control Center > Hardware > Hardware Drivers
I do not know if a lack of 3D rendering, if there is one, would effect wake up from suspend. Then again, it may depend on how much eye candy you have enabled.

One way to verify if you have 3D rendiering is to enter in a terminal:

Code: Select all

glxgears
this will give you a small window of the intermeshed turning gears, and show your frame rate in the terminal window.

I hope this helps because I am at the end of my knowledge in this area.

Re: Dell Inspiron 1545 laptop lid switch suspend/hibernate i

Posted: Mon Mar 29, 2010 10:08 am
by remoulder
BobNiblets, A few things to try:

When the laptop comes back on with the screen blank, can you try pressing Ctrl+Alt+F6, then Ctrl+Alt+F7 to see if the gui comes back.

Have you installed the ATI drivers via the Hardware Drivers app in Administration menu? If so have you run sudo aticonfig --initial and are there any settings in the Catalyst Control panel that might affect this? Whilst I don't think your problem is directly a video driver issue, you might want to check out https://help.ubuntu.com/community/BinaryDriverHowto/ATI

You can change the way acpi works to some extent by editing the file /etc/default/acpi-support

Code: Select all

gksu gedit /etc/default/acpi-support
See these posts http://ubuntuforums.org/showthread.php?t=668986, http://ubuntuforums.org/showthread.php?t=596666 for suggestions.

Finally have you checked any BIOS acpi settings that may affect this, e.g. Resume from S1

Re: Dell Inspiron 1545 laptop lid switch suspend/hibernate i

Posted: Tue Mar 30, 2010 3:33 pm
by BopNiblets
dawgdoc: yeah the 3d glxgears works ok, thanks.
And I have the Proprietary Radeon drivers installed.

I see these entries in the /etc/default/acpi-support file:

Code: Select all

# Should we switch the screen off with DPMS on suspend?
USE_DPMS=true
maybe change this to false?

Code: Select all

# Use Radeontool to switch the screen off? Seems to be needed on some machines
# RADEON_LIGHT=true
and uncomment this or some variation?

I'll try the Ctrl Alt key combos but I'll have to change the keys in BIOS because they're default on the Fn key functions, wifi on/off, volume etc.
Thanks guys.

Re: Dell Inspiron 1545 laptop lid switch suspend/hibernate i

Posted: Tue Mar 30, 2010 5:12 pm
by remoulder
BopNiblets wrote:I'll have to change the keys in BIOS because they're default on the Fn key functions
You shouldn't need to change these key settings even if you can.

I can't tell you what might work that's why I linked the thread, you'll need to experiment.

Re: Dell Inspiron 1545 laptop lid switch suspend/hibernate i

Posted: Wed Mar 31, 2010 2:39 pm
by BopNiblets
It's no problem, easy to change back, BIOS has a nice GUI, but in order to press Ctrl Alt F6/F7 I also have to hold down Fn key, it's just awkward.
Anyway, it didn't work after suspending with lid, Ctrl Alt F6/F7 did not turn the display back on.

Re: Dell Inspiron 1545 laptop lid switch suspend/hibernate i

Posted: Wed Mar 31, 2010 4:39 pm
by remoulder
You are not understanding my meaning. this has nothing to do with BIOS key settings. When the laptop comes back on from suspend and the screen is black, press the key combination I gave you.

Re: Dell Inspiron 1545 laptop lid switch suspend/hibernate i

Posted: Mon Apr 05, 2010 4:07 pm
by BopNiblets
I did understand, and it didn't work!
Those keys do not turn the display back on after resume from a suspend/hibernate initiated from the lid switch.

Re: Dell Inspiron 1545 laptop lid switch suspend/hibernate i

Posted: Mon Apr 05, 2010 5:20 pm
by remoulder
BopNiblets wrote:I did understand, and it didn't work
Ok sorry, I reread your previous responses and see what you mean. Guess it was me that didn't understand! :oops:

Next time this happens, after you get back into the system open Logfile Viewer in Administration and look through the pm-suspend.log at the most recent entries. This should tell you what system components were re-initialized and which weren't. If the file is empty go to File | Open and select the pm-suspend.log file with the most recent date that isn't empty. Post the entries corresponding to the last suspend event back here.

Re: Dell Inspiron 1545 laptop lid switch suspend/hibernate i

Posted: Thu Apr 08, 2010 1:30 pm
by BopNiblets
Coolio

Here's the tail of the log for the last entry as far as I think, might not need all of it, I had the lid close set to suspend:

Code: Select all

Thu Apr  8 18:23:52 IST 2010: Running hooks for suspend.
/usr/lib/pm-utils/sleep.d/000record suspend suspend: success.
/usr/lib/pm-utils/sleep.d/00auto-quirk suspend suspend: Adding quirks from HAL: --quirk-dpms-on --quirk-dpms-suspend --quirk-vbe-post --quirk-vbemode-restore --quirk-vbestate-restore --quirk-vga-mode-3 
success.
/usr/lib/pm-utils/sleep.d/00logging suspend suspend: Linux campion-laptop 2.6.31-20-generic #58-Ubuntu SMP Fri Mar 12 05:23:09 UTC 2010 i686 GNU/Linux
Module                  Size  Used by
aes_i586                8124  1 
aes_generic            27484  1 aes_i586
binfmt_misc             8356  1 
dm_crypt               12928  0 
ppdev                   6688  0 
joydev                 10240  0 
snd_hda_codec_idt      59876  1 
arc4                    1660  2 
ecb                     2524  2 
dell_wmi                2564  0 
snd_hda_intel          26920  2 
snd_hda_codec          75708  2 snd_hda_codec_idt,snd_hda_intel
snd_hwdep               7200  1 snd_hda_codec
iwlagn                109084  0 
iwlcore               112796  1 iwlagn
led_class               4096  1 iwlcore
mac80211              181140  2 iwlagn,iwlcore
snd_pcm_oss            37920  0 
snd_mixer_oss          16028  1 snd_pcm_oss
snd_pcm                75296  3 snd_hda_intel,snd_hda_codec,snd_pcm_oss
snd_seq_dummy           2656  0 
uvcvideo               59080  0 
snd_seq_oss            28576  0 
iptable_filter          3100  0 
snd_seq_midi            6464  0 
ip_tables              11692  1 iptable_filter
x_tables               16544  1 ip_tables
videodev               36736  1 uvcvideo
v4l1_compat            14336  2 uvcvideo,videodev
dell_laptop             8128  0 
dcdbas                  7292  1 dell_laptop
psmouse                56500  0 
serio_raw               5280  0 
cfg80211               93052  3 iwlagn,iwlcore,mac80211
fglrx                1989532  33 
snd_rawmidi            22176  1 snd_seq_midi
snd_seq_midi_event      6940  2 snd_seq_oss,snd_seq_midi
snd_seq                50224  6 snd_seq_dummy,snd_seq_oss,snd_seq_midi,snd_seq_midi_event
snd_timer              22276  2 snd_pcm,snd_seq
snd_seq_device          6920  5 snd_seq_dummy,snd_seq_oss,snd_seq_midi,snd_rawmidi,snd_seq
snd                    59204  16 snd_hda_codec_idt,snd_hda_intel,snd_hda_codec,snd_hwdep,snd_pcm_oss,snd_mixer_oss,snd_pcm,snd_seq_oss,snd_rawmidi,snd_seq,snd_timer,snd_seq_device
soundcore               7264  1 snd
lp                      8964  0 
snd_page_alloc          9156  2 snd_hda_intel,snd_pcm
parport                35340  2 ppdev,lp
dm_raid45              84228  0 
xor                    15620  1 dm_raid45
usb_storage            52768  0 
video                  19380  0 
output                  2780  1 video
sky2                   46560  0 
intel_agp              27676  0 
agpgart                34988  2 fglrx,intel_agp
             total       used       free     shared    buffers     cached
Mem:       3611360     540684    3070676          0      49148     227716
-/+ buffers/cache:     263820    3347540
Swap:      9936160          0    9936160
success.
/usr/lib/pm-utils/sleep.d/00powersave suspend suspend: success.
/usr/lib/pm-utils/sleep.d/01PulseAudio suspend suspend: success.
/etc/pm/sleep.d/10_grub-common 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: success.
/usr/lib/pm-utils/sleep.d/75modules suspend suspend: success.
/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: stop: Unknown instance: 
success.
/usr/lib/pm-utils/sleep.d/95led suspend suspend: not applicable.
/usr/lib/pm-utils/sleep.d/96laptop-mode suspend suspend: success.
/usr/lib/pm-utils/sleep.d/98smart-kernel-video suspend suspend: success.
/usr/lib/pm-utils/sleep.d/99video suspend suspend: kernel.acpi_video_flags = 0
success.
/etc/pm/sleep.d/action_wpa suspend suspend: success.
Thu Apr  8 18:23:53 IST 2010: performing suspend
Thu Apr  8 18:27:04 IST 2010: Awake.
Thu Apr  8 18:27:04 IST 2010: Running hooks for resume
/etc/pm/sleep.d/action_wpa resume suspend: success.
/usr/lib/pm-utils/sleep.d/99video resume suspend: success.
/usr/lib/pm-utils/sleep.d/98smart-kernel-video resume suspend: success.
/usr/lib/pm-utils/sleep.d/96laptop-mode resume suspend: success.
/usr/lib/pm-utils/sleep.d/95led resume suspend: not applicable.
/usr/lib/pm-utils/sleep.d/95anacron resume suspend: success.
/usr/lib/pm-utils/sleep.d/94cpufreq resume suspend: success.
/usr/lib/pm-utils/sleep.d/90clock resume suspend: not applicable.
/usr/lib/pm-utils/sleep.d/75modules resume suspend: success.
/usr/lib/pm-utils/sleep.d/55NetworkManager resume suspend: success.
/usr/lib/pm-utils/sleep.d/49bluetooth resume suspend: not applicable.
/etc/pm/sleep.d/10_unattended-upgrades-hibernate resume suspend: success.
/etc/pm/sleep.d/10_grub-common resume suspend: success.
/usr/lib/pm-utils/sleep.d/01PulseAudio resume suspend: success.
/usr/lib/pm-utils/sleep.d/00powersave resume suspend: success.
/usr/lib/pm-utils/sleep.d/00logging resume suspend: success.
/usr/lib/pm-utils/sleep.d/00auto-quirk resume suspend: success.
/usr/lib/pm-utils/sleep.d/000record resume suspend: success.
Thu Apr  8 18:27:05 IST 2010: Finished.
I see the line:
/usr/lib/pm-utils/sleep.d/95led resume suspend: not applicable.
Could that be the screen led backlight maybe?
There is a power led on the front of the laptop, maybe it's that.

Re: Dell Inspiron 1545 laptop lid switch suspend/hibernate i

Posted: Thu Apr 08, 2010 4:49 pm
by remoulder
BopNiblets wrote:/usr/lib/pm-utils/sleep.d/95led resume suspend: not applicable.
No I don't think it's the screen, maybe the front LED but wouldn't worry about it. Unfortunately that log file doesn't really tell us anything other than suspend appears to be working fine as far as the system is concerned. Looking into this a little more it appears to be a fairly common issue on the current release and there is no single solution.

You could try adding acpi_backlight=vendor or radeon.modeset=0 to the kernel line after the quiet splash in the grub menu as a test. You could also try entering in a terminal pm-suspend or pm-suspend --quirk-radeon-off to see what happens. About the only other things I can suggest is to try uninstalling the ATI driver and reverting to the built in radeon driver as a test.

Re: Dell Inspiron 1545 laptop lid switch suspend/hibernate i

Posted: Sat Apr 10, 2010 10:01 am
by BopNiblets
I removed the ATI driver from Hardware Drivers and it seems to have done the trick, closed the lid for a while, it suspended and I opened it and the screen came back on again. :)
Seems to be ATI's cruddy drivers!
I guess this is resolved, it'd be nice to have both working but I'll edit the title anyway, thanks remoulder.