PPCGeeks

PPCGeeks (http://forum.ppcgeeks.com/index.php)
-   Android On TP2 (http://forum.ppcgeeks.com/forumdisplay.php?f=179)
-   -   Screen not working!?!? (http://forum.ppcgeeks.com/showthread.php?t=145347)

lioncat55 07-04-2011 03:20 PM

Screen not working!?!?
 
this is really weird for me...i downloaded FRX6 3 days ago put it in my sd card used the standard startup.txt adding rel_path and the touch screen does not work the hard buttons work but the touch screen does not. and i cant think of any thing to mess with


edit: after waiting about 15-20min it has started working
edit2: the screen calfile that is part of FRX6 sucks.......

arrrghhh 07-04-2011 03:30 PM

Re: Screen not working!?!?
 
Quote:

Originally Posted by lioncat55 (Post 2124036)
edit2: the screen calfile that is part of FRX6 sucks.......

Sheesh, then make your own why are you crying about it?

I included my ts-calibration so people can easily get started. If it's not right, make you own...

lioncat55 07-04-2011 10:33 PM

Re: Screen not working!?!?
 
oh i did it was kinda lame i know how but i did not find out that was the problem untell after i hit post also i dont know how to change the title of the thread

[ACL] 07-07-2011 04:13 AM

Re: Screen not working!?!?
 
im hoping this will be a thing of the past soon. Ive been asking the devs what we should do about this and we all feel differently.

We have 2 options.

1) default to a fixed set of values and if you need calibration then you generate your own. This is what we do in nand so we are never asked for ts calib.

2) Read the saved calib points from nand as the default. This can be done on haret. Hyc was able to get the gsm location and i have the address for cdma.

THe second option is easier. Just a matter of writing the rootfs patch to get it done. If anyone has scripting skills and doesnt mind getting some email from me about all this crap i can guide in the right direction.

arrrghhh 07-07-2011 08:32 AM

Re: Screen not working!?!?
 
Quote:

Originally Posted by [ACL] (Post 2125074)
im hoping this will be a thing of the past soon. Ive been asking the devs what we should do about this and we all feel differently.

We have 2 options.

1) default to a fixed set of values and if you need calibration then you generate your own. This is what we do in nand so we are never asked for ts calib.

2) Read the saved calib points from nand as the default. This can be done on haret. Hyc was able to get the gsm location and i have the address for cdma.

THe second option is easier. Just a matter of writing the rootfs patch to get it done. If anyone has scripting skills and doesnt mind getting some email from me about all this crap i can guide in the right direction.

Scripting I can do. Spam away.

[ACL] 07-09-2011 02:16 AM

Re: Screen not working!?!?
 
Quote:

Originally Posted by arrrghhh (Post 2125092)
Scripting I can do. Spam away.

You asked for it. :-p

For gsm

Code:

modprobe mtdchar
dd if=/dev/mtd/mtd0ro bs=2048 skip=18818 count=1 | od -I | \
 awk '/^0001720/ {p3=$4 "," $5} \
 /^0001740/ {p1=$2 "," $3; p4=$4 "," $5} \
 /^0001760/ {p5=$2 "," $3; p2=$4 "," $5} \
 END {print p1 "," p2 "," p3 "," p4 "," p5}' > /sdcard/ts-calibration
rmmod mtdchar


for cdma

Code:

modprobe mtdchar
dd if=/dev/mtd/mtd0ro bs=2048 skip=22850 count=1 | od -I | \
 awk '/^0001720/ {p3=$4 "," $5} \
 /^0001740/ {p1=$2 "," $3; p4=$4 "," $5} \
 /^0001760/ {p5=$2 "," $3; p2=$4 "," $5} \
 END {print p1 "," p2 "," p3 "," p4 "," p5}' > /sdcard/ts-calibration
rmmod mtdchar

Easiest thing to do would be to throw this somewhere inside the init on the rootfs. Somewhere before the ts-calibration portion. Should work.

If you want to test, just type that via ADB and you will see the points you have stored from winmo :-)

arrrghhh 07-09-2011 12:18 PM

Re: Screen not working!?!?
 
Quote:

Originally Posted by [ACL] (Post 2125936)
You asked for it. :-p

For gsm

Code:

modprobe mtdchar
dd if=/dev/mtd/mtd0ro bs=2048 skip=18818 count=1 | od -I | \
 awk '/^0001720/ {p3=$4 "," $5} \
 /^0001740/ {p1=$2 "," $3; p4=$4 "," $5} \
 /^0001760/ {p5=$2 "," $3; p2=$4 "," $5} \
 END {print p1 "," p2 "," p3 "," p4 "," p5}' > /sdcard/ts-calibration
rmmod mtdchar


for cdma

Code:

modprobe mtdchar
dd if=/dev/mtd/mtd0ro bs=2048 skip=22850 count=1 | od -I | \
 awk '/^0001720/ {p3=$4 "," $5} \
 /^0001740/ {p1=$2 "," $3; p4=$4 "," $5} \
 /^0001760/ {p5=$2 "," $3; p2=$4 "," $5} \
 END {print p1 "," p2 "," p3 "," p4 "," p5}' > /sdcard/ts-calibration
rmmod mtdchar

Easiest thing to do would be to throw this somewhere inside the init on the rootfs. Somewhere before the ts-calibration portion. Should work.

If you want to test, just type that via ADB and you will see the points you have stored from winmo :-)

Cool. So all GSM RHOD's are the same, and all CDMA RHOD's are the same? For CDMA that wouldn't surprise me...

Also, I'll change where it outputs to, don't always want it at /sdcard... I think there's a $SDCARD var or some such thing.

One last piece - what about detection? I'm guessing that's the part you want me to script? :p

[ACL] 07-09-2011 01:31 PM

Re: Screen not working!?!?
 
Quote:

Originally Posted by arrrghhh (Post 2126031)
Cool. So all GSM RHOD's are the same, and all CDMA RHOD's are the same? For CDMA that wouldn't surprise me...

Also, I'll change where it outputs to, don't always want it at /sdcard... I think there's a $SDCARD var or some such thing.

One last piece - what about detection? I'm guessing that's the part you want me to script? :p

i confirmed with Hyc and JB. All gsms appear to be the same. Cdma's are clones of one another so no difference there.

yeah.. just take a look at the init script and see where its the best place to put it. There is a section that it looks for the file and if its not found then it launches the ts-calib app in the begining to make a new file. We can replace that and use the scripts above to generate the file.

Detect? well i think we already have the detection in the script somewhere since the wifi nvram is diff for both phones as well and we detect it fine. So may need to use the same flag.. rest is all you.. :-)

arrrghhh 07-10-2011 02:41 PM

Re: Screen not working!?!?
 
Quote:

Originally Posted by [ACL] (Post 2126050)
i confirmed with Hyc and JB. All gsms appear to be the same. Cdma's are clones of one another so no difference there.

yeah.. just take a look at the init script and see where its the best place to put it. There is a section that it looks for the file and if its not found then it launches the ts-calib app in the begining to make a new file. We can replace that and use the scripts above to generate the file.

Detect? well i think we already have the detection in the script somewhere since the wifi nvram is diff for both phones as well and we detect it fine. So may need to use the same flag.. rest is all you.. :-)

Alrighty, I have hacked the init. Hopefully it works... imma test it, and if it does I'll release it to the animals here to see if it jives with their phones as well...

Thanks again dude! I just did some easy if/elif/else statement workin, you did all the hard work ;).

Edit - works great! Gonna talk to stine to see if he just wants to implement it, or test it with the masses first. It's pretty safe, and I left the old ts-calib stuff in there as a fallback... Only thing I haven't tested yet is the detection, but I kinda cheated and just used the wifi GSM/CDMA detection statements, so it should be fine.

Last thing would be getting non-RHOD's up to speed. Need devs to help sort out which region is necessary for what device...


All times are GMT -4. The time now is 08:15 PM.

Powered by vBulletin® ©2000 - 2025, Jelsoft Enterprises Ltd.
©2012 - PPCGeeks.com


Content Relevant URLs by vBSEO 3.6.0