Friday, May 3, 2024
 Popular · Latest · Hot · Upcoming
2
rated 0 times [  2] [ 0]  / answers: 1 / hits: 3179  / 2 Years ago, sun, december 5, 2021, 2:42:44

When I push the shutdown button in the shutdown dialog my notebook (Lenovo X220) does a restart instead.



I also tried running the "sudo shutdown -P now" from command line -> same result!



Before upgrading to 11.10 everything was fine.



Anybody else experiences this malfunction? Any tips to make it work again?


More From » shutdown

 Answers
2

I'm here on Xubuntu 11.10 with an x220 i5 and experienced the same issue.



Installing laptop-mode-tools (with aptitude install laptop-mode-tools --without-recommends) fixed it for me.



(found the hint via https://answers.launchpad.net/ubuntu/+source/acpi/+question/168617)



I came up with another solution that does not involve laptop-mode-tools. Maybe it works for others.
The problem seems to occur when power-management for PCI(e) devices is enabled (set to "auto").
Here are two ways to check that:




  1. run powertop, switch to the "Tunables" tab and see if your "Runtime PM for PCI*" entries are marked as "Good"

  2. cat /sys/bus/pci/devices/*/power/control and see if it outputs some "auto" values.
    "auto" causes the shutdown problems on my machine while "on" does not.



I created an init.d script to handle that (and other stuff like setting battery charge threshs and the like), available via pastebin.



Note:




  • The script runs fine on my machine. This does not mean it will run on others due to missing programs, etc.

  • The script does more than (potentially) circumventing the shutdown problem, so please read it first.

  • I am not sure that "auto" brings any benefit at all ;)



Hope it helps.


[#42765] Monday, December 6, 2021, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
curatekill

Total Points: 376
Total Questions: 117
Total Answers: 102

Location: Wales
Member since Mon, May 17, 2021
3 Years ago
curatekill questions
Fri, Sep 30, 22, 17:23, 2 Years ago
Sun, May 21, 23, 23:32, 1 Year ago
Sat, May 15, 21, 11:19, 3 Years ago
;