PPCGeeks Forums HTC Arrive HTC HD2 HTC Thunderbolt HTC Touch Pro 2 HTC Evo 4G HTC Evo 3D Samsung Galaxy S II Motorola Droid X Apple iPhone Blackberry
Go Back   PPCGeeks > Windows Mobile > WM HTC Devices > HTC Touch Pro 2 > Android On TP2 > Android On TP2 Development
Register Community Search

Notices


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 10-25-2010, 05:11 PM
Lmiller1708's Avatar
Flashaholic!
Offline
Pocket PC: Vogue->(TP2/Incredible 2/ThunderBolt)
Carrier: Verizon
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
Im still crafting a clever way to change this without making an nbh each time. Right now we are running our own rootfs so we can probably modify it the same way. I promise the next kernel we put out will have the option..

ACL - What is the status of this? I was hoping to see it set to 240.
Keeps giving me FC's with ADW Launcher.

When I flashed I had my brightness set to 255. This caused the backlight to not turn on at all. I had AdjBrightness (on Market) installed and was able to find it (Using a flashlight) and change the value to 50 and it works! I can only go up to 57 and down to 29 for the backlight to stay on.
Only other problem is my Top button does not do anything... Might be caused by something else though...

Thanks for All of your EFFORTS on this! Wish I could help out more.
__________________
Reply With Quote
  #2 (permalink)  
Old 10-25-2010, 06:11 PM
natemcnutty's Avatar
VIP Member
Offline
Pocket PC: VZW Touch Pro 2
Carrier: Verizon Wireless
Threadstarter
 
Join Date: Nov 2009
Posts: 845
Reputation: 3070
natemcnutty is still contributing even after becoming a VIPnatemcnutty is still contributing even after becoming a VIPnatemcnutty is still contributing even after becoming a VIPnatemcnutty is still contributing even after becoming a VIPnatemcnutty is still contributing even after becoming a VIPnatemcnutty is still contributing even after becoming a VIPnatemcnutty is still contributing even after becoming a VIPnatemcnutty is still contributing even after becoming a VIPnatemcnutty is still contributing even after becoming a VIPnatemcnutty is still contributing even after becoming a VIPnatemcnutty is still contributing even after becoming 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 Lmiller1708 View Post
ACL - What is the status of this? I was hoping to see it set to 240.
Keeps giving me FC's with ADW Launcher.

When I flashed I had my brightness set to 255. This caused the backlight to not turn on at all. I had AdjBrightness (on Market) installed and was able to find it (Using a flashlight) and change the value to 50 and it works! I can only go up to 57 and down to 29 for the backlight to stay on.
Only other problem is my Top button does not do anything... Might be caused by something else though...

Thanks for All of your EFFORTS on this! Wish I could help out more.
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
Reply With Quote
This post has been thanked 1 times.
  #3 (permalink)  
Old 10-25-2010, 11:29 PM
Lmiller1708's Avatar
Flashaholic!
Offline
Pocket PC: Vogue->(TP2/Incredible 2/ThunderBolt)
Carrier: Verizon
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 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
Yes that should work.

Trying to get Ubuntu installed on my laptop as a VM in Windows 7. It is a pain in the A$$.

Thanks for your help on this I will look at the rootfs once it get Ubuntu working.
Reply With Quote
  #4 (permalink)  
Old 10-26-2010, 12:53 AM
natemcnutty's Avatar
VIP Member
Offline
Pocket PC: VZW Touch Pro 2
Carrier: Verizon Wireless
Threadstarter
 
Join Date: Nov 2009
Posts: 845
Reputation: 3070
natemcnutty is still contributing even after becoming a VIPnatemcnutty is still contributing even after becoming a VIPnatemcnutty is still contributing even after becoming a VIPnatemcnutty is still contributing even after becoming a VIPnatemcnutty is still contributing even after becoming a VIPnatemcnutty is still contributing even after becoming a VIPnatemcnutty is still contributing even after becoming a VIPnatemcnutty is still contributing even after becoming a VIPnatemcnutty is still contributing even after becoming a VIPnatemcnutty is still contributing even after becoming a VIPnatemcnutty is still contributing even after becoming 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 Lmiller1708 View Post
Yes that should work.

Trying to get Ubuntu installed on my laptop as a VM in Windows 7. It is a pain in the A$$.

Thanks for your help on this I will look at the rootfs once it get Ubuntu working.
Virtualbox is your friend for that one. I've currently got 9.10, 10.04.1, and 10.10 as VM's on my work machine, and each took under 15 minutes to install and get going. I also use the shared folder feature in Virtualbox to grab NBH's and rootfs for fast flashing. If you plan on cloning tinboot and nand, I have a fully automated build script that I could post for you
Reply With Quote
This post has been thanked 1 times.
  #5 (permalink)  
Old 10-26-2010, 09:14 AM
Lmiller1708's Avatar
Flashaholic!
Offline
Pocket PC: Vogue->(TP2/Incredible 2/ThunderBolt)
Carrier: Verizon
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 natemcnutty View Post
Virtualbox is your friend for that one. I've currently got 9.10, 10.04.1, and 10.10 as VM's on my work machine, and each took under 15 minutes to install and get going. I also use the shared folder feature in Virtualbox to grab NBH's and rootfs for fast flashing. If you plan on cloning tinboot and nand, I have a fully automated build script that I could post for you
I should have just gone with that... Finally got it working last night but it seems a bit unstable... I think I will give Virtualbox a try, I like the idea of sharing files that way.

I still have a lot to learn but would love to know how and help out any way I can. You can post the script and I see how it works.
Reply With Quote
  #6 (permalink)  
Old 10-26-2010, 09:56 AM
coolsilver's Avatar
PPCGeeks Regular
Offline
Pocket PC: HTC TP2
Carrier: Verizon
 
Join Date: Oct 2007
Posts: 233
Reputation: 125
coolsilver is keeping up the good workcoolsilver is keeping up the good work
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Re: NAND Boot Testing - HW3D Fixed: 10-21, Auto-brightness Testing: 10-24

Wifi works again.

I was apparently too lazy to delete and rebuild my data.img file.

I love titanium backup... makes life easy.

I'll try out the new image here shortly
Reply With Quote
  #7 (permalink)  
Old 10-26-2010, 10:28 AM
coolsilver's Avatar
PPCGeeks Regular
Offline
Pocket PC: HTC TP2
Carrier: Verizon
 
Join Date: Oct 2007
Posts: 233
Reputation: 125
coolsilver is keeping up the good workcoolsilver is keeping up the good work
Mentioned: 0 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 should have just gone with that... Finally got it working last night but it seems a bit unstable... I think I will give Virtualbox a try, I like the idea of sharing files that way.

I still have a lot to learn but would love to know how and help out any way I can. You can post the script and I see how it works.
Same I would like to at least know how it works.
Reply With Quote
  #8 (permalink)  
Old 10-27-2010, 01:06 AM
natemcnutty's Avatar
VIP Member
Offline
Pocket PC: VZW Touch Pro 2
Carrier: Verizon Wireless
Threadstarter
 
Join Date: Nov 2009
Posts: 845
Reputation: 3070
natemcnutty is still contributing even after becoming a VIPnatemcnutty is still contributing even after becoming a VIPnatemcnutty is still contributing even after becoming a VIPnatemcnutty is still contributing even after becoming a VIPnatemcnutty is still contributing even after becoming a VIPnatemcnutty is still contributing even after becoming a VIPnatemcnutty is still contributing even after becoming a VIPnatemcnutty is still contributing even after becoming a VIPnatemcnutty is still contributing even after becoming a VIPnatemcnutty is still contributing even after becoming a VIPnatemcnutty is still contributing even after becoming 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 coolsilver View Post
Same I would like to at least know how it works.
The guide to compile ended up being much larger than I had planned, so in an effort to keep this thread clean and allow for feedback, I created a new post about compiling. You can check it out here:

http://forum.ppcgeeks.com/tp2-androi...beginners.html
Reply With Quote
This post has been thanked 3 times.
  #9 (permalink)  
Old 10-26-2010, 01:16 AM
[ACL]'s Avatar
VIP Member
Offline
Pocket PC: tp2
Carrier: Sprint
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
  #10 (permalink)  
Old 10-26-2010, 04:04 PM
Lmiller1708's Avatar
Flashaholic!
Offline
Pocket PC: Vogue->(TP2/Incredible 2/ThunderBolt)
Carrier: Verizon
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.
Reply

  PPCGeeks > Windows Mobile > WM HTC Devices > HTC Touch Pro 2 > Android On TP2 > Android On TP2 Development


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT -4. The time now is 12:01 PM.


Powered by vBulletin® ©2000 - 2025, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.6.0
©2012 - PPCGeeks.com