Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

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”Îļþ£¬°ÑÕ⼸¸öÊýÊä½øÈ¥£¬Óÿոñ·Ö¿ª£¬´ËʱÆô¶¯ÊÔÊÔ¡£
      ÎÒµÄÆÁµ½Õâ¸


Ïà¹ØÎĵµ£º

linuxµÄHZ, Tick, Jiffies

     LinuxºËÐļ¸¸öÖØÒª¸úʱ¼äÓйصÄÃû´Ê»ò±äÊý£¬µ×Ͻ«½éÉÜHZ¡¢tickÓëjiffies¡£
£¨1£©HZ
      LinuxºËÐÄÿ¸ô¹Ì¶¨ÖÜÆڻᷢ³ötimer interrupt (IRQ 0)£¬HZÊÇÓÃÀ´¶¨ÒåÿһÃëÓм¸´Îtimer interrupts¡£¾ÙÀýÀ´Ëµ£¬HZΪ1000£¬´ú±íÿÃëÓÐ1000´Îtimer interrupts¡£ HZ¿ÉÔÚ±àÒëºËÐ ......

linuxϵͳ¹ÜÀí

½ø³Ì¹ÜÀí£º
×Ô¶¯Ö´Ðнø³ÌµÄÃüÁatºÍbatch¡£ÆäÖÐatÖƶ¨½ø³ÌÖ´ÐеÄʱ¼ä£¬batchÔÚϵͳ¿ÕÏÐʱ×Ô¶¯Ö´ÐС£crontab¿ÉÒÔÖÜÆÚÐÔµÄÖ´Ðнø³Ì£¬±ÈÈçÈÃij½Å±¾ÖÜÆÚÐÔµÄÖ´ÐУ¬³£ÓÃÓÚϵͳ¼à²â¡£ËüµÄÃüÁî¸ñʽÈçÏ£º
ʱ³Ì±íµÄ¸ñʽÈçÏÂ
:
f1 f2 f3 f4 f5 program
ÆäÖÐ f1 ÊDZíʾ·ÖÖÓ£¬f2 ±íʾСʱ£¬f3 ±íʾһ¸öÔ·ÝÖеĵڼ¸ÈÕ£¬f4 ±íÊ ......

linux Æô¶¯ÎÊÌâ £¨ sendmail £©


ÎÊÌâÃèÊö£º
        µ±linuxÆô¶¯µ½sendmail·þÎñʱ£¬ÎÞ·¨Õý³£½øÈëϵͳ
½â¾öÎÊÌ⣺
      1¡¢²¢²»ÊÇÎÞ·¨½øÈ¥£¬¶øÊÇÕâÒ»¸ö·þÎñÆô¶¯µÄÌرðÂý£¬ËùÒÔ¾´ÇëµÈ´ý
      2¡¢ÈçÆô¶¯Ê±²»ÏëµÈ´ý£¬OK£¬Äǵ±ÎÒÃǽøÈëÒԺ󣬹صôsendmail·þÎñ£º ......

linuxÏÂʹÓÃsvn


ÕâÊDZðÈË£¬ÎÒÖ»ÊÇÉÔ¸Ä
     1¡¢½«Îļþcheckoutµ½±¾µØĿ¼
svn checkout path£¨pathÊÇ·þÎñÆ÷ÉϵÄĿ¼£©
ÀýÈ磺svn checkout svn://192.168.1.1/pro/domain
¼òд£ºsvn co
        2¡¢Íù°æ±¾¿âÖÐÌí¼ÓеÄÎļþ
svn add file
ÀýÈ磺svn addtest.php(Ìí¼Ótest.p ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ