LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook
User Name
Password
Linux - Laptop and Netbook Having a problem installing or configuring Linux on your laptop? Need help running Linux on your netbook? This forum is for you. This forum is for any topics relating to Linux and either traditional laptops or netbooks (such as the Asus EEE PC, Everex CloudBook or MSI Wind).

Notices


Reply
  Search this Thread
Old 08-31-2021, 07:20 PM   #1
edantas9
LQ Newbie
 
Registered: Aug 2021
Posts: 3

Rep: Reputation: Disabled
Dell Vostro 14-5480 running Debian 11 bullseye does not shut down


My Debian bullseye (64-bit) does not shut down my Dell Vostro 14-5480. When I select "Shut Down..." from the menu, the screen freezes but the power button remains lit and fan keeps working. Only after I hold down the power button for some seconds, it actually shuts down fully... If I use the commands "poweroff" or "shutdown -h now" the same thing happens.
I have already tried to change grub (adding acpi=force or apm=poweroff), and I do not want to disable acpi (acpi=off).

The last record on the screen is
"ACPI: Preparing to enter system sleep state S5"
"reboot: Power down"

My UEFI/BIOS is updated (vA08) and my system is:
OS: Debian GNU/Linux 11 (bullseye) x86_64
Host: Vostro 14-5480 A08
Kernel: 5.10.0-8-amd64
Shell: bash 5.1.4
DE: GNOME 3.38.4
CPU: Intel i5-5200U (4) @ 2.700GHz
GPU: NVIDIA GeForce 830M
GPU: Intel HD Graphics 5500
Memory: 1891MiB / 3843MiB
Display: x11 server: X.Org 1.20.11 driver: loaded: modesetting,nvidia unloaded: fbdev,nouveau,vesa

Does anyone have an idea about how to solve this problem?
ps: I tried change from x11 to Wayland to make some tests, but I think because I am using GPU NVIDIA, the Xorg server cannot be changed.
 
Old 09-02-2021, 09:19 PM   #2
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Hi,

since I don't know what the gui is acutally doing is probably best to check if it works correctly at a lower level. So, as root (or with sudo) please try:
Code:
systemctl poweroff
Evo2.
 
Old 09-03-2021, 03:25 PM   #3
edantas9
LQ Newbie
 
Registered: Aug 2021
Posts: 3

Original Poster
Rep: Reputation: Disabled
Hello evo2,

Thanks for your suggestion. I tried today to use "sudo systemctl poweroff", but the result was the same of other commands. The screen freezes after the messages:
"ACPI: Preparing to enter system sleep state S5"
"reboot: Power down"

I suspect that the cause is something related to ACPI.

Last edited by edantas9; 09-03-2021 at 03:39 PM.
 
Old 10-10-2021, 01:47 PM   #4
edantas9
LQ Newbie
 
Registered: Aug 2021
Posts: 3

Original Poster
Rep: Reputation: Disabled
I found out the solution for this problem, and I'll post here to help anyone that is with the same. The system does not shutdown because a loaded daemon (nvidia-persistenced) prevent it. Therefore, I made a script in this pathway: /etc/rc0.d/K01shutdown. It contain these instructions:

#!/bin/bash
echo "Shutting down the computer..."
kill $(ps aux | grep nvidia-persistenced | grep -v grep | awk '{print $2}')

Next I gave permission to be executed:
sudo chmod 755 K01shutdown

After that, it is possible to shutdown normally, and the problem is solved.

Thanks to everyone for help me

Last edited by edantas9; 10-10-2021 at 02:06 PM.
 
Old 10-10-2021, 01:57 PM   #5
shruggy
Senior Member
 
Registered: Mar 2020
Posts: 3,670

Rep: Reputation: Disabled
Quote:
Originally Posted by edantas9 View Post
kill $(ps aux | grep nvidia-persistenced | grep -v grep | awk '{print $2}')
This would be easier with killall or pkill:
Code:
killall nvidia-persistenced
or
Code:
pkill nvidia-persistenced
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
shut down problem - wont shut down.. UbrInKid Linux - Newbie 4 12-10-2009 06:20 AM
Xubuntu won't shut down - black screen after trying to shut down Snickar-Lasse Ubuntu 2 11-30-2009 04:33 PM
shut down won't shut system down taoweijia Linux - General 3 03-03-2004 06:05 PM
Cirrus Logic GD 5480 Wolfie2001 Linux - Software 0 11-20-2001 09:48 AM
Cirrus 5480 problems rrue Linux - Software 0 09-19-2001 07:07 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook

All times are GMT -5. The time now is 05:02 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration