Linux hangs on shutdown

Linux Mint Forums

Welcome to the Linux Mint forums!

(Solved) Linux Mint 19.1 hangs at shutdown and restart

(Solved) Linux Mint 19.1 hangs at shutdown and restart

Post by lechatnoir » Sun Apr 07, 2019 1:31 am

Good morning everybody,
i’m having a hard time trying to troubleshoot my shutdown problems with Linux Mint 19.1
It just hangs at the linux mint logo, if i try to press ESC nothing happen and i have to use the shutdown button.
I have already tried to change the GRUB_CMDLINE_LINUX_DEFAULT=»quiet splash» line to GRUB_CMDLINE_LINUX_DEFAULT=»acpi=force reboot=acpi quiet splash» in the /etc/default/grub file, save it, sudo update-grub and reboot, but that did not work.
Same thing happen when i boot from the live USB.
Secure boot is disabled.
What else can i do to solve this issue?
Below is my inxi -Fxz command output.
Thanks.

System:
Host: Commander2 Kernel: 4.15.0-47-generic x86_64 bits: 64 compiler: gcc
v: 7.3.0 Desktop: Xfce 4.12.3 Distro: Linux Mint 19.1 Tessa
base: Ubuntu 18.04 bionic
Machine:
Type: Laptop Mobo: Eurocom model: Commander 2 serial:
UEFI: INSYDE v: 1.07.05TEU date: 08/14/2018
CPU:
Topology: 6-Core model: Intel Core i7-8700 bits: 64 type: MT MCP
arch: Kaby Lake rev: A L2 cache: 12.0 MiB
flags: lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx bogomips: 76608
Speed: 4517 MHz min/max: 800/4600 MHz Core speeds (MHz): 1: 4501 2: 4469
3: 4439 4: 4444 5: 4452 6: 4498 7: 4500 8: 4459 9: 4499 10: 4437 11: 4450
12: 4500
Graphics:
Device-1: Intel vendor: CLEVO/KAPOK driver: i915 v: kernel bus ID: 00:02.0
Display: x11 server: X.Org 1.19.6 driver: modesetting unloaded: fbdev,vesa
resolution: 3840×2160

60Hz
OpenGL: renderer: Mesa DRI Intel UHD Graphics 630 (Coffeelake 3×8 GT2)
v: 4.5 Mesa 18.2.8 direct render: Yes
Audio:
Device-1: Intel Cannon Lake PCH cAVS vendor: CLEVO/KAPOK
driver: snd_hda_intel v: kernel bus ID: 00:1f.3
Sound Server: ALSA v: k4.15.0-47-generic
Network:
Device-1: Intel Ethernet I219-LM vendor: CLEVO/KAPOK driver: e1000e
v: 3.2.6-k port: 4040 bus ID: 00:1f.6
IF: enp0s31f6 state: down mac:
Device-2: Intel Wireless 8265 / 8275 driver: iwlwifi v: kernel port: 4040
bus ID: 6c:00.0
IF: wlp108s0 state: up mac:
Drives:
Local Storage: total: 1.36 TiB used: 178.27 GiB (12.8%)
ID-1: /dev/nvme0n1 vendor: Samsung model: SSD 970 EVO 500GB
size: 465.76 GiB
ID-2: /dev/sda vendor: Samsung model: SSD 860 EVO 1TB size: 931.51 GiB
Partition:
ID-1: / size: 456.96 GiB used: 21.07 GiB (4.6%) fs: ext4
dev: /dev/nvme0n1p2
Sensors:
System Temperatures: cpu: 55.0 C mobo: N/A
Fan Speeds (RPM): N/A
Info:
Processes: 280 Uptime: 14m Memory: 31.11 GiB used: 1.48 GiB (4.7%)
Init: systemd runlevel: 5 Compilers: gcc: 7.3.0 Shell: bash v: 4.4.19
inxi: 3.0.27

Источник

Thread: Ubuntu 18.04 hangs on shutdown.

Thread Tools
Display

Ubuntu 18.04 hangs on shutdown.

just switched from Mint 18.3 and had the same issue. Now running 18.04 and still having issue shutting down. Restart is fine but shutdown hangs.
This is on a Alienware Aurora R6 GTX1080ti i7-1770k.

I’m not completely new to linux but not the greatest at this either.

Re: Ubuntu 18.04 hangs on shutdown.

journalct should help you find the reason

Probably an old setting left behind, try cleaning the system via ‘gtkorphan’ & ‘bleachbit’ (as root, carefully select options)

Читайте также:  Чем отличается windows 10 education от windows 10 pro

Re: Ubuntu 18.04 hangs on shutdown.

this is what i get at the end of the output. and this is a clean install. Just installed 4 days ago.

May 14 22:43:00 brandon-Alienware-Aurora-R6 systemd[1]: Starting Power-Off.
May 14 22:43:00 brandon-Alienware-Aurora-R6 systemd[1]: Shutting down.
May 14 22:43:00 brandon-Alienware-Aurora-R6 kernel: systemd-shutdow: 39 output lines suppressed due to ratelimiting
May 14 22:43:00 brandon-Alienware-Aurora-R6 systemd-shutdown[1]: Syncing filesystems and block devices.
May 14 22:43:00 brandon-Alienware-Aurora-R6 systemd-shutdown[1]: Sending SIGTERM to remaining processes.
May 14 22:43:00 brandon-Alienware-Aurora-R6 systemd-journald[323]: Journal stopped

Is there a way to see whats going wrong after that. I took a pic of the screen if that may help.

Last edited by cougar1622; May 17th, 2018 at 01:15 AM .

Источник

5 Linux Commands to Shutdown and Reboot the System

Linux shutdown / reboot command

On Linux, like all tasks, the shutdown and restart operations can also be done from the command line.

The commands are shutdown, halt, poweroff, reboot and REISUB keystrokes.

In this post I am going to show you how to shutdown or restart a linux system using these commands.

The commands are useful specially when you have to reboot a remote linux server, where only shell access is available and no gui.

Servers often need a restart when upgrades are installed or need to shutdown for other maintainance tasks.

The commands are available on any linux system like centos, ubuntu, debian, fedora or suse and do not require the installation of any extra packages.

1. «shutdown» command

The first command is the shutdown command and it can be used to shutdown a system or restart it. It is commonly used to shutdown or reboot both local and remote machines.

To shutdown a machine call the shutdown command like this

The h option is for halt which means to stop. The second parameter is the time parameter. «now» means that shutdown the system right away.

The time parameter can be specified in minutes or hours also. For example

The above command shall flash the message to all other logged in users and give them 5 minutes before the system goes for shutdown.

The shutdown command can be used to restart a system with the r option instead of the h option. Usage is same as before. Just replace the h option with r option.

All other logged in users will see a broadcast message in their terminal like this

At this point a shutdown can be cancelled by calling shutdown with «c» option.

2. «reboot» command

Next command is the reboot command. It can be used to shutdown or reboot linux.

The following command will shutdown linux.

The «p» options stands for poweroff.

To reboot linux just call the reboot command directly without any options.

This will perform a graceful shutdown and restart of the machine. This is what happens when you click restart from your menu.

Reboot linux forcibly

The following command will forcefully reboot the machine. This is similar to pressing the power button of the CPU. No shutdown takes place. The system will reset instantly.

The man page explains it as follows

3. «halt» command

The next command is the halt command. This can shutdown a system

The halt command also has a force option, but you do not want to use it. It is supposed to shutdown the system instantly. But its behaviour may not be consistent. Desktops might hang on running this command.

4. «poweroff» command

There is another command exactly same as the halt command. It does the same things and takes the same options.

5. REISUB — R E I S U B key strokes

The above shown commands can be used when you are in control of your system. What if the system has hanged and is not responding at all. And you do not want to press the power button on the CPU which might lead to data corruption. To save from such a situation, comes the magic sysRQ keys.

Читайте также:  Установка диспетчер realtek hd для windows 10

A special combination of key presses that will allow you to reboot your linux system, no matter how much it is hanged. Check the wikipedia article. for more information.

Warning : Pressing the following keys would instantly reboot your system. Its similar to pressing the power button of your CPU or executing the reboot -f command.

Now in place of the B key we have to use R E I S U letters first. Each key does a task as mentioned below

1. Hold down the Alt and SysRq (Print Screen) keys.
2. While holding those down, type the following keys in order, several seconds apart: R E I S U B
3. Computer should reboot.

Make sure to have some time gap between each of keys R E I S U B.

The sysrq feature can be controlled by changing the value of /proc/sys/kernel/sysrq. To check if sysrq is enabled on the system or not, echo the value. It should be non zero.

A Tech Enthusiast, Blogger, Linux Fan and a Software Developer. Writes about Computer hardware, Linux and Open Source software and coding in Python, Php and Javascript. He can be reached at [email protected] .

10 thoughts on “ 5 Linux Commands to Shutdown and Reboot the System ”

It worked on SUSE SLES 11

Now systemctl utility replaces a number of power management commands and even the shutdown command will call systemctl utility to perform the shutdown tasks.

The command reboot does work and immediately rebooted my Bluestar Linux system 4.20.7 (based on Arch Linux).

I am so glad that you could reboot your linux system!

If I’m not mistaken, reboot by itself actually does a shutdown: https://linux.die.net/man/8/reboot . You have to do reboot -f to actually get it to reboot.

Arrrgh so sick of finding the incorrect example of shutdown everywhere. The reboot syntax shown, on Ubuntu and probably in every flavor today, will Immediately reboot your server with no delay or warning. the +5 option is either wrong or in the wrong spot.

Important note – this only applies (AFAIKT) to x86 systems. On arm – no-worky.

what? 20 – 30 mins? O.o Shouldn’t it be 20 – 30 seconds?

I rebooted my linux machine using command reboot -f, it went down. How long does it takes normally to start again?

Its depends upon hardware and file system mounted on Linux box , If it is high end hardware and have been mounted more file system then it will 20-30 mins to come online

Источник

Не работает shutdown и презагрузка

При shutdown -h now система завершает работу, но ноут не выключается. При reboot аналогично, зависает после завершения работы системы (чёрный экран, горит подсветка).

Пробовал передавать параметр reboot ядру со значениями bios, acpi, kbd и прочее отсюда, а также acpi=noirq , никаких изменений. Также пробовал заблеклистить модули dw_dmac и dw_dmac_core , на некоторых ноутах они явллись причиной, судя по багрепортам, не помогло. Также не помогают noapic и noapic irqpoll .

Ноут Lenovo B5030, ядро 4.2.0-16-generic, x86_64.

Ubuntu 15.10 (OpenBox+CairoDock, без юнити-шмунити), systemd.

Какой дистрибутив? Какой инит? Телепаты в отпуске, пытки запрещены.

Ubuntu либо Mint же. И версии этак 15, судя по версии ядра. => upstart.

Да. Кстати, на SystemRescueCD с ядром 3.10.55-std440-i586 shutdown -h now работает.

Блин, какого черта не сказал, что systemd, сразу?

Это всё systemd!

Результат тот же.

Ещё один момент. При запуске команды выключения экран становится чёрным сразу (подсветка продолжает гореть), в левом верхнем углу моргает курсор. Идёт дисковая активность. Через несколько секунд диск выключается и курсор либо исчезает, либо перестаёт моргать. Фриз. Дальше только остаётся подержать нажатой клавишу выключения чтобы выключить ноут. Сплеш у меня выключен, по идее ведь я должен видеть логи завершения работы, остановки демонов и т.п.

Читайте также:  Эксклюзивный полный экран windows 10

Дай угадаю, ноутбук с UEFI, но ты его отключил ?

Да, система установлена в legacy.

У меня та же фигня с нетбуком. Система стоит в legacy и не работает ребут с выключением. Как решать, не знаю, правда, особо и не нужно, ноут я практически не выключаю (текущий аптайм — 19 дней). На UEFI всё норм.

А ядро чего вам говорит?

А вы попробуйте cat /dev/kmsg > kernel.log и потом вот это вот всё.

Делаю в recovery mode

Раздаётся щелчёк диска и всё, система ни на что не реагирует, но курсор продолжает моргать. Даже REISUB не работает после этого.

В созданном файле содержится только то что там появилось до выполнения команды poweroff.

Странно, конечно. Может биос перепрошить?

Чем не устроил UEFI? Большинство дистрибутивов вроде поддерживают.

Чем не устроил UEFI? Большинство дистрибутивов вроде поддерживают.

А не знаю, оно само так поставилось, других вариантов установщик не предложил. Ставил со своей мультизагрузочной флешки, возможно чтобы поставить в uefi, система с флешки сама должна была быть загружена в режиме uefi.

Кстати, на ноуте стоял FreeDOS, там перезагрузка работала.

флешки сама должна была быть загружена в режиме uefi

Да. Так и есть. Уже несколько раз ставился в UEFI режиме с 8-ми гиговой флешки. Просто лью туда гибридный iso с помощью dd и все. Если делал сам (YUMI или ещё как-то), то наверное не зведется. UEFI режим у меня отображался в Boot menu для этой флешки. Сейчас проверил, для обычной не отображается, значит материнка читает её прежде чем предложить UEFI.

У меня на флешке grub2, который запускает выбранный iso из меню.

Используй посекторное копирование iso на свободную флешку (dd) и переставь систему в режиме UEFI, если другие способы не помогут. Резервное копирование и почитать про GPT, особенно в случае дуалбута, не забудь.

Я пока не ставил, но попробовал загрузиться с флешки в режиме uefi (создал с помощью dd, /sys/firmware/efi существует), выключение с загрузочной флешки всё так же зависает.

(памятка скорее для себя)

Возможно обновление bios помогло бы, но венду надо 🙁

Может стоит попробовать убрать пакеты intel-microcode (или amd-microcode) если инсталированы — у меня было дело возник аналогичный баг на стареньком Dell сервере после upgrade системы — и именно так решился.

Не влияет. Из коробки не было, я наоборот поставил на всякий случай, может с ним исправится.

Вобщем, я обновил BIOS. Теперь у меня возникла проблема с экраном. Как только начинает грузиться система (показывается ход загрузки и запуска процессов от systemd), экран гаснет. Но система работает, я могу в слепую делать ctrl+alt+f1 и там что-то выполнять. sudo poweroff и sudo reboot похоже теперь работают нормально, ноут выключается и перезагружается. И ещё, я теперь не могу отобразить меню grub. Зажатый shift не действует почему-то.

Хм, загрузился с флешки с Live Kubuntu, там экран работал. Перезагрузился и теперь экран заработал и тут.

Видеокарта + встроенное видео? Может просто приоритет сбился?

Нет, есть только встроенная.

Такая же ерунда. Форум леновы https://forums.lenovo.com/t5/Linux-Discussion/Lenovo-B50-30-Shutdown-freeze/t. отсылает на форум убунты), а оттуда в свою очередь на багзиллу. В багзилле они похоже запутались.

На моем с версией прошивки 2.11 более менее сносно работает mint 17.2 с ядром 3.16 установленный в legacy mode. Но иногда всё равно не выключает или не перезагружает. Плюс греет сильно ноут. Если минт поставить в uefi то вообще непонятное твориться начинает, например кнопки яркости работают задом наперёд, хотя бегунок на экране в правильную сторону движеться, иногда на ровном месте может зависнуть. Пробовал debian testing ни в legacy ни в uefi поставить так и не удалось, виснет когда захочет и где захочет в процессе установки. Надо еще stable проверить. freebsd в uefi не видит корня.. в legacy непомню, но тоже есть косяки.. Вообщем леново походу слепила его, а поддерживать не хочет.

Источник

Оцените статью