You are not logged in.
Pages: 1
On another (third laptop I've put arch on) computer, the screen won't dim automatically. It's using gnome and when I unplug the power cord, the OSD comes up showing a lower value but the screen stays the same.
Offline
I guess the problem would be that it isn't giving the correct command so where would the script, or whatever manages gnome-power-manager, be so I can edit it. I already tried gconf-editor.
Offline
If you have a ATI gfx, perhaps it works also with Nvidia, it could help to unload the video module [modprobe -r video] or put it in the 'Blacklist Modules' in the rc.conf. Hope it helps
Offline
Intel X3100.
Still safe to try? I mean, I could just modprobe video if it breaks, right?
EDIT - tried it, no luck. Xbacklight -dec 10 works though. That's what I don't get.
Last edited by Reasons (2008-01-20 22:48:48)
Offline
I've got it somewhat going now using acpid. I'm just not sure which to use under battery and A/C and which of those to use. Right now, it dims when unplugged but nothing when I replug. Actually, all it does is dim, when there is a switch.
[#!/bin/sh
# Default acpi script that takes an entry for all actions
# NOTE: This is a 2.6-centric script. If you use 2.4.x, you'll have to
# modify it to not use /sys
minspeed=`cat /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_min_freq`
maxspeed=`cat /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_max_freq`
setspeed="/sys/devices/system/cpu/cpu0/cpufreq/scaling_setspeed"
set $*
case "$1" in
button/power)
#echo "PowerButton pressed!">/dev/tty5
case "$2" in
PWRF) logger "PowerButton pressed: $2" ;;
*) logger "ACPI action undefined: $2" ;;
esac
;;
button/sleep)
case "$2" in
SLPB) echo -n mem >/sys/power/state ;;
*) logger "ACPI action undefined: $2" ;;
esac
;;
ac_adapter)
case "$2" in
AC)
case "$4" in
00000000)
echo -n $minspeed >$setspeed
#/etc/laptop-mode/laptop-mode start
xbacklight -set 100
;;
00000001)
echo -n $maxspeed >$setspeed
#/etc/laptop-mode/laptop-mode stop
xbacklight -set 30
;;
esac
;;
*) logger "ACPI action undefined: $2" ;;
esac
;;
battery)
case "$2" in
BAT0)
case "$4" in
00000000) #echo "offline" >/dev/tty5
xbacklight -set 100
;;
00000001) #echo "online" >/dev/tty5
xbacklight -set 30
;;
esac
;;
CPU0)
;;
*) logger "ACPI action undefined: $2" ;;
esac
;;
button/lid)
#echo "LID switched!">/dev/tty5
/usr/sbin/pm-suspend --quirk-s3-bios --quirk-s3-mode
;;
*)
logger "ACPI group/action undefined: $1 / $2"
;;
esac
Last edited by Reasons (2008-01-21 16:28:45)
Offline
Fixed. Used /etc/acpi/handler.sh to start and stop laptop mode and have laptop mode control the backlight. Oddly enough that didn't work earlier. . .
Offline
Can you please post you /etc/acpi/handler.sh ?
Offline
Pages: 1