shutown never shows the services as it shuts down except ...

Everything about X, Gnome, KDE, ... and everything running on it

shutown never shows the services as it shuts down except ...

Postby morse_the_horse » 2020-06-25 17:13

I execute the shutdown command by clicking on a desktop app that contains the following:

$more shutdown.desktop
[Desktop Entry]
Name=shutdown
Exec=/usr/sbin/shutdown -h now
Comment=Shutdown
Terminal=false
Icon=system-shutdown
Type=Application

It always works fine. However, it "NEVER" shows the services shutting down but simply shows one line that says "Reboot: Power down". However, once or twice in about every 50 times, it does indeed show as the services are stopping and shows the green [OK]. Anybody know why? Note, on power up, the services always show as they start.

Oh, and doing "shutdown -h now" from a terminal does the same thing.

Debian buster kept up to date with Cinnamon Desktop and Gnome Display Manager if that is of any consequence.
morse_the_horse
 
Posts: 54
Joined: 2013-06-29 22:07

Re: shutown never shows the services as it shuts down except

Postby Head_on_a_Stick » 2020-06-25 19:11

morse_the_horse wrote:Exec=/usr/sbin/shutdown -h now

Check
Code: Select all
ls -l /usr/sbin/shutdown

I think systemd is trying to emulate the old-style shutdown sequence because you've invoked it with an obsolete command.

Try this instead:
Code: Select all
Exec=systemctl poweroff
Black Lives Matter

Debian buster-backports ISO image: for new hardware support
User avatar
Head_on_a_Stick
 
Posts: 12493
Joined: 2014-06-01 17:46
Location: /dev/chair

Re: shutown never shows the services as it shuts down except

Postby morse_the_horse » 2020-06-28 16:54

Head_on_a_Stick wrote:
morse_the_horse wrote:Exec=/usr/sbin/shutdown -h now

Check
Code: Select all
ls -l /usr/sbin/shutdown

I think systemd is trying to emulate the old-style shutdown sequence because you've invoked it with an obsolete command.

Try this instead:
Code: Select all
Exec=systemctl poweroff


Nope. Worked just like the shutdown command. Got just the power down line every time until once today. Last execution showed the services stopping lines before shutting down.

Code: Select all
[Desktop Entry]
Name=shutdown
Exec=systemctl poweroff
Comment=Shutdown
Terminal=false
Icon=system-shutdown
Type=Application
morse_the_horse
 
Posts: 54
Joined: 2013-06-29 22:07

Re: shutown never shows the services as it shuts down except

Postby Head_on_a_Stick » 2020-06-28 17:00

Try enabling early KMS for your graphics card (add the driver to the initramfs).
Black Lives Matter

Debian buster-backports ISO image: for new hardware support
User avatar
Head_on_a_Stick
 
Posts: 12493
Joined: 2014-06-01 17:46
Location: /dev/chair


Return to Desktop & Multimedia

Who is online

Users browsing this forum: No registered users and 12 guests

fashionable