linuxµÄ´¥ÃþÆÁÖ®¶þ£ºÊÖ¹¤µ÷ÊÔ
£¨1£©¼òÊö£ºÔÚ±àÒëºÃÁ˵ÄANDROID¸ùÎļþϵͳµÄsystem/etc/pointercalÕâ¸öÎļþÄÚ£¬´æ·Å×Å7¸öÊý£¬Õâ7¸öÊý¾ÍÊÇ¡¶linuxµÄ´¥ÃþÆÁÖ®Ò»¡·Ëù½²µÄa,b,c,d,e,f,s¡£±ÈÈçÎÒÔÚ×Ô¼ºµÄMIDÉϲ鿴µÄÊýֵΪ£º4933 -5 -15710176 -95 -4961 56071328 65536¡£
£¨2£©´¦Àí˵Ã÷£º“system/etc/pointercal”Õâ¸öÎļþÊDZ»java³ÌÐò¶ÁȡʹÓõģ¬ÎļþĿ¼£ºframeworks/base/services/java/com/android/server/InputDevice.java£¨×¢£ºÎÒÓõÄÊÇkooluµÄÔ´Â룬¹Ù·½µÄÔ´ÂëÇë×ÔÐÐËÑË÷£©¡£¸ÃÎļþµÄµÚ32Ðж¨ÒåÁË£ºstatic final String CALIBRATION_FILE = "/system/etc/pointercal";Õâ¸öCALIBRATION_FILE±äÁ¿ÔÚµÚ237Ðб»Ê¹ÓÃÓÚ´ò¿ª¸ÃÎļþ£ºFileInputStream is = new FileInputStream(CALIBRATION_FILE);ºóÃæµÄ´úÂë¾ÍÊÇ´ÓÕâ¸öÎļþÀï¶ÁÈ¡ÄÇ7¸öÊý¾Ý£¬ÓÃÓÚÉϲ㺯ÊýµÄ×ø±êת»»¡£ËùÒÔÖ»Òª¸ù¾Ý¸Ã¹«Ê½Í¨¹ýÊÖ¹¤¼ÆËã³öÄÇ7¸öÖµ£¬¾Í¿ÉÒÔ׼ȷµÄ½øÐд¥Ãþ²Ù×÷ÁË¡£
£¨3£©¼ÆË㣺¼ÆËãÇ°ÐèҪȡµÃ4¸ö´¥ÃþÆÁµÄ×ø±ê£¬ÎÒÃÇÈ¡LCD 4¸ö¶Ô½ÇµÄ×ø±ê£¬ÒòΪֻÓÐÕâ4¸ö×ø±êÖªµÀÈ·ÇеÄLCD×ø±ê¡£ÒªÈ¡×ø±ê±ØÐë´ò¿ªÄÚºËÖд¥ÃþÆÁµÄµ÷ÊÔ´úÂ룬Æô¶¯ºóÔÚconsoleÉÏʹÓÃdmesgÃüÁîÀ´¸ú×ÙÈ¡µÃ¡£ÈçÏÂÊÇÎÒµÄ320x240ÆÁ¼Ç¼µÄ½á¹û£º
×ø±êÖáÀïСÀ¨ºÅ()ÀïÃæµÄÊǵ÷ÊÔÐÅÏ¢¸øµÄ´¥ÃþÆÁ×ø±ê£¬ÖÐÀ¨ºÅ[]ÀïµÄÊǶÔÓ¦µÄLCD×ø±ê¡£
x×ø±ê
/|\
|(X:870, Y:140) (X:870, Y:890)
| [320,0] [320,240]
|
|
|
+-------------------------------> y×ø±ê
(X:120, Y:140) (X:120, Y:890)
[0,0] [0,240]
É趨s=65536£¬½«ÄÇ4¸ö×ø±ê´úÈëÄǸö¹«Ê½£¬¿ÉÒԵóö8¸ö·½³Ì×飺
0 = a*120 + b*140 + c
0 = d*120 + e*140 + f
0 = a*120 + b*890 + c
65536*240 = d*120 + e*890 + f
65536*320 = a*870 + b*140 + c
0 = d*870 + e*140 + f
65536*320 = a*870 + b*890 + c
65536*240 = d*870 + e*890 + f
½â·½³Ì×éºó¾Í¿ÉµÃ£¨±¾ÈËδÑéÖ¤½â·½³Ì£©£ºa = 0£¬b = 20971£¬c = -2935940£¬d = 27962£¬e = 0£¬f = -3355440£¬s = 65535¡£
È»ºóÓù¤¾ß´ò¿ªandriodµÄ“system/etc/pointercal”Îļþ£¬°ÑÕ⼸¸öÊýÊä½øÈ¥£¬Óÿոñ·Ö¿ª£¬´ËʱÆô¶¯ÊÔÊÔ¡£
ÎÒµÄÆÁµ½Õâ¸
Ïà¹ØÎĵµ£º
1. ÓÐЩÃüÁî²ÎÊý¹ý¶à£¬¿ÉÒÔÓÃgrepÀ´·½±ã²éÕÒ£¬È磺
iptables -h 2>&1|grep '\-A'
ÆäÖÐ2>&1½«stderrתÏòstdout£¬È»ºóÎÒÃǾͿÉÒÔͨ¹ýgrepÕÒµ½ÐèÒªµÄÑ¡ÏҪעÒâµÄÊǺá¸Ë֮ǰҪ¼Ó·´Ð±¸ ......
viÊÇËùÓÐUNIXϵͳ¶¼»áÌṩµÄÆÁÄ»±à¼Æ÷£¬ËüÌṩÁËÒ»¸öÊÓ´°É豸£¬Í¨¹ýËü¿ÉÒÔ±à¼Îļþ¡£µ±È»£¬¶ÔUNIXϵͳÂÔÓÐËùÖªµÄÈË£¬
»ò¶à»òÉÙ¶¼¾õµÃvi³¬¼¶ÄÑÓ㬵«viÊÇ×î»ù±¾µÄ±à¼Æ÷£¬ËùÒÔÏ£Íû¶ÁÕßÄܺúðÑËüѧÆðÀ´£¬ÒÔºóÔÚUNIXÊÀ½çÀï±Ø½«³©ÐÐÎÞ×è¡¢
ÓÎÈÐÓÐÓ࣬ÒòΪÆäËû¼¸ÖÖÎı¾´¦ÀíÆ÷²¢·ÇUNIX±ê×¼Å䱸¡£Ëµ²»¶¨±ðÈ˵ÄLinux»úÆ÷û°²×°j ......
½ø³Ì¹ÜÀí£º
×Ô¶¯Ö´Ðнø³ÌµÄÃüÁatºÍbatch¡£ÆäÖÐatÖƶ¨½ø³ÌÖ´ÐеÄʱ¼ä£¬batchÔÚϵͳ¿ÕÏÐʱ×Ô¶¯Ö´ÐС£crontab¿ÉÒÔÖÜÆÚÐÔµÄÖ´Ðнø³Ì£¬±ÈÈçÈÃij½Å±¾ÖÜÆÚÐÔµÄÖ´ÐУ¬³£ÓÃÓÚϵͳ¼à²â¡£ËüµÄÃüÁî¸ñʽÈçÏ£º
ʱ³Ì±íµÄ¸ñʽÈçÏÂ
:
f1 f2 f3 f4 f5 program
ÆäÖÐ f1 ÊDZíʾ·ÖÖÓ£¬f2 ±íʾСʱ£¬f3 ±íʾһ¸öÔ·ÝÖеĵڼ¸ÈÕ£¬f4 ±íÊ ......
ÎÊÌâÃèÊö£º
µ±linuxÆô¶¯µ½sendmail·þÎñʱ£¬ÎÞ·¨Õý³£½øÈëϵͳ
½â¾öÎÊÌ⣺
1¡¢²¢²»ÊÇÎÞ·¨½øÈ¥£¬¶øÊÇÕâÒ»¸ö·þÎñÆô¶¯µÄÌرðÂý£¬ËùÒÔ¾´ÇëµÈ´ý
2¡¢ÈçÆô¶¯Ê±²»ÏëµÈ´ý£¬OK£¬Äǵ±ÎÒÃǽøÈëÒԺ󣬹صôsendmail·þÎñ£º ......
USBÊÇ´ó¼Ò³£¼ûµÄ£¬É豸×ÜÏß¡£ Õâ¸öUSB·ÖΪÁ½¸ö²¿·Ö£ºÖ÷»ú£¬É豸¡£ ËûÊÇÒ»¸öÊ÷ÐεĹØϵ£º Ö÷»ú
É豸 É豸 É豸 Ö÷»úÀï×°µÄÊÇ£¬Ö÷»ú¿ØÖÆÆ÷£¬É豸ÖÐ×°µÄÊÇÉ豸¿ØÖÆÆ÷ Host Controller ......