Posts: 47
vinoman
Joined: 15 Aug 2009
#1
I'm running antiX 8.5 and when I go to shutdown it ends at a login prompt instead of shutting down. How do correct this ?
Posts: 516
oldhoghead
Site Admin
Joined: 01 Oct 2007
#2
Can you run in terminal
inxi -F

and paste results so we can see your hardware,etc.

cheers,
ohh
vinoman
Posts: 47
vinoman
Joined: 15 Aug 2009
#3
davek@antiX1:~$ inxi -F
System: Host antiX1 Kernel 2.6.32-1-mepis-smp i686 (32 bit) Distro antiX-M8.5 Marek Edelman 09 April 2010
CPU: Dual core AMD Athlon 64 X2 4600+ (SMP) cache 1024 KB flags (lm nx sse sse2 sse3 svm) bmips 9646.82
Clock Speeds: (1) 2410.759 MHz (2) 2410.759 MHz
Graphics: Card nVidia C61 [GeForce 6150SE nForce 430] X.Org 1.7.7 Res: 1280x1024@60.0hz
GLX Renderer Software Rasterizer GLX Version 2.1 Mesa 7.7.1 Direct Rendering Yes
Audio: Card nVidia MCP61 High Definition Audio driver HDA Intel BusID: 00:05.0
Sound: Advanced Linux Sound Architecture Version 1.0.21
Network: Card nVidia MCP61 Ethernet driver forcedeth at port e480 BusID: 00:07.0
Disks: HDD Total Size: 250.1GB (1.7% used) 1: /dev/sda WDC_WD2500AAJS 250.1GB
Partition: ID:/ size: 228G used: 3.9G (2%) fs: ext3 ID:swap-1 size: 2.17GB used: 0.00GB (0%) fs: swap
Sensors: System Temperatures: cpu: 34.0C mobo: 26.0C
Fan Speeds (in rpm): cpu: 919 sys-1: 2402
Info: Processes 91 Uptime 5 min Memory 107.1/1897.7MB Runlevel 5 Client Shell inxi 1.4.8
davek@antiX1:~$
Posts: 4,164
rokytnji
Joined: 20 Feb 2009
#4
Just curious vinoman. Does it shut down as root user in terminal with the command

Code: Select all

shutdown -h now
Posts: 4,164
rokytnji
Joined: 20 Feb 2009
#5
Searched for a post by secipolla while you checked.
secipolla

Joined: Sun Jun 15, 2008 7:56 am
Posts: 1050
Location: São Paulo / Brazil

Edit post Reply with quote
New post Re: new user can't reboot or shut down
You have to set in ~/.icewm/preferences

ShutdownCommand="sudo halt"
RebootCommand="sudo reboot"
From thread


========= SCRAPER REMOVED AN EMBEDDED LINK HERE ===========
url was:"antix.freeforu ms.org/post16537.html?hilit=%20shutdown#p16537"
linktext was:"antix.freeforu ms.org/post16537.h ... own#p16537"
====================================
Posts: 47
vinoman
Joined: 15 Aug 2009
#6
rokytnji wrote:Searched for a post by secipolla while you checked.
secipolla

Joined: Sun Jun 15, 2008 7:56 am
Posts: 1050
Location: São Paulo / Brazil

Edit post Reply with quote
New post Re: new user can't reboot or shut down
You have to set in ~/.icewm/preferences

ShutdownCommand="sudo halt"
RebootCommand="sudo reboot"
From thread


========= SCRAPER REMOVED AN EMBEDDED LINK HERE ===========
url was:"antix.freeforu ms.org/post16537.html?hilit=%20shutdown#p16537"
linktext was:"antix.freeforu ms.org/post16537.h ... own#p16537"
====================================
the preferences are as you have them above:
ShutdownCommand="sudo halt"
RebootCommand="sudo reboot"

and # shutdown -h now
does not shut down. I get the welcome and antiX login:
and I can't type anything.

last spring I installed antiX 8.5 and didn't have this problem, maybe its the updates. who knows??
Posts: 4,164
rokytnji
Joined: 20 Feb 2009
#7
and # shutdown -h now
does not shut down. I get the welcome and antiX login:
and I can't type anything.
That is weird? That command works on all my distros. Does shutdown work in fluxbox?

what does as root in terminal

Code: Select all

shutdown -r now
give you also. It should reboot I think. Also. Do you have"acpi" and"acpi-tools" installed in synaptic. Maybe a upgrade removed them maybe. If"apm" is installed instead. Then acpi and acpi-tools should not be needed.

Edit: Just to test. I just rebooted with the

Code: Select all

shutdown -r now
command on my Asus 900 running 8.5 and no problems. At one time a while back. I had problems with shutting down and rebooting after a upgrade including logging out via the gui shutdown window (stop button etc...) I was able to shutdown though using the Menu>Logout>Shutdown option. Later either another upgrade or something fixed it automagically.


========= SCRAPER REMOVED AN EMBEDDED LINK HERE ===========
url was:"antix.freeforu ms.org/viewtopic.php?f=40&t=2672"
linktext was:"antix.freeforu ms.org/viewtopic.php?f=40&t=2672"
====================================


and I thought I was the only one experiencing this also. __{{emoticon}}__
Posts: 516
oldhoghead
Site Admin
Joined: 01 Oct 2007
#8
You might try to install the liquorix kernel via smxi and see how it handles the shutdown issue,

cheers,
ohh
Posts: 3
songzi
Joined: 15 Dec 2010
#9
I also encountered this problem. I installed antiX 8.5 onto an 8GB SD card on my EEE PC 900. After a full post-installation system update (using synaptics), I could not shutdown/logout from the Menu. Now I can only shutdown the EEE PC by issuing"sudo shutdown -h now" in a terminal.
Posts: 1,228
secipolla
Joined: 15 Jun 2008
#10
Try these commands in ~/.icewm/preferences

Code: Select all

#  Command to shutdown the system
ShutdownCommand="dbus-send --system --print-reply --dest=\"org.freedesktop.ConsoleKit\" /org/freedesktop/ConsoleKit/Manager org.freedesktop.ConsoleKit.Manager.Stop"

#  Command to reboot the system
RebootCommand="dbus-send --system --print-reply --dest=\"org.freedesktop.ConsoleKit\" /org/freedesktop/ConsoleKit/Manager org.freedesktop.ConsoleKit.Manager.Restart"
Restart icewm for them to take effect.
Posts: 609
dark-D
Joined: 02 Jun 2008
#11
from the top of my mind maybe you have the halevt bug.
halevt causes a very slow reboot/halt. Fix: Comment out halevt & from ~/.fluxbox/startup and ~/.icewm/startup files.
when i had halevt enabled the system will drop in to tty1 and not shutdown for a minute or two. HTH.
Posts: 903
plvera
Joined: 11 Oct 2008
#12
Ice,
This is a great suggestion since I've noticed that my 8.5 systems take a LONG time to shutdown. Maybe a minute or more (at first I also thought it was not shutting down and I would just kill it out of impatience). I'll try to comment out the halevt stuff and see if it improves.
thanks.
Pedro
Posts: 3
songzi
Joined: 15 Dec 2010
#13
Secipolla's suggestion works for me. Many thanks!
But the Quit button on the Icewm menubar still doesn't do the work. Seem that something is wrong with the exitantix.sh file.
anticapitalista
Posts: 5,955
Site Admin
Joined: 11 Sep 2007
#14
Did you upgrade the /etc/sudoers file?
Post its content here.
Posts: 3
songzi
Joined: 15 Dec 2010
#15
the /etc/sudoers file is as follows:

Code: Select all

# sudoers file.
#
# This file MUST be edited with the"visudo" command as root.
#
# See the man page for details on how to write a sudoers file.
#

# Host alias specification

# User alias specification

# Cmnd alias specification

# User privilege specification
root    ALL=(ALL) ALL
 
%users ALL=(root) NOPASSWD: /sbin/halt 

%users ALL=(root) NOPASSWD: /sbin/reboot 

%users ALL= /usr/sbin/pppoeconf  

##%users ALL=(root) NOPASSWD: /usr/bin/rox

songzi    ALL=(ALL) ALL