View Single Post
  #334 (permalink)  
Old 10-26-2010, 04:04 PM
Lmiller1708's Avatar
Lmiller1708
Flashaholic!
Offline
Location: La Crosse, WI
 
Join Date: Aug 2008
Posts: 873
Reputation: 2160
Lmiller1708 is a VIPLmiller1708 is a VIPLmiller1708 is a VIPLmiller1708 is a VIPLmiller1708 is a VIPLmiller1708 is a VIPLmiller1708 is a VIPLmiller1708 is a VIPLmiller1708 is a VIPLmiller1708 is a VIPLmiller1708 is a VIP
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Re: NAND Boot Testing - Keyboard Mapping Fixed, HW3D, and Battery Algo Update

Quote:
Originally Posted by [ACL] View Post
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.
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
__________________

Last edited by Lmiller1708; 10-26-2010 at 04:12 PM.
Reply With Quote
This post has been thanked 1 times.