Summary: | Pressing the physical power button is ignored with certain hardware | ||
---|---|---|---|
Product: | [Plasma] Powerdevil | Reporter: | Gordan Krešić <gordan.kresic> |
Component: | general | Assignee: | Plasma Development Mailing List <plasma-devel> |
Status: | RESOLVED DOWNSTREAM | ||
Severity: | normal | CC: | aspotashev, bugseforuns, gordan.kresic, natalie_clarius, nate, nicolas.fella, privat, zawertun |
Priority: | NOR | ||
Version: | 5.27.8 | ||
Target Milestone: | --- | ||
Platform: | Kubuntu | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: | |||
Attachments: |
From NON working user account
~/.config/kdeglobals from NON working session ~/.config/kwinrc from NON working session ~/.config/kglobalshortcutsrc from NON working session |
Description
Gordan Krešić
2016-07-05 10:09:32 UTC
Just to confirm that this issue is still reproducible on Plasma 5.8.4. Other components: OS: Kubuntu 16.10 (Plasma backported from Kubuntu Backports https://launchpad.net/~kubuntu-ppa/+archive/ubuntu/backports) KDE Frameworks 5.28.0 Qt 5.6.1 If there are any additional info that I can provide, let me know. Just confirming that this still is the case for me in Plasma 5.12.3., KDE Frameworks 5.43.0, Qt 5.10.1 Exactly as orig. reporter describes (button working, systemd-inhibit listing PowerDevil) Sorry, no idea how to help, but would have time, if told how to provide additional info. cannot confirm on Arch Linux, plasma 5.12.3. All actions available work. Plasma 5.12.2, Kubuntu 17.10, bug is still here. I can provide any additional info, if someone tell me what is needed. Laptop is rather common: ThinkPad T460p. Plasma 5.14.2, issue still present. Quick research found another reports, but without distinctive resolutions: https://forum.kde.org/viewtopic.php?f=66&t=153836 https://bbs.archlinux.org/viewtopic.php?id=234466 Probably specific to certain hardware. This worked fine with my former laptop (2016 HP Spectre x360) but does not work with my current laptop (2020 Lenovo ThinkPad X1 Yoga). So I just realized that with my laptop (same one that I mentioned in the previous comment), just pressing the button is not enough; you have to press it and hold it for a second or so. Given that the button is located on the side of the computer, I suspect that this is actually a hardware behavior designed to keep the button from getting accidentally triggered all the time. For other people experiencing this issue, you might try that to see if it starts working. Press-and-hold is default for many Lenovo devices and I already tested with that in mind. Like I said in original report "power button hardware is working properly (tested with xev, sends keycode 124/XF86PowerOff).". Is there a better way besides xev to test if all hardware events are generated properly? This is an old one, but I have an update (note: I'm original reporter of this bug). It seems this is not related to anything "system-wide", but something with my own session/config. I just reinstalled fresh new Kubuntu 23.10 with KDE Plasma 5.27.8 and copied just my $HOME from old laptop. Power button doesn't work. However, as an experiment, I also created a new user, logged as that new user and... power button was properly handled over there! Note that my $HOME is quite old (20+ years, dragging stuff back from KDE 3 era), so I guess some of that old config is conflicting with PowerDevil. I tried deleting `~/.config/powermanagementprofilesrc`, but it didn't help. It's obviously something else. But, now I have working AND non-working sessions and config files, so if anyone is interested in helping me debug this, I'll be glad to experiment. Simply deleting `~/.config` would put me *months* behind in my daily business, so that one is off the table, but anything less that that I'm willing to try. Thanks for checking in again. Much appreciated. Can you paste the contents of `~/.config/powerdevilrc`? Also consider attaching ~/.config/kdeglobals and `~/.config/kwinrc` if there's no personally identifying information in there. also .config/kglobalshortcutsrc Created attachment 162528 [details]
From NON working user account
Created attachment 162529 [details]
~/.config/kdeglobals from NON working session
Created attachment 162530 [details]
~/.config/kwinrc from NON working session
Created attachment 162531 [details]
~/.config/kglobalshortcutsrc from NON working session
Nate && Nicolas, thanks for prompt response. I've attached requested files from NON-working user account. Tell me if you need ones from working one (it's default what you get on Kubuntu 23.10, so probably not that interesting). Quickly glancing between those files from different user accounts, I did found differences in `~/.config/kglobalshortcutsrc` in `[org_kde_powerdevil]` section. Of course, I have no idea if that may be the culprit of this problem. Once again, thanks for your assistance. In the powerdevil group of the kglobalshortcutsrc file, this looks suspicious to me: PowerDown=Power Down,Power Down,Power Down PowerOff=none,Power Off,Power Off On my system, it's set like this: PowerDown=Power Down,Power Down,Power Down PowerOff=Power Off,Power Off,Power Off (In reply to Nate Graham from comment #18) > In the powerdevil group of the kglobalshortcutsrc file, this looks > suspicious to me: > > PowerDown=Power Down,Power Down,Power Down > PowerOff=none,Power Off,Power Off > > On my system, it's set like this: > > PowerDown=Power Down,Power Down,Power Down > PowerOff=Power Off,Power Off,Power Off This did it! Thanks Nate. Excellent. :) I guess it always was some old stale config from over 7 years ago that current code no longer supports. |