Hook overriding its configuration file, and a broken resume report

J Epperson hal at epperson.homelinux.net
Tue Feb 10 18:19:55 PST 2009


A question here, and a broken resume report.

In trying to track down why resume from suspend does not work on my HP
dv6-1030us, I notices an oddity in the suspend hooks/configuration.

99hd-apm-restore.hook says:

source /etc/pm-utils-hd-apm-restore.conf

HD_APM_DEVICES=""

which looks like it nulls out any HD_APM_DEVICES setting from
/etc/pm-utils-hd-apm-restore.conf, so why is the setting exampled in the
distributed file via commented line?

What happens with this laptop is that suspend appears to work from outside
appearances, but resume throws continuous scrolling errors on a text
console screen, and the resume never happens.  It's hard to capture the
error messages in that environment, but they include (all prefixed with
ata1: or ata2:):

serror: {DevExch}
SATA link down (sstatus 1 scontrol 300)
EH complete
exception Emask 0x10 SAct 0x0 Serr 0x4000000 action 0xe frozen
irg_stat connection 0x00000040 connection status changed

Here are the suspend log, the smartctl and hdparm info on the SATA drive,
and the lspci info on the SATA controller.  Other information cheerfully
furnished on request.

cat /var/log/pm-suspend.log:

Initial commandline parameters: --quirk-dpms-suspend
--quirk-dpms-on
--quirk-vbestate-restore
--quirk-vbemode-restore
--quirk-vga-mode3
--quirk-vbe-post
Mon Feb  9 22:11:12 EST 2009: Running hooks for suspend.
/usr/lib64/pm-utils/sleep.d/00auto-quirk suspend suspend: success.
/usr/lib64/pm-utils/sleep.d/00logging suspend suspend: Linux
mudgen.epperson.homelinux.net 2.6.27.12-170.2.5.fc10.x86_64 #1 SMP Wed Jan
21 01:33:24 EST 2009 x86_64 x86_64 x86_64 GNU/Linux
Module                  Size  Used by
ppdev                  15752  0
parport_pc             34200  0
lp                     19428  0
parport                42784  3 ppdev,parport_pc,lp
hidp                   23424  1
michael_mic            10752  4
arc4                   10240  4
ecb                    11264  4
crypto_blkcipher       24196  1 ecb
fuse                   60992  2
i915                   67080  2
drm                   201328  3 i915
rfcomm                 43808  4
bridge                 56224  0
stp                    10756  1 bridge
bnep                   22016  2
sco                    19204  2
l2cap                  28544  21 hidp,rfcomm,bnep
sunrpc                191208  3
ip6t_REJECT            12160  2
nf_conntrack_ipv6      22984  2
ip6table_filter        11136  1
ip6_tables             26128  1 ip6table_filter
ipv6                  287272  34 ip6t_REJECT,nf_conntrack_ipv6
cpufreq_ondemand       15504  1
acpi_cpufreq           17552  1
freq_table             12928  2 cpufreq_ondemand,acpi_cpufreq
dm_multipath           23704  0
uinput                 16128  0
snd_hda_intel         478752  3
snd_seq_dummy          11396  0
snd_seq_oss     %

[root at mudgen ~]# smartctl -i /dev/sda
smartctl version 5.38 [x86_64-redhat-linux-gnu] Copyright (C) 2002-8 Bruce
Allen
Home page is http://smartmontools.sourceforge.net/

=== START OF INFORMATION SECTION ===
Device Model:     FUJITSU MHZ2320BH G2
Serial Number:    K618T8B2V2FV
Firmware Version: 8909
User Capacity:    320,072,933,376 bytes
Device is:        Not in smartctl database [for details use: -P showall]
ATA Version is:   8
ATA Standard is:  ATA-8-ACS revision 3f
Local Time is:    Tue Feb 10 20:40:37 2009 EST
SMART support is: Available - device has SMART capability.
SMART support is: Enabled

[root at mudgen ~]# hdparm -i /dev/sda

/dev/sda:

 Model=FUJITSU MHZ2320BH G2                    , FwRev=8909    ,
SerialNo=K618T8B2V2FV
 Config={ HardSect NotMFM HdSw>15uSec Fixed DTR>10Mbs }
 RawCHS=16383/16/63, TrkSize=0, SectSize=0, ECCbytes=4
 BuffType=DualPortCache, BuffSize=8192kB, MaxMultSect=16, MultSect=?16?
CurCHS=16383/16/63, CurSects=16514064, LBA=yes, LBAsects=625142448
IORDY=on/off, tPIO={min:120,w/IORDY:120}, tDMA={min:120,rec:120}
 PIO modes:  pio0 pio1 pio2 pio3 pio4
 DMA modes:  mdma0 mdma1 mdma2
 UDMA modes: udma0 udma1 udma2 udma3 udma4 *udma5
 AdvancedPM=yes: mode=0x80 (128) WriteCache=enabled
 Drive conforms to: unknown:  ATA/ATAPI-3,4,5,6,7

 * signifies the current active mode

lspci -v for controller:

00:1f.2 SATA controller: Intel Corporation ICH9M/M-E SATA AHCI Controller
(rev 03) (prog-if 01 [AHCI 1.0])
	Subsystem: Hewlett-Packard Company Device 3627
	Flags: bus master, 66MHz, medium devsel, latency 0, IRQ 19
	I/O ports at 7108 [size=8]
	I/O ports at 711c [size=4]
	I/O ports at 7100 [size=8]
	I/O ports at 7118 [size=4]
	I/O ports at 7020 [size=32]
	Memory at da505000 (32-bit, non-prefetchable) [size=2K]
	Capabilities: [80] Message Signalled Interrupts: Mask- 64bit- Count=1/16
Enable-
	Capabilities: [70] Power Management version 3
	Capabilities: [a8] SATA HBA <?>
	Capabilities: [b0] PCIe advanced features <?>
	Kernel driver in use: ahci









More information about the hal mailing list