Wirelessly posted (Opera/9.80 (Windows Mobile; Opera Mini/5.1.21594/21.529; U; en) Presto/2.5.25 Version/10.54)
Quote:
Originally Posted by [ACL
]
Quote:
Originally Posted by Lmiller1708
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?
|
I agree. I'm a big automation person, so I'd also love to find an actual solution that doesn't require random files in the andboot folder.
I was thinking about modding htc_hw to output the machine_varient to somewhere more permanent that would be read during init to assign keymapping. This would map properly on all boots after the first one unless there were a way to invoke it before init.