[Bug 810125] New: 12.3 power button always halts system instead suspend
https://bugzilla.novell.com/show_bug.cgi?id=810125 https://bugzilla.novell.com/show_bug.cgi?id=810125#c0 Summary: 12.3 power button always halts system instead suspend Classification: openSUSE Product: openSUSE 12.3 Version: Final Platform: x86-64 OS/Version: SUSE Other Status: NEW Severity: Normal Priority: P5 - None Component: Basesystem AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: kollix@aon.at QAContact: qa-bugs@suse.de Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; U; i686 Linux; en_US, de; rv:1.9.2) Gecko/20100115 Firefox/3.6 I upgraded 12.2 to 12.3 and now the power button on my Fujitsu Lifebook halts the system where it did previously suspend it. Using KDE I checked the battery settings and the system is still configured to "Sleep" the system when the power button is pressed. checking /var/log/messages I found strange entries: 2013-03-18T18:56:14.446498+01:00 linux-d4d3 systemd-logind[527]: Power key pressed. 2013-03-18T18:56:14.485589+01:00 linux-d4d3 systemd[1]: Starting Sleep. 2013-03-18T18:56:14.487539+01:00 linux-d4d3 systemd[1]: Reached target Sleep. 2013-03-18T18:56:14.489481+01:00 linux-d4d3 systemd[1]: Starting Suspend... 2013-03-18T18:56:14.495540+01:00 linux-d4d3 systemd-sleep[31273]: Suspending system... 2013-03-18T18:56:14.512735+01:00 linux-d4d3 pm-profiler: Power Button pressed, executing /sbin/shutdown -h now In fact the system looks like it goes to sleep but when I press the power button to resume it, it shuts down. suspend/resume via the KDE lock/logout applet works. Reproducible: Always Steps to Reproduce: 1. 2. 3. -- 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=810125
https://bugzilla.novell.com/show_bug.cgi?id=810125#c1
Gordon Dickens
https://bugzilla.novell.com/show_bug.cgi?id=810125
https://bugzilla.novell.com/show_bug.cgi?id=810125#c2
Peter Roehrig
https://bugzilla.novell.com/show_bug.cgi?id=810125
https://bugzilla.novell.com/show_bug.cgi?id=810125#c3
--- Comment #3 from Peter Roehrig
edit /etc/acpi/events/power_button to read:
I forgot to mention: you need one more reboot before the changed version is used. -- 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=810125
https://bugzilla.novell.com/show_bug.cgi?id=810125#c4
--- Comment #4 from Gordon Dickens
https://bugzilla.novell.com/show_bug.cgi?id=810125
https://bugzilla.novell.com/show_bug.cgi?id=810125#c5
--- Comment #5 from Martin Koller
https://bugzilla.novell.com/show_bug.cgi?id=810125
https://bugzilla.novell.com/show_bug.cgi?id=810125#c6
robert spitzenpfeil
https://bugzilla.novell.com/show_bug.cgi?id=810125
https://bugzilla.novell.com/show_bug.cgi?id=810125#c
FeiXiang Zhang
https://bugzilla.novell.com/show_bug.cgi?id=810125
https://bugzilla.novell.com/show_bug.cgi?id=810125#c7
Marcus Meissner
https://bugzilla.novell.com/show_bug.cgi?id=810125
https://bugzilla.novell.com/show_bug.cgi?id=810125#c8
Frederic Crozat
https://bugzilla.novell.com/show_bug.cgi?id=810125
https://bugzilla.novell.com/show_bug.cgi?id=810125#c9
Sergey Mashkov
Looks like a bug in KDE which doesn't interface correctly with logind to apply KDE settings instead of the default from logind.
No, it is not. The cause is that org.freedesktop.ConsoleKit.Session.IsActive returns false but it shouldn't. -- 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=810125
https://bugzilla.novell.com/show_bug.cgi?id=810125#c10
--- Comment #10 from Sergey Mashkov
https://bugzilla.novell.com/show_bug.cgi?id=810125
https://bugzilla.novell.com/show_bug.cgi?id=810125#c11
--- Comment #11 from Sergey Mashkov
I had a look at /etc/systemd/logind.conf
and disabled handling for a couple of buttons. That did the trick for me and KDE power management works as before.
---
HandlePowerKey=ignore HandleSuspendKey=ignore HandleHibernateKey=hibernate HandleLidSwitch=hibernate
---
I already have HandlePowerKey=suspend But the powerbutton is still handled by acpid as per /etc/acpi/events/power_button -- 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=810125
https://bugzilla.novell.com/show_bug.cgi?id=810125#c12
Hrvoje Senjan
(In reply to comment #8)
Looks like a bug in KDE which doesn't interface correctly with logind to apply KDE settings instead of the default from logind.
No, it is not. The cause is that org.freedesktop.ConsoleKit.Session.IsActive returns false but it shouldn't.
We (KDE/PowerDevil) are utilizing logind with 12.3 and up. So it will always return false. *If* that part works correctly, then no matter what setting is configured in logind.conf, while one is in KDE session, those will be ignored, and PowerDevil's will be used. @Christian, can you take a look? Can we change the check for logind instead CK? -- 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=810125
https://bugzilla.novell.com/show_bug.cgi?id=810125#c13
Cristian Rodríguez
https://bugzilla.novell.com/show_bug.cgi?id=810125
https://bugzilla.novell.com/show_bug.cgi?id=810125#c14
--- Comment #14 from Frederic Crozat
https://bugzilla.novell.com/show_bug.cgi?id=810125
https://bugzilla.novell.com/show_bug.cgi?id=810125#c15
--- Comment #15 from Hrvoje Senjan
Using both acpid and the logind will always cause issues.. you have to uninstall acpid.
there is nothing I can see that can be done in the logind side, it is working as expected or as KDE is using it at least.
OK, though i meant e.g. adding additional check in acpid script for running logind interface, not adjusting logind itself ;-) Or, what Frederic wrote. -- 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=810125
https://bugzilla.novell.com/show_bug.cgi?id=810125#c
Hrvoje Senjan
https://bugzilla.novell.com/show_bug.cgi?id=810125
https://bugzilla.novell.com/show_bug.cgi?id=810125#c17
Thomas Renninger
Using both acpid and the logind will always cause issues. Yep and I expect everyone affected did an update, no new installation or manually installed acpid? Disabling a service or adjust user config for big update jumps is rather hard. If things work for everybody by disabling acpid, I'd like to have this as the solution documented here (and you best spread this at other places if you asked for help somewhere else).
I would then also remove acpid from factory, so that this interference cannot happen anymore. Comments? -- 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=810125
https://bugzilla.novell.com/show_bug.cgi?id=810125#c18
--- Comment #18 from Michael Chang
I would then also remove acpid from factory, so that this interference cannot happen anymore.
Comments?
Hi Thomas, I'd like to keep acpid package in factory for a longer while as sometimes it's helpful for debugging. And acpid maybe required in some occasions to handle ACPI events like AC and Docking, any of those are not handled by systemd yet. About the interference, I have worked out a patch to power_button and tested to fix the issue. I am going to post patch and package for testing later. Thanks. -- 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=810125
https://bugzilla.novell.com/show_bug.cgi?id=810125#c19
--- Comment #19 from Michael Chang
https://bugzilla.novell.com/show_bug.cgi?id=810125
https://bugzilla.novell.com/show_bug.cgi?id=810125#c20
--- Comment #20 from Michael Chang
https://bugzilla.novell.com/show_bug.cgi?id=810125
https://bugzilla.novell.com/show_bug.cgi?id=810125#c21
--- Comment #21 from Michael Chang
https://bugzilla.novell.com/show_bug.cgi?id=810125
https://bugzilla.novell.com/show_bug.cgi?id=810125#c22
--- Comment #22 from Bernhard Wiedemann
https://bugzilla.novell.com/show_bug.cgi?id=810125
https://bugzilla.novell.com/show_bug.cgi?id=810125#c23
Norbert Kob
https://bugzilla.novell.com/show_bug.cgi?id=810125
https://bugzilla.novell.com/show_bug.cgi?id=810125#c
Ihno Krumreich
https://bugzilla.novell.com/show_bug.cgi?id=810125
https://bugzilla.novell.com/show_bug.cgi?id=810125#c24
Thomas Renninger
I have the problem to recognise the plug-in or plug-out of the AC power adapter. This is obviously a totally other issue.
You can examine via acpi_genl monitor on recent systems. If, then please re-verify with 13.1 or factory. And if there are still issues, please open a new bug as your issue is unrelated. -- 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