{"id":47,"date":"2008-03-24T13:36:56","date_gmt":"2008-03-24T05:36:56","guid":{"rendered":"http:\/\/percy.blog.ubuntu.org.cn\/2008\/03\/24\/gentoo%e4%bd%93%e9%aa%8c%e4%b9%8b%e8%b7%af%e8%bf%99%e6%98%be%e5%8d%a1%e5%ae%89%e8%a3%85\/"},"modified":"2008-03-24T13:36:56","modified_gmt":"2008-03-24T05:36:56","slug":"gentoo%e4%bd%93%e9%aa%8c%e4%b9%8b%e8%b7%af%e8%bf%99%e6%98%be%e5%8d%a1%e5%ae%89%e8%a3%85","status":"publish","type":"post","link":"https:\/\/pjq.me\/?p=47","title":{"rendered":"Gentoo\u4f53\u9a8c\u4e4b\u8def\u8fd9\u4e4b\u663e\u5361\u5b89\u88c5"},"content":{"rendered":"<p>\u9996\u5148\u8981\u914d\u7f6e\u5185\u6838<\/p>\n<p>\u6253\u5f00\u5185\u6838\u6a21\u5757\u52a0\u8f7d\u7684\u652f\u6301<\/p>\n<pre>Loadable module support ---&gt;\n  [*] Enable loadable module support<\/pre>\n<pre>\n\u4f60\u8fd8\u8981\u5728\u5185\u6838\u4e2d\u6253\u5f00Memory Type Range Register<\/pre>\n<pre>\nProcessor and Features ---&gt;\n  [*] MTRR (Memory Type Range Register) suppor<\/pre>\n<pre><\/pre>\n<pre>\u6253\u5f00agpgart\u652f\u6301<\/pre>\n<pre>Device Drivers ---&gt;\n Character devices ---&gt;\n  &lt;*&gt; \/dev\/agpgart (AGP Support)<\/pre>\n<pre><\/pre>\n<pre>\u53bb\u6389\u5185\u6838\u4e2d\u7684\u9a71\u52a8<\/pre>\n<pre>Device Drivers ---&gt;\nGraphics Support ---&gt;\n&lt; &gt;   nVidia Framebuffer Support\n&lt; &gt;   nVidia Riva support<\/pre>\n<pre><\/pre>\n<pre>\u6253\u5f00VESA\u652f\u6301<\/pre>\n<pre>Device Drivers ---&gt;\n Graphics Support ---&gt;\n  [*]   VESA VGA graphics support<\/pre>\n<pre>\u6253\u5f00uvesafb\u652f\u6301<\/pre>\n<pre>Device Drivers ---&gt;\nGraphics Support ---&gt;\n&lt;*&gt;   Userspace VESA VGA graphics support<\/pre>\n<pre><\/pre>\n<pre>\u7136\u540e\u5b89\u88c5\u9a71\u52a8<\/pre>\n<pre>emerge nvidia-drivers nvidia-settings<\/pre>\n<pre>lsmod | grep nvidia &amp;&amp; rmmod nvidia<\/pre>\n<pre>modprobe nvidia<\/pre>\n<pre><\/pre>\n<p>vim \/etc\/modules.autoload.d\/kernel-2.6<\/p>\n<pre> \u52a0\u5165:nvidia<\/pre>\n<pre>update-modules<\/pre>\n<pre><\/pre>\n<pre>\u914d\u7f6eX\u670d\u52a1<\/pre>\n<pre>vim \/etc\/X11\/xorg.conf<\/pre>\n<p>\u5728X\u670d\u52a1\u914d\u7f6e\u4e2d\u628anv\u6539\u6210nvidia<\/p>\n<pre>Section \"Device\"\n  Identifier \"nVidia Inc. GeForce2\"\n  Driver     \"nvidia\"\"\n  VideoRam   65536<\/pre>\n<pre>EndSection<\/pre>\n<pre><\/pre>\n<pre>\n\u7136\u540e\u5230Module\u4e00\u8282\uff0c\u786e\u8ba4glx\u6a21\u5757\u52a0\u8f7d\uff0c\u540c\u65f6dri\u6a21\u5757\u6ca1\u52a0\u8f7d\uff1a<\/pre>\n<pre> Section \"Module\"\n  \uff08\u2026\u2026\uff09\n  # Load  \"dri\"\n  Load  \"glx\"\n  \uff08\u2026\u2026\uff09\nEndSection<\/pre>\n<pre>\n\u4e0b\u4e00\u6b65\uff0c\u5728Screen\u4e00\u8282\uff0c\u786e\u4fddDefaultDepth\u6307\u4ee4\u88ab\u8bbe\u4e3a16\u621624,\u6216\u8005\u4f60\u53ea\u6709\nDepth\u8bbe\u4e3a16\u621624\u7684Display\u5c0f\u8282\u3002\u5982\u679c\u4e0d\u8fd9\u6837\u505a\uff0cnVidia\u7684GLX\u6269\u5c55\u5c06\u65e0\u6cd5\u542f\u52a8\u3002<\/pre>\n<pre>Section \"Screen\"\n  \uff08\u2026\u2026\uff09\n  DefaultDepth 16\n  Subsection \"Display\"\n  \uff08\u2026\u2026\uff09\nEndSection<\/pre>\n<pre><\/pre>\n<p>\u8fd0\u884ceselect\uff0c\u8ba9X\u670d\u52a1\u4f7f\u7528nVidia\u7684GLX\u5e93:<\/p>\n<pre>eselect opengl set nvidia<\/pre>\n<pre><\/pre>\n<pre>\u628a\u4f60\u7684\u7528\u6237\u52a0\u5165video\u7ec4\ngpasswd -a youruser video<\/pre>\n<p>\u68c0\u67e5\u76f4\u63a5\u6e32\u67d3\u72b6\u6001<\/p>\n<pre>glxinfo | grep direct\ndirect rendering: Yes<\/pre>\n<pre><\/pre>\n<pre><strong>\u91cd\u8981: <\/strong>\n\u6bcf\u6b21\u4f60<a href=\"\/\/\/doc\/en\/kernel-upgrade.xml\">\u7f16\u8bd1\u65b0\u5185\u6838<\/a>\u6216\u91cd\u65b0\u7f16\u8bd1\u5f53\u524d\u5185\u6838\uff0c\u4f60\u9700\u8981\u8fd0\u884cemerge nvidia-drivers\u91cd\u65b0\u5b89\u88c5nVidia\u6a21\u5757\u3002<\/pre>\n<pre>\u4e00\u4e2a\u66f4\u5bb9\u6613\u7684\u4fdd\u6301\u7531ebuild\u5b89\u88c5\u7684\u6a21\u5757\u53ef\u7528\u7684\u65b9\u5f0f\u662f\u5b89\u88c5sys-kernel\/module-rebuild\u3002<\/pre>\n<pre>\u4e00\u65e6\u4f60\u5df2\u7ecf\u5b89\u88c5\u4e86\u5b83\uff0c<\/pre>\n<pre>\u7b80\u5355\u5730\u8fd0\u884cmodule-rebuild populate\u4ee5\u628a\u4e00\u4e2a\u9700\u8981\u91cd\u65b0\u7f16\u8bd1\u7684\u5305\u5217\u8868populate\u5230\u6570\u636e\u5e93\u4e2d\u3002<\/pre>\n<pre>\u4ec5\u4ec5\u8fd0\u884cmodule-rebuild rebuild\u6765\u4e3a\u4f60\u7684\u65b0\u5185\u6838\u91cd\u5efa\u9a71\u52a8\u5c31\u884c\u4e86\u3002<\/pre>\n<pre><\/pre>\n<pre><\/pre>\n<pre><\/pre>\n<pre><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u9996\u5148\u8981\u914d\u7f6e\u5185\u6838 \u6253\u5f00\u5185\u6838\u6a21\u5757\u52a0\u8f7d\u7684\u652f\u6301 Loadable module support &#8212;&gt; [*] Enable loadable module support \u4f60\u8fd8\u8981\u5728\u5185\u6838\u4e2d\u6253\u5f00Memory Type Range Register Processor and Features &#8212;&gt; [*] MTRR (Memory Type Range Register) suppor \u6253\u5f00agpgart\u652f\u6301 Device Drivers &#8212;&gt; Character devices &#8212;&gt; &lt;*&gt; \/dev\/agpgart (AGP Support) \u53bb\u6389\u5185\u6838\u4e2d\u7684\u9a71\u52a8 Device Drivers<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[29],"tags":[],"class_list":["post-47","post","type-post","status-publish","format-standard","hentry","category-gentoo"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.0 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Gentoo\u4f53\u9a8c\u4e4b\u8def\u8fd9\u4e4b\u663e\u5361\u5b89\u88c5 - Jianqing&#039;s Blog<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/pjq.me\/?p=47\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Gentoo\u4f53\u9a8c\u4e4b\u8def\u8fd9\u4e4b\u663e\u5361\u5b89\u88c5 - Jianqing&#039;s Blog\" \/>\n<meta property=\"og:description\" content=\"\u9996\u5148\u8981\u914d\u7f6e\u5185\u6838 \u6253\u5f00\u5185\u6838\u6a21\u5757\u52a0\u8f7d\u7684\u652f\u6301 Loadable module support ---&gt; [*] Enable loadable module support \u4f60\u8fd8\u8981\u5728\u5185\u6838\u4e2d\u6253\u5f00Memory Type Range Register Processor and Features ---&gt; [*] MTRR (Memory Type Range Register) suppor \u6253\u5f00agpgart\u652f\u6301 Device Drivers ---&gt; Character devices ---&gt; &lt;*&gt; \/dev\/agpgart (AGP Support) \u53bb\u6389\u5185\u6838\u4e2d\u7684\u9a71\u52a8 Device Drivers\" \/>\n<meta property=\"og:url\" content=\"https:\/\/pjq.me\/?p=47\" \/>\n<meta property=\"og:site_name\" content=\"Jianqing&#039;s Blog\" \/>\n<meta property=\"article:published_time\" content=\"2008-03-24T05:36:56+00:00\" \/>\n<meta name=\"author\" content=\"pengjianqing\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"pengjianqing\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/pjq.me\/?p=47#article\",\"isPartOf\":{\"@id\":\"https:\/\/pjq.me\/?p=47\"},\"author\":{\"name\":\"pengjianqing\",\"@id\":\"https:\/\/pjq.me\/#\/schema\/person\/0eb1e72d1e69fbbd9b5c0bfd8e2aae60\"},\"headline\":\"Gentoo\u4f53\u9a8c\u4e4b\u8def\u8fd9\u4e4b\u663e\u5361\u5b89\u88c5\",\"datePublished\":\"2008-03-24T05:36:56+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/pjq.me\/?p=47\"},\"wordCount\":14,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/pjq.me\/#\/schema\/person\/0eb1e72d1e69fbbd9b5c0bfd8e2aae60\"},\"articleSection\":[\"gentoo\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/pjq.me\/?p=47#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/pjq.me\/?p=47\",\"url\":\"https:\/\/pjq.me\/?p=47\",\"name\":\"Gentoo\u4f53\u9a8c\u4e4b\u8def\u8fd9\u4e4b\u663e\u5361\u5b89\u88c5 - Jianqing&#039;s Blog\",\"isPartOf\":{\"@id\":\"https:\/\/pjq.me\/#website\"},\"datePublished\":\"2008-03-24T05:36:56+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/pjq.me\/?p=47#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/pjq.me\/?p=47\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/pjq.me\/?p=47#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/pjq.me\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Gentoo\u4f53\u9a8c\u4e4b\u8def\u8fd9\u4e4b\u663e\u5361\u5b89\u88c5\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/pjq.me\/#website\",\"url\":\"https:\/\/pjq.me\/\",\"name\":\"Jianqing&#039;s Blog\",\"description\":\"Thoughts and Future\",\"publisher\":{\"@id\":\"https:\/\/pjq.me\/#\/schema\/person\/0eb1e72d1e69fbbd9b5c0bfd8e2aae60\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/pjq.me\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\/\/pjq.me\/#\/schema\/person\/0eb1e72d1e69fbbd9b5c0bfd8e2aae60\",\"name\":\"pengjianqing\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/pjq.me\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/pjq.me\/wp-content\/uploads\/2021\/12\/Screen-Shot-2021-12-02-at-6.10.58-PM.png\",\"contentUrl\":\"https:\/\/pjq.me\/wp-content\/uploads\/2021\/12\/Screen-Shot-2021-12-02-at-6.10.58-PM.png\",\"width\":460,\"height\":752,\"caption\":\"pengjianqing\"},\"logo\":{\"@id\":\"https:\/\/pjq.me\/#\/schema\/person\/image\/\"},\"url\":\"https:\/\/pjq.me\/?author=1\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Gentoo\u4f53\u9a8c\u4e4b\u8def\u8fd9\u4e4b\u663e\u5361\u5b89\u88c5 - Jianqing&#039;s Blog","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/pjq.me\/?p=47","og_locale":"en_US","og_type":"article","og_title":"Gentoo\u4f53\u9a8c\u4e4b\u8def\u8fd9\u4e4b\u663e\u5361\u5b89\u88c5 - Jianqing&#039;s Blog","og_description":"\u9996\u5148\u8981\u914d\u7f6e\u5185\u6838 \u6253\u5f00\u5185\u6838\u6a21\u5757\u52a0\u8f7d\u7684\u652f\u6301 Loadable module support ---&gt; [*] Enable loadable module support \u4f60\u8fd8\u8981\u5728\u5185\u6838\u4e2d\u6253\u5f00Memory Type Range Register Processor and Features ---&gt; [*] MTRR (Memory Type Range Register) suppor \u6253\u5f00agpgart\u652f\u6301 Device Drivers ---&gt; Character devices ---&gt; &lt;*&gt; \/dev\/agpgart (AGP Support) \u53bb\u6389\u5185\u6838\u4e2d\u7684\u9a71\u52a8 Device Drivers","og_url":"https:\/\/pjq.me\/?p=47","og_site_name":"Jianqing&#039;s Blog","article_published_time":"2008-03-24T05:36:56+00:00","author":"pengjianqing","twitter_card":"summary_large_image","twitter_misc":{"Written by":"pengjianqing","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/pjq.me\/?p=47#article","isPartOf":{"@id":"https:\/\/pjq.me\/?p=47"},"author":{"name":"pengjianqing","@id":"https:\/\/pjq.me\/#\/schema\/person\/0eb1e72d1e69fbbd9b5c0bfd8e2aae60"},"headline":"Gentoo\u4f53\u9a8c\u4e4b\u8def\u8fd9\u4e4b\u663e\u5361\u5b89\u88c5","datePublished":"2008-03-24T05:36:56+00:00","mainEntityOfPage":{"@id":"https:\/\/pjq.me\/?p=47"},"wordCount":14,"commentCount":0,"publisher":{"@id":"https:\/\/pjq.me\/#\/schema\/person\/0eb1e72d1e69fbbd9b5c0bfd8e2aae60"},"articleSection":["gentoo"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/pjq.me\/?p=47#respond"]}]},{"@type":"WebPage","@id":"https:\/\/pjq.me\/?p=47","url":"https:\/\/pjq.me\/?p=47","name":"Gentoo\u4f53\u9a8c\u4e4b\u8def\u8fd9\u4e4b\u663e\u5361\u5b89\u88c5 - Jianqing&#039;s Blog","isPartOf":{"@id":"https:\/\/pjq.me\/#website"},"datePublished":"2008-03-24T05:36:56+00:00","breadcrumb":{"@id":"https:\/\/pjq.me\/?p=47#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/pjq.me\/?p=47"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/pjq.me\/?p=47#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/pjq.me\/"},{"@type":"ListItem","position":2,"name":"Gentoo\u4f53\u9a8c\u4e4b\u8def\u8fd9\u4e4b\u663e\u5361\u5b89\u88c5"}]},{"@type":"WebSite","@id":"https:\/\/pjq.me\/#website","url":"https:\/\/pjq.me\/","name":"Jianqing&#039;s Blog","description":"Thoughts and Future","publisher":{"@id":"https:\/\/pjq.me\/#\/schema\/person\/0eb1e72d1e69fbbd9b5c0bfd8e2aae60"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/pjq.me\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/pjq.me\/#\/schema\/person\/0eb1e72d1e69fbbd9b5c0bfd8e2aae60","name":"pengjianqing","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/pjq.me\/#\/schema\/person\/image\/","url":"https:\/\/pjq.me\/wp-content\/uploads\/2021\/12\/Screen-Shot-2021-12-02-at-6.10.58-PM.png","contentUrl":"https:\/\/pjq.me\/wp-content\/uploads\/2021\/12\/Screen-Shot-2021-12-02-at-6.10.58-PM.png","width":460,"height":752,"caption":"pengjianqing"},"logo":{"@id":"https:\/\/pjq.me\/#\/schema\/person\/image\/"},"url":"https:\/\/pjq.me\/?author=1"}]}},"views":1870,"_links":{"self":[{"href":"https:\/\/pjq.me\/index.php?rest_route=\/wp\/v2\/posts\/47","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pjq.me\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pjq.me\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pjq.me\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/pjq.me\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=47"}],"version-history":[{"count":0,"href":"https:\/\/pjq.me\/index.php?rest_route=\/wp\/v2\/posts\/47\/revisions"}],"wp:attachment":[{"href":"https:\/\/pjq.me\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=47"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pjq.me\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=47"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pjq.me\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=47"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}