My Backlight ditnt seems to change anymore


matzesu

Forum Addict!
Staff member
Joined
Oct 24, 2008
Messages
13,018
Age
39
Location
Germany,, Saarland, at home
Hellolo,

Im a happy owner of a First Batch Pandora since 2 Yeahrs, it has the new Platin Case, and the new Display Cable since last yeahr..

But i have now a Problem whit the Backlight:

It dosnt seems to Change his brigness whit fn & + / - or if i bring it in Standbye Mode, or close the hinge..

Today i even dit a reflash but it dosnt change enything??

What may i do to fix this??? Or is this something only Evildragon can fix??

If so, maybe i would make a 1ghz Upgrade for 200 Poke $..
 
Can you open a command prompt and issue a couple of debug commands:

cat /sys/class/backlight/pandora-backlight/max_brightness
cat /sys/class/backlight/pandora-backlight/brightnessThen hit the brightness down combination (FN+U) a few times then repeat the second command.

The files that control the brigtness are in /usr/pandora/scripts. Running 'sudo /usr/pandora/scripts/op_bright.sh 54' should set your LCD to maxiumum brightness. Running 'sudo /usr/pandora/scripts/op_bright_down.sh' should so the same as pressing FN+U. It shouldn't be possible to turn the screen completely off using these scripts, but screens do vary, so be careful you don't turn it down so low that you can't see what you're typing at any point.


Do these files and scripts give you sensible values and work properly for you?
 
Last edited by a moderator:
Thangs for the Answer, i will try these at evening on my Terminal,

And report if its workd..

Wonder, why the reflash ditnt work if this is a softwareproblem ...

Mybe im able to copy your comand in my terminal as there is a lot to write..
 
C&P should work - there are no special characters there. Of course, you know about tab completion - simply type 'cat /sys/c<TAB>ba<TAB><TAB><TAB>m<TAB>' to enter the first command, for example, where on Pandora <TAB> is FN+space.
 
Last edited by a moderator:
Both dosnt change anything on my Pandora.. maybe its realy hardwarewise..

but thangs for the help

no problem if this is the only issue until the Pandora 2 is out.. i can life whit it..

but maybe wee do find a solution..
 
Do you have a max_brightness file? What is in it - what comes out when you 'cat' it?


Do you have a brightness file? Again, what's in it?


Do you have the scripts in /usr/pandora/scripts? Do they affect the contents of the brightness file?
 
Last edited by a moderator:
on the brignes up file i have


#!/bin/bash

. /usr/pandora/scripts/op_paths.sh

cur=$(cat $SYSFS_BACKLIGHT_BRIGHTNESS)
max=$(cat $SYSFS_BACKLIGHT/max_brightness)

if [ "$cur" -gt "35" ]; then
new=$(($cur+10))
elif [ "$cur" -gt "20" ]; then
new=$(($cur+7))
elif [ "$cur" -gt "13" ]; then
new=$(($cur+5))
elif [ "$cur" -gt "5" ]; then
new=$(($cur+3))
elif [ "$cur" -gt "0" ]; then
new=$(($cur+1))
elif [ "$cur" -eq "0" ]; then
new=3
fi

if [ "$new" -gt "$max" ]; then
new=$max
fi

# make sure we are not blanking (sometimes screensaver fails to unblank?)
echo 0 > /sys/class/graphics/fb0/blank

echo $new > $SYSFS_BACKLIGHT_BRIGHTNESS


and inthe other file


#!/bin/bash

. /usr/pandora/scripts/op_paths.sh

# get value range
minbright=3
maxbright="$(cat $SYSFS_BACKLIGHT/max_brightness)"
curbright="$(cat $SYSFS_BACKLIGHT/brightness)"

if [ ! $1 ]; then
newbright=$(zenity --scale --text "Set brightness" --min-value=$minbright --max-value=$maxbright --value=$curbright --step 1)
else
newbright=$1
fi
if [ $newbright ]; then
if [ $newbright -le $minbright ]; then newbright=$minbright; fi
if [ $newbright -ge $maxbright ]; then newbright=$maxbright; fi
echo $newbright > $SYSFS_BACKLIGHT_BRIGHTNESS
fi


the second is the brignhes sh..

seems noting spezial there..
 
I'm not asking for the contents of the brightness_up and brightness_down scripts (though those look the same as mine, so that's good) but the contents of /sys/class/backlight/pandora-backlight/maxbrightness and ...brightness. Those are the files that control the actual physical backlight most directly.
 
If you are unsure, just reflash. If it works afterwards, it is no hardwarefault.
 
Yesterday, i dit made a reflash first, but whitout a solution,

Seems realy like a hardware fault..

Anyway, as long as all other funktions work, i think i can life whit this

Until the Pandora 2..
 
Back
Top