<?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>Screen 13 &#187; Hardware</title>
	<atom:link href="http://unrealvoodoo.org/hiteck/blog/category/hardware/feed/" rel="self" type="application/rss+xml" />
	<link>http://unrealvoodoo.org/hiteck/blog</link>
	<description>Just another WordPress weblog</description>
	<lastBuildDate>Fri, 02 Jul 2010 16:20:43 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Repeating key bug with USB keyboard</title>
		<link>http://unrealvoodoo.org/hiteck/blog/2006/05/repeating-key-bug-with-usb-keyboard/</link>
		<comments>http://unrealvoodoo.org/hiteck/blog/2006/05/repeating-key-bug-with-usb-keyboard/#comments</comments>
		<pubDate>Thu, 25 May 2006 13:05:07 +0000</pubDate>
		<dc:creator>skyostil</dc:creator>
				<category><![CDATA[Hardware]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://unrealvoodoo.org/hiteck/blog/hardware/repeating-key-bug-with-usb-keyboard/</guid>
		<description><![CDATA[Here&#8217;s a solution for that strange repeating key glitch with your USB keyboard. You know, the one where you get repeating letters in the output when you type fast (e.g. when typing &#8220;mount&#8221; you get &#8220;mouount&#8221;).
The culprit is the usbkbd module, which is the device driver for the USB keyboard boot protocol. The boot protocol [...]]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s a solution for that strange repeating key glitch with your USB keyboard. You know, the one where you get repeating letters in the output when you type fast (e.g. when typing &#8220;mount&#8221; you get &#8220;mouount&#8221;).</p>
<p>The culprit is the <tt>usbkbd</tt> module, which is the device driver for the USB keyboard <i>boot protocol</i>. The boot protocol is a stripped-down version of the full USB keyboard protocol that is only supposed to be used in the system BIOS and other limited environments. The thing is, the <tt>usbhid</tt> module is perfectly capable of driving both your USB keyboard and mouse without the help of <tt>usbkbd</tt> or <tt>usbmouse</tt>.</p>
<p>But wait! Don&#8217;t go unloading those two modules just yet. If you do, your keyboard and mouse will drop dead. What you need to do is get rid of those two modules files and then reboot, causing the proper drivers to be loaded. Here&#8217;s what I did:</p>
<ol>
<li>Rename <tt>usbkbd.ko</tt> and <tt>usbmouse.ko</tt> in <tt>/lib/modules/x.y.z/kernel/drivers/usb/input</tt></li>
<p> (x.y.z is your kernel version)</p>
<li>Build a new initrd image (which contains some drivers that are loaded at boot time):
<pre class="code">
    # cd /boot
    # mv initrd.img-x.y.z initrd.imb-x.y.z.bak
    # mkinitrd -o initrd.img-x.y.z
    </pre>
</li>
<li>Reboot and check that everything works</li>
</ol>
<p>Just to be safe I recommend you keep and older kernel version around that you can boot with and restore the original initrd image if something goes wrong.</p>
]]></content:encoded>
			<wfw:commentRss>http://unrealvoodoo.org/hiteck/blog/2006/05/repeating-key-bug-with-usb-keyboard/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>nForce 3 and ALSA</title>
		<link>http://unrealvoodoo.org/hiteck/blog/2005/10/nforce-3-and-alsa/</link>
		<comments>http://unrealvoodoo.org/hiteck/blog/2005/10/nforce-3-and-alsa/#comments</comments>
		<pubDate>Sat, 29 Oct 2005 12:56:15 +0000</pubDate>
		<dc:creator>skyostil</dc:creator>
				<category><![CDATA[Hardware]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://unrealvoodoo.org/hiteck/blog/hardware/nforce-3-and-alsa/</guid>
		<description><![CDATA[ALSA provides the nice dmix plugin for mixing multiple audio streams together so that more than one program can access a single audio device simultaneously. This is all fine and well, but unfortunately the sound card (intel8&#215;0) on my nForce 3 board doesn&#8217;t have a supported hardware volume mixer. This means that to have a [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.alsa-project.org">ALSA</a> provides the nice <a href="http://www.alsa-project.org/alsa-doc/alsa-lib/pcm_plugins.html#pcm_plugins_dmix">dmix plugin</a> for mixing multiple audio streams together so that more than one program can access a single audio device simultaneously. This is all fine and well, but unfortunately the sound card (intel8&#215;0) on my nForce 3 board doesn&#8217;t have a supported hardware volume mixer. This means that to have a working global volume control you need to use the <a href="http://www.alsa-project.org/alsa-doc/alsa-lib/pcm_plugins.html#pcm_plugins_softvol">softvol plugin</a>, a software volume mixer.</p>
<p>The idea is to first run the sound through softvol to adjust the global volume of all audio streams. After this the sound is fed into dmix for mixing, and finally the result is routed into the sound card.</p>
<table style="width: 60%; margin-left: 20%; color: #000">
<tr>
<td style="border: outset #ff0 1px; background: #ffa; text-align: center">Application #1</td>
<td style="color: #fff">&gt;</td>
<td style="border: outset #f00 1px; background: #faa; text-align: center">softvol</td>
<td style="color: #fff">&gt;</td>
<td rowspan="3" style="border: outset #0f0 1px; background: #afa; text-align: center">dmix</td>
<td style="color: #fff">&gt;</td>
<td style="border: outset #00f 1px; background: #aaf; text-align: center">sound card</td>
</tr>
<tr>
<td style="border: outset #ff0 1px; background: #ffa; text-align: center">Application #2</td>
<td style="color: #fff">&gt;</td>
<td style="border: outset #f00 1px; background: #faa; text-align: center">softvol</td>
<td style="color: #fff">&gt;</td>
</tr>
<tr>
<td style="border: outset #ff0 1px; background: #ffa; text-align: center">Application #3</td>
<td style="color: #fff">&gt;</td>
<td style="border: outset #f00 1px; background: #faa; text-align: center">softvol</td>
<td style="color: #fff">&gt;</td>
</tr>
</table>
<p>Here&#8217;s an <tt>asoundrd</tt> configuration that brings it all together:</p>
<pre class="code">
# A softvol mixer is assigned as the default audio device
pcm.!default {
  type softvol
  slave {
    pcm "dmixer"
  }
  control {
    name "PCM Volume"
    card 0
  }
}
# The dmixer device mixes multiple audio streams together
pcm.dmixer {
  type dmix
  ipc_key 12345678
  slave {
    # Change the following to "hw:0,0" to use the analog output jack
    pcm "hw:0,2"
    period_time 0
    period_size 512
    buffer_size 4096
    rate 48000
  }
  bindings {
    0 0   # from 0 => to 0
    1 1   # from 1 => to 1
  }
}
</pre>
]]></content:encoded>
			<wfw:commentRss>http://unrealvoodoo.org/hiteck/blog/2005/10/nforce-3-and-alsa/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>nForce 3 and DMA</title>
		<link>http://unrealvoodoo.org/hiteck/blog/2005/01/nforce-3-and-dma/</link>
		<comments>http://unrealvoodoo.org/hiteck/blog/2005/01/nforce-3-and-dma/#comments</comments>
		<pubDate>Mon, 17 Jan 2005 12:56:44 +0000</pubDate>
		<dc:creator>skyostil</dc:creator>
				<category><![CDATA[Hardware]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://unrealvoodoo.org/hiteck/blog/hardware/nforce-3-and-dma/</guid>
		<description><![CDATA[Having trouble enabling DMA on your nForce 3 mobo?
After getting jerky DVD playback I noticed that DMA was not being enabled for my IDE DVD drive. The canonical hdparm -d1 /dev/cdrom resulted in a rude "Permission denied".
It seems that to enable DMA, the amd74xx, ide-cd and ide-generic need to be loaded in this order, or [...]]]></description>
			<content:encoded><![CDATA[<p>Having trouble enabling DMA on your nForce 3 mobo?</p>
<p>After getting jerky DVD playback I noticed that DMA was not being enabled for my IDE DVD drive. The canonical <tt>hdparm -d1 /dev/cdrom</tt> resulted in a rude <tt>"Permission denied"</tt>.</p>
<p>It seems that to enable DMA, the amd74xx, ide-cd and ide-generic need to be loaded in this order, or you&#8217;ll loose DMA and end up with something like this in your system log:</p>
<pre class="code">
NFORCE3-250: port 0x01f0 already claimed by ide0
</pre>
]]></content:encoded>
			<wfw:commentRss>http://unrealvoodoo.org/hiteck/blog/2005/01/nforce-3-and-dma/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Archos compatible videos</title>
		<link>http://unrealvoodoo.org/hiteck/blog/2005/01/archos-compatible-videos/</link>
		<comments>http://unrealvoodoo.org/hiteck/blog/2005/01/archos-compatible-videos/#comments</comments>
		<pubDate>Wed, 05 Jan 2005 12:43:41 +0000</pubDate>
		<dc:creator>skyostil</dc:creator>
				<category><![CDATA[Graphics]]></category>
		<category><![CDATA[Hardware]]></category>
		<category><![CDATA[Utilities]]></category>

		<guid isPermaLink="false">http://unrealvoodoo.org/hiteck/blog/graphics/archos-compatible-videos/</guid>
		<description><![CDATA[The Archos Multimedia Jukebox is a nice portable player but unfortunately picky when it comes to playing AVI files. Thus, here is an empirically crafted script that will encode almost any movie file to an Archos-friendly format.
The script uses mencoder from MPlayer, specifically with the following options:

mencoder -audio-preload 0 -oac copy -o OUTPUT -ovc lavc
 [...]]]></description>
			<content:encoded><![CDATA[<p>The <a href="http://www.archos.com/">Archos Multimedia Jukebox</a> is a nice portable player but unfortunately picky when it comes to playing AVI files. Thus, here is an empirically crafted script that will encode almost any movie file to an Archos-friendly format.</p>
<p>The script uses mencoder from MPlayer, specifically with the following options:</p>
<pre class="code">
mencoder -audio-preload 0 -oac copy -o OUTPUT -ovc lavc
         -lavcopts vcodec=mpeg4:vqmin=2:vqmax=20:vhq:keyint=250:vme=4:v4mv INPUT
</pre>
<p>Note: If the audio track isn&#8217;t encoded with MP3, replace <tt>-oac copy</tt> above with e.g. <tt>-oac mp3lame -lameopts preset=standard</tt></p>
<p>Usage:</p>
<pre class="code">
  make-archos-video.sh input.avi output.avi
</pre>
<p>Download: <a href="/hiteck/projects/misc/make-archos-video.sh">make-archos-video.sh</a></p>
]]></content:encoded>
			<wfw:commentRss>http://unrealvoodoo.org/hiteck/blog/2005/01/archos-compatible-videos/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
