Questions tagged [shutdown]
For questions regarding shutting down and powering off.
387
questions
11
votes
2
answers
21k
views
How do I configure upstart to run a script on shutdown when the process takes longer than 10secs?
I am running ubuntu 11.10 in a virtual machine (VirtualBox) to learn more about development in linux. I am using a git repository to save my work and have written a script to bundle my work up and ...
10
votes
1
answer
15k
views
Not been able to Shut Down 13.04
After installing Ubuntu 13.04 (not upgrading to it, I did a "clean install" removing the older one), I'm not been able to shutdown the system.
After clicking the Shut Down button the desktop ...
10
votes
1
answer
10k
views
How to disable shutdown/reboot from lightdm in 14.04?
In 12.04 it was possible to prevent system shutdown or reboot from the login screen by adding the following restrictions in /etc/polkit-1/localauthority/50-local.d (adapted from here):
[Disable ...
9
votes
3
answers
9k
views
Best way to make a shutdown hook?
Since Ubuntu relies on upstart for some time now, I would like to use an upstart job to gracefully shutdown certain applications on system shutdown or reboot. It is essential that the system's ...
6
votes
1
answer
12k
views
How to run a command BEFORE shutdown on Ubuntu 21.04
I just want to run (as root) a command or script before each reboot/shutdown/poweroff on Ubuntu 21.04 (when I run the shutdown or poweroff commands, or using GNOME/KDE GUI options). I've tried putting ...
4
votes
2
answers
8k
views
How to enable shutdown sound on ubuntu 12.04 LTS and up
I need a sound to play when I shutdown. In Kubuntu, there's shutdown sound. But Ubuntu, not anymore
4
votes
2
answers
6k
views
How can I shutdown my PC when the system is idle?
I am using Ubutnu 12.04 LTS. Now I am here to know that, is there any script/application I can use to shutdown my Ubuntu when my system is IDLE for 10 Minutes or so?
I have already gone through this ...
3
votes
1
answer
1k
views
ubuntu server restarting instead of shutting down
Whenever I try to shutdown my pc by using sudo shutdown -... now (it doesn't matter what I fill in for the ...), it always shutdowns down for about 3-4 seconds, and than just powers up again. I'm sure ...
3
votes
1
answer
4k
views
Slow Boot Time on Ubuntu 17.10.1 (systemd-analyze blame results)
I'm very new to Ubuntu.
My PC has had very slow boot and shut down times (for 2 days), I reduced the shut down time with this tutorial (https://sites.google.com/site/installationubuntu/home/ubuntu-16-...
2
votes
1
answer
1k
views
Shutdown or Restart only logs me out
My workstation at work is running 11.10 (lightdm). Shutting down or restarting has always worked up till last week.
My workstation is generally left on through the week and shutdown at weekends.
...
1
vote
2
answers
3k
views
How to make Ubuntu 16.04 LTS remember the WiFi password through a shutdown then later restart?
This problem is that Ubuntu 16.04 LTS does not remember the WiFi password through a shutdown then a later restart.
Ubuntu 14.04 LTS had no problem with this. I let it upgrade me to 16.04 LTS (...
1
vote
1
answer
2k
views
ubuntu 18 hibernation using the power button
I am using ubuntu 18, I had issues using hibernation
systemctl-hibernate
pm-hibernate
setting the power button to hibernate,
dconf-editor,
alt+power button,
and gnome extentions did not work
...
138
votes
1
answer
362k
views
Shutdown after a certain time [duplicate]
I am done using my laptop but I am using the hotspot in my smart phone. So I want my laptop to be awake for next one hour. How can I Shutdown the laptop after one hour of time?
37
votes
9
answers
12k
views
How do I shut down without the confirmation prompt?
Are you sure you want to close all
programs and shut down the computer?
When I click shut down I want to shut down! :) This message bugs me. How to avoid this message?
32
votes
3
answers
136k
views
Automatic shutdown at specified times?
I'm aware I can use (sudo?) shutdown -h hh:mm in a terminal window to shut down a system, however the user that is logged in is a kiosk user, which is locked down in such a way that terminal (or any ...
29
votes
6
answers
85k
views
Are there any Keyboard Shortcuts to Shutdown? [duplicate]
Are there any Keyboard Shortcuts to Shutdown? (e.g. in Windows Alt+F4+Alt+F4 Right Arrow Enter)
23
votes
3
answers
26k
views
Remotely turning on computer?
I need a simple way to turn on my dell optiplex remotely, and shut it off. Its running ubuntu 13.04. How would i go about that? would i need a separate device to press the power button, or would it ...
22
votes
5
answers
17k
views
Execute script before shutting down
When I shut down my computer I want to show some pending tasks that I have to do before leaving the office... I did a local application to manage those tasks, basically I just want to run a command, ...
21
votes
4
answers
21k
views
17.1 Wlp6s0: failed to remove key (1, ff:ff:ff:ff:ff:ff) from hardware (-22)
I was running gnome 17.04 with no issues. I clean installed Ubuntu 17.1 and everything is fine except on shutdown / reboot it hangs with the following error. Only way to turn off is to hard power ...
18
votes
6
answers
36k
views
Can't shutdown and logout from top panel in Ubuntu 14.04 LTS
I recently installed Ubuntu 14.04. Shutdown and logout from the top panel are not working.
They worked fine when installing the OS, but a few days back I installed fglrx drivers for my ATI graphics ...
17
votes
4
answers
15k
views
Ubuntu 16.04 doesn't shut down after suspend or hibernate
Why no answer accepted
For the simple reason that I haven't been using Ubuntu for a long time, so I couldn't test the answers.
The question
Actually my question can appear identical to this one in ...
15
votes
2
answers
5k
views
How do I call gnome-session-quit with countdown from Unity?
To be able to shutdown with a keyboard shortcut we can assign gnome-session-quit ---power-off to a custom shortcut.
In Unity this will lead to the following dialog:
Then we need another at least two ...
15
votes
7
answers
18k
views
"Shutdown" or "Restart" logs out
While logged in as a sudo user, click the right top power icon, then select and click Shutdown menu, it comes up with a dialog asking if I want to close all programs. The dialog has two options: ...
14
votes
3
answers
19k
views
How do I diagnose Hang on Shutdown?
Since one or two months ago, my laptop with ubuntu 12.10x64 hangs during shutdown. There's just a black screen, no harddisk activity, it justs sits there. I feel it happens near the end of a normal ...
14
votes
3
answers
24k
views
Difference between menu shutdown and 'shutdown -h now'
What is the difference between the shutdown menu item and shutdown -h now?
The former sometimes hangs up my laptop on Ubuntu 11.10.
14
votes
3
answers
10k
views
What is the command to open the shutdown dialog?
I would like to use a gesture to shutdown/restart my computer and I need to know the command that launches the shutdown dialog:
13
votes
6
answers
15k
views
Disabling shutdown command for all users, even root - consequences?
I would like to disable the shutdown command for all users, even root, on an Ubuntu Server installation.
The reason I want to do this is to ensure that I don't get into the habit of shutting down the ...
10
votes
3
answers
8k
views
Gnome3: How to disable "Shutdown" button
I have a server where users are connecting using the RDP protocol, and accessing a Gnome desktop environment.
Even if they do not have permissions, I want to avoid any temptation/mistake/confusion ...
9
votes
4
answers
23k
views
Problem with speech dispatcher
I had some problems with shutdown/restarting Ubuntu 13.04. It used to hang in a black screen with some codes about speech dispatcher. I searched the web and found a solution:
sudo nano /etc/default/...
7
votes
1
answer
9k
views
Shutdown button for Ubuntu dock
I decided to install Ubuntu 19 freshly, as it is inevitable, but also that GNOME has promise. However, some things from unity should be inherited without question. One of those things is that you ...
6
votes
0
answers
8k
views
How do I get back my suspend option in Gnome Shell?
With the new version of Gnome Shell in Ubuntu 12.10 they turned most peoples issue around by just displaying the shutdown option which becomes suspend on pressing Alt.
How do I get back my beloved ...
6
votes
2
answers
3k
views
How to shutdown automatically when AC power is not available
My old laptop has a faulty battery, which shows 100% when on AC power but when unplugged it dramatically drops to random percentages within seconds and makes the machine turn off brutally. I am afraid ...
6
votes
1
answer
2k
views
Ubuntu shuts down on suspend?
I have ASUS GL552VW laptop with nvidia graphics card and driver nvidia-361 on uefi. Now the problem I am facing is , whenever the computer suspends(Either by clicking manually , or from a long idle ) ...
6
votes
6
answers
23k
views
Shutdown/Reboot hangs Indefinitely - Ubuntu 16.04
After upgrading my laptop (Dell Inspiron 5447) to Ubuntu 16.04 I saw that I can't shut down or restart after a few hours using the system. It hangs in Plymouth and stays that way until I force the ...
6
votes
5
answers
10k
views
Problems with "Shutdown" and "LogOut" after upgrading to 14.04
I have upgraded from 12.04 to 14.04 on my laptop. The upgrade was successful, but the issue is that nothing happens now when I click on "LogOut", "Shutdown", "Suspend" from the top right power icon (...
5
votes
4
answers
23k
views
How to run a command before the machine automatically shuts down?
How can I run a command before the machine automatically shuts down?
5
votes
2
answers
2k
views
How to stop turning off sequence when power manager says that battery is too low and want to power down?
According to this thread I can disable this thing altogether but this battery-critical-power-down not always happens. Is there a way or terminal command that can stop the power manager shutting down ...
4
votes
3
answers
8k
views
Transmission shutdown script for multiple torrents?
I have written a shutdown script for transmission. Transmission calls the script after a torrent download finishes. The script runs perfectly on my machine (Ubuntu 11.04 & 12.04).
#!/bin/bash
...
4
votes
2
answers
770
views
Shutdown taking a lot of time
Whenever I shutdown in my Ubuntu 11.10 box, the icons are changing to the default GNOME icons and it is taking a lot of time to shutdown. What can I do to fix this?
4
votes
2
answers
3k
views
Change power button to 'Ask' in Xubuntu 13.10
I have recently installed Xubuntu 13.10 on my Vaio vpcea making me a Linux beginner. The problem is that laptop's power button is right on the edge of the bezel making it far too easy to press ...
3
votes
4
answers
4k
views
Console text appears on shutdown
I updated to 10.10 from 10.04 -however not with a clean install but with online update. Since then at shutdown some console texts appear (next to the red spot representing the shutdown steps). Im ...
3
votes
1
answer
9k
views
Lubuntu 16.04 gets stuck at shutdown (nmi watchdog bug soft lockup - cpu#1 stuck for 22s) [duplicate]
Occasionally my computer(Lubuntu 16.04 64 Bit) gets stuck at shutdown. It shows the message
nmi watchdog bug soft lockup - cpu#1 stuck for 22s and never finishes shutdown.This message comes after the ...
2
votes
1
answer
925
views
Ubuntu MATE freeze on logout/shutdown/reboot when running on Intel graphics card
I have installed Ubuntu MATE 16.04 on a new Alienware 13 machine. My problem is that shutdown/reboot/logout stopped working properly and the system freezes one I try to do shutdown. The problem ...
2
votes
2
answers
542
views
My computer wont shutdown
If I try to shutdown my computer it simply takes me back to the login-screen.
I looked around and found :
Type in terminal:
sudo gedit /etc/default/grub
Find the line: GRUB_CMDLINE_LINUX_DEFAULT="...
2
votes
2
answers
13k
views
Cannot reboot/shutdown Ubuntu 16.04
I hadn't any problem with 14.04, but 16.04 is so buggy. I can't reboot Ubuntu after installation is completed from live USB/DVD and I must press the power button. Also sudo reboot and sudo poweroff ...
2
votes
1
answer
10k
views
Computer won't power off
My computer suddenly won't shutdown or suspend anymore. Disks power down, but the computer won't. I have to shut down the computer by holding the power button.
The shutdown process ends with a "...
2
votes
2
answers
7k
views
cron jobs - difference between editing "/etc/crontab" and "crontab -e"
Trying to set up a daily cron job to shut down a server.
One source suggests editing /etc/crontab
Another suggests crontab -e (with sudo)
I tried the latter, and my process did not run (if I ...
1
vote
3
answers
8k
views
Nightly server shutdown and auto reboot with cron
My question relates to the following question:
Daily server reboot cron?
I want to shutdown my server at 10.15pm and auto restart at 6am.
I added the following line in crontab, but it would just ...
1
vote
1
answer
160
views
Shutdown dialog only appears after about 30 seconds in GNOME while using Caffeine extension
When I want to shutdown my PC I click the top right corner and then press the power button after which a dialog pops up with the options: power off, restart, cancel.
Normally this pop up shows up ...
67
votes
9
answers
21k
views
4 clicks to shut down Ubuntu - can we reduce this?
Ubuntu 20.04 has decided we need 4 clicks to shut down:
Click top right of screen arrow-down
Expand "power off/logout" panel
Click "Power off"
Confirm you want to power off by choosing power off vs ...