<?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>Never Ending Baustelle</title>
	<atom:link href="http://ridderbusch.name/wp/feed/" rel="self" type="application/rss+xml" />
	<link>http://ridderbusch.name/wp</link>
	<description>About things, that are of interest to me (in English and in German).</description>
	<lastBuildDate>Mon, 12 Sep 2011 21:42:21 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Reboot</title>
		<link>http://ridderbusch.name/wp/2011/09/12/reboot/</link>
		<comments>http://ridderbusch.name/wp/2011/09/12/reboot/#comments</comments>
		<pubDate>Mon, 12 Sep 2011 21:36:37 +0000</pubDate>
		<dc:creator>frank</dc:creator>
				<category><![CDATA[Blogging]]></category>
		<category><![CDATA[blogging]]></category>
		<category><![CDATA[reboot]]></category>

		<guid isPermaLink="false">http://ridderbusch.name/wp/?p=964</guid>
		<description><![CDATA[After more then 1&#189; year of absence I&#8217;m trying to get active again. I&#8217;ll see, how it goes. First steps were the usual round of updates to install, update to WordPress 3.2.1 and a new theme with some little tweaks from me. This even included the usage of one of Google&#8217;s web fonts. World of [...]]]></description>
			<content:encoded><![CDATA[<p>After more then 1&frac12; year of absence I&#8217;m trying to get active again. I&#8217;ll see, how it goes.</p>

<p>First steps were the usual round of updates to install, update to <a href="http://wordpress.org">WordPress 3.2.1</a> and a new <a href="http://www.koch-werkstatt.de/2007/03/24/wordpress-theme-simplicity/">theme</a> with some little tweaks from me. This even included the usage of one of <a href="https://www.google.com/webfonts">Google&#8217;s web fonts</a>. World of wonders, this even worked in the three browsers, that I tried (Firefox, Chrome and IE8).</p>

<p>Of course, the usual problem solving was also necessary. Blogging clients like <a href="http://kde-apps.org/content/show.php?content=102196">Blogilo</a> or <a href="http://www.scribefire.com/">ScribeFire</a> wouldn&#8217;t get the older posts list from the site. To fix this PHP&#8217;s memory limit needed to be changed. With WordPress 2.9 16M was enough. Now with WordPress 3.2.1 after some tries I set the limit to 36M, the maximum, which my provider allowes.</p>
]]></content:encoded>
			<wfw:commentRss>http://ridderbusch.name/wp/2011/09/12/reboot/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linux 2.6.33</title>
		<link>http://ridderbusch.name/wp/2010/02/26/linux-2-6-33/</link>
		<comments>http://ridderbusch.name/wp/2010/02/26/linux-2-6-33/#comments</comments>
		<pubDate>Fri, 26 Feb 2010 16:09:35 +0000</pubDate>
		<dc:creator>frank</dc:creator>
				<category><![CDATA[Linux / Computing]]></category>

		<guid isPermaLink="false">http://ridderbusch.name/wp/2010/02/26/linux-2-6-33/</guid>
		<description><![CDATA[Shortly after Linux 2.6.33 was released the respective Gentoo kernel sources became available as well. Curious as I am, I decided to give the new kernel a quick whirl, possibly in the hope that my PulseaudioALSA problem might be fixed. I tried this with my PC at work, which is equipped with an old GeForce [...]]]></description>
			<content:encoded><![CDATA[<p>Shortly after Linux 2.6.33 was released the respective Gentoo kernel sources became available as well. Curious as I am, I decided to give the new kernel a quick whirl, possibly in the hope that my Pulseaudio<->ALSA <a href="/wp/2009/07/24/pulseaudio-alsa-and-kernel-2630/">problem</a> might be fixed.</p>

<p>I tried this with my PC at work, which is equipped with an old  GeForce FX 5200 Nvidia graphics card. To get the kernel with that card going, the legacy Nvidia driver 173.14.25 is required. In the current Gentoo Portage tree unfortunately there is only 173.14.22. That is not too much of a problem however. As a very Quick&#8217;n Dirty solution simply copy <code>nvidia-drivers-173.14.22.ebuild</code> to <code>nvidia-drivers-173.14.25.ebuild</code>, execute</p>

<pre><code>ebuild nvidia-drivers-173.14.22.ebuild digest
</code></pre>

<p>and then emerge the driver, after you have compiled the 2.6.33 kernel.</p>

<p>The Pulseaudio<->ALSA problem however is not fixed, although it appears to take longer until the problem shows up. What is worse, my previous workaround (compiling the ALSA 1.0.20 driver and install the modules over the kernel modules) does not work any, since the ALSA driver won&#8217;t compile with the new kernel, since some include files have been moved in the kernel tree.</p>

<p>So I guess I&#8217;ll stay with kernel 2.6.32 for the time being until I receive my new PC in the not to distant future.</p>
]]></content:encoded>
			<wfw:commentRss>http://ridderbusch.name/wp/2010/02/26/linux-2-6-33/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Comparing analog and digital radio on the cable.</title>
		<link>http://ridderbusch.name/wp/2010/02/17/comparing-analog-and-digital-radio/</link>
		<comments>http://ridderbusch.name/wp/2010/02/17/comparing-analog-and-digital-radio/#comments</comments>
		<pubDate>Wed, 17 Feb 2010 11:59:00 +0000</pubDate>
		<dc:creator>frank</dc:creator>
				<category><![CDATA[Linux / Computing]]></category>

		<guid isPermaLink="false">http://ridderbusch.name/wp/2009/12/13/comparing-analog-and-digital-radio/</guid>
		<description><![CDATA[Out of curiosity I decided to compare the audio quality of a local radio station (1Live), which I can receive in analog and in digital via my local cable operator. The privately owned radios on the cable are encrypted and can only be received with the appropriate CA Module and a SmartCard for the DVB-C [...]]]></description>
			<content:encoded><![CDATA[<p>Out of curiosity I decided to compare the audio quality of a local radio station (<a href="http://einslive.de">1Live</a>), which I can receive in analog and in digital via my local cable operator. The privately owned radios on the cable are encrypted and can only be received with the appropriate CA Module and a SmartCard for the DVB-C card. The publicly funded station are however available unencrypted.</p>

<p>I use these two cards to record the audio from DVB-C (the first) and for the analog broadcast (the second):</p>

<pre><code>05:00.0 Multimedia controller: Philips Semiconductors SAA7146 (rev 01)
    Subsystem: KNC One Device 0022

05:02.0 Multimedia video controller: Brooktree Corporation Bt878 Video Capture (rev 11)
    Subsystem: Hauppauge computer works Inc. WinTV Series
</code></pre>

<p><a href="/wp/wp-content/volume-kontrast.png" rel="lightbox" title="Comparison Digital &#038; Analog Volume"><img src="http://ridderbusch.name/wp/wp-content/_volume-kontrast.png" width="154" heigth="180" alt="Comparison Digital &amp; Analog Volume" class="floatright" /></a></p>

<p>This first picture compares the volume levels. The above half is from the digital broadcast and the lower half from the analog broadcast, both showing about 1 hour from the same show. Both recording are normalized to -0.2db of maximum level with Audacity.</p>

<p>As you can see, the analog broadcast has a certain dynamic range left, while the digital broadcast is completely flat. Apparently, the signal, which is used to create the digital stream is passed through a compressor, which reduces the dynamic range to a minimum. <strong>Not</strong> very nice. Apparently not every station does this compressor thing. Another station from Berlin I&#8217;m occasionally listening to in digital has a lot more dynamic range left.</p>

<div class="clearer"></div>

<p><a href="/wp/wp-content/noise.png" rel="lightbox" title="Noise"><img src="http://ridderbusch.name/wp/wp-content/_noise.png" width="135" heigth="180" alt="Noise" class="floatright" /></a></p>

<p>This next picture provides a detailed waveform view. The upper shows a very clean signal from the digital broadcast, as is to be expected. On the lower half the noise is apparent in the analog broadcast, which is overlayed on the normal signal. An analog broadcast simply can&#8217;t provide the same absolute maximum dynamic range as a the digital signal can. Another problem probably is, that the old BTTV TV-card doesn&#8217;t carry very high quality electronic components, which adds to the level of noise.</p>

<div class="clearer"></div>

<p><a href="/wp/wp-content/frequence-response.png" rel="lightbox" title="Frequency Range"><img src="http://ridderbusch.name/wp/wp-content/_frequence-response.png" width="162" heigth="180" alt="Frequency Range" class="floatright" /></a></p>

<p>The last picture compares the frequency ranges, which each broadcast type offers. There is nothing much left above 15KHz. In the analog broadcast the peak at 19KHz is stereo pilot signal used to indicate stereo broadcasts. This is not a usable audio signal.</p>

<div class="clearer"></div>

<p>Our local <a href="http://www.unitymedia.de">cable operator</a> is trying pretty aggressively to get new customers and are trying to convince the customers of the advantages of digital TV and radio. From the above pictures the digital advantage is not really visible, except maybe for the better signal-noise ratio. Additional problem is the requirement of SmartCards, if you want to listen to private radios. With the digital receiver provided by the cable operator, where you insert the SmartCard,  you can either watch TV or listen to radio, not both at the same time. So, the remaining receivers in the house hold need to use the analog signal anyway. Who would spend another 5€ per month for another SmartCard?</p>
]]></content:encoded>
			<wfw:commentRss>http://ridderbusch.name/wp/2010/02/17/comparing-analog-and-digital-radio/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fixes for ACPI wakeup and X11 resolution switch</title>
		<link>http://ridderbusch.name/wp/2010/02/17/fixes-for-acpi-wakeup-and-x11-resolution-switch/</link>
		<comments>http://ridderbusch.name/wp/2010/02/17/fixes-for-acpi-wakeup-and-x11-resolution-switch/#comments</comments>
		<pubDate>Wed, 17 Feb 2010 11:08:16 +0000</pubDate>
		<dc:creator>frank</dc:creator>
				<category><![CDATA[Linux / Computing]]></category>

		<guid isPermaLink="false">http://ridderbusch.name/wp/2010/02/17/fixes-for-acpi-wakeup-and-x11-resolution-switch/</guid>
		<description><![CDATA[I wrote here, that since my switch to Linux kernel 2.6.32 the ACPI wakeup didn&#8217;t work anymore. After a new search through the internet I came across this article mentioning a conflict with the HPET. As a workaround booting with hpet=disable is suggested. And indeed with this workaround ACPI wakeup works again. Looking at the [...]]]></description>
			<content:encoded><![CDATA[<p>I wrote <a href="/wp/2009/12/11/first-experiences-with-linux-kernel-2-6-32/">here</a>, that since my switch to Linux kernel 2.6.32 the ACPI wakeup didn&#8217;t work anymore. After a new search through the internet I came across this <a href="http://www.mythtv.org/wiki/ACPI_Wakeup#HPET_conflict">article</a> mentioning a conflict with the HPET. As a workaround booting with <code>hpet=disable</code> is suggested.</p>

<p>And indeed with this workaround ACPI wakeup works again. Looking at the output of <code>cat /proc/driver/rtc</code></p>

<pre><code>rtc_time    : 11:44:20
rtc_date    : 2010-02-17
alrm_time   : 07:21:16
alrm_date   : ****-**-17
alarm_IRQ   : no
alrm_pending    : no
24hr        : yes
periodic_IRQ    : no
update_IRQ  : no
HPET_emulated   : no
DST_enable  : no
periodic_freq   : 1024
batt_status : okay
</code></pre>

<p>the <code>HPET_emulated</code> line should report <code>no</code>.</p>

<p>Another fix was released with the <code>xorg-server</code> 1.7.5. Since the switch to <code>xorg-server</code> 1.7 I was basically unable to switch from the X11 display running with 1600&#215;1200 resolution to a virtual console. Switching to a virtual console resulted in a dark display complaining about illegal operating parameters. This was particular annoying, when shutting the system down.</p>

<p>As a workaround with earlier <code>xorg-servers</code> I switched X11 resolution to 1280&#215;1024 with &#8220;<code>Ctrl + Alt + Keypad -</code>&#8221; and then switched to a virtual console. Now the virtual console was operable.</p>

<p>The fix for <code>xorg-server</code> 1.7 was announced in this <a href="http://lists.freedesktop.org/archives/xorg/2010-February/049046.html">email</a>. Unfortunately stupid me didn&#8217;t think about the <code>xfce4-display-settings</code> utility (I&#8217;m a XFCE4 user), then I would have been able to switch resolutions graphically.</p>
]]></content:encoded>
			<wfw:commentRss>http://ridderbusch.name/wp/2010/02/17/fixes-for-acpi-wakeup-and-x11-resolution-switch/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>First experiences with Linux kernel 2.6.32</title>
		<link>http://ridderbusch.name/wp/2009/12/11/first-experiences-with-linux-kernel-2-6-32/</link>
		<comments>http://ridderbusch.name/wp/2009/12/11/first-experiences-with-linux-kernel-2-6-32/#comments</comments>
		<pubDate>Fri, 11 Dec 2009 16:09:05 +0000</pubDate>
		<dc:creator>frank</dc:creator>
				<category><![CDATA[Linux / Computing]]></category>

		<guid isPermaLink="false">http://ridderbusch.name/wp/?p=900</guid>
		<description><![CDATA[Last week Linux 2.6.32 was released. I&#8217;m currently using it with the bfs-scheduler patchset. I experienced three glitches so far on my Gentoo installation. I hope these are not cases of RTFM. Portaudio with ALSA cmipci-driver With a freshly rebooted kernel I&#8217;m pretty quickly seeing these messages in /var/log/message. pulseaudio[4338]: alsa-util.c: Dies ist wahrscheinlich ein [...]]]></description>
			<content:encoded><![CDATA[<p>Last week Linux 2.6.32 was released. I&#8217;m currently using it with the <a href="http://ck.kolivas.org/patches/bfs/">bfs-scheduler patchset</a>.</p>

<p>I experienced three glitches so far on my <a href="http://gentoo.org">Gentoo</a> installation. I hope these are not cases of RTFM.</p>

<h3>Portaudio with ALSA <code>cmipci</code>-driver</h3>

<p>With a freshly rebooted kernel I&#8217;m pretty quickly seeing these messages in <code>/var/log/message</code>.</p>

<pre><code>pulseaudio[4338]: alsa-util.c: Dies ist wahrscheinlich ein Fehler im ALSA-Treiber 'snd_cmipci'. Bitte melden Sie diesen Punkt den ALSA-Entwicklern.
pulseaudio[4338]: alsa-util.c: snd_pcm_dump():
pulseaudio[4338]: alsa-util.c: Hardware PCM card 0 'C-Media CMI8738' device 0 subdevice 0
pulseaudio[4338]: alsa-util.c: Its setup is:
pulseaudio[4338]: alsa-util.c:   stream       : PLAYBACK
pulseaudio[4338]: alsa-util.c:   access       : MMAP_INTERLEAVED
pulseaudio[4338]: alsa-util.c:   format       : S16_LE
pulseaudio[4338]: alsa-util.c:   subformat    : STD
pulseaudio[4338]: alsa-util.c:   channels     : 2
pulseaudio[4338]: alsa-util.c:   rate         : 44100
pulseaudio[4338]: alsa-util.c:   exact rate   : 44100 (44100/1)
pulseaudio[4338]: alsa-util.c:   msbits       : 16
pulseaudio[4338]: alsa-util.c:   buffer_size  : 16384
pulseaudio[4338]: alsa-util.c:   period_size  : 8192
pulseaudio[4338]: alsa-util.c:   period_time  : 185759
pulseaudio[4338]: alsa-util.c:   tstamp_mode  : ENABLE
pulseaudio[4338]: alsa-util.c:   period_step  : 1
pulseaudio[4338]: alsa-util.c:   avail_min    : 15503
pulseaudio[4338]: alsa-util.c:   period_event : 0
pulseaudio[4338]: alsa-util.c:   start_threshold  : -1
pulseaudio[4338]: alsa-util.c:   stop_threshold   : 1073741824
pulseaudio[4338]: alsa-util.c:   silence_threshold: 0
pulseaudio[4338]: alsa-util.c:   silence_size : 0
pulseaudio[4338]: alsa-util.c:   boundary     : 1073741824
pulseaudio[4338]: alsa-util.c:   appl_ptr     : 231533
pulseaudio[4338]: alsa-util.c:   hw_ptr       : 212998
</code></pre>

<p>I think with Linux 2.6.30 I experienced these problem for the first time, both for the onboard 82801EB/ER (ICH5/ICH5R) audio controller and the add-on C-Media CM8738 controller. Since then I&#8217;ve been reinstalling the ALSA driver 1.0.20 from <a href="http://www.alsa-project.org">http://www.alsa-project.org</a> each time I recompiled a new kernel. 1.0.21 showed the same problem. <a href="http://www.pulseaudio.org/">Pulseaudio</a> progessed in this period from 0.9.15 to 0.9.21, the latest being the one I&#8217;m currently using.</p>

<p>What changed with 2.6.32 however is, that onboard 82801EB/ER (ICH5/ICH5R) now appears to be working. After listening with onboard audio for a bit, I remembered, why I installed an elcheapo PCI-card. The onboard audio carries such an amount of noise, that it is unbearable.</p>

<h3>NFS</h3>

<p>When I tried to mount a locally exported file system on a remote system, these segmentation fault showed up in <code>/var/log/messages</code>:</p>

<pre><code>kernel: rpc.mountd[3885]: segfault at 13 ip 0804c133 sp bfc98530 error 4 in rpc.mountd[8048000+12000]
</code></pre>

<p>This could be fixed be recompiling <code>net-fs/nfs-utils-1.2.1</code>.</p>

<h3>ACPI-Wakup</h3>

<p>I&#8217;m using the below command sequence to let my PC wake-up and boot at 7:15 in the morning, so that it&#8217;s ready, when I come into the company. This worked flawlessly until I switched to 2.6.32.</p>

<pre><code># echo 0 &gt; /sys/class/rtc/rtc0/wakealarm
# echo $(date -u '+%s' -d 'tomorrow 7:15') &gt; /sys/class/rtc/rtc0/wakealarm
# cat /proc/driver/rtc 
rtc_time    : 17:07:41
rtc_date    : 2009-12-11
alrm_time   : 07:15:00
alrm_date   : 2009-12-12
alarm_IRQ   : yes
alrm_pending    : no
24hr        : yes
periodic_IRQ    : no
update_IRQ  : no
HPET_emulated   : yes
DST_enable  : no
periodic_freq   : 1024
batt_status : okay
</code></pre>

<p><a href="http://www.gossamer-threads.com/lists/linux/kernel/1161756">Here</a> is someone, who apparently experiences this as well.</p>
]]></content:encoded>
			<wfw:commentRss>http://ridderbusch.name/wp/2009/12/11/first-experiences-with-linux-kernel-2-6-32/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Inkscape keyboard and mouse reference as a booklet</title>
		<link>http://ridderbusch.name/wp/2009/12/03/inkscape-keyboard-and-mouse-reference-as-a-booklet/</link>
		<comments>http://ridderbusch.name/wp/2009/12/03/inkscape-keyboard-and-mouse-reference-as-a-booklet/#comments</comments>
		<pubDate>Thu, 03 Dec 2009 22:38:19 +0000</pubDate>
		<dc:creator>frank</dc:creator>
				<category><![CDATA[Linux / Computing]]></category>

		<guid isPermaLink="false">http://ridderbusch.name/wp/?p=895</guid>
		<description><![CDATA[I&#8217;ve used Inkscape on a couple of occasions. Inkscape is such a powerful program, but I think, it&#8217;s it&#8217;s not one of the easiest to use. Somehow, each time I&#8217;m using Inkscape I&#8217;m again struggling with the same basic concepts. I can&#8217;t really say, how things would need to be changed, to make it really [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve used <a href="http://www.inkscape.org">Inkscape</a> on a couple of occasions. Inkscape is such a powerful program, but I think, it&#8217;s it&#8217;s not one of the easiest to use. Somehow, each time I&#8217;m using Inkscape I&#8217;m again struggling with the same basic concepts. I can&#8217;t really say, how things would need to be changed, to make it really more simple.</p>

<p>Anyway Inkscape sports such a plethora of keyboard and mouse functions, that I thought, it would be probably very useful to have a small booklet in paper form beside your keyboard.</p>

<p>Therefore I basically copied the <a href="http://www.inkscape.org/doc/keys046.html">Inkscape keyboard and mouse reference</a> into OpenOffice and created <a href="/wp/wp-content/inkscape-keys.odt">this OpenOffice file</a>, designed to be printed on A4 paper. The actual shuffling of the pages to print the file as booklet is not done within OpenOffice, but by transforming PostScript files using the <a href="http://www.tardis.ed.ac.uk/~ajcd/psutils">psutils</a>. I guess pretty much every Linux distribution should have them on board.</p>

<p>To actually create the booklet I&#8217;ve saved the OpenOffice source into <a href="/wp/wp-content/inkscape-keys.pdf">this</a> PDF file with OpenOffice&#8217;s &#8220;Export to PDF&#8221; function. Then, I used <code>evince</code> from the Gnome Desktop Environment to create a file randomly called <code>t.ps</code> by printing to a PostScript file (<code>inkspace-key.ps</code>). The final booklet file is created by executing the following commands:</p>

<pre><code>psbook -s16 inkscape-keys.ps t.ps
pstops '2:0L@.7(21cm,0)+1L@.7(21cm,14.85cm)' t.ps tt.ps
ps2pdf14 tt.ps
</code></pre>

<p>The <code>psbook</code> reorders the pages in such a way, that once printed double sided in landscape format, the resulting stack of pages can simply be folded in the middle. The <code>pstops</code> command then rotates, scales and positions each A4 page, so that two pages are printed on each side of a piece of paper. <code>ps2pdf</code> then creates a new PDF file (<code>tt.pdf</code>).</p>

<p>At home I&#8217;m using a Canon Pixma ip4000 printer. For this booklet I don&#8217;t use the printers ability to print double sided, since front and back page then have a slight offset. I use <code>evince</code> again to first print the odd numbered paged, re-feed the printed pages as they are stacked back into the feeder and print the back sides with the even pages. Now you should have a booklet, that you can simply fold in the middle. <a href="/wp/wp-content/inkscape-keys-a4-booklet.pdf">This</a> is the resulting PDF file the above three command executions as an example.</p>

<p>You might need to fiddle a bit with the &#8220;0&#8243; and &#8220;14.85cm&#8221; parameters for the <code>pstops</code> command, so that the front and the back of a page properly align.</p>
]]></content:encoded>
			<wfw:commentRss>http://ridderbusch.name/wp/2009/12/03/inkscape-keyboard-and-mouse-reference-as-a-booklet/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Last confirmation about the defect disk. (Updated)</title>
		<link>http://ridderbusch.name/wp/2009/11/22/last-confirmation-about-the-disk/</link>
		<comments>http://ridderbusch.name/wp/2009/11/22/last-confirmation-about-the-disk/#comments</comments>
		<pubDate>Sun, 22 Nov 2009 16:54:25 +0000</pubDate>
		<dc:creator>frank</dc:creator>
				<category><![CDATA[Linux / Computing]]></category>

		<guid isPermaLink="false">http://ridderbusch.name/wp/?p=889</guid>
		<description><![CDATA[In preparation of sending the Samsung hard disk back to the dealer as a warranty issue, I cleared the whole disk with a &#8220;dd&#8221; command (dd if=/dev/zero of=/dev/sdb bs=64k). I monitored the process by running vmstat 10 in another terminal window. The resulting bo-column (block out) is reflected by the diagram to the right. The [...]]]></description>
			<content:encoded><![CDATA[<p><a href="/wp/wp-content/zero-drive.png" rel="lightbox" title="Clearing the disk"><img src="http://ridderbusch.name/wp/wp-content/_zero-drive.png" width="180" heigth="114" alt="Clearing the disk" class="floatright" /></a></p>

<p>In preparation of sending the Samsung hard disk back to the dealer as a warranty issue, I cleared the whole disk with a &#8220;<code>dd</code>&#8221; command (<code>dd if=/dev/zero of=/dev/sdb bs=64k</code>). I monitored the process by running <code>vmstat 10</code> in another terminal window. The resulting <code>bo</code>-column (block out) is reflected by the diagram to the right.</p>

<p>The whole operation took roughly 4 hours and 10 minutes. The drive operated at full for the first third, than things obviously got flaky. The same effect I saw with my file system copy operations. Large periods where the drive operates with only 4 — 6 Mb/s output rate.</p>

<p>Hopefully this will be prove enough for the dealer to replace the drive.</p>

<p><a href="/wp/wp-content/zero-drive-n.png" rel="lightbox" title="Zeroing replacement drive"><img src="http://ridderbusch.name/wp/wp-content/_zero-drive-n.png" width="180" heigth="115" alt="Zeroing replacement drive" class="floatright" /></a></p>

<p><strong>Update:</strong> In the meantime I&#8217;ve received a replacement drive. Just to see, if this drive was ok, I repeated the zeroing of the complete drive. I&#8217;m assuming, that the minor hiccup at the beginning doesn&#8217;t mean any problems.</p>

<div class="clearer"></div>
]]></content:encoded>
			<wfw:commentRss>http://ridderbusch.name/wp/2009/11/22/last-confirmation-about-the-disk/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Heureka, I&#8217;ve found it &#8230;</title>
		<link>http://ridderbusch.name/wp/2009/11/09/heureka-ive-found-it/</link>
		<comments>http://ridderbusch.name/wp/2009/11/09/heureka-ive-found-it/#comments</comments>
		<pubDate>Mon, 09 Nov 2009 20:58:56 +0000</pubDate>
		<dc:creator>frank</dc:creator>
				<category><![CDATA[Linux / Computing]]></category>

		<guid isPermaLink="false">http://ridderbusch.name/wp/2009/11/09/heureka-ive-found-it/</guid>
		<description><![CDATA[Since I&#8217;ve build my PC in the beginning of 2008 I&#8217;ve been struggling with the disc write performance. Evidence of my problems are these posts: here, here and here and here. According to the changelogs of the recently released Linux kernels, there were quite a bit of changes in the ext3/ext4 file systems. Therefore in [...]]]></description>
			<content:encoded><![CDATA[<p>Since I&#8217;ve build my PC in the beginning of 2008 I&#8217;ve been struggling with the disc write performance. Evidence of my problems are these posts: <a href="/wp/2008/03/20/back-to-32bit-linux/">here</a>, <a href="/wp/2008/04/03/some-more-digging/">here</a> and <a href="/wp/2008/05/01/still-struggling-with-performance/">here</a> and <a href="/wp/2009/06/25/still-disk-latency-problems-with-kernel-2630/">here</a>.</p>

<p>According to the changelogs of the recently released Linux kernels, there were quite a bit of changes in the ext3/ext4 file systems. Therefore in the beginning of October I moved all my file systems from XFS to Ext4 in the hope for things to get better.  Once the data was restored the situation was as bad as before, it even felt a bit worse. During this backup and restore process for the first time it dawned on me, that my Samsung F1 hard disk might be the culprit. In particular once I looked at the S.M.A.R.T. data with <a href="http://gsmartcontrol.berlios.de/home/index.php/en/Home">GSmartControl</a>.</p>

<p><a href="/wp/wp-content/smart-data.png" rel="lightbox" title="S.M.A.R.T. Data Hardcopy"><img src="http://ridderbusch.name/wp/wp-content/_smart-data.png" width="180" height="114" alt="S.M.A.R.T. Data Hardcopy" class="floatright" /></a>
When I looked at the data for the first time after the restore operation, the data looked much than in this screenshot. There recoverd ECC and Soft Errors in 6-7 digit numbers. However never ever did I see that the disk reported an error to the operating system.</p>

<p>And, what I probably should have considered earlier, that the transfer to the external ESATA drive always worked with top performance, the copy back process to the original disk than was awful again. I even went so far to copy the OS to another external USB drive to remove the OS from the equation. I booted from the USB drive and redid the backup and restore operation. Again with the same result, that the Samsung disk showed a very bad write performance. This was when I finally decided to order another hard drive. <a href="http://www.tomshardware.com/de/Samsung-Western-Digital-2TB-7200UPM,testberichte-240420.html">Tom&#8217;s Hardware</a>  gave Samsung Spinpoint F3 pretty good marks and that&#8217;s the one I ordered then.</p>

<p><img src="http://ridderbusch.name/wp/wp-content/good-vs-bad.png" width="136" height="104" alt="Gkrellm Snapshot" title="Gkrellm Snapshot" class="floatright" />
And what can I say? My problems were gone, completely and utterly gone. Look at the little Gkrellm screenshots on the right. The left half shows the copy process from the old, &#8220;bad&#8221; disk (top half) to &#8220;good&#8221; new disk. As you can see, the new disk is even faster  than the old one. The right half however shows the copy process from the &#8220;good&#8221; F3 disk to the &#8220;bad&#8221;, old F1 disk. Here you can observe the very low write performance of the old F1 disk (top half).</p>

<p>Then I obtained the Samsung <code>hutil</code> disk utility and did a low level reformatting of the old F1 disk and also did self diagnostic with a complete surface scan. Both operation didn&#8217;t show any problem whatsoever. I redid some copy operations to the old F1 and the new F3 disks and logged the output from <code>vmstat</code> and created the below diagrams.</p>

<p>Each time the data was copied with the following command line:</p>

<pre><code>tar -c -b 128 -f - source-dir | tar -x --checkpoint=1000 -b 128 -C /destination-dir/
</code></pre>

<p>The data was collected with <code>vmstat 10 | tee /tmp/logfile</code>. Roughly 120Gb were transferred.</p>

<p><a href="http://ridderbusch.name/wp/wp-content/copy-f1-f3.png" rel="lightbox" title="Optimal Performance Diagram"><img src="http://ridderbusch.name/wp/wp-content/_copy-f1-f3.png" width="180" height="117" alt="Optimal Performance Diagram" class="floatright" /></a>
This the diagram for the copy process to the &#8220;good&#8221; new F3 disk (<strong>bi</strong> is &#8220;block in&#8221; for the read op, <strong>bo</strong> is &#8220;block out&#8221; for the write op). The source disk was the old F1 disk. The whole process took about <strong>38</strong> minutes. This is the <a href="/wp/wp-content/vm-restore-tar-mm.txt">raw text file</a> from the <code>vmstat</code> command. As you can see the read performance of the old F1 disk is perfectly fine.</p>

<div class="clearer"></div>

<p><a href="http://ridderbusch.name/wp/wp-content/copy-f3-f1.png" rel="lightbox" title="Bad Performance Diagram"><img src="http://ridderbusch.name/wp/wp-content/_copy-f3-f1.png" width="180" height="116" alt="Bad Performance Diagram" class="floatright" /></a>
And here is the diagram for copy process from the new F3 to the old F1 disk. Simply bloody awful write transfer rate. The whole operation took about <strong>98</strong> minutes. This is the <a href="/wp/wp-content/vm-restore-tar-mm-after-form.txt">raw text file</a> from the <code>vmstat</code> command. The spikes are probably due to the hard disk write cache. Now wonder, that the whole desktop might get sluggish with such a bad behavior.</p>

<div class="clearer"></div>

<p>I&#8217;m so annoyed, that I didn&#8217;t draw the right conclusions earlier. I could have spared me more than 1½ year of frustration with Linux in general.</p>
]]></content:encoded>
			<wfw:commentRss>http://ridderbusch.name/wp/2009/11/09/heureka-ive-found-it/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Sun Type 6 Keyboard</title>
		<link>http://ridderbusch.name/wp/2009/10/02/sun-type-6-keyboard/</link>
		<comments>http://ridderbusch.name/wp/2009/10/02/sun-type-6-keyboard/#comments</comments>
		<pubDate>Fri, 02 Oct 2009 15:26:03 +0000</pubDate>
		<dc:creator>frank</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://ridderbusch.name/wp/?p=864</guid>
		<description><![CDATA[I&#8217;ve written about my issues with my SUN Type6 keyboard in the company. I&#8217;ve finally found a 100% satisfactory solution. In the end, all fiddling with xmodmap and setxkbmap didn&#8217;t really help. To really fix my issues I needed to edit the file /usr/share/X11/xkb/keycodes/evdev to shuffle some keycodes around. In the end I made these [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve written about my <a href="/wp/2009/09/04/these-little-annoying-problems/">issues</a> with my SUN Type6 keyboard in the company. I&#8217;ve finally found a 100% satisfactory solution. In the end, all fiddling with <code>xmodmap</code> and <code>setxkbmap</code> didn&#8217;t really help. To really fix my issues I needed to edit the file <code>/usr/share/X11/xkb/keycodes/evdev</code> to shuffle some keycodes around.</p>

<p>In the end I made these changes  (relative to the directory <code>/usr/share/X11/xkb/keycodes</code>):</p>

<pre><code>--- keycodes.dir.org    2009-09-03 08:31:32.000000000 +0200
+++ keycodes.dir    2009-10-06 12:58:54.000000000 +0200
@@ -46,6 +46,7 @@
 -------- -------- sony(nwp5461)
 -d------ -------- evdev(evdev)
 -------- -------- evdev(pc98)
+-------- -------- evdev(type6)
 -d------ -------- xfree86(xfree86)
 -------- -------- xfree86(basic)
 -------- -------- xfree86(102)
-- keycodes/evdev.org   2009-09-03 08:31:32.000000000 +0200
+++ keycodes/evdev  2009-10-06 12:59:32.000000000 +0200
@@ -311,3 +311,10 @@
     include "evdev(evdev)"
 };

+// Sun Type 6
+xkb_keycodes "type6" {
+    include "evdev(evdev)"
+    &lt;RCTL&gt; = 108;
+    &lt;RALT&gt; = 134;
+    &lt;RWIN&gt; = 105;
+};
--- rules/evdev.org 2009-09-03 08:31:34.000000000 +0200
+++ rules/evdev 2009-10-06 13:00:04.000000000 +0200
@@ -105,6 +105,7 @@
 ! $dvoraklayouts = br ca de ee es fr gb no pl se us

 ! model        =   keycodes
+  type6        =   evdev(type6)
   pc98     =   evdev(pc98)
   *        =   evdev
</code></pre>

<p>With the above changes I was additionally able to modify the file <code>/etc/hal/fdi/policy/10-x11-input.fdi</code> so that HAL will do the right thing, once this keyboard is plugged in (see the line with <code>input.product</code>).</p>

<pre><code><?xml version="1.0" encoding="UTF-8"?>
&lt;deviceinfo version="0.2"&gt;
  &lt;device&gt;
    &lt;match key="info.capabilities" contains="input.keys"&gt;
      &lt;merge key="input.xkb.rules" type="string"&gt;evdev&lt;/merge&gt;
      &lt;merge key="input.xkb.layout" type="string"&gt;de&lt;/merge&gt;
      &lt;match key="input.product" contains="HID 0430:0005"&gt;
        &lt;merge key="input.xkb.model" type="string"&gt;type6&lt;/merge&gt;
      &lt;/match&gt;
    &lt;/match&gt;
  &lt;/device&gt;
&lt;/deviceinfo&gt;
</code></pre>

<p>Make sure, that your desktop environment uses the system settings and doesn&#8217;t override it with session local settings, when you log into your desktop. If everything is correct, the <code>/var/log/Xorg.0.log</code> should contain something like this:</p>

<pre><code>...
(II) config/hal: Adding input device HID 0430:0005
(**) HID 0430:0005: always reports core events
(**) HID 0430:0005: Device: "/dev/input/event0"
(II) HID 0430:0005: Found keys
(II) HID 0430:0005: Configuring as keyboard
(II) XINPUT: Adding extended input device "HID 0430:0005" (type: KEYBOARD)
(**) Option "xkb_rules" "evdev"
(**) Option "xkb_model" "type6"
(**) Option "xkb_layout" "de"
...
</code></pre>

<p>While the above changes may be the 100% solution, there is still the danger, that the changes are overwritten, when new keyboard tables are installed. For <a href="http://gentoo.org">Gentoo</a> Linux it is therefore advisable to extend the <code>CONFIG_PROTECT</code> variable in <code>/etc/make.conf</code> with the directories <code>/usr/share/X11/xkb/keycodes</code> and <code>/usr/share/X11/xkb/rules</code>.</p>

<p>The simplest solution however may be to copy the file <code>/usr/share/X11/xkb/keycodes/evdev</code> to a new file <code>/usr/share/X11/xkb/keycodes/evdev-new</code>, edit the keycode changes into this file and then load the keycodes by executing &#8220;<code>setxkbmap -keycodes evdev-new(type6)</code>&#8221; somewhere in the login process (<code>.xprofile</code> or <code>.xinitrc</code> or whereever).</p>
]]></content:encoded>
			<wfw:commentRss>http://ridderbusch.name/wp/2009/10/02/sun-type-6-keyboard/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>These little (annoying) problems &#8230;</title>
		<link>http://ridderbusch.name/wp/2009/09/04/these-little-annoying-problems/</link>
		<comments>http://ridderbusch.name/wp/2009/09/04/these-little-annoying-problems/#comments</comments>
		<pubDate>Fri, 04 Sep 2009 15:00:45 +0000</pubDate>
		<dc:creator>frank</dc:creator>
				<category><![CDATA[Linux / Computing]]></category>

		<guid isPermaLink="false">http://ridderbusch.name/wp/?p=853</guid>
		<description><![CDATA[SUN Type 6 Keyboard In the company I&#8217;m using a SUN Type6 USB keyboard. I&#8217;ve tried a couple of keyboards, but this still has the nicest feel of them all. The Linux evdev assigns the symbols Super_R (1 in the right picture), Menu (2 in the picture) and ISO_Level3_Shift (3 in the picture) in order [...]]]></description>
			<content:encoded><![CDATA[<p><strong>SUN Type 6 Keyboard</strong></p>

<p><a href="http://ridderbusch.name/wp/wp-content/suntype6.jpg" rel="lightbox" title="SUN Type6 Keyboard"><img src="http://ridderbusch.name/wp/wp-content/_suntype6.jpg" width="180" heigth="121" alt="SUN Type6 Keyboard" class="floatright" /></a></p>

<p>In the company I&#8217;m using a SUN Type6 USB keyboard. I&#8217;ve tried a couple of keyboards, but this still has the nicest feel of them all. The Linux <code>evdev</code> assigns the symbols <code>Super_R</code> (1 in the right picture), <code>Menu</code> (2 in the picture) and <code>ISO_Level3_Shift</code> (3 in the picture) in order to the three key right of the <code>Space</code> key. For me personally the <code>ISO_Level3_Shift</code> is a little bit far to right and I&#8217;m missing a right <code>Control</code> key. With Xorg server 1.5.3 I was able to remap the <code>Super_R</code> key to <code>ISO_Level3_Shift</code> and the right most key to <code>Control_R</code> by using <code>setxkbmap</code> and <code>xmodmap</code>.</p>

<pre><code>$ setxkbmap -symbols "pc+de+inet(evdev)+level3(rwin_switch)"
$ xmodmap remapctrl
</code></pre>

<p>The file <code>remapctrl</code> contains the lines:</p>

<pre><code>keycode 108 = Control_R Multi_key
clear control
add control = Control_L Control_R
</code></pre>

<p>All good and dandy. Then I switched to Xorg server 1.6.3.901-r1 (on <a href="http://www.gentoo.org">Gentoo</a> Linux).</p>

<p>It still sort of works. When I press the remapped <code>ISO_Level3_Shift</code> and &#8220;<code>q</code>&#8221; on the keyboard I&#8217;m getting the expected &#8220;<code>@</code>&#8220;. The same should be true for the &#8220;<code>~</code>&#8221; key. However the &#8220;<code>~</code>&#8221; is a dead key to produce characters like &#8220;<code>ã</code>&#8221; with two key strokes. Here, the newly remapped <code>ISO_Level3_Shift</code> has no effect and the same with all other dead keys.</p>

<p>When I remap the <code>Menu</code> key to <code>ISO_Level3_Shift</code> however with</p>

<pre><code>$ setxkbmap -symbols "pc+de+inet(evdev)+level3(menu_switch)"
</code></pre>

<p>then all the dead keys like &#8220;<code>~</code>&#8221; work again as expected. I guess to need to fiddle with <code>/usr/share/X11/xkb/keycodes/evdev</code> to get a final fix.</p>

<p><strong>Missing icon in systray</strong></p>

<p><img src="/wp/wp-content/systray.png" width="260" height="32" alt="Systray Icons" title="Systray Icons" class="floatright" /></p>

<p>Some time in the past I switched from Amarok 1.4 to <a href="http://mpd.wikia.com/">Mpd</a> with the client <a href="http://gmpc.wikia.com/">Gmpc</a> as my preferred music listening solution. Originally the icon in the Xfce4 systray looked ok as on the right side in the picture to the right (the light blue musical note).</p>

<p>After having installed the icon set <a href="http://tango.freedesktop.org/">Tango</a> and after having switched the icon set a couple of times, I ended up with a systray, which looked like the left side in the picture (some generic icon for the Gmpc).</p>

<p>I then went searching, why in some icon sets the Gmpc systray icon was displayed correctly, while in others it was replaced with some generic icon.</p>

<p>After a bit of digging I found, that the Tango icon set, that I installed doesn&#8217;t inherit from the icon set <code>hicolor</code>, which appears to be the mother of all icon sets. Gmpc installs its icons in the <code>hicolor</code> directory structure. As I looked at the file <code>/usr/share/icons/Tango/index.theme</code> it read like this:</p>

<pre><code>[Icon Theme]
Name=Tango
Comment=Tango Icon Theme
Inherits=gnome,crystalsvg
Example=x-directory-normal
</code></pre>

<p>After I changed &#8220;<code>Inherits=gnome,crystalsvg</code>&#8221; to &#8220;<code>Inherits=hicolor,gnome,crystalsvg</code>&#8221; everything looked fine in the systray again.</p>

<p><strong>Wrong  framerate on virtual consoles</strong></p>

<p>Again, in the company I inherited a newer flat screen display panel compared to the old one, which had a resolution of 1280&#215;1024. The new one now is capable of 1600&#215;1200 pixels. After reconfiguring <code>/etc/X11/xorg.conf</code> and reboot into the X11 session everything was fine. However, now each time, when I&#8217;m shutting down the system or when I switch to one of the virtual Linux consoles, I&#8217;m getting an error message from the display, that the vertical and horizontal sync frequencies are out of range. Very annoying.</p>

<p>After some experimentation I have found a workaround. Before shutting down or changing the virtual console, I change the X11 resolution of the X11 server to the 1024&#215;768 size with the key combination CTRL+ALT+Keypad- or CTRL-ALT-Keypad+. I&#8217;m wondering, if it has something to do with the fact, that I&#8217;m using a Nvidia graphics card. I think a came across similar problem reports in Ubuntu forums, which also mentioned Nvidia cards.</p>
]]></content:encoded>
			<wfw:commentRss>http://ridderbusch.name/wp/2009/09/04/these-little-annoying-problems/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

