Re: How can I get verbose shutdown from the GUI (Mate)?

2023-10-03 Thread debian-user
Ottavio Caruso  wrote:
> Am 03/10/2023 um 10:43 schrieb Bret Busby:
> > Also, why do you not use, instead of the command that you specified,
> > shutdown -h
> > or, (if instead, wanted, for example, after doing a kernel update)
> > shutdown -r
> > ?  
> 
> Because all of these are just an alias to systemctl poweroff as per 
> systemctl man page.

But shutdown -h or halt or reboot is less to type, so your explanation
explains the effect but not the reason for using the longer version.



Re: How can I get verbose shutdown from the GUI (Mate)?

2023-10-03 Thread David Wright
On Tue 03 Oct 2023 at 13:15:48 (+), Ottavio Caruso wrote:
> Am 03/10/2023 um 11:47 schrieb Ottavio Caruso:
> > Am 03/10/2023 um 10:43 schrieb Bret Busby:
> > > Also, why do you not use, instead of the command that you specified,
> > > shutdown -h
> > > or, (if instead, wanted, for example, after doing a kernel update)
> > > shutdown -r
> > > ?
> > 
> > Because all of these are just an alias to systemctl poweroff as
> > per systemctl man page.
> 
> Sorry I said alias, I mean link.
> 
> $ ls -l `which shutdown`
> lrwxrwxrwx 1 root root 14 Jun 18 15:55 /usr/sbin/shutdown -> /bin/systemctl
> $ ls -l `which poweroff`
> lrwxrwxrwx 1 root root 14 Jun 18 15:55 /usr/sbin/poweroff -> /bin/systemctl
> $ ls -l `which halt`
> lrwxrwxrwx 1 root root 14 Jun 18 15:55 /usr/sbin/halt -> /bin/systemctl

And observe that:

  $ ls -l /usr/sbin/reboot 
  lrwxrwxrwx 1 root root 14 Jun 18 09:55 /usr/sbin/reboot -> /bin/systemctl
  $ 

but one of the first things systemctl will do is to find out by which
name it was called, and act accordingly. That's pretty common
behaviour in un*x (think busybox).

Cheers,
David.



Re: How can I get verbose shutdown from the GUI (Mate)?

2023-10-03 Thread Bret Busby

On 3/10/23 17:14, Ottavio Caruso wrote:

Hi,

if  open a terminal window and type:

$ sudo systemctl poweroff

I can see what is going on and sometimes it takes almost a minute to 
power the laptop off.


If I press CTRL+ALT+DELETE from the GUI (Mate), the screen goes 
completely blank and I have no idea if the laptop is completely off or 
just thinking about it.


Is there a way to force verbosity during shutdown without opening a 
terminal window or creating a keyboard shortcut?


Thanks

It is not the answer to your question, but, it may be the answer that 
you seek;


"the screen goes completely blank and I have no idea if the laptop is 
completely off or just thinking about it."


Does your laptop not have, either in the power switch, or, elsewhere, an 
LED, that is lit when the computer is powered on, and, is dark when the 
computer is powered off?


I note that you do not specify the model of laptop that you have, but, 
on the two laptops that I currently have running - an HP laptop and an 
Acer Aspire V3-772G, the power switch incorporates an LED that acts as I 
have described. Also, on the Acre, at the front of the base, is a set of 
three LED's that clearly show whether the computer is powered on.


In Mate 1.26.0, I have a functionality to add functions to the panel, 
including "Shut down the computer", which has an icon like an electric 
light switch, that I sometimes use.


Also, why do you not use, instead of the command that you specified,
shutdown -h
or, (if instead, wanted, for example, after doing a kernel update)
shutdown -r
?

..
Bret Busby
Armadale
West Australia
(UTC+0800)
..



Re: How can I get verbose shutdown from the GUI (Mate)?

2023-10-03 Thread Max Nikulin

On 03/10/2023 16:14, Ottavio Caruso wrote:


$ sudo systemctl poweroff

...
Is there a way to force verbosity during shutdown without opening a 
terminal window or creating a keyboard shortcut?


Perhaps all you need is

sudo journalctl -b -1 -e

when you boot your machine next time. Likely some systemd unit can not 
be properly stopped and it cause 1.5 min pause before killing of 
remaining processes.