View Single Post
  #328 (permalink)  
Old 10-26-2010, 01:16 AM
[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 natemcnutty View Post
So maybe we can ADB our device before we flash, then "echo 50 >/sys/class/leds/lcd-backlight/brightness" and then flash and it works? I tried changing brightness after the flash, and that didn't work for me.

As for lcd density, it's all handled by this tiny bit of code from init in rootfs:

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
fi

I guess we could have it grab something from the sdcard, but I'm not sure if there would be a way to make it configurable within Android. I don't mind playing around with this, but I won't be able to do anything with it until tomorrow
Have we tried injecting another config on sdcard based on the rcconfig?

if [ -f "$card/conf/$RCCONFIG.user.conf" ]; then
/bin/userinit.sh -c "$card/conf/$RCCONFIG.user.conf"
else
echo "No user config files ($RCCONFIG) found on sdcard"
fi


Lookks like we can have a user.conf file and might be able to a modd the default.prop file which i think will handle what we need. The bottom section of this conf file executes shell params. So all we need to do is include

echo "ro.sf.lcd_density = 240" >> /etc/default.prop

Right now we dont have the desity set on tinboot so this should work.
__________________
Reply With Quote