Questions tagged [shutdown]

For questions regarding shutting down and powering off.

Filter by
Sorted by
Tagged with
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 ...
Tiris's user avatar
  • 129
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 ...
Zignd's user avatar
  • 10.8k
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 ...
Alex's user avatar
  • 201
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 ...
Binarus's user avatar
  • 810
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 ...
Smeterlink's user avatar
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
Joel Robert's user avatar
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 ...
Raja G's user avatar
  • 102k
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 ...
user2520938's user avatar
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-...
aysum's user avatar
  • 61
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. ...
neildeadman's user avatar
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 (...
SDsolar's user avatar
  • 3,169
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 ...
thebeancounter's user avatar
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?
sigdelsanjog's user avatar
  • 7,110
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?
vrcmr's user avatar
  • 6,307
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 ...
MrAxlee's user avatar
  • 507
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)
kernel_panic's user avatar
  • 11.7k
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 ...
user159896's user avatar
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, ...
juanefren's user avatar
  • 355
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 ...
edencorbin's user avatar
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 ...
Sudheer's user avatar
  • 5,113
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 ...
Enlico's user avatar
  • 272
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 ...
Takkat's user avatar
  • 142k
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: ...
jenls's user avatar
  • 151
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 ...
Christoph's user avatar
  • 3,108
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.
719016's user avatar
  • 6,207
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:
Isaiah's user avatar
  • 59.3k
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 ...
Rich's user avatar
  • 753
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 ...
Manuel's user avatar
  • 938
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/...
Amir A's user avatar
  • 91
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 ...
Angorano's user avatar
  • 145
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 ...
Andy's user avatar
  • 616
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 ...
Nuwan Thisara's user avatar
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 ) ...
Tamim Addari's user avatar
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 ...
Renê Barbosa's user avatar
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 (...
Gonzalo Medina's user avatar
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?
waterloo2005's user avatar
  • 2,037
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 ...
Calmarius's user avatar
  • 908
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 ...
Khurshid Alam's user avatar
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?
seeker's user avatar
  • 420
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 ...
Gully.Moy's user avatar
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 ...
user avatar
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 ...
NFS Most Wanted's user avatar
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 ...
Wise's user avatar
  • 153
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="...
marijn's user avatar
  • 23
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 ...
Dante's user avatar
  • 2,329
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 "...
gabrielfin's user avatar
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 ...
ABC123's user avatar
  • 21
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 ...
mike_03's user avatar
  • 11
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 ...
Tristan's user avatar
  • 165
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 ...
Marc's user avatar
  • 803

1
2
3 4 5
8