[Bug 781399] New: upower.service timed out when shutting down or reboot on Battery
https://bugzilla.novell.com/show_bug.cgi?id=781399 https://bugzilla.novell.com/show_bug.cgi?id=781399#c0 Summary: upower.service timed out when shutting down or reboot on Battery Classification: openSUSE Product: openSUSE 12.2 Version: Final Platform: i586 OS/Version: openSUSE 12.2 Status: NEW Severity: Normal Priority: P5 - None Component: Other AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: mhtrinh@gmail.com QAContact: qa-bugs@suse.de Found By: --- Blocker: --- Created an attachment (id=506484) --> (http://bugzilla.novell.com/attachment.cgi?id=506484) systemd log when using battery User-Agent: Mozilla/5.0 (X11; Linux i686; rv:15.0) Gecko/20100101 Firefox/15.0 I have the note book HP mini 311c. I'm using systemd 44-10.1.1 with OpenSuse 12.2 and upower 0.9.16-2.1.2. When I shutdown/reboot with my AC power cable unplug, meaning powered by battery, it take more than 1 minute to shutdown/reboot. Meanwhile, when the AC power cable is plugged in, it shutdown normally (less than 1 minutes). I log systemd messages as describe here : http://www.freedesktop.org/wiki/Software/systemd/Debugging#Shutdown_Complete... In the log, upower.service timed out, that why it take much longer to shutdown/reboot. When on AC power there is this line : "upower.service changed stop-sigterm -> dead" While on battery, it is : "upower.service changed stop-sigterm -> final-sigterm" Is there a reason for this difference ??? Reproducible: Always Steps to Reproduce: 1.Unplug AC power 2.Shutdown/Reboot Actual Results: It take more than 1 minute for the laptop to shutdown/reboot Expected Results: Shutdown/reboot less than 1 minute as it does when AC power is plugged in. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=781399 https://bugzilla.novell.com/show_bug.cgi?id=781399#c1 --- Comment #1 from Minh Hieu TRINH <mhtrinh@gmail.com> 2012-09-20 23:41:50 UTC --- Created an attachment (id=506485) --> (http://bugzilla.novell.com/attachment.cgi?id=506485) systemd log when using AC power -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=781399 https://bugzilla.novell.com/show_bug.cgi?id=781399#c2 --- Comment #2 from Minh Hieu TRINH <mhtrinh@gmail.com> 2012-09-20 23:45:58 UTC --- I forgot to mention that I don't have this issue when using SysV init. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=781399 https://bugzilla.novell.com/show_bug.cgi?id=781399#c3 Minh Hieu TRINH <mhtrinh@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |INVALID --- Comment #3 from Minh Hieu TRINH <mhtrinh@gmail.com> 2012-09-21 00:22:08 UTC --- Sorry, I found what is the cause. When on battery, I run a personal script in background from /etc/pm/power.d In this bash script I use "trap" to clean lock file : trap "rm -f $lock" EXIT HUP INT ABRT QUIT SEGV TERM It seems that systemd have some issue to kill the script when the "trap" is present. I'm really sorry for the noise. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com