Re: External harddrive not spinning down on suspend

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



JB <jb.1234abcd <at> gmail.com> writes:

> ...
This are successful suspend-suspend and suspend-resume sessions on my laptop.
It should help you understand what and how it happens.

Restore your pm-utils system to its previous (original state) as asked in
my previous post, which you should look at and understand.

Then you should run both, suspend-suspend and suspend-resume, on your machine
(even if unsuccessful in its objectives) and capture and save it for later
analysis (the logs are overwritten).
By comparing mine and yours you may find the breaking points in execution).
You should concentrate on the first part (suspend-suspend) first - this is
where your external usb harddisk is recognized and handled.

During suspend-suspend, the PM info (APM level) of the harddisk device is
retrieved via hdparm utility, then saved in script '99hd-apm-restore.hook
suspend' (see the script).
First, look at your harddisk and see if APM is supported at all.

# hdparm -I /dev/sda
Your external usb harddisk is /dev/sdb (see your dmesg).

# hdparm -I "/dev/sda" |grep "Advanced Power"
	   *	Advanced Power Management feature set

# hdparm -I /dev/sda |grep "Advanced power"
	Advanced power management level: 254

Look at script 99hd-apm-restore.hook to see how this info is checked for.

This PM info (or rather saved APM state) is restored when script
'99hd-apm-restore.hook resume' is executed later on during suspend-resume.
This is visible in the log.

$ cat /var/log/pm-suspend.log 
Initial commandline parameters: 
Tue Dec  7 00:10:16 CET 2010: Running hooks for suspend.
/usr/lib/pm-utils/sleep.d/00logging suspend suspend:Linux
localhost.localdomain
2.6.35.9-64.fc14.i686 #1 SMP Fri Dec 3 12:35:42 UTC 2010 i686 i686 i386 GNU/Linux
Module                  Size  Used by
fuse                   51432  3 
cpufreq_ondemand        7262  2 
acpi_cpufreq            6277  1 
mperf                   1141  1 acpi_cpufreq
ipt_LOG                 4243  1 
xt_limit                1254  1 
ip6_tables              9929  0 
uinput                  5228  0 
snd_hda_codec_conexant    31850  1 
snd_hda_intel          20083  2 
arc4                    1085  2 
ecb                     1595  2 
iwl3945                97265  0 
snd_hda_codec          71701  2 snd_hda_codec_conexant,snd_hda_intel
snd_hwdep               4795  1 snd_hda_codec
iwlcore               160590  1 iwl3945
snd_seq                43447  0 
snd_seq_device          5056  1 snd_seq
thinkpad_acpi          56245  0 
snd_pcm                61769  2 snd_hda_intel,snd_hda_codec
snd_timer              15435  2 snd_seq,snd_pcm
mac80211              188421  2 iwl3945,iwlcore
snd                    47365  13
snd_hda_codec_conexant,snd_hda_intel,snd_hda_codec,snd_hwdep,snd_seq,
snd_seq_device,thinkpad_acpi,snd_pcm,snd_timer
btusb                  12538  0 
bluetooth              73233  1 btusb
iTCO_wdt                8960  0 
iTCO_vendor_support     2070  1 iTCO_wdt
cfg80211              110779  3 iwl3945,iwlcore,mac80211
rfkill                 13652  4 thinkpad_acpi,bluetooth,cfg80211
soundcore               5088  1 snd
tg3                    98727  0 
i2c_i801                9016  0 
snd_page_alloc          6180  2 snd_hda_intel,snd_pcm
microcode              11139  0 
yenta_socket           20882  0 
i915                  241651  3 
drm_kms_helper         22278  1 i915
drm                   139288  3 i915,drm_kms_helper
i2c_algo_bit            4197  1 i915
i2c_core               21328  5 i2c_i801,i915,drm_kms_helper,drm,i2c_algo_bit
video                  17730  1 i915
output                  1625  1 video
             total       used       free     shared    buffers     cached
Mem:       2051988     329420    1722568          0      37404     164480
-/+ buffers/cache:     127536    1924452
Swap:      2933244          0    2933244
success.
/usr/lib/pm-utils/sleep.d/00powersave suspend suspend:success.
/usr/lib/pm-utils/sleep.d/01grub suspend suspend:not applicable.
/usr/lib/pm-utils/sleep.d/49bluetooth suspend suspend:success.
/usr/lib/pm-utils/sleep.d/55NetworkManager suspend suspend:success.
/usr/lib/pm-utils/sleep.d/56atd suspend suspend:success.
/usr/lib/pm-utils/sleep.d/56dhclient 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/95led suspend suspend:success.
/usr/lib/pm-utils/sleep.d/95packagekit suspend suspend:success.
/usr/lib/pm-utils/sleep.d/98video-quirk-db-handler suspend suspend:success.
/usr/lib/pm-utils/sleep.d/99hd-apm-restore.hook suspend suspend:saving level
 254 for device sda
success.
/usr/lib/pm-utils/sleep.d/99video suspend suspend:kernel.acpi_video_flags = 0
success.
Tue Dec  7 00:10:17 CET 2010: performing suspend
Tue Dec  7 07:54:05 CET 2010: Awake.
Tue Dec  7 07:54:05 CET 2010: Running hooks for resume
/usr/lib/pm-utils/sleep.d/99video resume suspend:success.
/usr/lib/pm-utils/sleep.d/99hd-apm-restore.hook resume suspend:restoring level
254 for device sda

/dev/sda:
 setting Advanced Power Management level to 0xfe (254)
 APM_level	= 254
success.
/usr/lib/pm-utils/sleep.d/98video-quirk-db-handler resume suspend:success.
/usr/lib/pm-utils/sleep.d/95packagekit resume suspend:method return
 sender=:1.29
-> dest=:1.43 reply_serial=2
success.
/usr/lib/pm-utils/sleep.d/95led 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/56dhclient resume suspend:success.
/usr/lib/pm-utils/sleep.d/56atd resume suspend:Stopping atd: [  OK  ]
[  OK  ] atd: [  OK  ]
success.
/usr/lib/pm-utils/sleep.d/55NetworkManager resume suspend:success.
/usr/lib/pm-utils/sleep.d/49bluetooth resume suspend:success.
/usr/lib/pm-utils/sleep.d/01grub resume suspend:not applicable.
/usr/lib/pm-utils/sleep.d/00powersave resume suspend:success.
/usr/lib/pm-utils/sleep.d/00logging resume suspend:success.
Tue Dec  7 07:54:06 CET 2010: Finished.
[jb@localhost ~]$ 

JB


-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux