blue-systems / plasma-5.5

Plasma 5.2 - 5.5
0 stars 0 forks source link

hardware power button: nothing happens, does not show power options #33

Closed star-buck closed 9 years ago

afiestas commented 9 years ago

I can look into this! Will do next week.

star-buck commented 9 years ago

assigned, thanks!

star-buck commented 9 years ago

still not working as of kci 20150109 any update on this?

star-buck commented 9 years ago

not working on kci20150116, any update?

star-buck commented 9 years ago

@sebasje : will you fix this or someone else should be assigned?

sebasje commented 9 years ago

This works for me on kci20150116.

While I don't think it could be a hardware thing (the powerbutton handling is I think pretty standard), what hardware are you testing it on? (Lenovo 540M here).

Could you run "xev" in a console, wait a bit until all events have been printed, and then hit the powerbutton? What does this return?

star-buck commented 9 years ago

xev shows nothing when pressing power button. so this still doesnt work here in kci20150123.

sebasje commented 9 years ago

What hardware is that? Is this the live cd or an installed system?

xev does know that button here, so it looks like either an ACPI problem, or a problem with the Xorg setup, perhaps keyboard.

mgraesslin commented 9 years ago

if xev doesn't show en event it quite certainly meanst that the button isn't supported by the operating system. Does it work on other distributions (e.g. different kernel version)?

star-buck commented 9 years ago

@sebas: acer spire, asus pc both not working, i could test more, but it surely was working on those two with all previous kde4.x versions.

davidedmundson commented 9 years ago

Found it.

Commit a34affeb in powerdevil by Alex replaces

HandleButtonEvents::isSupported() from checking if we have any hardware buttons to checking if we have a lid.

If you're on a desktop this completely is not even remotely close to the same thing.

Patch incoming.

davidedmundson commented 9 years ago

https://git.reviewboard.kde.org/r/122387/

davidedmundson commented 9 years ago

Merged

hsitter commented 9 years ago

please remember to post the commit ref in the future :wink:

hsitter commented 9 years ago

https://launchpad.net/~netrunner-os/+archive/ubuntu/netrunner-15-ci-fixes/+sourcepub/4752088/+listing-archive-extra

star-buck commented 9 years ago

the great thing: it works, so power button invokes a reaction! Now still a popup wants me to confirm logout or shutdown (whatever is set as preferred option under "Startip & Shutdown"), where in kde4.x i was able to simply shut it down immediately. Any way to shut down right away without the 30 seconds confirmation dialog?

davidedmundson commented 9 years ago

systemsettings -> power management -> button event handling select -> when power button pressed: select shutdown

This was is in the 5.2 branch, but not in 5.2.0

It's in the kubuntu-CI packaging, but I don't know if it's in netrunner yet. commit a17b7791c9f98d76da35b81649650cc8a20974fd if you're cherry-picking things

hsitter commented 9 years ago

https://launchpad.net/~netrunner-os/+archive/ubuntu/netrunner-15-ci-fixes/+sourcepub/4759387/+listing-archive-extra

star-buck commented 9 years ago

works.