shutdown

Is it possible to cancel GNOME's power off end session dialog using DBUS?

Is it possible to cancel GNOME's power off end session dialog using DBUS? The object org.gnome.SessionManager.EndSessionDialog has a Close method which does actually close the dialog. However, the background timer will keep ticking and after 60 seconds (GNOME 42) it will power off the machine. Ultimately what I want to achieve is a way to …

Total answers: 1

Shutdown command vs cron jobs

Shutdown command vs cron jobs I have a number of computers and each computer is starting cron jobs left and right. Those are both server computers and desktop computers. On desktop computers it would be inconvenient if a user would shutdown the computer while a cron job is running. I am thinking of mv-ing the …

Total answers: 1

Scheduled a computer to reboot everyday at 7AM, not sure if I did it correctly

Scheduled a computer to reboot everyday at 7AM, not sure if I did it correctly Running Ubuntu 20.04, I have computers that I want to reboot everyday at 7AM. I followed these instructions, and I thought it was working, but now when I use the uptime command, it will often report longer than 24 hours, …

Total answers: 1

Can't shutdown Linux guest OS with `at` command

Can't shutdown Linux guest OS with `at` command Here are three examples of what I did inside the terminal (the third one has sudo): at now + 5 minutes (interactively:) at> shutdown –poweroff now echo "sbin/shutdown -h now" | at 14:50 echo "/sbin/shutdown -h 16:22" | at now In every case, I can verify the …

Total answers: 1

File removal on power off

File removal on power off I’m using Ubuntu 22.04LTS. I would like to create a folder "temp" where during my session I save the files that are, as the name suggest, temporary. How can I define a scritp that at shutdown automatically deletes the contents of this folder? Ex: I download few documents that I …

Total answers: 3

HP pavilion 14 laptop running ubuntu 22.04 restarts everytime I shut it down

HP pavilion 14 laptop running ubuntu 22.04 restarts everytime I shut it down Almost all similar answers like like this one say to disbale Wake on LAN option in the BIOS, but I went through all the options in the BIOS and didn’t find any similar at all. I even disabled secure boot, but it …

Total answers: 1

After Upgrade ubuntu 23.04 to 23.10 and my pc not completely poweroff

After Upgrade ubuntu 23.04 to 23.10 and my pc not completely poweroff After I received ubuntu Upgrade to Ububntu 23.10 and alot of problems happened. I fixed most of them and the last problem is that when I poweroff my PC it never powers off. the screen and the keyboard and closed but the PC …

Total answers: 1

Shut down actions order: write buffers after RO root remount

Shut down actions order: write buffers after RO root remount Exploring amazing Book How Linux Works by Brian Ward I usually have no question. But this one. At the "6.7.0 Shutting Down Your System" there is an ordered list of jobs. After remount root file system in ReadOnly mode (6) write buffered data by the …

Total answers: 2

Laptop shuts down when headphones jack plugs in

Laptop shuts down when headphones jack plugs in My Acer Extensa 2520G with Ubuntu 22.04 turns off on plugging headphones jack I’ve tryed both this solutions and it’s not helps in my case My system hasn’t TLP so i’ve install it and add to empty file /etc/default/tlp SOUND_POWER_SAVE_ON_BAT=0 My system has /usr/lib/pm-utils/power.d folder but hasn’t …

Total answers: 1

Ubuntu 22.04.3 LTS won't power off or restart

Ubuntu 22.04.3 LTS won't power off or restart i am having problems with shutting down Ubuntu. My device is set on dual boot. I don’t have this problem with Windows 11. My device is an lenovo ideapad gaming 3 with ryzen5 5600H and Nvidia geforce rtx 3050. enter image description here Asked By: Mostafa Wael …

Total answers: 1

Ubuntu does not completely power off

Ubuntu does not completely power off When i try to power off, the computer cannot be powered of completely. The screen is still on. The screen looks like this: When i press ESC nothing happens. I tried to shutdown by terminal but the problem is still same. Ubuntu Version : 22.04.3 Laptop : Asus Rog …

Total answers: 1

Kubuntu not shutting down

Kubuntu not shutting down I just built a workstation that is running Kubuntu 23.10 (Kubuntu is basically Ubuntu + KDE Plasma desktop) with the 6.5.0-14-generic kernel. Specs: ASUS Pro WS WRX80e-sage SE Wifi ii motherboard; Threadripper Pro 5955WX, Nvidia RTX A6000 Ada GPU. Neither power-off nor sleep works; nor does shutdown -P now. The screen …

Total answers: 2

Are there commands for execute XFCE's menu entries to reboot or power off/shut down?

Are there commands for execute XFCE's menu entries to reboot or power off/shut down? There is Herunterfahren(DE)/Shut Down and Neustarten (DE)/Reboot: Is it possible to execute these GUI entries from the command line? If so, what exactly are the commands? I already checked XFCE’s docs page for the power manager, but as far as I …

Total answers: 1

display a dialog box before shutting down

display a dialog box before shutting down When you shut down you get the "Are you sure…" dialog. Occasionally I want to send myself a reminder e.g. to run an overnight job instead of shutting down. Then I’d need to display another dialog box – before or beside the "are you sure" one. (or any …

Total answers: 2

UBUNTU shutdown prevent : kvm exiting hardware virtualization

UBUNTU shutdown prevent : kvm exiting hardware virtualization i hope you are doing well. this problem has been quite a while but i have been researching a lot and i don’t know what else to do. Ubuntu doesn’t shutdown but keeps getting stopped at message: kvm exiting hardware virtualization. These are the specifications: Laptop: hp …

Total answers: 2

Restart and Shutdown Icon on Desktop or Favourites in Ubuntu 22.04

Restart and Shutdown Icon on Desktop or Favourites in Ubuntu 22.04 I would like to check if there is possibility to put Shutdown and Restart icons to Favourites and on Desktop in Ubuntu. When I search in available applications there are black icons Restart and Shutdown. All nice, when I click on those it shows …

Total answers: 1

Ubuntu is not shutting down

Ubuntu is not shutting down I added a WebDAV folder to /etc/fstab https://my.owncloud.de/remote.php/dav/files/matt/ /home/matt/Owncloud davfs user,rw,auto 0 0 but when it’s mounted then Ubuntu doesn’t shut down. See more details in the attached image. Asked By: Matthias S. || Source Create a custom script for unmount nano /home/matt/Scripts/umountCloud.sh Add unmount command umount /home/matt/Owncloud Make it …

Total answers: 1

Shutdown freezes on Ubuntu logo

Shutdown freezes on Ubuntu logo Since two days ago the shutdown of my laptop doesn’t work anymore. It freezes on the last screen that shows the Ubuntu logo and then my laptop starts working really hard, gets hot and the cooler is going crazy. I pressed F1 to see what’s happening in the background, but …

Total answers: 2