[plasmashell] [Bug 523719] Show power action inhibition reason instead of failing silently

"Tobias G." <[email protected]>
Newsgroups gmane.comp.kde.devel.bugs
Message-ID <[email protected]/>
https://bugs.kde.org/show_bug.cgi?id=523719

--- Comment #2 from Tobias G. <[email protected]> ---
(In reply to Nate Graham from comment #1)
> What kind of inhibition makes the actual shut down/restart/etc. buttons not
> work? What is setting these?
> 
> > I used the systemctl command directly to check and it reported that something is inhibiting the action.
> What command did you run? And what did it say, exactly? Can you provide some
> details?

Hey, sure :)

In my case, zypper is setting it, preventing sleep, shutdown, ...:

sudo systemd-inhibit --list
WHO            UID  USER PID   COMM            WHAT                            
                                          WHY                                  
                     MODE 
ModemManager   0    root 1557  ModemManager    sleep                           
                                          ModemManager needs to reset devices  
                     delay
NetworkManager 0    root 1350  NetworkManager  sleep                           
                                          NetworkManager needs to turn off
networks                  delay
Realtime Kit   0    root 1954  rtkit-daemon    sleep                           
                                          Demote realtime scheduling and stop
canary.                delay
UPower         0    root 2010  upowerd         sleep                           
                                          Pause device polling                 
                     delay
zypp           0    root 67294 systemd-inhibit shutdown:sleep:idle             
                                          Zypp commit running.                 
                     block
PowerDevil     1000 deck 2569  org_kde_powerde
handle-power-key:handle-suspend-key:handle-hibernate-key:handle-lid-switch KDE
handles power events                                   block
compositor     1000 deck 2353  kwin_wayland    sleep                           
                                          Ensuring that the screen gets locked
before going to sleep delay
signal-desktop 1000 deck 2772  xdg-dbus-proxy  sleep                           
                                          Application cleanup before suspend   
                     delay

8 inhibitors listed.

I also see:
systemctl poweroff
Operation inhibited by "zypp" (PID 67294 "systemd-inhibit", user root), reason
is "Zypp commit running.".
Please retry operation after closing inhibitors and logging out other users.
'systemd-inhibit' can be used to list active inhibitors.
Alternatively, ignore inhibitors and users with 'systemctl poweroff -i'.

I just tried powering the system off with zypper running in the background and
all programs closed and plasmashell stopped, but the system then only showed a
black screen and didn't turn off (potentially zypper still running in the
background?).

This is not the scenario I already experienced a few times where really
_nothing_ happened, but I still think that this behaviour is not optimal. I
would have liked Plasma to show me that an application/process/service is
trying to prevent system shutdowns and tell me that a shutdown might not work
until they have finished.

Does this help? If you require additional details, please let me know :)

-- 
You are receiving this mail because:
You are watching all bug changes.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.