Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 385741

Summary: sys-power/pm-utils-1.4.1-r2: delay upon starting xsession resulting in harddrive error
Product: Gentoo Linux Reporter: hal <laservader>
Component: Current packagesAssignee: Freedesktop bugs <freedesktop-bugs>
Status: RESOLVED FIXED    
Severity: critical Keywords: UPSTREAM
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
URL: http://forums.gentoo.org/viewtopic-p-6449773.html
See Also: https://bugs.gentoo.org/show_bug.cgi?id=452362
Whiteboard:
Package list:
Runtime testing required: ---

Description hal 2011-10-05 15:21:48 UTC
http://forums.gentoo.org/viewtopic-p-6449773.html

I suffered exactly the issue described in the forum thread. My system froze for about 16 seconds upon startx until the ata link was hard resetted.

/var/log/messages:
Oct  5 16:58:16 localhost kernel: ata1.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x6 frozen
Oct  5 16:58:16 localhost kernel: ata1.00: failed command: SET FEATURES
Oct  5 16:58:16 localhost kernel: ata1.00: cmd ef/c2:00:00:00:00/00:00:00:00:00/40 tag 0
Oct  5 16:58:16 localhost kernel: res 40/00:fe:00:00:00/00:00:00:00:00/40 Emask 0x4 (timeout)
Oct  5 16:58:16 localhost kernel: ata1.00: status: { DRDY }
Oct  5 16:58:16 localhost kernel: ata1: hard resetting link
Oct  5 16:58:16 localhost kernel: ata1: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
Oct  5 16:58:16 localhost kernel: ata1.00: configured for UDMA/133
Oct  5 16:58:16 localhost kernel: ata1: EH complete
Oct  5 16:58:16 localhost kernel: ata1.00: configured for UDMA/133
Oct  5 16:58:16 localhost kernel: ata1: EH complete
Oct  5 16:58:17 localhost kernel: ata2.00: configured for UDMA/133
Oct  5 16:58:17 localhost kernel: ata2: EH complete

###

touch /etc/pm/power.d/harddrive solved the issue completely. 
Should we maybe create that file as a default while installing pm-utils?

Reproducible: Always

Steps to Reproduce:
1. maybe not reproduceable on every system
Actual Results:  
1. login procedure hangs until the ata link gets hard resetted. system is frozen dduring this period.

Expected Results:  
1. should not freeze
Comment 1 hal 2011-10-14 00:25:12 UTC
In fact it is enough to change these values in /usr/lib/pm-utils/power.d/harddrive:

 # Default values on AC
-DRIVE_POWER_MGMT_AC="${DRIVE_POWER_MGMT_AC:-254}"
-DRIVE_ACOUSTIC_MGMT_AC="${DRIVE_ACOUSTIC_MGMT_AC:-0}"
+DRIVE_POWER_MGMT_AC="${DRIVE_POWER_MGMT_AC:-255}"
+DRIVE_ACOUSTIC_MGMT_AC="${DRIVE_ACOUSTIC_MGMT_AC:-254}"
Comment 2 Samuli Suominen (RETIRED) gentoo-dev 2014-06-23 14:05:35 UTC
See,

https://bugs.gentoo.org/show_bug.cgi?id=452362#c2

The file isn't present anymore in 1.4.1-r6. Closing accordingly.