You are not logged in.
Hello. I have small problem. When I have connected power cable in my laptop everything is all right, but when I disconnect power cable I have black screen. The only way is ctrl+alt+backspace (restart xorg). When I dosconnect power cable from my laptop and start my laptop everything is all right while I connected power cable. Again I have black screen. I don't know why. Any suggestions?
Offline
Can you post your acpi handler script, or the battery action script?
urxvtc / wmii / zsh / configs / onebluecat.net
Arch will not hold your hand
Offline
Where I can find it?:). I have only in /etc/acpi/ati-powermode.sh
#!/bin/bash
#
# Control script for ACPI lid state and AC adapter state
#
getXuser() {
user=`finger| grep -m1 ":$displaynum " | awk '{print $1}'`
if [ x"$user" = x"" ]; then
user=`finger| grep -m1 ":$displaynum" | awk '{print $1}'`
fi
if [ x"$user" != x"" ]; then
userhome=`getent passwd $user | cut -d: -f6`
export XAUTHORITY=$userhome/.Xauthority
else
export XAUTHORITY=""
fi
}
grep -q closed /proc/acpi/button/lid/*/state
if [ $? = 0 ]; then
lid_closed=1
echo "Lid Closed"
else
lid_closed=0
echo "Lid Open"
fi
grep -q off-line /proc/acpi/ac_adapter/*/state
if [ $? = 0 ]; then
echo "On DC"
on_dc=1
else
echo "On AC"
on_dc=0
fi
#Find the right XServer to be configured.
for x in /tmp/.X11-unix/*; do
displaynum=`echo $x | sed s#/tmp/.X11-unix/X##`
getXuser;
if [ x"$XAUTHORITY" != x"" ]; then
export DISPLAY=":$displaynum"
fi
done
#If PPLIB is enabled
su $user -c '/usr/bin/aticonfig --pplib-cmd="get version"' | grep PPLIB
if [ $? = 0 ]; then
echo "Has PPLIB"
has_pplib=1
else
echo "No PPLIB"
has_pplib=0
fi
if [ ${lid_closed} -eq 1 -o ${on_dc} -eq 1 ]; then
echo "Low power"
if [ ${has_pplib} -eq 1 ]; then
su $user -c '/usr/bin/aticonfig --pplib-cmd="notify psrc dc"'
else
su $user -c "/usr/bin/aticonfig --set-powerstate=1 --effective=now"
fi
else
echo "high power"
if [ ${has_pplib} -eq 1 ]; then
su $user -c '/usr/bin/aticonfig --pplib-cmd="notify psrc ac"'
else
su $user -c "/usr/bin/aticonfig --set-powerstate=3 --effective=now"
fi
fi
Last edited by godzio89 (2009-03-18 14:49:44)
Offline
I get this problem too, ever since running a -Syu a few days ago. Same config file, and I assume there's some problem with the arguments at the bottom of ati-powermode.sh, but havent figured it out yet.
No need to restart X, C-Alt-F8 C-Alt-F7 to switch between x-sessions works, though I can't say I know why.
Offline
Maybe next update the problem will be solved....I hope..;]
Offline