{"id":191,"date":"2013-03-28T11:56:42","date_gmt":"2013-03-28T03:56:42","guid":{"rendered":"http:\/\/ukonline2000.com\/?p=191"},"modified":"2013-03-28T12:00:52","modified_gmt":"2013-03-28T04:00:52","slug":"%e6%95%99%e5%a4%a7%e5%ae%b6%e5%a6%82%e4%bd%95%e5%9c%a8%e6%a0%91%e8%8e%93%e6%b4%be%e4%bd%bf%e7%94%a8%e8%a7%a6%e6%91%b8%e5%b1%8f%ef%bc%81","status":"publish","type":"post","link":"http:\/\/ukonline2000.com\/?p=191","title":{"rendered":"\u6559\u5927\u5bb6\u5982\u4f55\u5728\u6811\u8393\u6d3e\u4f7f\u7528\u89e6\u6478\u5c4f\uff01"},"content":{"rendered":"<p>\u5176\u5b9e\u5f88\u4e45\u4e4b\u524d\u5c31\u7528\u4e0a\u89e6\u6478\u5c4f\u4e86\uff0c\u4f46\u662f\u6700\u8fd1\u5f88\u5fd9\u4e00\u76f4\u6ca1\u65f6\u95f4\u5199\u6559\u7a0b\uff0c\u4eca\u5929\u6709\u70b9\u65f6\u95f4\uff0c\u5c31\u7ed9\u5927\u5bb6\u8bf4\u8bf4\u5982\u4f55\u5728\u6811\u8393\u6d3e\u4e0a\u4f7f\u7528\u89e6\u6478\u5c4f\uff01\uff01<\/p>\n<p>\u51c6\u5907\u8bbe\u5907\uff1a<\/p>\n<p>1.\u6811\u8393\u6d3e1\u4e2a<\/p>\n<p>2.\u5e26\u89e6\u6478\u529f\u80fd\u7684\u6db2\u6676\u663e\u793a\u5c4f\uff08\u5728\u8d2d\u4e70\u4e4b\u524d\u4e00\u5b9a\u8981\u786e\u8ba4\u89e6\u6478\u82af\u7247\u662f\u5426\u662feGalax\u7684\u82af\u7247\uff09<\/p>\n<p>\u64cd\u4f5c\u6b65\u9aa4\uff1a<\/p>\n<p>1.\u8bf7\u5927\u5bb6\u4e0b\u8f7d\u57fa\u4e8e\u6700\u65b0debain-02-09\u7248\u672c\u4e0a\u7f16\u8bd1\u7684\u7cfb\u7edf\u955c\u50cf\uff08\u63a8\u8350\u75288G\u7684\u5361\u5bfc\u5165\u955c\u50cf\uff0c\u90e8\u52064G\u5361\u4f1a\u63d0\u793a\u7a7a\u95f4\u4e0d\u8db3\uff09<\/p>\n<p>\u7f51\u76d8\u5730\u5740\uff1ahttp:\/\/pan.baidu.com\/share\/link?shareid=372072&amp;uk=3338932639<\/p>\n<p>2.\u5237\u597d\u7cfb\u7edf\u542f\u52a8\u6811\u8393\u6d3e\uff0c\u4f7f\u7528lsusb\u547d\u4ee4\u67e5\u770b\u89e6\u6478\u5c4f\u662f\u5426\u8bc6\u522b\uff1a<\/p>\n<p><span style=\"color: #000000;\">pi@raspberrypi ~ $ lsusb<\/span><br \/>\n<span style=\"color: #000000;\">Bus 001 Device 002: ID 0424:9512 Standard Microsystems Corp. <\/span><br \/>\n<span style=\"color: #000000;\">Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub<\/span><br \/>\n<span style=\"color: #000000;\">Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp. <\/span><br \/>\n<span style=\"color: #000000;\">Bus 001 Device 004: ID 1c4f:0002 SiGma Micro Keyboard TRACER Gamma Ivory<\/span><br \/>\n<span style=\"color: #000000;\">Bus 001 Device 005: ID 0eef:0001 D-WAV Scientific Co., Ltd eGalax TouchScreen<\/span><\/p>\n<p>\u5982\u679c\u770b\u5230\u6709eGalax\uff0c\u606d\u559c\u4f60\u7684\u7684\u89e6\u6478\u5c4f\u5df2\u7ecf\u627e\u5230\u4e86\uff0c\u5982\u679c\u6ca1\u627e\u5230\u8bf7\u786e\u8ba4\u89e6\u6478\u5c4f\u7684usb\u63a5\u53e3\u662f\u5426\u6b63\u786e\u8fde\u63a5\uff0c\u786e\u8ba4\u89e6\u6478\u5c4f\u7684\u82af\u7247\u662f\u5426\u662feGalax\u7684<\/p>\n<p>3.\u767b\u5f55\u6811\u8393\u6d3e\uff0c\u8fdb\u5165\u56fe\u5f62\u754c\u9762\uff0c\u8fd0\u884cxinput_calibrator\u7a0b\u5e8f\u8f6f\u4ef6\u8c03\u6821\u5c4f\u5e55\uff08\u955c\u50cf\u4e2d\u5df2\u7ecf\u5b89\u88c5\u4e86\u8f6f\u4ef6\uff09\uff0c<\/p>\n<p>pi@raspberrypi ~ $\u00a0xinput_calibrator<\/p>\n<p>\u5c4f\u5e55\u4f1a\u51fa\u73b0\u63d0\u793a\uff0c\u8ba9\u4f60\u53bb\u70b9\u51fb\u5bf9\u89d2\u7ebf\u7684\u5c0f\u53c9\uff0c\u70b9\u51fb\u5b8c\u540e\u5c4f\u5e55\u4f1a\u63d0\u793a\u4e00\u4e2a\u8c03\u6574\u4fe1\u606f\uff0c\u5982\u4e0b\uff1a<\/p>\n<p>Calibrating EVDEV driver for &#8220;eGalax Inc. USB TouchController&#8221; id=8<br \/>\ncurrent calibration values (from XInput): min_x=1938, max_x=114 and min_y=1745, max_y=341<br \/>\nDoing dynamic recalibration:<br \/>\nSetting new calibration data: 121, 1917, 317, 1741<br \/>\n&#8211;&gt; Making the calibration permanent &lt;&#8211;<br \/>\ncopy the snippet below into &#8216;\/etc\/X11\/xorg.conf.d\/99-calibration.conf&#8217;<br \/>\nSection &#8220;InputClass&#8221;<br \/>\nIdentifier &#8220;calibration&#8221;<br \/>\nMatchProduct &#8220;eGalax Inc. USB TouchController&#8221;<br \/>\nOption &#8220;Calibration&#8221; &#8220;121 1917 317 1741&#8221;<br \/>\nOption &#8220;SwapAxes&#8221; &#8220;1&#8221;<br \/>\nEndSection<\/p>\n<p>4.\u6309\u7167\u63d0\u793a\u5c06\u4ee5\u4e0b\u5185\u5bb9\u590d\u5236\u8fd9\u90e8\u5206\u5185\u5bb9<\/p>\n<p>Section &#8220;InputClass&#8221;<br \/>\nIdentifier &#8220;calibration&#8221;<br \/>\nMatchProduct &#8220;eGalax Inc. USB TouchController&#8221;<br \/>\nOption &#8220;Calibration&#8221; &#8220;121 1917 317 1741&#8221;<br \/>\nOption &#8220;SwapAxes&#8221; &#8220;1&#8221;<br \/>\nEndSection<\/p>\n<p>5.\u7f16\u8f91\u6587\u4ef6\u201d\/usr\/share\/X11\/xorg.conf.d\/01-input.conf\u201c\uff0c\u5c06\u521a\u624d\u590d\u5236\u7684\u5185\u5bb9\u6dfb\u52a0\u5230\u6587\u4ef6\u7684\u6700\u540e\uff0c\u5e76\u4fdd\u5b58<\/p>\n<p>pi@raspberrypi ~ $sudo nano \/usr\/share\/X11\/xorg.conf.d\/01-input.conf<\/p>\n<p>6.\u91cd\u542f\u6811\u8393\u6d3e\uff0c\u597d\u597d\u4eab\u53d7\u7684\u4f60\u89e6\u6478\u5c4f\u5427\uff01<\/p>\n<p><object width=\"550\" height=\"400\" classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" codebase=\"http:\/\/download.macromedia.com\/pub\/shockwave\/cabs\/flash\/swflash.cab#version=6,0,40,0\" bgcolor=\"#ffffff\"><param name=\"src\" value=\"http:\/\/player.youku.com\/player.php\/sid\/XNTI3MzAzOTEy\/v.swf\" \/><param name=\"allownetworking\" value=\"internal\" \/><param name=\"allowscriptaccess\" value=\"never\" \/><param name=\"quality\" value=\"high\" \/><param name=\"wmode\" value=\"transparent\" \/><param name=\"allowfullscreen\" value=\"true\" \/><embed width=\"550\" height=\"400\" type=\"application\/x-shockwave-flash\" src=\"http:\/\/player.youku.com\/player.php\/sid\/XNTI3MzAzOTEy\/v.swf\" allownetworking=\"internal\" allowscriptaccess=\"never\" quality=\"high\" wmode=\"transparent\" allowfullscreen=\"true\" bgcolor=\"#ffffff\" \/><\/object><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5176\u5b9e\u5f88\u4e45\u4e4b\u524d\u5c31\u7528\u4e0a\u89e6\u6478\u5c4f\u4e86\uff0c\u4f46\u662f\u6700\u8fd1\u5f88\u5fd9\u4e00\u76f4\u6ca1\u65f6\u95f4\u5199\u6559\u7a0b\uff0c\u4eca\u5929\u6709\u70b9\u65f6\u95f4\uff0c\u5c31\u7ed9\u5927\u5bb6 &hellip; <a href=\"http:\/\/ukonline2000.com\/?p=191\">\u7ee7\u7eed\u9605\u8bfb <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-191","post","type-post","status-publish","format-standard","hentry","category-raspberry-pi"],"_links":{"self":[{"href":"http:\/\/ukonline2000.com\/index.php?rest_route=\/wp\/v2\/posts\/191","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/ukonline2000.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/ukonline2000.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/ukonline2000.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/ukonline2000.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=191"}],"version-history":[{"count":4,"href":"http:\/\/ukonline2000.com\/index.php?rest_route=\/wp\/v2\/posts\/191\/revisions"}],"predecessor-version":[{"id":195,"href":"http:\/\/ukonline2000.com\/index.php?rest_route=\/wp\/v2\/posts\/191\/revisions\/195"}],"wp:attachment":[{"href":"http:\/\/ukonline2000.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=191"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/ukonline2000.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=191"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/ukonline2000.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=191"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}