Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Debian 12 does not properly shutdown nor reboot

Linux Kernel, Network, and Services configuration.
Message
Author
corrierichioggia
Posts: 15
Joined: 2024-04-01 07:40

Debian 12 does not properly shutdown nor reboot

#1 Post by corrierichioggia »

I have installed a few days ago Debian 12 (Bookworm) in a dualboot setup together with Windows 10. However, i have an (inconsistent, usually presents when I use the OS for more than 5/10 minutes) issue: when I shutdown my pc (a Lenovo ThinkBook 15 ACL) I get greeted with the log displayed at the startup (the one with all the starting services etc.) and another line at the end, saying "The system will shutdown now!" (or reboot, depends on what I chose), and a blinking cursor, that does not allow me however to input any keys. The system at that point is pretty much useless, and the only option for me is to force shutdown with the power button. Is there a way to restore full functionality of the shutdown and reboot?

Aki
Global Moderator
Global Moderator
Posts: 3082
Joined: 2014-07-20 18:12
Location: Europe
Has thanked: 76 times
Been thanked: 418 times

Re: Debian 12 does not properly shutdown nor reboot

#2 Post by Aki »

Hello,

Your computer looks like quite new. You may try installing a newer kernel from Debian Backports.

Hope this helps.

--
[1] https://backports.debian.org/
⢀⣴⠾⠻⢶⣦⠀
⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system
⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org
⠈⠳⣄⠀

corrierichioggia
Posts: 15
Joined: 2024-04-01 07:40

Re: Debian 12 does not properly shutdown nor reboot

#3 Post by corrierichioggia »

Thank you for your help. I tried to add the backports sources and installing the linux-image-6.6.13+bpo-amd64 package (kernel 6.6.13), however the problem wasn't fixed.

User avatar
manyroads
Posts: 83
Joined: 2021-04-17 14:27
Has thanked: 1 time
Been thanked: 13 times

Re: Debian 12 does not properly shutdown nor reboot

#4 Post by manyroads »

You can try to get a better shutdown by logging out your dekstop to the lightdm screen (step 1); from the lightdm screen (step 2) execute shutdown or reboot (your preference).

I have experienced a similar problem to yours on multiple Debian and arch distros. The above procedure has made the process faster and less annoying for me.
Pax vobiscum,
Mark Rabideau- Prof Genealogist - http://many-roads.com
Linux BLOG https://eirenicon.org
spectrwm,i3wm,hlwm,bspwm,dwm
Linux User #449130

corrierichioggia
Posts: 15
Joined: 2024-04-01 07:40

Re: Debian 12 does not properly shutdown nor reboot

#5 Post by corrierichioggia »

Well, first of all, thanks for the tip. For now, it looks like that by adding the line

Code: Select all

GRUB_CMDLINE_LINUX_DEFAULT="acpi=force reboot=acpi"
to

Code: Select all

/etc/default/grub
the problem has been fixed, at least temporarily, despite the fact that there were no ACPI errors when executing

Code: Select all

sudo dmesg | grep acpi -i
. I'll post another reply if I see that the problem did not get solved. I'll keep you updated.

Aki
Global Moderator
Global Moderator
Posts: 3082
Joined: 2014-07-20 18:12
Location: Europe
Has thanked: 76 times
Been thanked: 418 times

Re: Debian 12 does not properly shutdown nor reboot

#6 Post by Aki »

corrierichioggia wrote: 2024-04-01 18:51 Well, first of all, thanks for the tip. For now, it looks like that by adding the line

Code: Select all

GRUB_CMDLINE_LINUX_DEFAULT="acpi=force reboot=acpi"
to

Code: Select all

/etc/default/grub
the problem has been fixed, at least temporarily, despite the fact that there were no ACPI errors when executing

Code: Select all

sudo dmesg | grep acpi -i
. I'll post another reply if I see that the problem did not get solved. I'll keep you updated.
Which kernel version are you using with the parameters above ?
⢀⣴⠾⠻⢶⣦⠀
⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system
⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org
⠈⠳⣄⠀

corrierichioggia
Posts: 15
Joined: 2024-04-01 07:40

Re: Debian 12 does not properly shutdown nor reboot

#7 Post by corrierichioggia »

I'm using the back ports version (6.6.13)

Aki
Global Moderator
Global Moderator
Posts: 3082
Joined: 2014-07-20 18:12
Location: Europe
Has thanked: 76 times
Been thanked: 418 times

Re: Debian 12 does not properly shutdown nor reboot

#8 Post by Aki »

corrierichioggia wrote: 2024-04-03 07:25 I'm using the back ports version (6.6.13)
Thanks. Does the same solution work with kernel 6.1.18 (default kernel for Debian Stable 12.5) ?
⢀⣴⠾⠻⢶⣦⠀
⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system
⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org
⠈⠳⣄⠀

corrierichioggia
Posts: 15
Joined: 2024-04-01 07:40

Re: Debian 12 does not properly shutdown nor reboot

#9 Post by corrierichioggia »

Hi. Sorry for being absent those days, I've had no internet access. Every now and then, the issue pops up again. I'll try to manually disconnect and then shutdown every time manually.
No, I haven't tried the stable kernel. I'll try to use it a little bit to evaluate the problem.
Last of all, I have a question: does my installed kernel version get updated "automatically" when I do apt update/upgrade like the stable one does?

Aki
Global Moderator
Global Moderator
Posts: 3082
Joined: 2014-07-20 18:12
Location: Europe
Has thanked: 76 times
Been thanked: 418 times

Re: Debian 12 does not properly shutdown nor reboot

#10 Post by Aki »

Hello,
corrierichioggia wrote: 2024-04-08 20:29 [..] Every now and then, the issue pops up again. I'll try to manually disconnect and then shutdown every time manually.
I am sorry the solution found is not effective in all cases. However, did the use of the parameters acpi=force reboot=acpi improve the situation ?
corrierichioggia wrote: 2024-04-08 20:29 does my installed kernel version get updated "automatically" when I do apt update/upgrade like the stable one does?
It will be upgraded when it is updated in the backports repository. Package upgrade for Debian Backports "[..] is done on a best effort basis by the people who track the package, usually the ones who originally did upload the package into backports. When security related bugs are fixed in Debian unstable the backporter is permitted to upload the package from directly there instead of having to wait until the fix hits testing. You can see the open issues for bullseye-backports in the security tracker (though there may be false positives too, the version compare isn't perfect yet)" [1]

--
[1] https://backports.debian.org/FAQ/
⢀⣴⠾⠻⢶⣦⠀
⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system
⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org
⠈⠳⣄⠀

corrierichioggia
Posts: 15
Joined: 2024-04-01 07:40

Re: Debian 12 does not properly shutdown nor reboot

#11 Post by corrierichioggia »

Yes, the situation has improved. I'll have to keep shutting down by disconnecting first, if I want to eliminate the situation.
Do you think the fact that I'm running a dual boot with windows influences something?

Aki
Global Moderator
Global Moderator
Posts: 3082
Joined: 2014-07-20 18:12
Location: Europe
Has thanked: 76 times
Been thanked: 418 times

Re: Debian 12 does not properly shutdown nor reboot

#12 Post by Aki »

Hello,
corrierichioggia wrote: 2024-04-10 06:11 Yes, the situation has improved. I'll have to keep shutting down by disconnecting first, if I want to eliminate the situation.
If disconnecting from the network (wired ? wireless ?) solves the problem, the problem is with the network interface (probably with its power management).
corrierichioggia wrote: 2024-04-10 06:11 Do you think the fact that I'm running a dual boot with windows influences something?
It has been reported that devices (i.e. network devices) in Debian GNU/Linux may be in an inconsistent state if Windows is not completely shut down (in dual boot configurations).

Therefore, the "fast boot" feature in Windows must be disabled if you are dual-booting with other operating systems (i.e.: Debian GNU/Linux).

I suppose you already know this, but it might be helpful for others to remember that you don't have to boot Debian GNU/Linux if Windows is suspended or hibernated.
⢀⣴⠾⠻⢶⣦⠀
⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system
⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org
⠈⠳⣄⠀

corrierichioggia
Posts: 15
Joined: 2024-04-01 07:40

Re: Debian 12 does not properly shutdown nor reboot

#13 Post by corrierichioggia »

Sorry, by disconnecting I meant "logging out" (I'm used to saying disconnect because windows says it like that in my language).
The fast-boot is already disabled. If not, the PC wouldn't even prompt the grub screen and directly dump me into windows.

Aki
Global Moderator
Global Moderator
Posts: 3082
Joined: 2014-07-20 18:12
Location: Europe
Has thanked: 76 times
Been thanked: 418 times

Re: Debian 12 does not properly shutdown nor reboot

#14 Post by Aki »

Hello,
corrierichioggia wrote: 2024-04-11 05:22 by disconnecting I meant "logging out" (I'm used to saying disconnect because windows says it like that in my language).
That's interesting. A problem with the graphics adapter kernel module might cause this.
⢀⣴⠾⠻⢶⣦⠀
⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system
⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org
⠈⠳⣄⠀

corrierichioggia
Posts: 15
Joined: 2024-04-01 07:40

Re: Debian 12 does not properly shutdown nor reboot

#15 Post by corrierichioggia »

Is there a way to check?

Aki
Global Moderator
Global Moderator
Posts: 3082
Joined: 2014-07-20 18:12
Location: Europe
Has thanked: 76 times
Been thanked: 418 times

Re: Debian 12 does not properly shutdown nor reboot

#16 Post by Aki »

corrierichioggia wrote: 2024-04-11 11:18 Is there a way to check?
You can boot into multi-user.target (instead of graphical.target) passing the following parameter to the kernel using the grub boot loader:

Code: Select all

systemd.unit=multi-user.target

You can then log into the text console and shut down the computer as root with the following command

Code: Select all

shutdown -h now
Then check that the computer shuts down correctly.
⢀⣴⠾⠻⢶⣦⠀
⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system
⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org
⠈⠳⣄⠀

corrierichioggia
Posts: 15
Joined: 2024-04-01 07:40

Re: Debian 12 does not properly shutdown nor reboot

#17 Post by corrierichioggia »

Pardon my ignorance, but could you please explain what the commands you told me do?

Aki
Global Moderator
Global Moderator
Posts: 3082
Joined: 2014-07-20 18:12
Location: Europe
Has thanked: 76 times
Been thanked: 418 times

Re: Debian 12 does not properly shutdown nor reboot

#18 Post by Aki »

⢀⣴⠾⠻⢶⣦⠀
⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system
⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org
⠈⠳⣄⠀

corrierichioggia
Posts: 15
Joined: 2024-04-01 07:40

Re: Debian 12 does not properly shutdown nor reboot

#19 Post by corrierichioggia »

Thank you. I did what suggested and the computer appears to be shutting down correctly. So, does this mean the problem is most likely withing the kernel graphics adapter module? If so, is there a way to fix the problem or at least mitigate it?

User avatar
nooblinx
Posts: 36
Joined: 2023-02-03 20:43
Has thanked: 1 time
Been thanked: 1 time

Re: Debian 12 does not properly shutdown nor reboot

#20 Post by nooblinx »


Post Reply