Bug 407710

Summary: Powerdevil doesn't handle button actions
Product: [Plasma] Powerdevil Reporter: Kishore Gopalakrishnan <kishore96>
Component: generalAssignee: Plasma Bugs List <plasma-bugs>
Status: RESOLVED DUPLICATE    
Severity: major CC: arojas
Priority: NOR    
Version: 5.15.90   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:

Description Kishore Gopalakrishnan 2019-05-19 06:02:08 UTC
SUMMARY
Button actions (suspend etc.) do not work in the latest 5.15.90 beta. Downgrading powerdevil to 5.15.5 fixes the issue

STEPS TO REPRODUCE
1. Upgrade to powerdevil 5.15.90.
2. Configure laptop to sleep on power button press.
3. Press power button.

OBSERVED RESULT
Laptop does not sleep.

EXPECTED RESULT
Laptop should go to sleep.

SOFTWARE/OS VERSIONS
Linux distro: Arch Linux (kde-unstable repo)
KDE Plasma Version: 5.15.90
KDE Frameworks Version: 5.58.0
Qt Version: 5.13.0

ADDITIONAL INFORMATION
Downgrading powerdevil to 5.15.5 fixes the issue. Output of `systemctl status systemd-logind` is as follows.
With Powerdevil 5.15.90:
```
May 19 11:20:51 kishore-inspiron-3537 systemd-logind[740]: Power key pressed.
```

With Powerdevil 5.15.5:
```
May 19 11:21:18 kishore-inspiron-3537 systemd-logind[740]: Power key pressed.
May 19 11:21:28 kishore-inspiron-3537 systemd-logind[740]: Operation 'sleep' finished.
```

Invoking suspend / hibernate via 'systemctl suspend' works perfectly.
Comment 1 Kishore Gopalakrishnan 2019-05-20 13:40:48 UTC
A git bisect shows this (https://phabricator.kde.org/D19162) as the first bad commit.
Comment 2 Antonio Rojas 2019-05-20 15:30:56 UTC

*** This bug has been marked as a duplicate of bug 407721 ***