Saturday, April 27, 2024
 Popular · Latest · Hot · Upcoming
1
rated 0 times [  1] [ 0]  / answers: 1 / hits: 5188  / 3 Years ago, sun, june 13, 2021, 8:26:56

I have a (seemingly rather exotic) Dell Latitude XT2 notebook running Lubuntu 12.04, fresh install.
Tried to get the power button to work as expected (opening the logout dialog lubuntu-logout), but no success: power button does nothing but forced power-off on long press.



The power button itself is detected and works. In xfce4-power-manager-settings, when I set the power button action from "Ask" (= open lubuntu-logout) to "Shutdown", the laptop shuts down successfully; pressing the power button is recognized and processed correctly.



Edit: I removed a bunch of info from the question, as it seems not to be related to the problem.


More From » keyboard

 Answers
5

It seems to be a known bug in Lubuntu. In xfce4-power-manager-settings, there are several actions to select for the Power Button being pressed. When you select "Shut Down", it works as expected, but when you select "Ask", nothing happens.


A workaround is in the comment #10. It works for me. Seems there's an underlying problem between xfce4 and LXDE.


You can create the same behaviour with an (additional) acpi daemon, like green7 said. The version in his answer shuts down the PC w/o a dialog, but we discussed in chat that you can start lubuntu-logout from the script instead of simply shutting down the computer. This needs some work, though, as you have to start the logout application as a user who is allowed to connect to X, and provide the necessary environment variables (like $DISPLAY). As the env variables seem to vary between the distros, I think you had to look them up carefully for LXDE.




The workaround link was broken, but seems to be restored (although the site is slow). Here's the gist:



login to your LXDE session (Lubuntu settings in the combo box)
open a terminal
kill xfce4-power-manager: xfce4-power-manager -q
openbox --reconfigure
start xfce4-power-manager: xfce4-power-manager

[...]


My opinion is there is a conflict between xfce4-power-manager and LXDE and order in which these applications start seems to be important... strange...



[#35308] Monday, June 14, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
wherejuic

Total Points: 53
Total Questions: 123
Total Answers: 117

Location: Zambia
Member since Mon, Jan 23, 2023
1 Year ago
;