You are not logged in.

#1 2008-01-19 23:03:23

Reasons
Member
From: Washington
Registered: 2007-11-04
Posts: 572

Screen won't dim

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

#2 2008-01-20 20:24:26

Reasons
Member
From: Washington
Registered: 2007-11-04
Posts: 572

Re: Screen won't dim

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

#3 2008-01-20 22:36:42

iluva
Member
From: Switzerland
Registered: 2007-05-15
Posts: 9

Re: Screen won't dim

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 big_smile

Offline

#4 2008-01-20 22:45:13

Reasons
Member
From: Washington
Registered: 2007-11-04
Posts: 572

Re: Screen won't dim

Intel X3100. sad

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

#5 2008-01-21 16:25:27

Reasons
Member
From: Washington
Registered: 2007-11-04
Posts: 572

Re: Screen won't dim

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

#6 2008-01-21 19:48:13

Reasons
Member
From: Washington
Registered: 2007-11-04
Posts: 572

Re: Screen won't dim

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

#7 2008-01-25 19:05:40

mfolnovic
Member
From: Zagreb, Croatia
Registered: 2008-01-03
Posts: 104

Re: Screen won't dim

Can you please post you /etc/acpi/handler.sh ? smile

Offline

Board footer

Powered by FluxBB