View Single Post
  #6 (permalink)  
Old 07-09-2011, 02: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: Screen not working!?!?

Quote:
Originally Posted by arrrghhh View Post
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
__________________
Reply With Quote
This post has been thanked 1 times.