{"id":3637,"date":"2011-04-17T21:39:34","date_gmt":"2011-04-17T13:39:34","guid":{"rendered":"https:\/\/2blog.ilc.edu.tw\/176\/2011\/04\/17\/fedora-14-compile-kernel-and-install-acer-1420p-tablet-pc-touch-screen\/"},"modified":"2011-04-17T21:39:34","modified_gmt":"2011-04-17T13:39:34","slug":"fedora-14-compile-kernel-and-install-acer-1420p-tablet-pc-touch-screen","status":"publish","type":"post","link":"https:\/\/2blog.ilc.edu.tw\/linkc\/2011\/04\/17\/fedora-14-compile-kernel-and-install-acer-1420p-tablet-pc-touch-screen\/","title":{"rendered":"Fedora 14 Compile kernel and install Acer 1420P Tablet pc Touch screen"},"content":{"rendered":"<div>\n\u5b89\u88dd\u5fc5\u8981\u5957\u4ef6:\n<\/div>\n<div>\n\n<\/div>\n<div>\nsu -c &#8216;yum install rpmdevtools yum-utils gcc make ncurses-devel&#8217;\n<\/div>\n<div>\n\n<\/div>\n<div>\n\u5b89\u88dd\u53ca\u8a2d\u5b9a\u7de8\u8b6f\u74b0\u5883\n<\/div>\n<div>\nrpmdev-setuptree\n<\/div>\n<div>\n\n<\/div>\n<div>\n\u4e0b\u8f09 Kernel source&nbsp;\n<\/div>\n<div>\n\n<\/div>\n<div>\ncd ~\/rpmbuild\/SOURCES\n<\/div>\n<div>\n\n<\/div>\n<div>\nwget http:\/\/www.kernel.org\/pub\/linux\/kernel\/v2.6\/linux-2.6.38.3.tar.bz2\n<\/div>\n<div>\n\n<\/div>\n<div>\ntar -jxf linux-2.6.38.3.tar.bz2\n<\/div>\n<div>\n\n<\/div>\n<div>\nConfigure \u53ca Compile\n<\/div>\n<div>\n\n<\/div>\n<div>\ncd linux-2.6.38.3\n<\/div>\n<div>\n\n<\/div>\n<div>\nwget http:\/\/lii-enac.fr\/en\/architecture\/linux-input\/2.6.38-devel_2011_03_24_15_46.patch\n<\/div>\n<div>\n\n<\/div>\n<div>\ngit apply 2.6.38-devel_2011_03_24_15_46.patch\n<\/div>\n<div>\n\n<\/div>\n<div>\nmake menuconfig\n<\/div>\n<div>\n\n<\/div>\n<div>\n\u9078\u53d6 Device Drivers &#8212;&gt; HID Devices &#8212;&gt; Special HID Drivers\n<\/div>\n<div>\n\u6a19\u8a18 &#8216;HID Multitouch panels&#8217; \u70ba module (\u6309 space \u6216 m)\n<\/div>\n<div>\n\n<\/div>\n<div>\nexport CONCURRENCY_LEVEL=3\n<\/div>\n<div>\n\n<\/div>\n<div>\ntime make rpm\n<\/div>\n<div>\n\n<\/div>\n<div>\n\u5b89\u88dd\u65b0kernel:\n<\/div>\n<div>\ncd ~\/rpmbuild\/RPMS\/x86_64\n<\/div>\n<div>\n\n<\/div>\n<div>\nsu -c &#8216;rpm -ivh &#8211;force kernel-2.6.38.3-1.x86_64.rpm&#8217;\n<\/div>\n<div>\n\n<\/div>\n<div>\ncd \/boot\n<\/div>\n<div>\n\n<\/div>\n<div>\nsu -c &#8216;mkinitrd initramfs-2.6.38.3.img 2.6.38.3&#8217;\n<\/div>\n<div>\n\n<\/div>\n<div>\nsu -c &#8216;vi grub\/menu.lst&#8217;\n<\/div>\n<div>\n\n<\/div>\n<div>\n\u52a0\u5165\u5982\u4e0b\u5167\u5bb9 :\n<\/div>\n<div>\ntitle Fedora (2.6.38.3.fc14.x86_64)\n<\/div>\n<div>\n&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;root (hd0,6)\n<\/div>\n<div>\n&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;kernel \/boot\/vmlinuz-2.6.38.3 ro root=\/dev\/sda7 &nbsp;LANG=zh_TW.UTF-8 KEYBOARDTYPE=pc KEYTABLE=us rhgb quiet\n<\/div>\n<div>\n&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;initrd \/boot\/initramfs-2.6.38.3.img\n<\/div>\n<div>\n\n<\/div>\n<div>\n\u8abf\u6821touch screen:\n<\/div>\n<div>\n\n<\/div>\n<div>\n\n<\/div>\n<div>\nvim \/etc\/udev\/ load_hid_multitouch.sh\n<\/div>\n<div>\n\n<\/div>\n<div>\n&nbsp;&nbsp; &nbsp; &nbsp; \u5167\u5bb9\u5982\u4e0b:\n<\/div>\n<div>\n\n<\/div>\n<div>\n\n<\/div>\n<div>\n&nbsp;&nbsp; &nbsp; &nbsp; #!\/bin\/bash\n<\/div>\n<div>\n&nbsp;&nbsp; &nbsp; &nbsp; input=$@\n<\/div>\n<div>\n&nbsp;&nbsp; &nbsp; &nbsp;\/sbin\/modprobe hid-multitouch\n<\/div>\n<div>\n&nbsp;&nbsp; &nbsp; &nbsp;echo 3 $input 0 &gt; \/sys\/module\/hid_multitouch\/drivers\/hid:hid-multitouch\/new_id\n<\/div>\n<div>\n\n<\/div>\n<div>\nchmod 744 \/etc\/udev\/load_hid_multitouch.sh\n<\/div>\n<div>\n\n<\/div>\n<div>\nvim\/etc\/udev\/rules.d\/41-hid-multitouch.rules\n<\/div>\n<div>\n\n<\/div>\n<div>\n&nbsp;&nbsp; &nbsp; \u5167\u5bb9\u5982\u4e0b:\n<\/div>\n<div>\n&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;SUBSYSTEM==&quot;usb&quot;, ATTRS{idVendor}==&quot;062a&quot;, ATTRS{idProduct}==&quot;7100&quot;, RUN+=&quot;\/bin\/sh \/etc\/udev\/load_hid_multitouch.sh $env{ID_VENDOR_ID} $env{ID_MODEL_ID}&quot;\n<\/div>\n<div>\n\n<\/div>\n<div>\nchmod 644 \/etc\/udev\/rules.d\/41-hid-multitouch.rules\n<\/div>\n<div>\n\n<\/div>\n<div>\n\u6700\u5f8c\uff0c\u91cd\u65b0\u958b\u6a5f\uff0c\u5b8c\u6210\u3002\n<\/div>\n<div>\n\n<\/div>\n<div>\n\u53c3\u8003\u7db2\u5740:\n<\/div>\n<div>\nhttp:\/\/lii-enac.fr\/en\/architecture\/linux-input\/multitouch-howto.html\n<\/div>\n<div>\nhttp:\/\/linuxtweaking.blogspot.com\/2011\/01\/how-to-compile-kernel-from-kernelorg-in.html\n<\/div>\n<div>\n\n<\/div>\n<div>\n\n<\/div>\n<div>\n\n<\/div>\n<div>\n&nbsp;\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u5b89\u88dd\u5fc5\u8981\u5957\u4ef6: su -c &#8216;yum install rpmdevtools yum-utils [&hellip;]<\/p>\n","protected":false},"author":58,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"ocean_post_layout":"","ocean_both_sidebars_style":"","ocean_both_sidebars_content_width":0,"ocean_both_sidebars_sidebars_width":0,"ocean_sidebar":"","ocean_second_sidebar":"","ocean_disable_margins":"enable","ocean_add_body_class":"","ocean_shortcode_before_top_bar":"","ocean_shortcode_after_top_bar":"","ocean_shortcode_before_header":"","ocean_shortcode_after_header":"","ocean_has_shortcode":"","ocean_shortcode_after_title":"","ocean_shortcode_before_footer_widgets":"","ocean_shortcode_after_footer_widgets":"","ocean_shortcode_before_footer_bottom":"","ocean_shortcode_after_footer_bottom":"","ocean_display_top_bar":"default","ocean_display_header":"default","ocean_header_style":"","ocean_center_header_left_menu":"","ocean_custom_header_template":"","ocean_custom_logo":0,"ocean_custom_retina_logo":0,"ocean_custom_logo_max_width":0,"ocean_custom_logo_tablet_max_width":0,"ocean_custom_logo_mobile_max_width":0,"ocean_custom_logo_max_height":0,"ocean_custom_logo_tablet_max_height":0,"ocean_custom_logo_mobile_max_height":0,"ocean_header_custom_menu":"","ocean_menu_typo_font_family":"","ocean_menu_typo_font_subset":"","ocean_menu_typo_font_size":0,"ocean_menu_typo_font_size_tablet":0,"ocean_menu_typo_font_size_mobile":0,"ocean_menu_typo_font_size_unit":"px","ocean_menu_typo_font_weight":"","ocean_menu_typo_font_weight_tablet":"","ocean_menu_typo_font_weight_mobile":"","ocean_menu_typo_transform":"","ocean_menu_typo_transform_tablet":"","ocean_menu_typo_transform_mobile":"","ocean_menu_typo_line_height":0,"ocean_menu_typo_line_height_tablet":0,"ocean_menu_typo_line_height_mobile":0,"ocean_menu_typo_line_height_unit":"","ocean_menu_typo_spacing":0,"ocean_menu_typo_spacing_tablet":0,"ocean_menu_typo_spacing_mobile":0,"ocean_menu_typo_spacing_unit":"","ocean_menu_link_color":"","ocean_menu_link_color_hover":"","ocean_menu_link_color_active":"","ocean_menu_link_background":"","ocean_menu_link_hover_background":"","ocean_menu_link_active_background":"","ocean_menu_social_links_bg":"","ocean_menu_social_hover_links_bg":"","ocean_menu_social_links_color":"","ocean_menu_social_hover_links_color":"","ocean_disable_title":"default","ocean_disable_heading":"default","ocean_post_title":"","ocean_post_subheading":"","ocean_post_title_style":"","ocean_post_title_background_color":"","ocean_post_title_background":0,"ocean_post_title_bg_image_position":"","ocean_post_title_bg_image_attachment":"","ocean_post_title_bg_image_repeat":"","ocean_post_title_bg_image_size":"","ocean_post_title_height":0,"ocean_post_title_bg_overlay":0.5,"ocean_post_title_bg_overlay_color":"","ocean_disable_breadcrumbs":"default","ocean_breadcrumbs_color":"","ocean_breadcrumbs_separator_color":"","ocean_breadcrumbs_links_color":"","ocean_breadcrumbs_links_hover_color":"","ocean_display_footer_widgets":"default","ocean_display_footer_bottom":"default","ocean_custom_footer_template":"","ocean_post_oembed":"","ocean_post_self_hosted_media":"","ocean_post_video_embed":"","ocean_link_format":"","ocean_link_format_target":"self","ocean_quote_format":"","ocean_quote_format_link":"post","ocean_gallery_link_images":"on","ocean_gallery_id":[],"footnotes":""},"categories":[54],"tags":[],"class_list":["post-3637","post","type-post","status-publish","format-standard","hentry","category-c-20915","entry"],"meta_key":{"lt_post_id":["161953"],"_oembed_fafcfeb38f46ef75a231a15a80dc47e5":["{{unknown}}"],"_oembed_de07b12fe7c573c6b7d92390aa045501":["{{unknown}}"],"_oembed_764d97b77941264f337e5d5daf3704c1":["{{unknown}}"],"_oembed_1253e801022001c7dcfab407676b0847":["{{unknown}}"]},"_links":{"self":[{"href":"https:\/\/2blog.ilc.edu.tw\/linkc\/wp-json\/wp\/v2\/posts\/3637"}],"collection":[{"href":"https:\/\/2blog.ilc.edu.tw\/linkc\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/2blog.ilc.edu.tw\/linkc\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/2blog.ilc.edu.tw\/linkc\/wp-json\/wp\/v2\/users\/58"}],"replies":[{"embeddable":true,"href":"https:\/\/2blog.ilc.edu.tw\/linkc\/wp-json\/wp\/v2\/comments?post=3637"}],"version-history":[{"count":0,"href":"https:\/\/2blog.ilc.edu.tw\/linkc\/wp-json\/wp\/v2\/posts\/3637\/revisions"}],"wp:attachment":[{"href":"https:\/\/2blog.ilc.edu.tw\/linkc\/wp-json\/wp\/v2\/media?parent=3637"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/2blog.ilc.edu.tw\/linkc\/wp-json\/wp\/v2\/categories?post=3637"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/2blog.ilc.edu.tw\/linkc\/wp-json\/wp\/v2\/tags?post=3637"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}