topic title: Can't Shutdown Laptop?
-
Posts: 46
- Joined: 08 Mar 2014
#1
Can someone help me please. I have been running antiX 13.2 for a while now without any problems what-so-ever. But i now find that i cannot shut down the laptop by going to the Menu -> Logout - > Shutdown. If i follow the path just mentioned the laptop will restart almost immediately. The only way i can shut down the laptop is by holding down the Power button. I have even tried opening a terminal signing in as root and then typing"Poweroff" which didn't help at all. Any help or advice is really appreciated. Thanks
-
Posts: 850
- Joined: 26 Jul 2012
#2
Poweroff as root from a terminal usually works, so I'm thinking maybe a bit of corruption somewhere. Have you checked the filesystem lately(?).
Does 'shutdown -h' still work?
Edit: Although deprecated, also try shutdown -n.
Does 'shutdown -h' still work?
Edit: Although deprecated, also try shutdown -n.
-
Posts: 46
- Joined: 08 Mar 2014
#3
have tried as"root" shutdown -h also shutdown -n but neither work?
-
Posts: 4,164
- Joined: 20 Feb 2009
#4
solved-computer-can-t-shut-down-any-more-t5197.html?mobile=desktop
Sounds like a systemd upgrade to me.
Sounds like a systemd upgrade to me.
-
Posts: 46
- Joined: 08 Mar 2014
#5
I have opened a terminal and typed: cd /usr/local/bin and i then typed: cat exitantix.sh and the contents of the file is displayed on the screen. But how do i open the file to edit it please
-
anticapitalista
Posts: 5,955
- Site Admin
- Joined: 11 Sep 2007
#6
Are you using the Debian testing repo or stable?
Open a terminal, type su, then rox.
In rox go to /usr/local/bin, right click on exitantix.sh and chooses open as text.
Open a terminal, type su, then rox.
In rox go to /usr/local/bin, right click on exitantix.sh and chooses open as text.
-
Posts: 46
- Joined: 08 Mar 2014
#7
Hello anticapitalista
I opened a terminal signed in as root and then typed rox. I then went to /usr/local/bin right-clicked on exitantix.sh and selected open as text. I then changed both instances of halt to poweroff and then clicked on save. But the laptop is still booting up when i try to close it down. What am i doing wrong?
if ["$EXIT" ="shutdown_antix" ] ; then
if which persist-config &> /dev/null; then
sudo persist-config --shutdown --command halt
else
sudo halt
fi
fi
I opened a terminal signed in as root and then typed rox. I then went to /usr/local/bin right-clicked on exitantix.sh and selected open as text. I then changed both instances of halt to poweroff and then clicked on save. But the laptop is still booting up when i try to close it down. What am i doing wrong?
if ["$EXIT" ="shutdown_antix" ] ; then
if which persist-config &> /dev/null; then
sudo persist-config --shutdown --command halt
else
sudo halt
fi
fi
-
Posts: 4,164
- Joined: 20 Feb 2009
#8
As a experiment
su to root in terminal again.
hit enter. Does the laptop power down all the way then?
su to root in terminal again.
Code: Select all
systemctl poweroff
-
anticapitalista
Posts: 5,955
- Site Admin
- Joined: 11 Sep 2007
#9
You didn't answer the question.
Are you using the Debian testing repo or stable?
If you are using testing or sid, then systemd has taken over and the shutdown command is different. Try what rock suggests.
Are you using the Debian testing repo or stable?
If you are using testing or sid, then systemd has taken over and the shutdown command is different. Try what rock suggests.
-
Posts: 46
- Joined: 08 Mar 2014
#10
I am using Debian Stable
I used su to become root in the terminal and then typed: systemtl poweroff and the output was: Failed to get D-Bus connection: No connection to service manager
I used su to become root in the terminal and then typed: systemtl poweroff and the output was: Failed to get D-Bus connection: No connection to service manager
-
anticapitalista
Posts: 5,955
- Site Admin
- Joined: 11 Sep 2007
#11
Weird!
What if you type halt in a root terminal?
What if you type halt in a root terminal?
-
anticapitalista
Posts: 5,955
- Site Admin
- Joined: 11 Sep 2007
#12
Also, post the output of cat / etc/sudoers.d/antixers (as root)
-
Posts: 46
- Joined: 08 Mar 2014
#13
When i typed: halt as root the machine just rebooted
Forbidden
You don't have permission to access/posting.php on this server
Forbidden
You don't have permission to access/posting.php on this server
-
Posts: 46
- Joined: 08 Mar 2014
#14
When i tried to send you the output of cat / etc/sudoers.d/antixers (as root) i keep getting the Forbidden message
-
anticapitalista
Posts: 5,955
- Site Admin
- Joined: 11 Sep 2007
#15
Put a space between / and etc/.