{"id":34,"date":"2007-05-23T11:22:13","date_gmt":"2007-05-23T17:22:13","guid":{"rendered":"http:\/\/www.p14nd4.com\/blog\/2007\/05\/23\/ubuntu-feisty-704-compiz-thinkpad-t41\/"},"modified":"2025-11-03T21:32:51","modified_gmt":"2025-11-04T03:32:51","slug":"ubuntu-feisty-704-compiz-thinkpad-t41","status":"publish","type":"post","link":"http:\/\/www.p14nd4.com\/blog\/2007\/05\/23\/ubuntu-feisty-704-compiz-thinkpad-t41\/","title":{"rendered":"Ubuntu Feisty (7.04) + Compiz + Thinkpad T41"},"content":{"rendered":"<h2>Introduction<\/h2>\n<p>As some of you may know, I bought a refurbished IBM ThinkPad T41 (2373-5U2, <acronym title=\"if I recall correctly\">iirc<\/acronym>) during fall 2005, and have been dual booting it with Windows XP Professional and <a href=\"http:\/\/www.ubuntu.com\/\" rel=\"external\">Ubuntu<\/a> Linux. The hard drive is <q>only<\/q> 40 <abbr title=\"gigabyte = 10^(3*3) Bytes\">GB<\/abbr>, which I partitioned as:<\/p>\n<ul>\n<li>26.5 GB Windows (NTFS)<\/li>\n<li>5 GB Ubuntu \/ (ext3)<\/li>\n<li>1 GB swap<\/li>\n<li>4 GB \/home (ext3)<\/li>\n<li>3.5 GB unusable\/recovery partition<\/li>\n<\/ul>\n<p>Windows and Visual Studio 2005 Professional managed to eat up about 8 GB, plus another 1.2 GB for the installers I left on the hard drive, and miscellaneous other crap put the Windows partition near its capacity, and I had <em>nearly<\/em> 1 GB free on the Ubuntu \/ partition, but when it came time to upgrade to Feisty, I was informed that I needed <em>over<\/em> 1.1 <abbr title=\"gibibyte = 2^(10*3) bytes\">GiB<\/abbr> free. Even after some housecleaning, I still came up short, so I decided to wipe \/ and perform a fresh Feisty (Ubuntu 7.04) install. I figured I was probably about due anyway, since I&#8217;d been dist-upgrading since at least Breezy. The installation went fine (I did it during a meeting here at work), but when I went to enable &#8220;Desktop Effects&#8221; (compiz), I got some <a href=\"http:\/\/www.p14nd4.com\/ars\/20070502-1525-composite.png\" title=\"broken compiz screenshot\" rel=\"internal\">odd results<\/a>. Actually, immediately after enabling it, the right section of the screen was displaying odd banded\/corrupt artifacts (leftovers, I presume, from switching video modes, etc). I disabled the effects for the time being, and went about my life.<\/p>\n<h2>Fixing Compiz Display<\/h2>\n<p>As I noted above, I had problems getting Compiz working from Ubuntu 7.04 <q>Feisty<\/q> on my ThinkPad T41 with an ATI Mobility Radeon 7500 (01:00.0 VGA compatible controller: ATI Technologies Inc Radeon Mobility M7 LW [Radeon Mobility 7500]). One or two Ubuntu version ago, I had some OpenGL performance issues with xmoto (a game), which I kind of resolved by changing my xorg.conf file to explicitly use the &#8216;radeon&#8217; driver instead of &#8216;ati&#8217; and forcing AGPMode 2 (and maybe something else, I don&#8217;t remember for sure). I hoped that would solve my current problem, but alas, it did not. Perhaps resulting from my inability to accurately describe the results I was seeing, I was unable to immediately find any quick fixes to my problem. I guess that&#8217;s why it&#8217;s still beta, huh?<\/p>\n<p>Update! I reinstalled Feisty (fresh) on my new laptop hard drive, and spent some time isolating the line that fixed the display rendering. It wasn&#8217;t the original line I thought, but rather:<\/p>\n<p><code>Option          &quot;AGPSize&quot;                           &quot;32&quot;<\/code><\/p>\n<h2>Fixing Compiz Performance<\/h2>\n<p>After getting compiz <em>working<\/em>, I was still getting weird performance hits, where I could hear my hard drive click, whirr, and see CPU spikes during really any display updates (even scrolling a man page in a gnome terminal window would spike the CPU). I thought this was somehow related to the new IDE device handling by the SCSI subsystem, and possibly not having the drive using DMA. I followed that hunch for a while, since it seemed that other people were indeed reporting issues of that nature in Feisty. The information I could glean from dmesg suggested that the drive was in fact in DMA mode, but during the course of the investigation, I noticed some questionable SMART values, so I decided that maybe my hard drive was just dying, and bought a replacement. However, I wasn&#8217;t <em>entirely<\/em> convinced that was the problem, so I kept poking around. I tried many combinations of options, but eventually found a winner. Again, I&#8217;m not <em>100%<\/em> sure which line was the actual solution, but I think it may have been the following line in my Device section of xorg.conf:<\/p>\n<p><code>Option          &quot;RenderAccel&quot;                   &quot;true&quot;<\/code><br \/>\nAlong the way I also modified my dric (\/etc\/dric or ~\/.dric) to enable hyperz as follows (alternatively accomplished with the package <q>driconf<\/q>):<br \/>\n<details class=\"wp-block-inline-spoilers-block\"><summary>dric file<\/summary><code>\n<pre>&lt;driconf&gt;\n    &lt;device screen=&quot;0&quot; driver=&quot;radeon&quot;&gt;\n        &lt;application name=&quot;Default&quot;&gt;\n            &lt;option name=&quot;force_s3tc_enable&quot; value=&quot;false&quot; \/&gt;\n            &lt;option name=&quot;no_rast&quot; value=&quot;false&quot; \/&gt;\n            &lt;option name=&quot;fthrottle_mode&quot; value=&quot;2&quot; \/&gt;\n            &lt;option name=&quot;tcl_mode&quot; value=&quot;1&quot; \/&gt;\n            &lt;option name=&quot;texture_depth&quot; value=&quot;0&quot; \/&gt;\n            &lt;option name=&quot;def_max_anisotropy&quot; value=&quot;1.0&quot; \/&gt;\n            &lt;option name=&quot;no_neg_lod_bias&quot; value=&quot;false&quot; \/&gt;\n            &lt;option name=&quot;texture_units&quot; value=&quot;3&quot; \/&gt;\n            &lt;option name=&quot;dither_mode&quot; value=&quot;0&quot; \/&gt;\n            &lt;option name=&quot;hyperz&quot; value=&quot;true&quot; \/&gt;\n            &lt;option name=&quot;round_mode&quot; value=&quot;0&quot; \/&gt;\n            &lt;option name=&quot;color_reduction&quot; value=&quot;1&quot; \/&gt;\n            &lt;option name=&quot;vblank_mode&quot; value=&quot;1&quot; \/&gt;\n            &lt;option name=&quot;allow_large_textures&quot; value=&quot;2&quot; \/&gt;\n        &lt;\/application&gt;\n    &lt;\/device&gt;\n&lt;\/driconf&gt;<\/pre>\n<p><\/p><\/code><\/details><\/p>\n<p>Full xorg.conf <q>Device<\/q>section:<\/p>\n<details class=\"wp-block-inline-spoilers-block\"><summary>Full xorg.conf Device section<\/summary><code>\n<pre>Section &quot;Device&quot;\n        Identifier      &quot;ATI Technologies Inc Radeon Mobility M7 LW [Radeon Mobility 7500]&quot;\n        Driver          &quot;radeon&quot;\n        BusID           &quot;PCI:1:0:0&quot;\n#       Option          &quot;DisableGLXRootClipping&quot;        &quot;True&quot;\n        Option          &quot;DRI&quot;                           &quot;true&quot;\n#       Option          &quot;ColorTiling&quot;                   &quot;on&quot; #already the default\n        Option          &quot;EnablePageFlip&quot;                &quot;true&quot;\n#       Option          &quot;AccelMethod&quot;                   &quot;EXA&quot; #prevents mine from loading\n        Option          &quot;XAANoOffscreenPixmaps&quot;\n        Option          &quot;AGPMode&quot;                       &quot;4&quot;\n        Option          &quot;AGPFastWrite&quot;                  &quot;on&quot;\n        Option          &quot;RenderAccel&quot;                   &quot;true&quot;\n#       Option          &quot;UseInternalAGPGART&quot;            &quot;no&quot;\n#       Option          &quot;EnableDepthMoves&quot;              &quot;true&quot;\n#       Option          &quot;GARTSize&quot;                      &quot;64&quot;\n        Option          &quot;AGPSize&quot;                       &quot;32&quot;\n#or &quot;64&quot;\n#       Option          &quot;backingstore&quot;                  &quot;on&quot;\n#driconf -&gt; Enable HyperZ for big improvement\n#power saving:\n        Option          &quot;DynamicClocks&quot;                 &quot;on&quot;\nEndSection<\/pre>\n<p><\/p><\/code><\/details>\n","protected":false},"excerpt":{"rendered":"<p>Introduction As some of you may know, I bought a refurbished IBM ThinkPad T41 (2373-5U2, iirc) during fall 2005, and have been dual booting it with Windows XP Professional and Ubuntu Linux. The hard drive is only 40 GB, which I partitioned as: 26.5 GB Windows (NTFS) 5 GB Ubuntu \/ (ext3) 1 GB swap [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[],"class_list":["post-34","post","type-post","status-publish","format-standard","hentry","category-technical"],"_links":{"self":[{"href":"http:\/\/www.p14nd4.com\/blog\/wp-json\/wp\/v2\/posts\/34","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.p14nd4.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.p14nd4.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.p14nd4.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.p14nd4.com\/blog\/wp-json\/wp\/v2\/comments?post=34"}],"version-history":[{"count":1,"href":"http:\/\/www.p14nd4.com\/blog\/wp-json\/wp\/v2\/posts\/34\/revisions"}],"predecessor-version":[{"id":346,"href":"http:\/\/www.p14nd4.com\/blog\/wp-json\/wp\/v2\/posts\/34\/revisions\/346"}],"wp:attachment":[{"href":"http:\/\/www.p14nd4.com\/blog\/wp-json\/wp\/v2\/media?parent=34"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.p14nd4.com\/blog\/wp-json\/wp\/v2\/categories?post=34"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.p14nd4.com\/blog\/wp-json\/wp\/v2\/tags?post=34"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}