But i would like to say a great big thank you for all the help and advice you've so generously given. Cheers mate!
Now that is what I am talking about.
__{{emoticon}}__
I booted up my old IBM T23 that won't shut down either.
EDIT: wrong. See posts further down. Sorry for the confusion.
My repos
Code: Select all
inxi -r
Repos: Active apt sources in file: / etc/apt/sources.list.d/antix.list
deb http://antix.daveserver.info/stable stable main
Active apt sources in file: / etc/apt/sources.list.d/debian.list
deb http://ftp.us.debian.org/debian/ wheezy main contrib non-free
deb http://security.debian.org/ wheezy/updates main contrib non-free
Active apt sources in file: / etc/apt/sources.list.d/various.list
deb http://www.duinsoft.nl/pkg debs all
My boot line (acpi cheat code by what Anti was referring to earlier). It is in /boot/grub/menu.lst
Code: Select all
timeout 5
color cyan/blue white/blue
foreground ffffff
background 0639a1
gfxmenu /boot/grub/message
### BEGIN AUTOMAGIC KERNELS LIST
## lines between the AUTOMAGIC KERNELS LIST markers will be modified
## by the debian update-grub script except for the default options below
## DO NOT UNCOMMENT THEM, Just edit them to your needs
## ## Start Default Options ##
## default kernel options
## default kernel options for automagic boot options
## If you want special options for specific kernels use kopt_x_y_z
## where x.y.z is kernel version. Minor versions can be omitted.
## e.g. kopt=root=/dev/hda1 ro
## kopt_2_6_8=root=/dev/hdc1 ro
## kopt_2_6_8_2_686=root=/dev/hdc2 ro
# kopt=root=UUID=6011bbe8-33ac-450c-a316-2a4c3d87d960 ro
# kopt_2_6=root=UUID=6011bbe8-33ac-450c-a316-2a4c3d87d960 ro nosplash quiet
## default grub root device
## e.g. groot=(hd0,0)
# groot=(hd0,0)
## should update-grub create alternative automagic boot options
## e.g. alternative=true
## alternative=false
# alternative=true
## should update-grub lock alternative automagic boot options
## e.g. lockalternative=true
## lockalternative=false
# lockalternative=false
## additional options to use with the default boot option, but not with the
## alternatives
## e.g. defoptions=vga=791 resume=/dev/hda5
# defoptions=
## should update-grub lock old automagic boot options
## e.g. lockold=false
## lockold=true
# lockold=false
## Xen hypervisor options to use with the default Xen boot option
# xenhopt=
## Xen Linux kernel options to use with the default Xen boot option
# xenkopt=console=tty0
## altoption boot targets option
## multiple altoptions lines are allowed
## e.g. altoptions=(extra menu suffix) extra boot options
## altoptions=(single-user) single
# altoptions=(init-3) 3
## controls how many kernels should be put into the menu.lst
## only counts the first occurence of a kernel, not the
## alternative kernel options
## e.g. howmany=all
## howmany=7
# howmany=all
## should update-grub create memtest86 boot option
## e.g. memtest86=true
## memtest86=false
# memtest86=true
## should update-grub adjust the value of the default booted system
## can be true or false
# updatedefaultentry=false
## should update-grub add savedefault to the default options
## can be true or false
# savedefault=false
## ## End Default Options ##
#title Debian GNU/Linux, kernel 3.14.3-dreamlinux-liquorix
#root (hd0,0)
#kernel /boot/vmlinuz-3.14.3-dreamlinux-liquorix root=UUID=6011bbe8-33ac-450c-a316-2a4c3d87d960 ro
#initrd /boot/initrd.img-3.14.3-dreamlinux-liquorix
#title Debian GNU/Linux, kernel 3.14.3-dreamlinux-liquorix (init-3)
#root (hd0,0)
#kernel /boot/vmlinuz-3.14.3-dreamlinux-liquorix root=UUID=6011bbe8-33ac-450c-a316-2a4c3d87d960 ro 3
#initrd /boot/initrd.img-3.14.3-dreamlinux-liquorix
title Debian GNU/Linux, kernel 3.11.5-antix.1-486-smp
root (hd0,0)
kernel /boot/vmlinuz-3.11.5-antix.1-486-smp root=UUID=6011bbe8-33ac-450c-a316-2a4c3d87d960 ro
initrd /boot/initrd.img-3.11.5-antix.1-486-smp
title Debian GNU/Linux, kernel 3.11.5-antix.1-486-smp (init-3)
root (hd0,0)
kernel /boot/vmlinuz-3.11.5-antix.1-486-smp root=UUID=6011bbe8-33ac-450c-a316-2a4c3d87d960 ro 3
initrd /boot/initrd.img-3.11.5-antix.1-486-smp
title Debian GNU/Linux, kernel 3.7.10-antix.3-486-smp
root (hd0,0)
kernel /boot/vmlinuz-3.7.10-antix.3-486-smp root=UUID=6011bbe8-33ac-450c-a316-2a4c3d87d960 ro
initrd /boot/initrd.img-3.7.10-antix.3-486-smp
title Debian GNU/Linux, kernel 3.7.10-antix.3-486-smp (init-3)
root (hd0,0)
kernel /boot/vmlinuz-3.7.10-antix.3-486-smp root=UUID=6011bbe8-33ac-450c-a316-2a4c3d87d960 ro 3
initrd /boot/initrd.img-3.7.10-antix.3-486-smp
title Debian GNU/Linux, kernel memtest86+
root (hd0,0)
kernel /boot/memtest86+.bin
### END DEBIAN AUTOMAGIC KERNELS LIST
To explain to dondo. The kernel line has no acpi=off or other acpi cheatcodes in it. That was what Anti was referring to.
Even though I am running wheezy. Shutdown broke on this laptop also and I mentioned it in another thread.
Problem is. My head is still stuffed up so I can't remember where my post is. Plus. I feel crappy and do not feel like looking right now.
My / ect/sudoers looks like
Code: Select all
#
# This file MUST be edited with the 'visudo' command as root.
#
# Please consider adding local content in / etc/sudoers.d/ instead of
# directly modifying this file.
#
# See the man page for details on how to write a sudoers file.
#
Defaults env_reset
Defaults mail_badpass
Defaults secure_path="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
# Host alias specification
# User alias specification
# Cmnd alias specification
# User privilege specification
root ALL=(ALL:ALL) ALL
# Allow members of group sudo to execute any command
%sudo ALL=(ALL:ALL) ALL
# See sudoers(5) for more information on"#include" directives:
#includedir / etc/sudoers.d
Sorry but i don't understand by
Edit: I see
Code:
sysctl
in sbin Anti
It is why you started this thread in the 1st place. Because I suffer the same symptoms. To show where systemctl is
Code: Select all
harry@biker:~
$ locate systemctl
/bin/systemctl
/usr/share/man/man1/systemctl.1.gz
Now here is what I get when I do a"man systemctl" in a terminal
Code: Select all
SYSTEMCTL(1) systemctl SYSTEMCTL(1)
NAME
systemctl - Control the systemd system and service manager
SYNOPSIS
systemctl [OPTIONS...] {COMMAND} [NAME...]
DESCRIPTION
systemctl may be used to introspect and control the state of the
systemd(1) system and service manager.
OPTIONS
The following options are understood:
--help, -h
Prints a short help text and exits.
--version
Prints a short version string and exits.
--type=, -t
When listing units, limit display to certain unit types. If not
specified units of all types will be shown. The argument should be
a unit type name such as service, socket and similar.
--property=, -p
Manual page systemctl(1) line 1 (press h for help or q to quit)
When showing unit/job/manager properties, limit display to certain
properties as specified as argument. If not specified all set
properties are shown. The argument should be a property name, such
as MainPID. If specified more than once all properties with the
specified names are shown.
--all, -a
When listing units, show all units, regardless of their state,
including inactive units. When showing unit/job/manager properties,
show all properties regardless whether they are set or not.
--failed
When listing units, show only failed units. Do not confuse with
--fail.
--full
Do not ellipsize unit names and truncate unit descriptions in the
output of list-units and list-jobs.
--fail
If the requested operation conflicts with a pending unfinished job,
fail the command. If this is not specified the requested operation
will replace the pending job, if necessary. Do not confuse with
--failed.
--ignore-dependencies
When enqueuing a new job ignore all its dependencies and execute it
immediately. If passed no required units of the unit passed will be
pulled in, and no ordering dependencies will be honoured. This is
mostly a debugging and rescue tool for the administrator and should
not be used by applications.
--quiet, -q
Suppress output to STDOUT in snapshot, is-active, enable and
disable.
--no-block
Do not synchronously wait for the requested operation to finish. If
this is not specified the job will be verified, enqueued and
systemctl will wait until it is completed. By passing this argument
it is only verified and enqueued.
--no-legend
Do not print a legend, i.e. the column headers and the footer with
hints.
--no-pager
Do not pipe output into a pager.
--system
Talk to the systemd system manager. (Default)
--user
Talk to the systemd manager of the calling user.
--order, --require
When used in conjunction with the dot command (see below), selects
which dependencies are shown in the dependency graph. If --order is
passed only dependencies of type After= or Before= are shown. If
--require is passed only dependencies of type Requires=,
RequiresOverridable=, Requisite=, RequisiteOverridable=, Wants= and
Conflicts= are shown. If neither is passed, shows dependencies of
all these types.
--no-wall
Don't send wall message before halt, power-off, reboot.
--global
When used with enable and disable, operate on the global user
configuration directory, thus enabling or disabling a unit file
globally for all future logins of all users.
--no-reload
When used with enable and disable, do not implicitly reload daemon
configuration after executing the changes.
--no-ask-password
When used with start and related commands, disables asking for
passwords. Background services may require input of a password or
passphrase string, for example to unlock system hard disks or
cryptographic certificates. Unless this option is specified and the
command is invoked from a terminal systemctl will query the user on
A lot of crap to digest I know. Not AntiX fault however. Systemd is in my opinion. But others
opinions may differ from mine because our scripts do no play well with systemd.
However. A biker sticks with his bros. And I am a hard core biker.
__{{emoticon}}__
Now back to business.
My exitantix.sh (which does not work either no matter what the hell I put in it because of systemd and systemctl)
Code: Select all
#!/bin/bash
# File Name: exitantiX.sh
# Purpose: exit script from fluxbox and icewm
# Authors: OU812 and minor modifications by anticapitalista
# Latest Change: 20 August 2008
# Latest Change: 02 January 2009
# Latest Change: 24 October 2011 Localisation/internationalisation added by anticapitalista/BitJam
# Latest Change: 23 September 2012 ICON function
######################################################################################################
TEXTDOMAINDIR=/usr/share/locale
TEXTDOMAIN=exitantix.sh
ICONS=/usr/share/icons/antiX-1
export LOGOUT=$(cat <<End_of_Text
<window title="`gettext $"Log Out"`" window-position="1">
<vbox>
<frame>
<hbox>
<vbox>
<hbox>
<button>
<input file>"$ICONS/lock.svg"</input>
<action>EXIT:lock_antix</action>
</button>
<text use-markup="true" width-chars="15"><label>"`gettext $"Lock Screen"`"</label></text>
</hbox>
<hbox>
<button>
<input file>"$ICONS/hibernate.svg"</input>
<action>EXIT:hibernate_antix</action>
</button>
<text use-markup="true" width-chars="15"><label>"`gettext $"Hibernate"`"</label></text>
</hbox>
<hbox>
<button>
<input file>"$ICONS/reboot.svg"</input>
<action>EXIT:reboot_antix</action>
</button>
<text use-markup="true" width-chars="15"><label>"`gettext $"Reboot"`"</label></text>
</hbox>
</vbox>
<vbox>
<hbox>
<button>
<input file>"$ICONS/logout.svg"</input>
<action>EXIT:logout_antix</action>
</button>
<text use-markup="true" width-chars="15"><label>"`gettext $"Log Out"`"</label></text>
</hbox>
<hbox>
<button>
<input file>"$ICONS/suspend.svg"</input>
<action>EXIT:suspend_antix</action>
</button>
<text use-markup="true" width-chars="15"><label>"`gettext $"Suspend"`"</label></text>
</hbox>
<hbox>
<button>
<input file>"$ICONS/shutdown.svg"</input>
<action>EXIT:shutdown_antix</action>
</button>
<text use-markup="true" width-chars="15"><label>"`gettext $"Shutdown"`"</label></text>
</hbox>
</vbox>
</hbox>
</frame>
</vbox>
</window>
End_of_Text
)
I=$IFS; IFS=""
for STATEMENTS in $(gtkdialog --program LOGOUT); do
eval $STATEMENTS
done
IFS=$I
read_id_file() {
FILE_ID=
local file=$1:${DISPLAY%.[0-9]}
local pid=$(cat $file 2>/dev/null)
test -r $file; local ret=$?
rm -f $file
if [ $ret != 0 ]; then
echo"Could not find/read file: $file"
return 1
fi
if [ -z"$pid" ]; then
echo"Empty file: $file"
return 1
fi
FILE_ID=$pid
return 0
}
kill_list() {
local cmd pid list=$1
local gdad=$(grep ^PPid: /proc/$PPID/status | cut -f2)
for pid in $list; do
cmd=$(cat /proc/$pid/comm 2>/dev/null)
case $pid in
$$|$PPID|$gdad) continue ;;
esac
["$cmd" ] && echo"kill $cmd"
kill $pid 2>/dev/null
done
}
list_group() {
local pgid=$1 save=$2
["$pgid" ] || return
for pid in $(pgrep -g $pgid); do
["$pid" ="$save" ] && continue
echo -n"$pid"
done
}
clean_logout() {
sdir=$HOME/.antix-session
read_id_file $sdir/xinitrc-pid || return 1
local wm_pid=$FILE_ID
local wm_prog=$(cat /proc/$wm_pid/comm 2>/dev/null)
local wm_pgid=$(cut -d"" -f5 /proc/$wm_pid/stat)
echo -e"\n----------------------------------------------------------------"
echo"${0##*/} ($$): clean logout from session: $wm_prog"
read_id_file $sdir/startup-pgid
local st_pgid=$FILE_ID
local list=$(list_group"$st_pgid""$wm_pid")
if [ -n"$list" -a"$st_pgid" !="$wm_pgid" ]; then
echo"Kill possible startup orphans ($st_pgid): $list"
kill_list"$list"
fi
ps x -o pid,ppid,pgid,user,cmd
list=$(list_group"$wm_pgid""$wm_pid")
if ["$list" ]; then
echo"Kill possible xinitrc orphans ($wm_pgid): $list"
kill_list"$list"
fi
list=$(echo $(pgrep -P $wm_pid | tac) $wm_pid)
if ["$list" ]; then
echo"Kill remaining processes: $list"
kill_list"$list"
fi
list=$(echo $(pgrep -P $wm_pid | tac) $wm_pid)
[ -d /proc/$wm_pid/ ] || return 0
sleep 1
[ -d /proc/$wm_pid/ ] || return 0
echo"Finally kill $wm_prog"
kill -9 $wm_pid
return 0
}
if ["$EXIT" ="lock_antix" ] ; then
xlock
fi
if ["$EXIT" ="logout_antix" ] ; then
if clean_logout >&2; then
echo"${0##*/}: exit"
echo -e"----------------------------------------------------------------\n"
exit
elif [ $USER != root -a $UID != 0 ]; then
echo"As a last resort, kill all \"$USER\" user processes" >&2
pkill -U $USER
fi
fi
if ["$EXIT" ="reboot_antix" ] ; then
if which persist-config &> /dev/null; then
sudo persist-config --shutdown --command reboot
else
sudo reboot
fi
fi
if ["$EXIT" ="hibernate_antix" ] ; then
dbus-send --system --print-reply --dest="org.freedesktop.UPower" /org/freedesktop/UPower org.freedesktop.UPower.Hibernate
fi
if ["$EXIT" ="suspend_antix" ] ; then
dbus-send --system --print-reply --dest="org.freedesktop.UPower" /org/freedesktop/UPower org.freedesktop.UPower.Suspend
fi
if ["$EXIT" ="shutdown_antix" ] ; then
if which persist-config &> /dev/null; then
sudo persist-config --shutdown --command halt
else
sudo poweroff
fi
fi
Ha.
__{{emoticon}}__ I found my thread shutdown-not-working-and-udev-renaming-t5283.html?mobile=desktop
Now back to you dondo. In my Terminal after I am done posting here on this laptop.
The"sudo systemctl poweroff" will not work in my exitantix.sh file. But if I sux to root and
issue the command at the root prompt in roxterm.
This IBM T23 will shut down then running
Code: Select all
harry@biker:~
$ inxi -Fxz
System: Host: biker Kernel: 3.11.5-antix.1-486-smp i686 (32 bit gcc: 4.8.1)
Desktop: IceWM 1.3.7 Distro: antiX-13_386-full Luddite 01 June 2013
Machine: Mobo: IBM model: 26474MU
Bios: IBM v: 1AET64WW (1.20 ) date: 10/18/2006
CPU: Single core Mobile Intel Pentium III - M (-UP-) cache: 512 KB
flags: (pae sse) bmips: 1598 clocked at 800 MHz
Graphics: Card: S3 SuperSavage IX/C SDR bus-ID: 01:00.0
Display Server: X.Org 1.12.4 drivers: savage (unloaded: fbdev,vesa)
Resolution: 1024x768@60.0hz
GLX Renderer: Gallium 0.4 on softpipe
GLX Version: 2.1 Mesa 8.0.5 Direct Rendering: Yes
Audio: Card Intel 82801CA/CAM AC'97 Audio Controller
driver: snd_intel8x0 ports: 1c00 18c0 bus-ID: 00:1f.5
Sound: ALSA v: k3.11.5-antix.1-486-smp
Network: Card-1: Intel 82801CAM (ICH3) PRO/100 VE (LOM) Ethernet Controller
driver: e100 v: 3.5.24-k2-NAPI port: 6400 bus-ID: 02:08.0
IF: eth0 state: down mac: <filter>
Card-2: Ralink RT2800 802.11n PCI
driver: rt2800pci v: 2.3.0 bus-ID: 07:00.0
IF: wlan1 state: up mac: <filter>
Drives: HDD Total Size: 80.0GB (46.3% used)
ID-1: /dev/sda model: ST980815A size: 80.0GB
Partition: ID-1: / size: 73G used: 34G (49%) fs: ext4 dev: /dev/sda1
ID-2: swap-1 size: 1.12GB used: 0.00GB (0%) fs: swap dev: /dev/sda2
Sensors: System Temperatures: cpu: 56.0C mobo: 53.0C
Fan Speeds (in rpm): cpu: N/A fan-1: 0
Info: Processes: 120 Uptime: 36 min Memory: 442.6/1007.4MB
Init: SysVinit runlevel: 5 Gcc sys: 4.7.2
Client: Shell (bash 4.2.371) inxi: 2.1.28
See. Be polite and well mannered and maybe we together will
maybe unsnag this knot yet.
Because. It took longer to edit this post because of the forum bug with etc and / than it did to figure
things out and type this post. Took me 8 tries and about 40 minutes of proof reading with sick eyes and brains.