You are not logged in.

#1 2016-10-23 02:57:19

hella_fella
Member
Registered: 2016-10-23
Posts: 5

[SOLVED] Freeze when shutting down

Hello everybody!

Long story short: my Arch Linux installation was working well for the past weeks and I had no problem powering off the PC, but today out of the blue it started freezing when shutting down. No problems when rebooting instead of shutting down.

Those are the last two messages I get before it stucks, no errors at all before (I don't know how to get the full log):

[  OK  ] Reached target Shutdown.
[ xxxx.yyyy] reboot: Power down 

I tried searching on Google and here on bbs but I found nothing useful.
Thank you in advance for your help!

Some more infos:
uname -a

Linux workpc 4.8.3-1-ARCH #1 SMP PREEMPT Thu Oct 20 19:53:59 CEST 2016 x86_64 GNU/Linux

cat /boot/loader/entries/arch.conf (Don't know if useful):

title		Arch Linux
linux		/vmlinuz-linux
initrd		/intel-ucode.img
initrd		/initramfs-linux.img
options		root=PARTUUID=********-****-****-****-*********** rw

EDIT:

I switched to the LTS kernel and now it works, are there any ways to make the system works with the latest kernel?
uname -a

Linux workpc 4.4.27-1-lts #1 SMP Sat Oct 22 17:17:59 CEST 2016 x86_64 GNU/Linux

EDIT2:

Again not working sad

EDIT3:

Same issue even from Live and after a clean install

EDIT4:

Finally solved!
It was related to this bug.

Fixed with this script:

cat /usr/local/bin/shutdown-fix

#!/bin/sh
sync
/usr/bin/systemctl --force poweroff

added in

cat /usr/lib/systemd/system/systemd-poweroff.service

#  This file is part of systemd.
#
#  systemd is free software; you can redistribute it and/or modify it
#  under the terms of the GNU Lesser General Public License as published by
#  the Free Software Foundation; either version 2.1 of the License, or
#  (at your option) any later version.

#HOTFIX 27st October 2016
#added sync before shutdown

[Unit]
Description=Power-Off
Documentation=man:systemd-halt.service(8)
DefaultDependencies=no
Requires=shutdown.target umount.target final.target
After=shutdown.target umount.target final.target

[Service]
Type=oneshot
ExecStart=/usr/local/bin/shutdown-fix

Last edited by hella_fella (2016-10-27 04:30:37)

Offline

#2 2016-10-23 04:22:09

borix134
Member
From: Kansas
Registered: 2016-10-15
Posts: 9

Re: [SOLVED] Freeze when shutting down

Do you have watchdog installed?
That could fix the issue.


Are you the police?
No mam, we're musicians.

Offline

#3 2016-10-23 04:29:33

hella_fella
Member
Registered: 2016-10-23
Posts: 5

Re: [SOLVED] Freeze when shutting down

borix134 wrote:

Do you have watchdog installed?
That could fix the issue.

I just installed and enabled it, nothing changes sad
Still stuck at that message on shutdown... Also the dash stops blinking.

Offline

#4 2016-10-23 06:32:14

alex.theoto
Member
From: Athens Greece
Registered: 2014-11-30
Posts: 307

Re: [SOLVED] Freeze when shutting down

5-6 years ago, on some strange computers, I used

acpi=off

at startup but I don't remember if it was the off option.

Offline

#5 2016-10-23 06:37:58

hella_fella
Member
Registered: 2016-10-23
Posts: 5

Re: [SOLVED] Freeze when shutting down

alex.theoto wrote:

5-6 years ago, on some strange computers, I used

acpi=off

at startup but I don't remember if it was the off option.

Ahem... This one freezes the PC even before boot really starts. Now I have to boot from USB and remove that part otherwise my laptop doesn't start AHAHAH

Offline

#6 2016-10-23 07:58:18

seth
Member
Registered: 2012-09-03
Posts: 24,097

Re: [SOLVED] Freeze when shutting down

You can edit kernel parameters in grub...

About "out of the blue":
any "new" external devices (mouse, keyboard, usb keys, disc in optical drive ...)
did you update packages before this happened?

Offline

#7 2016-10-23 14:57:05

hella_fella
Member
Registered: 2016-10-23
Posts: 5

Re: [SOLVED] Freeze when shutting down

seth wrote:

You can edit kernel parameters in grub...

About "out of the blue":
any "new" external devices (mouse, keyboard, usb keys, disc in optical drive ...)
did you update packages before this happened?

I use Systemd-boot as bootloader. Can't even access to any menu, it just freezes on boot. Anyway, no new devices  added or updates done sad

Offline

#8 2016-10-26 23:54:35

hella_fella
Member
Registered: 2016-10-23
Posts: 5

Re: [SOLVED] Freeze when shutting down

Solved. View first post.

Last edited by hella_fella (2016-10-27 04:30:58)

Offline

Board footer

Powered by FluxBB