<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>~chuck/blog &#187; Hardy</title>
	<atom:link href="http://www.ozymo.com/explosions/tag/hardy/feed" rel="self" type="application/rss+xml" />
	<link>http://www.ozymo.com</link>
	<description>What more could you want?</description>
	<lastBuildDate>Tue, 17 Oct 2023 03:57:54 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Fglrx and Suspend in Ubuntu Hardy Alpha: Workaround</title>
		<link>http://www.ozymo.com/explosions/31</link>
		<comments>http://www.ozymo.com/explosions/31#comments</comments>
		<pubDate>Tue, 18 Mar 2008 04:41:42 +0000</pubDate>
		<dc:creator>chuck</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Rants]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[ati]]></category>
		<category><![CDATA[fglrx]]></category>
		<category><![CDATA[Hardy]]></category>
		<category><![CDATA[heron]]></category>
		<category><![CDATA[hibernate]]></category>
		<category><![CDATA[resume]]></category>
		<category><![CDATA[sleep]]></category>
		<category><![CDATA[suspend]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://www.ozymo.com/~chuck/blog/2008/03/17/fglrx-and-suspend-in-ubuntu-hardy-alpha/</guid>
		<description><![CDATA[Oh, my.  What a weird couple weeks it&#8217;s been for my laptop&#8230; I started with Alpha5, in which suspend worked.  Alpha 6 also supported suspend.  Both with the open-source ati driver upon install.  Beautiful!  Thank you Ubuntu for having an awesome distro! Supposedly, the xorg-driver-fglrx package in the Ubuntu repos for the Hardy development version]]></description>
			<content:encoded><![CDATA[<p>Oh, my.  What a weird couple weeks it&#8217;s been for my laptop&#8230;</p>
<p>I started with Alpha5, in which suspend worked.  Alpha 6 also supported suspend.  Both with the open-source ati driver upon install.  Beautiful!  <a title="Go there.  Install it.  Hesitant?  Google for Wubi." href="http://www.ubuntu.com" target="_blank">Thank you Ubuntu for having an awesome distro!</a></p>
<p>Supposedly, the xorg-driver-fglrx package in the Ubuntu repos for the Hardy development version addressed the suspend/resume issues that have been the bane of Linux geeks with newer ATI cards eveywhere.  I, for one, did not notice that the issue had been resolved.</p>
<p>I DID notice, however, that out-of-the-box, so to speak, suspend worked with the open-source ati driver.  I could suspend, resume, hibernate, etc.  But, I&#8217;m whiney, and wanted my ever-so-cool desktop effects (mostly for the transparent terminals).</p>
<p>Upon installing this xorg-driver-fglrx package, my suspend/resume functionality broke.  Ouch.  That&#8217;s a beta-killer if ever.</p>
<p>I have tried every sort of configuration imaginable, and googled every combination of keywords for fglrx, suspend, hibernate, sleep, resume, ati, proprietary, and on and on.  I found several people (with different cards and different configurations) that were successful in manipulating the /etc/default/acpi-support file in such a way that suspend just worked.  Hoorah for them!  I was still stuck.</p>
<p>I have a Gateway MT3705 with an integrated ATI Radeon XPRESS 200M graphics card:</p>
<blockquote><p><strong>$ lspci -vv</strong><br />
01:05.0 VGA compatible controller: ATI Technologies Inc RC410 [Radeon Xpress 200M] (prog-if 00 [VGA controller])<br />
Subsystem: Gateway 2000 Unknown device 0318<br />
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B-<br />
Status: Cap+ 66MHz+ UDF- FastB2B+ ParErr- DEVSEL=medium &gt;TAbort- &lt;TAbort- &lt;MAbort- &gt;SERR- &lt;PERR-<br />
Latency: 255 (2000ns min), Cache Line Size: 32 bytes<br />
Interrupt: pin A routed to IRQ 19<br />
Region 0: Memory at d0000000 (32-bit, prefetchable) [size=256M]<br />
Region 1: I/O ports at 9000 [size=256]<br />
Region 2: Memory at c0000000 (32-bit, non-prefetchable) [size=64K]<br />
[virtual] Expansion ROM at c0020000 [disabled] [size=128K]<br />
Capabilities: &lt;access denied&gt;</p></blockquote>
<p>Pulling info from dpkg, I can see the version and supported cards:</p>
<blockquote><p><strong>$ sudo dpkg -p xorg-driver-fglrx | grep &#8216;Version\|Xpress&#8217;</strong><br />
Version: 1:7.1.0-8-3+2.6.24.11-12.31<br />
* Radeon Xpress: 1200 series, 1100 series, 200 series</p></blockquote>
<p>All in all, it is &#8220;supposed&#8221; to work.  I have NO idea why it does not.  I am not that far along.  In fact, I don&#8217;t think the issue is with the driver, after my most recent discovery.</p>
<p>I have successfully been able to suspend and resume my computer for several hours now!  Hoorah!</p>
<p>Here is what I have done:</p>
<p>I changed a few things around in the /etc/default/acpi-support file, as per the instructions as <a title="The " href="http://wiki.cchtml.com/index.php/Ubuntu" target="_blank">cchtml</a> pertaining to Gutsy and Feisty, because they have not yet gotten the Hardy page together (since it&#8217;s still alpha, i understand!).  Here is my current /etc/default/acpi-support file:</p>
<blockquote><p><strong>$ sed &#8216;/^#/d;/^$/d&#8217; /etc/default/acpi-support</strong><br />
ACPI_SLEEP=true<br />
ACPI_HIBERNATE=true<br />
ACPI_SLEEP_MODE=mem<br />
MODULES=&#8221;"<br />
MODULES_WHITELIST=&#8221;fglrx&#8221;<br />
SAVE_VBE_STATE=false<br />
VBESTATE=/var/lib/acpi-support/vbestate<br />
POST_VIDEO=<br />
USE_DPMS=false<br />
DOUBLE_CONSOLE_SWITCH=false<br />
HIBERNATE_MODE=shutdown<br />
LOCK_SCREEN=true<br />
STOP_SERVICES=&#8221;"<br />
RESTART_IRDA=false<br />
ENABLE_LAPTOP_MODE=false<br />
SPINDOWN_TIME=12</p></blockquote>
<p>This is not stock.  However, I have made enough changes to it that I am not sure what the stock implementation is anymore!  It works now, so I&#8217;m cool with it.</p>
<p>Now, if I try to suspend via gnome-power-manager, or the Logout button, it will sleep and blink at me slowly and drearily, but will abruptly tell me to piss off when I try to wake it.  Ever poked a sleeping bear?  Same thing.</p>
<p>However, if I open my terminal and run this command (in bold), I can sleep and resume, as you can see by the output of the script (not in bold):</p>
<blockquote><p><strong>$ sudo /etc/acpi/sleep.sh force</strong><br />
ifdown: interface eth0 not configured<br />
ifdown: interface wlan0 not configured<br />
* Shutting down ALSA&#8230;                                                 [ OK ]<br />
* Saving the system clock<br />
* Setting the system clock<br />
Ignoring unknown interface eth0=eth0.<br />
Ignoring unknown interface wlan0=wlan0.<br />
* Setting up ALSA&#8230;                                                    [ OK ]<br />
FATAL: Module acpi_sbs not found.<br />
FATAL: Module acpi_sbs not found.</p></blockquote>
<p>So, when it suspends, I get a grey-and-white-blinky-screen-of-death, and then *poof!* it&#8217;s out and peaceful.  When returned to a wakeful state, I am greeted with my desktop and session information that I left behind.</p>
<p>Once concern I have is that the screen is not locked when the computer awakens, so theoretically, anyone could awaken my laptop and overtake me completely.  Since it is nearly always within arm&#8217;s reach, I am not terribly worried.  I worked around this issue as such:</p>
<blockquote><p><strong>$ sudo /etc/acpi/sleep.sh force &amp;&amp; gnome-screensaver-command &#8211;lock</strong></p></blockquote>
<p>For me, this is too much to remember, so I have set up a little alias in my ~/.bashrc file called simply &#8220;sleep&#8221; that performs this command for me when I type, well, &#8220;sleep&#8221;:</p>
<blockquote><p><strong> $ grep &#8220;alias sle&#8221; ~/.bashrc </strong><br />
alias sleep=&#8217;sudo /etc/acpi/sleep.sh force &amp;&amp; gnome-screensaver-command &#8211;lock&#8217;</p></blockquote>
<p>I am a terminal junky, and am perfectly fine with this.  But, some people are not, so here&#8217;s a GUI-type version of the above.  These can be run by pressing Alt-F2, and copying in the commands.  You will likely be prompted for a password:</p>
<blockquote><p><strong>$ gksu gedit /usr/local/bin/sleeparound.sh</strong></p>
<p>Type into file:<br />
#!/bin/bash<br />
gksu /etc/acpi/sleep.sh force &amp;&amp; gnome-screensaver-command &#8211;lock</p>
<p><strong>$ gksu chmod +x /usr/local/bin/sleeparound.sh</strong></p></blockquote>
<p>Now that the tough terminal part is done, simply add a custom launcher to the panel (right-click the panel, click &#8220;Add to Panel&#8230;&#8221;, click &#8220;Custom Application Launcher&#8221;)  that calls this command.  It will prompt you for a password, then sleep, and lock your screen when it wakes up.<a title="Screenshot-Create_Launcher.png" href="http://www.ozymo.com/wp-content/uploads/2008/03/screenshot-create_launcher.png"><img src="http://www.ozymo.com/wp-content/uploads/2008/03/screenshot-create_launcher.png" border="1em" alt="Screenshot-Create_Launcher.png" hspace="5em" vspace="5em" align="left" /></a></p>
<p>Cool.</p>
<p><em>Now, make a note that during my research, I found that some people had networking problems after resume, particularly pertaining to wireless.  I did not, so will not delve into that, but two key things that I saw (which could be added to the sleeparound.sh script) wereunloading and reloading the driver modules for the particular net interface, and restarting the Gnome Network Manager. </em></p>
<p>I gotta say, I love Linux.</p>
<p>/cs</p>
<p>UPDATE 080319: A smoother version of the command to use for sleep involves using the -S flag for sudo, which causes it to read from standard input.  For example, in .bashrc, the alias &#8220;sleep&#8221; would be comprised of this:</p>
<blockquote><p><strong>alias sleep=&#8217;gnome-screensaver-command &#8211;lock &amp;&amp; sleep 3 &amp;&amp; cat ~/.passfile | sudo -S /etc/acpi/sleep.sh force&#8217;</strong></p></blockquote>
<p>So, in your home directory, issue the command &#8216;cat &gt; ~/.passfile &amp;&amp; chmod 400 ~/.passfile&#8217; and type in your password.  Setting the permissions to 400 disallow other users from reading the file (other than root).  You can also replace the command in the shell script we created above with this, as well.</p>
<p>This version will lock the screen, then sleep, whereas before, it would sleep, then lock the screen on wake.  Sorry &#8211; I wrote the last one at like 2 in the morning.  /cs</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ozymo.com/explosions/31/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Ubuntu 8.04 Hardy Heron Alpha and Beta testing</title>
		<link>http://www.ozymo.com/explosions/25</link>
		<comments>http://www.ozymo.com/explosions/25#comments</comments>
		<pubDate>Fri, 07 Mar 2008 09:08:46 +0000</pubDate>
		<dc:creator>chuck</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Rants]]></category>
		<category><![CDATA[beta]]></category>
		<category><![CDATA[Hardy]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://www.ozymo.com/~chuck/blog/2008/03/07/ubuntu-804-hardy-heron-beta-testing/</guid>
		<description><![CDATA[I love Ubuntu. It&#8217;s Linux that you can plug in and use quickly, without a whole lot of setup time. I even convinced my Uncle Phil and my Grandmother-in-law to use it, and they are die-hard Windows fans. Well, wow. My first impression once I got Hardy installed was that the new modern art deco]]></description>
			<content:encoded><![CDATA[<p>I love <a title="Ubuntu's Website - Download it and give it a go!" href="http://www.ubuntu.com" target="_blank">Ubuntu</a>.  It&#8217;s Linux that you can plug in and use quickly, without a whole lot of setup time.  I even convinced my Uncle Phil and my Grandmother-in-law to use it, and they are die-hard Windows fans.</p>
<p>Well, wow.  My first impression once I got Hardy installed was that the new modern art deco background is a far reach from their traditional &#8220;wiggly lines&#8221; art.</p>
<p>I think I like it.<a title="Ubuntu_8.04_HardyHeron_Desktop" href="http://www.ozymo.com/wp-content/uploads/2008/03/screenshot.png"><img src="http://www.ozymo.com/wp-content/uploads/2008/03/screenshot.thumbnail.png" border="1em" alt="Ubuntu_8.04_HardyHeron_Desktop" hspace="5em" vspace="5em" align="right" /></a></p>
<p><span id="more-25"></span></p>
<p>I also very much like the fact that my graphics card, which is an ATI Radeon XPRESS 200M (integrated) is supported by the xorg-driver-fglrx package (which it wasn&#8217;t in Gutsy) and that I was able to get my transparent terminals (which is the best feature of OpenGL) without a whole heck of a lot more than a reboot.</p>
<p>All in all, I have been impressed thus far, after using it for about an hour.</p>
<p>They&#8217;ve done some work on the &#8220;Search and Indexing&#8221; with trackerd.  I have noticed that it is a TON faster, and that my hard disk is not thrashing near as much as it did with Gutsy.</p>
<p>One thing I am overly unimpressed with is that somehow, the combination of &#8220;Shift+Space&#8221; keeps changing my keyboard layout and character set to &#8220;Amheric&#8221;, which seems to be the first in a list of char sets.  I haven&#8217;t figured out how to completely kill it yet, but at the <a title="Kill SCIM's Hotkeys" href="http://ubuntuforums.org/showpost.php?p=4465942&amp;postcount=6" target="_blank">Ubuntu forums</a>, I found an article that suggested killing the Hotkeys.  This seems to have fixed the issue, as one of the hotkeys was &#8220;Shift+Space&#8221;.  I hit that a lot on carryover.</p>
<p>So, after that, it seems I&#8217;ve got things about configured the way I want them.  Thus far I&#8217;m impressed with everything, except the fact that I still may have to install <a title="ATI Driver Page" href="http://ati.amd.com/support/driver.html" target="_blank">ATI&#8217;s proprietary driver</a> (not from the <a title="Ubuntu Package Listing for xorg-driver-fglrx" href="http://packages.ubuntu.com/hardy/xorg-driver-fglrx" target="_blank">Ubuntu repo package</a>) in order to be able to properly resume from suspend.</p>
<p>Oh, well.  All in a day&#8217;s work.</p>
<p>/cs</p>
<p>UPDATE 080309:  I ended up installing ATI&#8217;s proprietary driver using the instructions for Gutsy (but the packages for Hardy) at <a title="Cchtml's Wiki fro ATI Linux drivers" href="http://wiki.cchtml.com/index.php/Main_Page" target="_blank">cchtml&#8217;s wiki</a> but to no avail.  Suspend is still broken.  I am reinstalling from scratch and want to try to do without my transparent terminals to see what Ubuntu does as far as patching for the driver.  There was an update for xorg-driver-fglrx, but it broke my config.  (It wouldn&#8217;t have been hard to boot to single-user mode and dpkg &#8211;reconfigure xserver-xorg, but why not start fresh, right?)  Anyway.  I said I&#8217;d update, and I did.  /cs</p>
<p>UPDATE 080316: OK, so it&#8217;s been an up and down road.  I am either able to suspend (which I find essential on a laptop) or have GL effects, which give me transparent terminals (which is just ideal in general).  I downloaded the daily build and reinstalled today.  More tweeking will *hopefully* yield promising results.  /cs</p>
<p>UPDATE 080317: OK &#8211; up and down has finally leveled out.  I have found a workaround for fglrx and sleep in Hardy.  Hoorah.  /cs</p>
<p>UPDATE 080319: I completely forgot &#8211; there is a bug in synergy (or xorg, not sure which) in Hardy that causes problems with synergy use.  The workaround for this (as documented in the <a title="Ubuntu Forums Post" href="http://ubuntuforums.org/showpost.php?p=4501066&amp;postcount=8" target="_blank">Ubuntu forums</a>) is to run &#8216;sudo synergyc &#8211;options&#8217;.  The problem does not manifest itself in synergys.  NOTE: This should be done on a network you trust, and behind a swith or router. synergy is known to leak information.  /cs</p>
<p>UPDATE 080407: So far so good.  Hardy is now into Beta status, and will be released in <a title="Ubuntu!" href="http://www.ubuntu.com/" target="_blank">17 days</a>. I have had minimal problems, either with updates or with running the system.  Thus far, this has been my favorite Beta experience with Ubuntu &#8211; I seem to remember that there were several rounds of updates with Gutsy that broke &#8211; I have only seen one this go-around, and I was fortunate enough to miss the release, and hit it on the recall.  Basically, a kernel update pushed out, but the restricted-modules package was recalled.  I was able to install the kernel, but was unable to run X with my current config, since the fglrx driver had not been updated.  Four hours later, all was well, and I had the new (and now current) kernel.  Granted, there is still time.In the mean time, however, I can safely say that I believe Hardy to be the best Ubuntu yet.  /cs</p>
<p>UPDATE 080418:  Six days until <a title="Ubuntu Website" href="http://www.ubuntu.com" target="_blank">release</a>.  All still goes well.  Except that my <a title="Fglrx and Suspend in Ubuntu Hardy Alpha: Workaround" href="http://www.ozymo.com/~chuck/blog/2008/03/17/fglrx-and-suspend-in-ubuntu-hardy-alpha/" target="_self">sleeparound.sh</a> script doesn&#8217;t work anymore.  I&#8217;ll try it out again this weekend, and see what I can do to fix it. In the mean time, I&#8217;ve grown an affinity for opaque terminal windows.  <img src='http://www.ozymo.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />   All is still well in the land of Hardy Beta, though.  I even found a <a title="Need FF2 in Hardy?  Try GNU's IceCat." href="http://www.ozymo.com/~chuck/blog/2008/04/18/need-ff2-in-hardy-try-gnus-icecat/" target="_self">workaround</a> for the FF3 issue I was having (meaning that I needed FF2 for some stuff at work, no bug there.)  I came across one of <a title="Playing nicely with Windows" href="http://www.markshuttleworth.com/archives/143" target="_blank">Mark Shuttleworth&#8217;s blog</a> entries that I found to be interesting.  It relates Mark&#8217;s ideas about infiltrating the Windows environment with Free and Open Source Software, siting that the most successful open-source software projects are multi-platform, not Linux specific.  I find this to be very concise and correct embodiment of why I still <em>*occassionally*</em> use <a title="Microsoft Webpage" href="http://www.microsoft.com" target="_blank">Microsoft Windows</a> for one thing or another (read: iTunes).  By keeping up with the goings-on of my previous-primary OS, I am able to help my wife, my Uncle Phil, and my Grandmother-in-law (yes, that&#8217;s right) realize the benefits of Open Source.  I have even converted one of them to a fully-Linux-operated-computer, with no Windows!  What a day that was!  /cs &#8211;p.s. &#8211; Shortly after writing this I remembered that I had not altered the /etc/default/acpi-support file, and that was why my sleeparound.sh script did not work.  It does now.  Ubuntu rules.  /cs</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ozymo.com/explosions/25/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
