View Single Post
  #7 (permalink)  
Old 07-09-2011, 12:18 PM
arrrghhh's Avatar
arrrghhh
Testing Extraordinaire
Offline
 
Join Date: Mar 2007
Posts: 3,604
Reputation: 7360
arrrghhh is a trusted member of the communityarrrghhh is a trusted member of the communityarrrghhh is a trusted member of the communityarrrghhh is a trusted member of the communityarrrghhh is a trusted member of the communityarrrghhh is a trusted member of the communityarrrghhh is a trusted member of the communityarrrghhh is a trusted member of the communityarrrghhh is a trusted member of the communityarrrghhh is a trusted member of the communityarrrghhh is a trusted member of the community
Mentioned: 7 Post(s)
Tagged: 0 Thread(s)
Re: Screen not working!?!?

Quote:
Originally Posted by [ACL] View Post
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?
Reply With Quote