https://bugs.kde.org/show_bug.cgi?id=457859

            Bug ID: 457859
           Summary: Powerdevil does not respect sleep inhibitors created
                    with systemd-inhibit by unprivileged users
           Product: Powerdevil
           Version: unspecified
          Platform: openSUSE RPMs
                OS: Linux
            Status: REPORTED
          Severity: minor
          Priority: NOR
         Component: general
          Assignee: plasma-b...@kde.org
          Reporter: dan...@dralston.net
                CC: m...@ratijas.tk
  Target Milestone: ---

SUMMARY
Powerdevil does not respect sleep inhibitors created with systemd-inhibit by
unprivileged users.

STEPS TO REPRODUCE
1. Configure power management to "Automatically Sleep After 1 Minute".
2. Create a systemd sleep inhibition: "systemd-inhibit --what=sleep:idle --why
'Test Powerdevil' sleep infinity". There should be no error message.
3. Check to make sure the inhibition is in effect: "system-inhibit --list". The
inhibition above should appear.
4. Wait 1 minute. The system will be put to sleep.

Note: this will not occur if the systemd-inhibit command above is run as the
root user instead of an unprivileged user.

OBSERVED RESULT
System goes to sleep even when sleep and idle are inhibited by systemd-inhibit.

EXPECTED RESULT
System should not go to sleep while an active, user-level inhibition is created
by systemd-inhibit.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: OpenSUSE LEAP 15.3
KDE Plasma Version: 5.18.6
KDE Frameworks Version: 5.76.0
Qt Version: 5.12.7

Thank you for your help! -Daniel R

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to