<?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>BigSmoke &#187; Lenovo</title>
	<atom:link href="http://blog.bigsmoke.us/tag/lenovo/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.bigsmoke.us</link>
	<description>Smokes your problems, coughs fresh air.</description>
	<lastBuildDate>Sat, 04 Feb 2012 18:03:39 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Gentoo update: WiFi drivers (iwl4965)</title>
		<link>http://blog.bigsmoke.us/2009/06/11/gentoo-iwl4965-wifi-drivers</link>
		<comments>http://blog.bigsmoke.us/2009/06/11/gentoo-iwl4965-wifi-drivers#comments</comments>
		<pubDate>Thu, 11 Jun 2009 09:34:09 +0000</pubDate>
		<dc:creator>Rowan Rodrik</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[Lenovo]]></category>
		<category><![CDATA[Linux Gentoo]]></category>
		<category><![CDATA[T61]]></category>
		<category><![CDATA[Thinkpad]]></category>
		<category><![CDATA[WiFi]]></category>
		<category><![CDATA[Wireless]]></category>

		<guid isPermaLink="false">http://blog.bigsmoke.us/?p=572</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<p>When I got the Wireless working on this laptop (a Lenovo <a href="/tag/t61">T61</a>), I was using Linux kernel 2.6.25. I remember that it was quite a pain, because the iwlwifi stuff had only just stabilized enough to replace the (now deprecated) ipw stuff. One of the things I didn&#8217;t get working at the time was <a href="http://en.wikipedia.org/wiki/Monitor_mode">Monitor mode</a>.</p>

<p>Now, I&#8217;m upgrading to kernel 2.6.29, and there have been some changes to the kernel configuration for the iwl4965 driver. <tt>CONFIG_IWL4965</tt> is now a suboption of <tt>CONFIG_IWLAGN</tt>. The wireless didn&#8217;t work on the first boot however. <tt>eth0</tt> didn&#8217;t work either. But, when I changed the wired driver from &#8220;Intel PRO/1000 Gigabit Ethernet&#8221; (<tt>CONFIG_E1000</tt>) to the same for PCI-express (<tt>CONFIG_E1000E</tt>), it did work on the next boot and the wireless magically started working too. <img src='http://blog.bigsmoke.us/wp-factory/wp-includes/images/smilies/icon_confused.gif' alt=':-?' class='wp-smiley' /> </p>

<p>I was surprised because I don&#8217;t see what the wired and the wireless driver have got to do with each other. Also, before, I&#8217;ve always successfully used the non-PCI-express driver for my wired Ethernet interface and I&#8217;m so old fashioned that I can&#8217;t imagine either way that <em>my</em> hardware uses something so modern as PCI-express. <img src='http://blog.bigsmoke.us/wp-factory/wp-includes/images/smilies/icon_razz.gif' alt=':-P' class='wp-smiley' /> </p>

<p>Anyway, it works now. I&#8217;ve gone from kernel 2.6.25 to 2.6.29 and everything seems to be working. I still have to find out how to get Monitor mode working though.</p>

<p>One final thing I noticed is that upgrading <tt>net-wireless/iwl4965-ucode</tt> created an extra entry in my world profile: <tt>net-wireless/iwl4965-ucode<b>:0</b></tt>. I wonder what that is for.</p>]]></content:encoded>
			<wfw:commentRss>http://blog.bigsmoke.us/2009/06/11/gentoo-iwl4965-wifi-drivers/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using Caps Lock as an extra Control key</title>
		<link>http://blog.bigsmoke.us/2008/07/15/using-caps-lock-as-an-extra-control-key</link>
		<comments>http://blog.bigsmoke.us/2008/07/15/using-caps-lock-as-an-extra-control-key#comments</comments>
		<pubDate>Tue, 15 Jul 2008 10:31:35 +0000</pubDate>
		<dc:creator>Rowan Rodrik</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[Gentoo]]></category>
		<category><![CDATA[keyboard]]></category>
		<category><![CDATA[Lenovo]]></category>
		<category><![CDATA[PuTTY]]></category>
		<category><![CDATA[T61]]></category>

		<guid isPermaLink="false">http://blog.bigsmoke.us/?p=98</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<p>With me mostly posting about computer stuff on this weblog, it might surprise you that, until May this year, I hadn&#8217;t owned a personal computer in years while the last one that I did own was a slow pig grown from some old parts of an even slower pig and some second-hand replacements. So, you can image my joy when I got a shiny, new Lenovo Thinkpad 61 this spring.</p>

<p>One of the joys of once more owning a personal computer is that I don&#8217;t have to live through PuTTY anymore. (I used to SSH to the local Debian server here if I wanted to get <em>anything</em> done.) I&#8217;ve reacquainted myself with Gentoo and I&#8217;m loving it. Of course, there&#8217;s a lot more to configure than with Ubuntu (which supports the T61 very neatly out of the box), but that&#8217;s the whole point; I want to be able to configure everything my way and I want to update my knowledge about how Linux systems are made up these days. Control.</p>

<p>On the topic of control, the Control key on the Lenovo keyboard, as with many laptop keyboards that I&#8217;ve encountered, is in a bit of an awkward position, squeezed to the right by the Function key. Since, I very much depend on the Control key for shortcuts (in just about anything, but especially in <a href="http://www.bigsmoke.us/readline/shortcuts">libreadline-based programs</a>), I decided to change the Caps Lock key to be an extra Control key. I&#8217;ve never actually used the CapsLock key in my life, I probably never will, older keyboards used that very spot for the Control Key, and why not? It&#8217;s a much better spot, requiring less gymnastics for my little pinky to reach. Once I considered this I was actually puzzled about why I&#8217;ve always wasted such an well-accessible key position.</p>

<h2>X</h2>

<p>On to the configuration. I wanted this to work in both Console mode and in X. But first X. In the <tt>xorg.conf</tt>, I went to the <tt>InputDevice</tt> section for my keyboard and added <tt>ctrl:nocaps</tt> to <tt>XkbOptions</tt>. The full <tt>XkbOptions</tt> line now reads:</p>

<pre>Option "XkbOptions" "ctrl:nocaps,altwin:menu,compose:ralt,eurosign:e"</pre>

<p>That&#8217;s it. I had to take a few more steps to get it to work in the console also.</p>

<h2>Console</h2>

<p>First, I created a file called &#8220;<tt>/etc/extra-key-conf</tt>&#8221; with the following contents:</p>

<pre>
keymaps 0-15
keycode 58 = Control
</pre>

<p>Then I added the following to <tt>/etc/conf.d/local.start</tt>. This is a Gentoo specific script that is loaded by <tt>/etc/init.d/local</tt>.</p>

<pre class="bash"><span style="color: #b1b100;">if</span> <span style="color: #66cc66;">&#91;</span> -z <span style="color: #ff0000;">&quot;$DISPLAY&quot;</span> -a -e /etc/extra-key-conf <span style="color: #66cc66;">&#93;</span>; <span style="color: #b1b100;">then</span>
        loadkeys /etc/extra-key-conf &amp;&gt;/dev/null
<span style="color: #b1b100;">fi</span></pre>

<p>What this does is to check if the <tt>$DISPLAY</tt> variable isn&#8217;t set (of which we can be sure in this context, but may be useful if you plan to copy this snippet). It also checks if <tt>/etc/extra-key-conf</tt> exists. If both conditions are satisfied, <tt>loadkeys</tt> is called with that file as its argument.</p>

<h2>In conclusion</h2>

<p>I can really recommend this configuration even if your Control key is not awkwardly positioned on your keyboard. Do you use your Caps Lock key? Regularly? If you don&#8217;t, this will make your keyboard use more effective.</p>

<h2>Reference</h2>

<p>If you want to read into this more extensively, I recommend the <cite><a href="http://c2.com/cgi/wiki?RemapCapsLock">Remap Caps Lock</a></cite> article from the Portland Pattern Repository.]]></content:encoded>
			<wfw:commentRss>http://blog.bigsmoke.us/2008/07/15/using-caps-lock-as-an-extra-control-key/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>My CD-RW drive can read everything it writes</title>
		<link>http://blog.bigsmoke.us/2008/07/14/my-cd-rw-drive-can-read-everything-it-writes</link>
		<comments>http://blog.bigsmoke.us/2008/07/14/my-cd-rw-drive-can-read-everything-it-writes#comments</comments>
		<pubDate>Mon, 14 Jul 2008 16:10:50 +0000</pubDate>
		<dc:creator>Rowan Rodrik</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[CD-ROM]]></category>
		<category><![CDATA[CD-RW]]></category>
		<category><![CDATA[Lenovo]]></category>
		<category><![CDATA[T61]]></category>

		<guid isPermaLink="false">http://blog.bigsmoke.us/?p=97</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<p>The HL-DT-ST CD-RW/DVD drive in my Lenovo T61 laptop, has a certain peculiarity. I was burning an ISO image, wich exceeded the supported size of a standard 80 minute CD by 7 MB. (The image was 707 MB.) Using cdrecord with the <tt>-overburn</tt> option seemed to work, until I tried to mount the CD-ROM. It would inevitably&#8212;</p>

<pre># mount /dev/cdrom /mnt/cdrom -t iso9660
mount: block device /dev/sr0 is write-protected, mounting read-only</pre>

<p>Well, that is unexpected! I was going to write that it would refuse with some errors in dmesg about trying to access data beyond some boundary. But I probably messed up something very trivial, because I just can&#8217;t seem to reproduce the error in any way as the mount result above shows.</p>

<p>Let&#8217;s backtrack everything I did to try to fix this <q>problem</q>.</p>

<p>First, after numerous attempts to mount the 700 MB sized CD, I gave up and asked my little sister to bring me my stack of 800 MB CDs next time she&#8217;d come. Of course, over a week went by without her remembering to take the CDs. But eventually, I picked them up myself.</p>

<p>Having retrieved the 800 meg CDs, it came time to test them. Burning went well. Then mounting&#8230; A failure with dmesg showing the familiar error (which I now can&#8217;t look up because I can&#8217;t reproduce the problem <img src='http://blog.bigsmoke.us/wp-factory/wp-includes/images/smilies/icon_razz.gif' alt=':-P' class='wp-smiley' />  ). Mounting it in the local server&#8217;s drive worked fine, though, leading me to think that <q>my burner can&#8217;t read CD-ROMs it has written with overburn enabled.</q></p>

<p>Luckily, I was wrong. But I really don&#8217;t understand why I did get the errors at first. Sure, I did notice a faulty entry in my fstab, but I had also tried mounting it without relying on the fstab (i.e., with <q><tt>mount -t iso9660 /dev/cdrom /mnt/cdrom</tt></q>), which begot me the same error&#8230; Also, I had mounted plenty of CDs before this adventure.</p>

<p>All I can do to explain this is to concede that this is one of those problems where you usually call a geek friend telling them you can&#8217;t get something to work. They&#8217;ll reply by asking you <q>have you tried this and that?</q> <q>Of course I have, at least twice, in the exact same sequence as you describe!</q> <q>Well, humour me then, and try it once more&#8230;</q> <q>Fuck! Fuck! Fuck! And why didn&#8217;t it work 10 minutes ago?!</q> Don&#8217;t tell me you&#8217;ve never had this happen to you. Please?</p>

<p>In conclusion, after finding out that the 800 MB CD <em>did</em> work on my laptop, I reclaimed the 700 MB CD as well (which was now serving as a hawk-deflector in the coop) to find out that, even after being exposed to lots of rain and sun for over a week, this CD also mounted without hesitation.</p>]]></content:encoded>
			<wfw:commentRss>http://blog.bigsmoke.us/2008/07/14/my-cd-rw-drive-can-read-everything-it-writes/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

