LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-15-2022, 02:12 PM   #1
donreid
Member
 
Registered: Jun 2013
Location: Hertfordshire, UK
Distribution: Linux Mint 20.3 Cinnamon
Posts: 40

Rep: Reputation: Disabled
I have to tell the OS twice to shut down or restart


I am running Linux Mint 20.3 Cinnamon. When I do Menu, Quit, Shut Down (or Restart) nothing happens. I have to do that twice in order to shut down or restart. To Suspend I only have to do it once. I have had this problem for many years through many versions of Linux Mint. I have a separate partition for Home and Root. so every time I upgrade the OS I leave Home untouched. Any suggestions would be welcome.
 
Old 10-15-2022, 08:12 PM   #2
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,324
Blog Entries: 28

Rep: Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142
I gather you are issuing the commands from the menu of the desktop environment.

Do you get the same behavior when you issue the commands from the terminal?
 
1 members found this post helpful.
Old 10-16-2022, 03:41 AM   #3
valeoak
Member
 
Registered: Apr 2020
Location: United Kingdom
Distribution: Debian Sid, Pop!_OS
Posts: 49

Rep: Reputation: Disabled
I'm wondering if the GUI shutdown function is issuing a shutdown command but with a timer delay (rather like shutdown without specifying now)?

In addition to trying frankbell's suggestion of shutting down the machine with systemctl poweroff or shutdown now, have you tried issuing a shutdown through the GUI once, but waiting a couple of minutes to see if it eventually initiates the shutdown?

Another option to see if the GUI shutdown function is issuing a timed shutdown is to run journalctl as root, scrolling to the bottom of the output with End and then using the GUI shutdown button and seeing if there's a broadcast message about the system being powered off at a particular time.

Last edited by valeoak; 10-16-2022 at 04:06 AM. Reason: Suggestion of looking at journalctl
 
Old 10-16-2022, 06:13 AM   #4
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680

Rep: Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373
I see this happen when I have VirtualBox's management window open (the one you start them from) and the first go shuts that then the second shuts down my machine. Perhaps you have a similar thing open?
 
Old 10-16-2022, 07:53 AM   #5
donreid
Member
 
Registered: Jun 2013
Location: Hertfordshire, UK
Distribution: Linux Mint 20.3 Cinnamon
Posts: 40

Original Poster
Rep: Reputation: Disabled
Further information:.

Sudo reboot and sudo poweroff both work first time.

Yes, I always have Virtualbox loaded. I closed it and hey presto the problem goes away. Isn't that strange?

Many thanks for all your help. I will also have a look at the suggestions made by Valeoak but I think i will close this thread now.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
shut down problem - wont shut down.. UbrInKid Linux - Newbie 4 12-10-2009 06:20 AM
Xubuntu won't shut down - black screen after trying to shut down Snickar-Lasse Ubuntu 2 11-30-2009 04:33 PM
System hangs up on restart and shut down darknails Fedora 7 01-24-2005 04:04 AM
shut down won't shut system down taoweijia Linux - General 3 03-03-2004 06:05 PM
Mandrake Shut Down/Restart Problem dangerboy Linux - Distributions 14 08-20-2003 03:30 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:25 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration