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?