You are not logged in.

#1 2008-03-04 22:20:28

ponto
Member
Registered: 2007-05-15
Posts: 35

changing brightness on a Sony Vario VGN-CR29XN/B

hello,

does anyone know how to do this in a Sony Vario VGN-CR29XN/B?

i've tried several things, but still.. nothin'

thanks,
ponto

Offline

#2 2008-03-04 22:31:04

ibendiben
Member
Registered: 2007-10-10
Posts: 519

Re: changing brightness on a Sony Vario VGN-CR29XN/B

Did you try:

xbacklight -set <number 1-100>

Offline

#3 2008-03-04 22:33:16

ponto
Member
Registered: 2007-05-15
Posts: 35

Re: changing brightness on a Sony Vario VGN-CR29XN/B

xbacklight doesn't worked here.

still, this:

BRIGHTNESS=$(cat /sys/class/backlight/sony/actual_brightness)

if [ "$BRIGHTNESS" -gt 8 ]; then
    BRIGHTNESS=1
fi

if [ "x$1" = "xdown" ]; then
    if [ "x$BRIGHTNESS" != "x1" ]; then
        BRIGHTNESS=$(( $BRIGHTNESS - 1 ))
        echo $BRIGHTNESS > /sys/class/backlight/sony/brightness
    else
    [ -x /usr/bin/spicctrl ] && /usr/bin/spicctrl -b 0
    fi
    # Recent nvidia Sonys have ACPI methods that do nothing. Thanks, Sony.
    [ -x /usr/bin/smartdimmer ] && smartdimmer -d 2>/dev/null
elif [ "x$1" = "xup" ]; then
    if [ "x$BRIGHTNESS" != "x8" ]; then
          BRIGHTNESS=$(( $BRIGHTNESS + 1 ))
          echo $BRIGHTNESS > /sys/class/backlight/sony/brightness
        fi
    [ -x /usr/bin/smartdimmer ] && smartdimmer -i 2>/dev/null
    else
    echo >&2 Unknown argument $1
fi

with sony_pi and sony_laptop loaded worked.

: >

Offline

#4 2008-04-20 12:21:20

lazylogic
Member
Registered: 2008-04-20
Posts: 18

Re: changing brightness on a Sony Vario VGN-CR29XN/B

ibendiben wrote:

Did you try:

xbacklight -set <number 1-100>

Just install Arch big_smile  and have the same problem

I couldn't even find xbacklight

pacman -Ss xbacklight    returns nothing  sad


I'd read the faq
and the wiki
then the guides
and went googling, before posting here big_smile

Offline

#5 2008-04-20 12:45:49

.:B:.
Forum Fellow
Registered: 2006-11-26
Posts: 5,819
Website

Re: changing brightness on a Sony Vario VGN-CR29XN/B

Do you have any Fn keys that are supposed to take care of backlight setting?

If so you could add ACPI events to /etc/acpi, preferably in separate files. I have a TZ 190N myself and patched the handler script. Check my patch for examples (I made this patch for my model specifically so no guarantee whatsoever it will work for you).

Last edited by B (2008-04-20 12:52:19)


Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy

Offline

Board footer

Powered by FluxBB