Reply
Thread Tools
Posts: 118 | Thanked: 202 times | Joined on Aug 2010
#1
Hi,

Is there a command to turn the N900 screen backlight off during usage, the way it is when flashing? I'm asking mostly out of curiosity.

I think if you can faintly see the Nokia logo during flash mode that might be good enough to use for standard usage too when the ambient light it good enough (from a hardcore battery conserver's POV ).
 

The Following User Says Thank You to nephridium For This Useful Post:
MohammadAG's Avatar
Posts: 2,473 | Thanked: 12,265 times | Joined on Oct 2009 @ Jerusalem, PS/IL
#2
Used to do that in Ubuntu since I was using it with VNC, as root:
Code:
echo 0 > /sys/class/backlight/acx565akm/brightness
mce will probably ruin your fun and light it back up when lighting conditions change where you are, you can ruin its day by typing stop mce and disabling it, temporarily at least.
Mind you, turning off mce will:
Cause the power button not to work
Cause the lock switch to stop working
Screen won't dim (but it's off in this case so... meh)
till you start it again (start mce).
 

The Following 6 Users Say Thank You to MohammadAG For This Useful Post:
Posts: 118 | Thanked: 202 times | Joined on Aug 2010
#3
Very cool! Thanks!
 
Posts: 1,522 | Thanked: 392 times | Joined on Jul 2010 @ São Paulo, Brazil
#4
A less brute approach might be setting screen brightness to the max, since that stops the screen brightness changing with lighting (or does it just make it cosntanly set it to fullbright ?)
 
Posts: 118 | Thanked: 202 times | Joined on Aug 2010
#5
Nope, my goal was to see whether the N900 is usable when backlight is completely off, and outside in sunlight it actually is due to the awesome screen Nokia uses for this device - if you're battery starved you can use this mode. Checking battery current (value of /sys/class/power_supply/bq27200-0/current_now) showed around 25% decrease.

I wrote this script that toggles backlight on/off:
Code:
#!/bin/sh

tmp='/home/user/brightness.tmp'

if [ -f $tmp ]
then
  b=$(cat $tmp)
  echo "Setting backlight back to normal ($b)"
  rm $tmp
  echo $b > /sys/class/backlight/acx565akm/brightness
  start mce
else
  echo "Turning backlight off"
  stop mce
  cat /sys/class/backlight/acx565akm/brightness > $tmp
  echo 0 > /sys/class/backlight/acx565akm/brightness
fi

Last edited by nephridium; 2010-08-27 at 09:08.
 

The Following 2 Users Say Thank You to nephridium For This Useful Post:
Posts: 1,522 | Thanked: 392 times | Joined on Jul 2010 @ São Paulo, Brazil
#6
i'm not 100% sure if i understand your code there, could you describe how to use that script?
 
Posts: 118 | Thanked: 202 times | Joined on Aug 2010
#7
You create a file, e.g. /home/user/bl.sh with the code as content, then run
Code:
chmod +x /home/user/bl.sh
then you can call the script by running /home/user/bl.sh

It toggles blacklight mode on or off. Note that, as MohammadAG stated, stop switch doesn't work while backlight is off.

Also, it will effectively turn the screen into monochrome mode, which has kind of a retro vibe to it

Last edited by nephridium; 2010-08-27 at 09:18.
 
Posts: 1,522 | Thanked: 392 times | Joined on Jul 2010 @ São Paulo, Brazil
#8
each time it's run it will either turn the backlight on or off like a toggle switch?
 
MohammadAG's Avatar
Posts: 2,473 | Thanked: 12,265 times | Joined on Oct 2009 @ Jerusalem, PS/IL
#9
Originally Posted by TiagoTiago View Post
each time it's run it will either turn the backlight on or off like a toggle switch?
It checks to see if $tmp is there, if it is, it turns backlight on, if not, it turns it off and creates the file so it could turn it on when you run the script again
 

The Following User Says Thank You to MohammadAG For This Useful Post:
Posts: 1,751 | Thanked: 844 times | Joined on Feb 2010 @ Sweden
#10
Tiago: Use QBW to make a widget and run the script by a button on the desktop. Just direct it to "/home/user/bl.sh" after you have made it executeble.
 
Reply


 
Forum Jump


All times are GMT. The time now is 14:03.