View Single Post
  #335 (permalink)  
Old 10-26-2010, 05:02 PM
[ACL]'s Avatar
[ACL]
VIP Member
Offline
Location: NY
 
Join Date: Feb 2010
Posts: 1,534
Reputation: 6350
[ACL] is a trusted member of the community[ACL] is a trusted member of the community[ACL] is a trusted member of the community[ACL] is a trusted member of the community[ACL] is a trusted member of the community[ACL] is a trusted member of the community[ACL] is a trusted member of the community[ACL] is a trusted member of the community[ACL] is a trusted member of the community[ACL] is a trusted member of the community[ACL] is a trusted member of the community
Mentioned: 2 Post(s)
Tagged: 0 Thread(s)
Re: NAND Boot Testing - Keyboard Mapping Fixed, HW3D, and Battery Algo Update

Quote:
Originally Posted by Lmiller1708 View Post
I figured out how we can change the density for NAND. (For now...)
I also added the lcd-blacklight command from above. It works.

With this code you just need to place a file named "LCDDENSITY.240" or "LCDDENSITY.210" in the andboot folder of your SD Card.

Code:
echo 50 >/sys/class/leds/lcd-backlight/brightness

LCDDENSITY=`/bin/grep -o "lcd.density=.*" /proc/cmdline | /bin/sed -e "s/.*lcd.density=//g" -e "s/ .*//g"`


if [ "$LCDDENSITY" != "" ] ; then
    echo "ro.sf.lcd_density=$LCDDENSITY" >> /etc/default.prop
    echo Setting ro.sf.lcd_density=$LCDDENSITY
elif    
    [ -f $card/LCDDENSITY.240 ] ; then
    echo "ro.sf.lcd_density=240" >> /etc/default.prop
    echo Setting ro.sf.lcd_density=240
elif    
    [ -f $card/LCDDENSITY.210 ] ; then
    echo "ro.sf.lcd_density=210" >> /etc/default.prop
    echo Setting ro.sf.lcd_density=210
fi
yeah that works.. same thing we did for the keyboard. Im trying to avoid butchering the rootfs tho. Unless you guys want to maintain a nand version?

did you try the conf file i mentioned? this is already in place so it should not need modds to the rootfs.

Keep min mind we could also butcher the initramfs to do anything we want. This rarely changes so we could always have it do stuff. Nate what do u think about that?
__________________
Reply With Quote