This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Any way to customize shutdown/reboot command?

Tags: None
(comma "," separated)
vfbsilva
Registered Member
Posts
10
Karma
0
OS
Is there any way to do that on Plasma? I have an issue where my shutdown and reboot is delayed by many seconds because, the system is synching. I would like to prepend the sync command to the actual shutdown command spawned from the menu. Is it possible?
kdevil
Registered Member
Posts
6
Karma
0
I have a similar issue, please read my posts... Unfortunately nobody has a clue...not even the KDE developers...

But you could write your own shutdown scripts with poweroff or shutdown commands and remove that KDE power/session b u l l s h i t :-)

There is also a nice app called qshutdown for Debian!
koffeinfriedhof
Registered Member
Posts
608
Karma
4
OS
vfbsilva wrote:I would like to prepend the sync command to the actual shutdown command spawned from the menu. Is it possible?

You can block/delay shutdown (idle, sleep) using systemd-inhibit. That is what Plasma does itself (see `systemd-inhibit --list``)

Simple example to block idling:
Code: Select all
systemd-inhibit --who me --why because --what idle --mode block bash

As long as this bash session runs (exit with ctrl-d) the system won't idle, preventing all screensaver, power management stuff, etc. from doing their jobs. As soon as the last filedescriptor is released (in this case, bash is exited) the block is removed.


Bookmarks



Who is online

Registered users: Bing [Bot], Evergrowing, Google [Bot], rblackwell