Bug 487616 - Logout / Restart / Shutdown not working with tiling window manager (X11)
Summary: Logout / Restart / Shutdown not working with tiling window manager (X11)
Status: REOPENED
Alias: None
Product: plasmashell
Classification: Plasma
Component: Session Management (show other bugs)
Version: 6.2.1
Platform: Other Linux
: NOR normal
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-05-27 08:54 UTC by hiphish
Modified: 2024-11-16 20:59 UTC (History)
5 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description hiphish 2024-05-27 08:54:35 UTC
***
If you're not sure this is actually a bug, instead post about it at https://discuss.kde.org

If you're reporting a crash, attach a backtrace with debug symbols; see https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***

SUMMARY

I use Plasma with BSPWM as my window manager under X11. Under BSPWM logout, shutdown and restart from the application menu or dashboard do not work. I get the semi-transparent overlay that asks me for confirmation, but nothing happens afterwards. The only way I can shut down the machine is by running `sudo poweroff` from a terminal.


STEPS TO REPRODUCE

I use the following shell script to launch the session (`/usr/local/bin/plasma-bspwm.sh`):

    #!/bin/sh
    export KDEWM=/usr/bin/bspwm
    /usr/bin/startplasma-x11

To register this session I have the following XDG desktop entry file (`/usr/share/xsessions`):

    [Desktop Entry]
    Type=XSession
    Exec=/usr/local/bin/plasma-bspwm.sh
    TryExec=/usr/bin/startplasma-x11
    DesktopNames=KDE
    Name=Plasma (BSPWM)
    X-KDE-PluginInfo-Version=5.22.5


SOFTWARE/OS VERSIONS

Linux/KDE Plasma: Void Linux
(available in About System)
KDE Plasma Version: 6.0.4
KDE Frameworks Version: 6.1.0
Qt Version: 6.6.0


ADDITIONAL INFORMATION

All these actions work fine when using X11 with KWin or under Wayland, which is why I think that this is a separate issue from 481938. The two services mentioned in https://bugs.kde.org/show_bug.cgi?id=481938#c5 do exist on my system.
Comment 1 e33v1535 2024-06-06 10:55:24 UTC
I can confirm this happens with other window managers too (in my case Awesome WM on Arch Linux; a Google search also gives results for a thread on Manjaro forum where they've the same problem on i3).
Comment 2 Andreas Sturmlechner 2024-09-21 08:33:33 UTC

*** This bug has been marked as a duplicate of bug 488853 ***
Comment 3 hiphish 2024-10-15 21:52:21 UTC
This is still happening on 6.2.0 for me.
Comment 4 e33v1535 2024-10-19 00:46:56 UTC
6.2.1 hasn't solved it either.

This seems to be a different issue than the purported duplicate anyway because when shutting down (or rebooting, etc) I can still see the wallpaper and invoke a terminal and everything. In the other bug the screen is black and the tty is completely unresponsive.
Comment 5 hiphish 2024-10-20 21:42:30 UTC
In my case the wallpaper and all panels are gone, the screen is black, but I can still open a terminal (using Meta + Enter, a key binding I have set up in SXHKD). The window manager remains working, but the Plasma desktop is gone.
Comment 6 hiphish 2024-11-16 20:59:26 UTC
I noticed that if I press the power button on my tower the "power" overlay or whatever you call it (the semi-transparent overlay with the "shutdown", "restart" and so on buttons) does come up and the computer gets shut down properly. It's only when when I explicitly click "shutdown", "log out" or "reboot" from the applications menu widget that the problem occurs.

In my system settings -> "power management" -> "When power button pressed" I have selected "show logout screen", so this behaviour seems to be wrong as well.