<?xml version="1.0" encoding="utf-8" ?>

<rss version="2.0" 
   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
   xmlns:admin="http://webns.net/mvcb/"
   xmlns:dc="http://purl.org/dc/elements/1.1/"
   xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
   xmlns:wfw="http://wellformedweb.org/CommentAPI/"
   xmlns:content="http://purl.org/rss/1.0/modules/content/"
   >
<channel>
    <title>Lenz Grimmer's blog - Hardware</title>
    <link>http://www.lenzg.org/</link>
    <description>Random notes about Linux, MySQL and Open Source</description>
    <dc:language>en</dc:language>
    <generator>Serendipity 1.3.1 - http://www.s9y.org/</generator>
    <pubDate>Fri, 24 Nov 2006 11:41:35 GMT</pubDate>

    <image>
        <url>http://www.lenzg.org/templates/default/img/s9y_banner_small.png</url>
        <title>RSS: Lenz Grimmer's blog - Hardware - Random notes about Linux, MySQL and Open Source</title>
        <link>http://www.lenzg.org/</link>
        <width>100</width>
        <height>21</height>
    </image>

<item>
    <title>Hot-swapping the CD-ROM drive in my Thinkpad T42 UltraBay with SUSE Linux 10.1</title>
    <link>http://www.lenzg.org/archives/92-Hot-swapping-the-CD-ROM-drive-in-my-Thinkpad-T42-UltraBay-with-SUSE-Linux-10.1.html</link>
            <category>Hardware</category>
            <category>Linux</category>
            <category>OSS</category>
    
    <comments>http://www.lenzg.org/archives/92-Hot-swapping-the-CD-ROM-drive-in-my-Thinkpad-T42-UltraBay-with-SUSE-Linux-10.1.html#comments</comments>
    <wfw:comment>http://www.lenzg.org/wfwcomment.php?cid=92</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://www.lenzg.org/rss.php?version=2.0&amp;type=comments&amp;cid=92</wfw:commentRss>
    

    <author>nospam@example.com (Lenz Grimmer)</author>
    <content:encoded>
    
While browsing the fabolous &lt;a href=&quot;http://www.thinkwiki.org/&quot;&gt;ThinkWiki&lt;/a&gt; pages I stumbled over &lt;a href=&quot;http://www.thinkwiki.org/wiki/Lt_hotswap&quot;&gt;this little gem&lt;/a&gt;: the &lt;a href=&quot;http://sourceforge.net/projects/lths/&quot;&gt;lt_hotswap&lt;/a&gt; kernel module finally allows me to eject the CD-ROM drive in my Thinkpad T42&#039;s UltraBay without having to shut down Linux first. This module makes sure that the device is properly unregistered from the kernel&#039;s device list. Now I can replace it with e.g. a second battery on the fly and don&#039;t have to shutdown the OS completely! The installation on my SUSE Linux 10.1 system was quite easy: after downloading the source tarball from the &lt;a href=&quot;http://sourceforge.net/project/showfiles.php?group_id=160630&quot;&gt;SourceForge.net download page&lt;/a&gt; I performed the following commands:
&lt;pre&gt;tar zxvf lt_hotswap-0.3.6.tar.gz&lt;br /&gt;cd lt_hotswap-0.3.6&lt;br /&gt;make&lt;br /&gt;sudo make install&lt;br /&gt;sudo rcacpid restart&lt;br /&gt;modprobe lt_hotswap&lt;/pre&gt;&lt;p&gt;
You need to have the &lt;tt&gt;kernel-source&lt;/tt&gt; package installed, as well as the gcc compiler, of course. Now when I eject the little lever that allows me to pull out the CD-ROM drive from the UltraBay, the following message appears in /var/log/messages:
&lt;/p&gt;&lt;pre&gt;lt_hotswap: Requesting IDE eject!&lt;br /&gt;lt_hotswap: Attempting to eject&lt;/pre&gt;&lt;p&gt;Now the CD-ROM drive can be safely pulled from the UltraBay and e.g. exchanged with an additional battery. Inserting the battery yields the following kernel message:&lt;/p&gt;&lt;pre&gt;kernel: ACPI: Battery Slot [BAT1] (battery present)&lt;/pre&gt;&lt;p&gt;The battery info also appears in &lt;tt&gt;/proc/acpi/battery&lt;/tt&gt; and is fully operational. Unfortunately battery monitoring tools like KPowersave or gkrellm don&#039;t display the second battery, but at least the kernel is happily using it. I can remove the battery again, but this event does not seem to get registered properly - the second battery remains visible in &lt;tt&gt;/proc/acpi/battery&lt;/tt&gt;, but shows zero capacity and the &amp;quot;present&amp;quot; state does not change. But at least replacing the CD-ROM drive with the battery now workes fine, which was my major concern. And it is still possible to re-insert the CD-ROM drive again:&lt;/p&gt;&lt;pre&gt;kernel: ide1: BM-DMA at 0x1868-0x186f, BIOS settings: hdc:pio, hdd:pio&lt;br /&gt;kernel: Probing IDE interface ide1...&lt;br /&gt;kernel: hdc: HL-DT-STCD-RW/DVD DRIVE GCC-4242N, ATAPI CD/DVD-ROM drive&lt;br /&gt;kernel: ide1 at 0x170-0x177,0x376 on irq 15&lt;br /&gt;kernel: hdc: ATAPI 24X DVD-ROM CD-R/RW drive, 2048kB Cache, UDMA(33)&lt;/pre&gt;&lt;p /&gt;&lt;p&gt;
If you want to enable the &lt;tt&gt;lt_hotswap&lt;/tt&gt; module at bootup, you need to add its name to the &lt;tt&gt;MODULES_LOADED_ON_BOOT&lt;/tt&gt; variable in the &lt;tt&gt;/etc/sysconfig/kernel&lt;/tt&gt; configuration file.&lt;/p&gt;&lt;p /&gt;&lt;p&gt;If your Laptop uses an external docking station to host a CD-ROM drive, there are some good news for you: according to &lt;a href=&quot;http://andreasjaeger.blogspot.com/2006/11/docking-station-support-in-opensuse-102.html&quot;&gt;Andreas Jaeger&#039;s blog&lt;/a&gt;, the &lt;a href=&quot;http://en.opensuse.org/Development_Version&quot;&gt;upcoming openSUSE 10.2&lt;/a&gt; will actually provide a generic &lt;a href=&quot;http://en.opensuse.org/Dockutils&quot;&gt;Dockutils&lt;/a&gt; framework that will support docking/undocking functionality for different laptops and
vendors. It will be interesting to find out if this covers UltraBay devices as well.&lt;/p&gt; 
    </content:encoded>

    <pubDate>Mon, 20 Nov 2006 13:52:49 +0100</pubDate>
    <guid isPermaLink="false">http://www.lenzg.org/archives/92-guid.html</guid>
    <category>hardware</category>
<category>hint</category>
<category>hotplug</category>
<category>linux</category>
<category>OSS</category>
<category>thinkpad</category>

</item>
<item>
    <title>All hail S.M.A.R.T. and external USB hard disk drives!</title>
    <link>http://www.lenzg.org/archives/44-All-hail-S.M.A.R.T.-and-external-USB-hard-disk-drives!.html</link>
            <category>Hardware</category>
            <category>Linux</category>
    
    <comments>http://www.lenzg.org/archives/44-All-hail-S.M.A.R.T.-and-external-USB-hard-disk-drives!.html#comments</comments>
    <wfw:comment>http://www.lenzg.org/wfwcomment.php?cid=44</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://www.lenzg.org/rss.php?version=2.0&amp;type=comments&amp;cid=44</wfw:commentRss>
    

    <author>nospam@example.com (Lenz Grimmer)</author>
    <content:encoded>
    
Long time no post! Last Sunday I spotted the following email in my junk mailfolder:
&lt;pre&gt;Date: Sun, 21 May 2006 19:08:39 +0200&lt;br /&gt;From: root &amp;lt;root@metis.lenznet&amp;gt;&lt;br /&gt;To:  &amp;lt;lenz@localhost.metis.lenznet&amp;gt;&lt;br /&gt;Subject: SMART error (OfflineUncorrectableSector) detected on host: metis&lt;br /&gt;&lt;br /&gt;This email was generated by the smartd daemon running on:&lt;br /&gt;&lt;br /&gt;   host name: metis&lt;br /&gt;  DNS domain: lenznet&lt;br /&gt;  NIS domain:&lt;br /&gt;&lt;br /&gt;The following warning/error was logged by the smartd daemon:&lt;br /&gt;&lt;br /&gt;Device: /dev/hda, 1 Offline uncorrectable sectors&lt;br /&gt;&lt;br /&gt;For details see host&#039;s SYSLOG (default: /var/log/messages).&lt;br /&gt;&lt;br /&gt;You can also use the smartctl utility for further investigation.&lt;br /&gt;No additional email messages about this problem will be sent.&lt;/pre&gt;
Which did not sound too good. In addition to that, the system had failed to resume from a suspend to disk earlier that day - the kernel experienced disk read errors while trying to load the suspended image from the swap partition. Fortunately a fresh reboot still worked and I ran a more thorough analysis of the disk drive by using &lt;tt&gt;smartctl -t long /dev/hda&lt;/tt&gt;. Using various Open Source tools from a &lt;a href=&quot;http://www.novell.com/products/suselinux/&quot;&gt;SUSE Linux 10.1&lt;/a&gt; rescue system (which boots off the first installation CD) helped me to backup and restore my data without losing anything (except for some time, of course). &lt;br /&gt;&lt;a href=&quot;http://www.lenzg.org/archives/44-All-hail-S.M.A.R.T.-and-external-USB-hard-disk-drives!.html#extended&quot;&gt;Continue reading &quot;All hail S.M.A.R.T. and external USB hard disk drives!&quot;&lt;/a&gt;
    </content:encoded>

    <pubDate>Mon, 29 May 2006 18:32:06 +0200</pubDate>
    <guid isPermaLink="false">http://www.lenzg.org/archives/44-guid.html</guid>
    <category>backup</category>
<category>hardware</category>
<category>linux</category>
<category>OSS</category>
<category>suse</category>
<category>thinkpad</category>

</item>
<item>
    <title>Using a DVB-T USB stick on SUSE Linux 10.0</title>
    <link>http://www.lenzg.org/archives/29-Using-a-DVB-T-USB-stick-on-SUSE-Linux-10.0.html</link>
            <category>Hardware</category>
            <category>Linux</category>
    
    <comments>http://www.lenzg.org/archives/29-Using-a-DVB-T-USB-stick-on-SUSE-Linux-10.0.html#comments</comments>
    <wfw:comment>http://www.lenzg.org/wfwcomment.php?cid=29</wfw:comment>

    <slash:comments>7</slash:comments>
    <wfw:commentRss>http://www.lenzg.org/rss.php?version=2.0&amp;type=comments&amp;cid=29</wfw:commentRss>
    

    <author>nospam@example.com (Lenz Grimmer)</author>
    <content:encoded>
    
A few days ago I received a neat little gadget: a &lt;a href=&quot;http://www.yakumo.de/produkte/index.php?pid=1&amp;ag=DVB-T&quot;&gt;Yakumo QuickStick DVB-T&lt;/a&gt;, which allows me to watch TV via the USB-2 port on my Thinkpad. Amazon sold it for 52 EUR, so I could not resist, after making sure that it was listed in the &lt;a href=&quot;http://linuxtv.org/wiki/index.php/DVB_USB#WideView.2FYakumo.2FHama.2FTyphoon.2FYuan_Boxes_and_Pens&quot;&gt;list of supported devices&lt;/a&gt; on the very informative &lt;a href=&quot;http://linuxtv.org/wiki/index.php&quot;&gt;LinuxTV&lt;/a&gt; Wiki pages. All what was left to be done for me was to download the &lt;a href=&quot;http://www.linuxtv.org/downloads/firmware/dvb-usb-wt220u-01.fw&quot;&gt;firmware&lt;/a&gt; and putting it into &lt;tt&gt;/lib/firmware&lt;/tt&gt;. The driver and firmware were loaded automatically when I plugged in the device:

&lt;pre&gt;Mar 20 19:44:05 metis kernel: usb 1-4: new high speed USB device using ehci_hcd and address 8
Mar 20 19:44:05 metis kernel: dvb-usb: found a &#039;WideView WT-220U PenType Receiver (and clones)&#039; in cold state, will try to load a firmware
Mar 20 19:44:05 metis kernel: dvb-usb: downloading firmware from file &#039;dvb-usb-wt220u-01.fw&#039; to the &#039;Cypress FX2&#039;
Mar 20 19:44:05 metis kernel: dvb-usb: WideView WT-220U PenType Receiver (and clones) successfully initialized and connected.
Mar 20 19:44:07 metis kernel: usb 1-4: USB disconnect, address 8
Mar 20 19:44:07 metis kernel: dvb-usb: generic DVB-USB module successfully deinitialized and disconnected.
Mar 20 19:44:08 metis kernel: usb 1-4: new high speed USB device using ehci_hcd and address 9
Mar 20 19:44:08 metis kernel: dvb-usb: found a &#039;WideView WT-220U PenType Receiver (and clones)&#039; in warm state.
Mar 20 19:44:08 metis kernel: dvb-usb: will use the device&#039;s hardware PID filter (table count: 15).
Mar 20 19:44:08 metis kernel: DVB: registering new adapter (WideView WT-220U PenType Receiver (and clones)).
Mar 20 19:44:08 metis kernel: DVB: registering frontend 0 (WideView USB DVB-T)...
Mar 20 19:44:08 metis kernel: dvb-usb: schedule remote query interval to 300 msecs.
Mar 20 19:44:08 metis kernel: dvb-usb: WideView WT-220U PenType Receiver (and clones) successfully initialized and connected.
&lt;/pre&gt;

Now I fired up the KDE video player &lt;a href=&quot;http://kaffeine.sourceforge.net/&quot;&gt;Kaffeine&lt;/a&gt; 0.7.1 and configured it to scan for available channels. That&#039;s all there was to it! I am positively surprised. 
    </content:encoded>

    <pubDate>Wed, 22 Mar 2006 15:38:27 +0100</pubDate>
    <guid isPermaLink="false">http://www.lenzg.org/archives/29-guid.html</guid>
    <category>configuration</category>
<category>hardware</category>
<category>hint</category>
<category>linux</category>
<category>suse</category>

</item>
<item>
    <title>Thinkpad update: stuck in an endless loop?</title>
    <link>http://www.lenzg.org/archives/3-Thinkpad-update-stuck-in-an-endless-loop.html</link>
            <category>Hardware</category>
    
    <comments>http://www.lenzg.org/archives/3-Thinkpad-update-stuck-in-an-endless-loop.html#comments</comments>
    <wfw:comment>http://www.lenzg.org/wfwcomment.php?cid=3</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://www.lenzg.org/rss.php?version=2.0&amp;type=comments&amp;cid=3</wfw:commentRss>
    

    <author>nospam@example.com (Lenz Grimmer)</author>
    <content:encoded>
    
This is too funny. I decided to do some housekeeping on my Thinkpad T42 Laptop and checked the installed driver and firmware versions against the latest updates available from the &lt;a href=&quot;http://www-307.ibm.com/pc/support/site.wss/document.do?lndocid=TPAD-MATRIX&quot;&gt;Thinkpad web pages&lt;/a&gt;.&lt;p&gt;Currently, my Laptop&#039;s BIOS version is 3.12 (latest version available: 3.19), the Embedded Controller is at version 3.03 (latest version available: 3.04).&lt;/p&gt;&lt;p&gt;The &lt;a href=&quot;ftp://ftp.software.ibm.com/pc/pccbbs/mobiles/1ruj33ud.txt&quot;&gt;BIOS README&lt;/a&gt; tells me:&lt;/p&gt;&lt;pre&gt;- This BIOS version will only work with Embedded Controller Program&lt;br /&gt;  Version 3.04 (or higher). Please obtain the additional package,&lt;br /&gt;  Embedded Controller Program Version 3.04 (or higher),&lt;br /&gt;  and update Embedded Controller Program in the system with it.&lt;br /&gt;- If you need to update Embedded Controller Program as well as the BIOS,&lt;br /&gt;  update the BIOS first.&lt;/pre&gt;&lt;p&gt;OK, so I guess I need to update the Embedded Controller Firmware first. However, the &lt;a href=&quot;ftp://ftp.software.ibm.com/pc/pccbbs/mobiles/1rhj10ud.txt&quot;&gt;README for the Controller Update&lt;/a&gt; tells me:&lt;/p&gt;&lt;pre&gt;- This version of Embedded Controller Program will only work with BIOS&lt;br /&gt;  Version 3.13 (or higher). Please obtain the additional package, BIOS&lt;br /&gt;  Version 3.13 (or higher), and update the BIOS in the system with it.&lt;br /&gt;- If you need to update the BIOS as well as the Embedded Controller&lt;br /&gt;  Program, update Embedded Controller Program first.&lt;/pre&gt;&lt;p&gt;I think it&#039;s time to make use of my extended service contract and call their hotline. Or do I really have to update the BIOS from 3.12 to 3.13 first, then update the embedded controller to 3.04 before I can apply the latest BIOS update to 3.19? This is insane.&lt;/p&gt; 
    </content:encoded>

    <pubDate>Mon, 13 Feb 2006 09:24:00 +0100</pubDate>
    <guid isPermaLink="false">http://www.lenzg.org/archives/3-guid.html</guid>
    <category>bios</category>
<category>Hardware</category>
<category>thinkpad</category>
<category>update</category>

</item>

</channel>
</rss>