[opensuse] Power button always shuts down the system
Hi openSUSE-folks, for quite some time I was convinced that hibernation is broken on my system (openSUSE 12.2/12.3 x64, Dell Latitude E6220) but now I found out that just no "suspend to disk" was initiated when pressing the power button, but the system just was shut down. Calling pm-hibernate or s2disk via the shell works fine. In the power management plasmoid I configured that the system should be hibernated when the power button is pressed, I also disabled the global short cut that points to a "power off" action. However, none of this improved the situation. After spending some time with google I finally found the acpi-script handling the power button events: /usr/lib/acpid/power_button. Inside this script the enviroment variable $POWER_BUTTON_HOOK is checked and apparently it should contain the KDE-specific hook that KDE uses to handle such events. This variable however is not set on my system and thus the system is shut down by this script. Where should this variable be set and what is the correct value for KDE? Ciao, Fabian -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Hi everybody, meanwhile I found out that script /usr/lib/acpid/power_button is not called at all on my other notebook where the power buttons sends the system to hibernation without any problems. How can I find out the cause that this script at all? I also found another configuration file dealing with "keys": /etc/systemd/logind.conf. Here, I set "HandlePowerKey=hibernate" but this had no observable effect on my system. So, I am still quite helpless regarding the "missguided" power_button key event and would be glad if anybody had some hints for me. Thanks in advance. Ciao, Fabian 2013/3/13 Fabian Scheler <fabian.scheler@gmail.com>:
Hi openSUSE-folks,
for quite some time I was convinced that hibernation is broken on my system (openSUSE 12.2/12.3 x64, Dell Latitude E6220) but now I found out that just no "suspend to disk" was initiated when pressing the power button, but the system just was shut down. Calling pm-hibernate or s2disk via the shell works fine.
In the power management plasmoid I configured that the system should be hibernated when the power button is pressed, I also disabled the global short cut that points to a "power off" action. However, none of this improved the situation.
After spending some time with google I finally found the acpi-script handling the power button events: /usr/lib/acpid/power_button. Inside this script the enviroment variable $POWER_BUTTON_HOOK is checked and apparently it should contain the KDE-specific hook that KDE uses to handle such events. This variable however is not set on my system and thus the system is shut down by this script.
Where should this variable be set and what is the correct value for KDE?
Ciao, Fabian -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
participants (1)
-
Fabian Scheler