Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: KDE one-click shutdown

  1. #1
    Join Date
    Jul 2010
    Location
    Uut t'oosten van't laand
    Posts
    115

    Default KDE one-click shutdown

    Hi all,
    I have had the Lock/Logout widget in my lower taskbar since years. When I click it the computer shuts down, without asking any question about what I want to do: Leave, or lock, reboot or anything and certainly not: are you sure.
    This has worked for many years in several distro's, including Tumbleweed.
    Since a few weeks I need to confirm I want to shutdown. When I click the applet I see either, depending on a KDE system setting, 3 or 5 choices of which Shutdown is pre-selected. It will countdown from 30 seconds to zero before it actually does that.
    Did something change in that part of KDE, or could it be a setting which changed? The only one I can find is in the KDE system settings Startup and Shutdown > Desktop Session > General.
    I would love to have my one-click shutdown again, makes life so much nicer.

  2. #2
    Join Date
    Sep 2013
    Location
    Norfolk, UK
    Posts
    1,459

    Default Re: KDE one-click shutdown

    Perhaps the widget is using legacy code which has been deprecated?

    As far as I recall the countdown timer has always been there when using the "Leave" options, even if "Confirm logout" is unchecked in "System Settings -> Startup and Shutdown -> Desktop Session"

    You could try this from within a konsole window:

    Code:
    qdbus-qt5 org.kde.Shutdown /Shutdown org.kde.Shutdown.logoutAndShutdown
    If it works, (there are a few edge cases where shutdown/reboot aren't working as expected https://bugs.kde.org/show_bug.cgi?id=422870 ) then you could create a new menu entry with that as the command, which could be pinned to the taskbar or placed on the desktop, whatever...
    Regards, Paul

    2x Tumbleweed (Snapshot: 20200701) KDE Plasma 5
    2x Leap 15.1 KDE Plasma 5

  3. #3
    Join Date
    Jan 2014
    Location
    Erlangen
    Posts
    1,628

    Default Re: KDE one-click shutdown

    Quote Originally Posted by JanMussche View Post
    Hi all,
    I have had the Lock/Logout widget in my lower taskbar since years. When I click it the computer shuts down, without asking any question about what I want to do: Leave, or lock, reboot or anything and certainly not: are you sure.
    This has worked for many years in several distro's, including Tumbleweed.
    Since a few weeks I need to confirm I want to shutdown. When I click the applet I see either, depending on a KDE system setting, 3 or 5 choices of which Shutdown is pre-selected. It will countdown from 30 seconds to zero before it actually does that.
    Did something change in that part of KDE, or could it be a setting which changed? The only one I can find is in the KDE system settings Startup and Shutdown > Desktop Session > General.
    I would love to have my one-click shutdown again, makes life so much nicer.
    System Settings > Startup and Shutdown > Desktop Session > General > Uncheck both Confirm logout and Offer shutdown options. Apply new settings and click Leave. You are offered two options: OK (CR) and Cancel (ESC).
    AMD Athlon 4850e (2009), openSUSE 13.1, KDE 4, Intel i3-4130 (2014), i7-6700K (2016), i5-8250U (2018), AMD Ryzen 5 3400G (2020), openSUSE Tumbleweed, KDE Plasma 5

  4. #4
    Join Date
    Jul 2010
    Location
    Uut t'oosten van't laand
    Posts
    115

    Default Re: KDE one-click shutdown

    Quote Originally Posted by karlmistelberger View Post
    System Settings > Startup and Shutdown > Desktop Session > General > Uncheck both Confirm logout and Offer shutdown options. Apply new settings and click Leave. You are offered two options: OK (CR) and Cancel (ESC).
    Yes, that is exactly what I get now, but ... it used to be, until a few weeks ago, that clicking the widget the PC would shutdown in one go. No more buttons to click on, no choices to make, just click and ... dead.
    So something must have changed in this regards but I have no idea what, and where to look for it.

  5. #5
    Join Date
    Oct 2014
    Location
    Switzerland
    Posts
    563

    Default Re: KDE one-click shutdown

    There is also a default shutdown without confirmation hot-key

    Ctrl + Alt + Shift + Pg Down.

    Funny fact, I configured my Virtuals Desktops to move its windows up-down-left... with Ctrl + Alt + Shift + arrow keys and My Lenovo laptops have Page up/down to either side of the up arrow keys and I used to curse everytime I accidentally prssed the shutdown key without confirmation. I have it disabled but you can use it for your advantage.

  6. #6
    Join Date
    Dec 2008
    Location
    FL, USA
    Posts
    2,193

    Default Re: KDE one-click shutdown

    I just did a dup that gave me 20200620. Context click desktop menu selecting leave produces no response whatsoever.
    Code:
    # inxi -Sxxx
    System:    Host: big41 Kernel: 5.6.14-1-default x86_64 bits: 64 compiler: gcc v: 10.1.1 Desktop: KDE Plasma 5.19.1
               tk: Qt 5.15.0 wm: kwin_x11 dm: N/A Distro: openSUSE Tumbleweed 20200620


    Leave from main menu does logout. Shutdown from main menu works too.
    Reg. Linux User #211409 *** multibooting since 1992
    Primary: 15.1,TW,15.2 & 13.1 on Haswell w/ RAID
    Secondary: eComStation (OS/2)&15.1 on 965P/Radeon
    Tertiary: TW,15.2,15.1,Fedora,Debian,more on Kaby Lake,Q45,Q43,G41,G3X,965G,Cedar,Caicos,Oland,GT218&&&

  7. #7
    Join Date
    Jun 2008
    Location
    San Diego, Ca, USA
    Posts
    12,296
    Blog Entries
    2

    Default Re: KDE one-click shutdown

    As I describe in my post to this other similar thread,

    https://forums.opensuse.org/showthre...90#post2938990

    Various Desktops intentionally insert a pause to dumbly provide time for processes to be allowed to terminate naturally before shutting down the system.
    This is a long standing issue, I don't know that Desktops have ever been able to know for sure that long running data writes haven't completed. If a system shuts down in the middle of someone writing to a network share or an insert or update is being executed in a database, the data may be corrupted and in some cases could corrupt far more than just the changinng data itself.

    So, the general solution has been to simply delay the shutdown by some arbitrary amount of time that it would be very unlikely a write could still be in progress.

    Best practice of course is to manually shutdown anything that supports a long running write.
    After that, you can initiate a forced shutdown a number of ways, one I described in my referenced post.

    TSU
    Beginner Wiki Quickstart - https://en.opensuse.org/User:Tsu2/Quickstart_Wiki
    Solved a problem recently? Create a wiki page for future personal reference!
    Learn something new?
    Attended a computing event?
    Post and Share!

  8. #8
    Join Date
    Dec 2008
    Location
    FL, USA
    Posts
    2,193

    Default Re: KDE one-click shutdown

    I'm familiar with pauses to allow writes to complete, but mine was a session open only a minute or so, and I had nothing open except Konsole doing nothing. Nothing should have been writing related to anything Plasma does or can do.

    I rebooted, started Plasma, and desktop leave still results in no response. Opening top in Konsole shows nothing obvious that might prevent session ending.
    Reg. Linux User #211409 *** multibooting since 1992
    Primary: 15.1,TW,15.2 & 13.1 on Haswell w/ RAID
    Secondary: eComStation (OS/2)&15.1 on 965P/Radeon
    Tertiary: TW,15.2,15.1,Fedora,Debian,more on Kaby Lake,Q45,Q43,G41,G3X,965G,Cedar,Caicos,Oland,GT218&&&

  9. #9
    Join Date
    Sep 2013
    Location
    Norfolk, UK
    Posts
    1,459

    Default Re: KDE one-click shutdown

    Quote Originally Posted by mrmazda View Post
    I just did a dup that gave me 20200620. Context click desktop menu selecting leave produces no response whatsoever.
    Yes, same here on two TW installs after 20200620

    Leave from main menu does logout.
    ditto

    Shutdown from main menu works too.
    Not for me due to bug: https://bugs.kde.org/show_bug.cgi?id=422870
    Regards, Paul

    2x Tumbleweed (Snapshot: 20200701) KDE Plasma 5
    2x Leap 15.1 KDE Plasma 5

  10. #10
    Join Date
    Sep 2013
    Location
    Norfolk, UK
    Posts
    1,459

    Default Re: KDE one-click shutdown

    Quote Originally Posted by mrmazda View Post
    I just did a dup that gave me 20200620. Context click desktop menu selecting leave produces no response whatsoever.
    ...
    Leave from main menu does logout. Shutdown from main menu works too.
    User @BingMyBong has raised a bug report 2020-06-23 11:32:39 https://bugs.kde.org/show_bug.cgi?id=423391 for this issue.
    Regards, Paul

    2x Tumbleweed (Snapshot: 20200701) KDE Plasma 5
    2x Leap 15.1 KDE Plasma 5

Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •