<?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>Jkx@home &#187; Hardware</title>
	<atom:link href="http://www.larsen-b.com/topics/hardware/feed" rel="self" type="application/rss+xml" />
	<link>http://www.larsen-b.com</link>
	<description>Titanium Exposé</description>
	<lastBuildDate>Tue, 31 Jan 2012 23:53:15 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language></language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Nvidia 173.14 xrender benchmark</title>
		<link>http://www.larsen-b.com/Article/299.html</link>
		<comments>http://www.larsen-b.com/Article/299.html#comments</comments>
		<pubDate>Sat, 02 Aug 2008 16:13:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[ati]]></category>
		<category><![CDATA[benchmark]]></category>
		<category><![CDATA[nvidia]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[xorg]]></category>

		<guid isPermaLink="false">http://www.larsen-b.com/?p=299</guid>
		<description><![CDATA[In a previous post, I looked closely the way nvidia binary driver works. In fact, like a lot of users I run into issues with firefox and other software which use Xrender extension to display stuff. A couple of day ago, Nvidia released a new version of its driver. They claim the future version fix [...]]]></description>
			<content:encoded><![CDATA[<p>In a <a href="http://www.larsen-b.com/Article/290.html">previous post</a>, I looked closely the way nvidia binary driver works. In fact, like a lot of users I run into issues with firefox and other software which use Xrender extension to display stuff. A couple of day ago, Nvidia released a new version of its driver. <a href="http://www.nvnews.net/vbulletin/showthread.php?p=1728071#post1728071">They claim the future version fix the Xrender lag</a>, so I decided to run it toward my previous bench results to see if current version change anything.</p>
<p>So the configuration is the same:</p>
<ul>
<li>Nividia 173.14.12 kernel 2.6.24 and a Q6600</li>
</ul>
<p>First, I need to say that in the default setting the new driver doesn&#8217;t work really nicely. It&#8217;s look even slower than previous in the default configuration. So for the first time on this bench serie, I tweaked the InitialPixmapPlacement and set it to 2. In my previous bench batch, doing this tweak products bad result so I disabled this option, but this time the drivers is so slow that without this tweak the benchmark would be useless.</p>
<p>Ok, let&#8217;s go for the results:</p>
<p><img class="alignnone" src="http://jkx.larsen-b.com/photos/blog/nvidia_bm_173_14_12_2.png" alt="" width="618" height="547" /></p>
<p>First, we can see clearly the<strong> new version is really better on some points</strong> : PictOpClear is the best result. We can see the nvidia team has really work on this, and the result even outperform the ATI driver. On the other side the PicOpt[Con|Dis]jointClear is still very hight.</p>
<p>For the rest of the test :</p>
<p><img class="alignnone" src="http://jkx.larsen-b.com/photos/blog/nvidia_bm_173_14_12_1.png" alt="" width="686" height="606" /></p>
<p>To things, on quite all the result the new driver is slower than the previous on (perhaps this is a InitialPixmap side effect), but the difference isn&#8217;t really big 0.5 sec on a test which is far from 0.5 at the end.. And the ATI still outperforms clearly the Nvidia here. In fact Nvidia driver&#8217;s team claim this primitives are never used (or should be). From what I know right now, some software use this primitive. It&#8217;s look like KDE (via QT) do. Apparently Nvidia team asked the KDE dev to change their code to achieve better result on Nvidia cards &#8230; Anyways this is perhaps not the best way, but we need to wait for KDE dev answer before going foward.</p>
<p>The second important thing is that PictOpConjointXor has now a 0 result.</p>
<p>As you can see on this benchmark, the new Nvidia driver seems to perform better than the previous one. On the user perspective, it&#8217;s look like the fixes applied for PictOpClear (and perhaps PictOpConjointXor) produce some great results. Right now Firefox perform nicely, and the whole desktop is fine. I&#8217;m quite sure their is still room for improvements (look at the open source Intel driver results for PictOpOver PictOpIn&#8230;, you will see binary drivers are far from the OSS results), but this release is the first for the 8xxxx serie which perform at a decent speed, and this is a good new.</p>
<p>Thanks again to my friends who send me their own results to compare, and to people on various forum that helped me on this stuff.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.larsen-b.com/Article/299.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>2D benchmarks on Linux Nvidia, Intel, ATI: xrender</title>
		<link>http://www.larsen-b.com/Article/290.html</link>
		<comments>http://www.larsen-b.com/Article/290.html#comments</comments>
		<pubDate>Sat, 17 May 2008 01:48:27 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[ati]]></category>
		<category><![CDATA[drivers]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[nvidia]]></category>
		<category><![CDATA[q6600]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.larsen-b.com/?p=290</guid>
		<description><![CDATA[For my new computer I bought a ATI HD 2600 PRO with a bunch of memory. This card has some really good 3D results, and works well on Linux. But I run into some issues with de xv extension on this board. In fact the driver (the free or binary one) doesn&#8217;t seems to support [...]]]></description>
			<content:encoded><![CDATA[<p>For my <a href="http://www.larsen-b.com/Article/271.html">new computer</a> I bought a ATI HD 2600 PRO with a bunch of memory. This card has some really good 3D results, and works well on Linux. But I run into some issues with de xv extension on this board. In fact the driver (the free or binary one) doesn&#8217;t seems to support <a href="http://en.wikipedia.org/wiki/Vertical_blanking_interval">sync on vblank</a>. So when a app try do display datas on the screen, some image destructions appear. This mainly occurs when I&#8217;m watching videos but in 3D games too. This is a really stupid bug or mis-feature. How can a serious video programmer can do that ?</p>
<p>After a couple of month, I decided it was enough, I was sick of this dirty stripes on screen. I tested every ATI driver one after one &#8230; (ATI opensource drivers have too bad performances to be used on a every days desktop, could you live without google-earth ? ) .. so I decided to go to other side, and bought a <a href="http://www.asus.com/products.aspx?l1=2&amp;l2=6&amp;l3=514&amp;l4=0&amp;model=1700&amp;modelmenu=1">Nvidia 8600GT from ASUS</a>. This card perform quite as the ATI in 3D, and have a affordable price. So I switched from ATI to Nvidia.</p>
<p>ATI offers better opensource support, but Nvidia binary driver is really nice to use and have better support today from stuffs like Compiz and Co.. and NO MORE STRIPES !! :)</p>
<p>A couple of weeks ago, I upgraded my <a href="http://www.ubuntu.com">Ubuntu</a> Gusty to Hardy. Everything was Ok, since I played with firefox.  Some heavy loaded pages (like Amazon, or Gmail) was damn sloowwwww !  Playing with scroll was a source &#8230;&#8230;<strong> grrrrrr</strong> &#8230;.Firefox on Hardy is 3.0b5. This version has a major &#8220;feature&#8221; the use a <a href="http://en.wikipedia.org/wiki/XRender">Xrender</a> for the page display. And this looks like Xrender is dawn slow on Nvidia cards .. In fact, Nvidia has already work on this <a href="http://www.phoronix.com/scan.php?page=article&amp;item=934&amp;num=1">kind of issue before.</a> Without looking forward I decided to run a little benchmark, with the help of friends with <a href="http://lists.freedesktop.org/archives/xorg/2006-March/013918.html">Xrenderbenchmark</a>. So here the results.</p>
<h1>Benchmarks</h1>
<p>Benchmarks was done by me and 2 firends, on Q6600 or E6600 Intel CPU running at 2.4Gh, with kernel 2.6.24.1. The graphs only show the Plain results (not Plains + Alpha, or Transformation) but the results are quite the same anyways.</p>
<p>Legend:</p>
<ul>
<li>8600GT/nv : Nividia 8600GT / Xorg  1.4.1git 32 bits / Nvidia GPL driver</li>
<li>8600GT/nvidia : Nividia 8600GT / Xorg 1.4.1git 32 bits / Nvidia binary driver ver: 169.12</li>
<li>8600GT/nividia-64 : Nvidia 8600GT / Xorg  1.4.1git 64 bits / Nvidia binary driver  ver: 169.12</li>
<li>Intel GMA X300 : Intel GMA 3000 / Xorg 1.4.0.9 64 bits / Intel GPL driver</li>
<li>ATI HD2600PRO : ATI HD 2600 Pro / Xorg 1.4.1git 64 bits / ATI GPL driver</li>
</ul>
<p>I split the results into two graphs for convenience.</p>
<p><img src="http://jkx.larsen-b.com/photos/blog/xrender_1.png" alt="" width="746" height="515" /></p>
<p>As you can see on this first part, numbers are really small, the Nvidia GPL driver is the worst : 5 times slower than any other one. Not a good news, and the binary one have some bad results on 2 tests. ATI HD and Nvidia drivers offer quite the same results, but remenber this is the GPL ATI driver ! &#8230; The Intel doesn&#8217;t  have a lot of linearity on this part.</p>
<p>But the next graph give us absolutely different picture !</p>
<p><img src="http://jkx.larsen-b.com/photos/blog/xrender_2.png" alt="" /></p>
<p>For every graph, Nvidia drivers (GPL, or binary, 32 or 64 bits) are at least 6 time slower. Intel perform very well, no surprise, this card are damn cool, perfect driver for linux.. but to slow in 3D to really rock. And ATI GPL driver is the clear winner of this benchmarks tests.</p>
<p>As my issue is the Nvidia one, I can comment the results, the GPL driver performs better than the binary one. This is not a big surprise cause, I can see it in Firefox, even it&#8217;s slow. There is difference between 64 bits and 32, but I guess this is more kernel related than the driver itself.</p>
<p>I&#8217;m not a video guru and only do that figure out what&#8217;s going on my computer. I publish in the hope it might help somebody else, and to find help.</p>
<p><strong>Update : </strong>The numbers can be found <a href="http://jkx.larsen-b.com/gallery/blog/xrender_results?full=1">here</a></p>
<p><em>Thanks to Ludo and Christian for their help ! </em></p>
<p><strong>Important update : <a href="http://www.larsen-b.com/Article/299.html">Check the new driver results !!</a></strong><a href="http://www.larsen-b.com/Article/299.html"><br />
</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.larsen-b.com/Article/290.html/feed</wfw:commentRss>
		<slash:comments>20</slash:comments>
		</item>
		<item>
		<title>My new silent computer (Intel Quad Core Q6600)</title>
		<link>http://www.larsen-b.com/Article/271.html</link>
		<comments>http://www.larsen-b.com/Article/271.html#comments</comments>
		<pubDate>Wed, 30 Nov -0001 00:00:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[computer]]></category>
		<category><![CDATA[q6600]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[Ok, I decided to change my computer a couple of months right now. But as Intel is doing some strange stuffs with the prices, this took a little longer than exepected. Some friends asked me what I bought, so I decided to write this post.
My new box description:

CPU: Intel Q6600 Quad Core at 2.4Ghz (G0 [...]]]></description>
			<content:encoded><![CDATA[<p>Ok, I decided to change my computer a couple of months right now. But as Intel is doing some strange stuffs with the prices, this took a little longer than exepected. Some friends asked me what I bought, so I decided to write this post.</p>
<p>My new box description:</p>
<ul class="simple">
<li>CPU: Intel Q6600 Quad Core at 2.4Ghz (G0 =&gt; it&#8217;s running at 1.6Ghz on idle)</li>
<li>Motherboard: <a class="reference" href="http://tinyurl.com/2ewfhy">Gigabyte GA-P35C-DS3R (Intel P35 Express)</a></li>
<li>A massive big CPU cooler <a class="reference" href="http://tinyurl.com/24yruh">Arctic Cooling Freezer 7 Pro</a></li>
<li>Case: <a class="reference" href="http://www.hardwaresecrets.com/article/306">Cooler Master Centurion 534</a></li>
<li>Hard-drive: Seagate Barracuda 7200.10 SATA &#8211; 320 Go 7200 RPM 16 Mo SATA II</li>
<li>2Go of generic DDR2-SDRAM DDR800 PC6400</li>
<li>Power Supply: <a class="reference" href="http://tinyurl.com/25m668">Seasonic S12II-430</a></li>
<li>A passive <a class="reference" href="http://tinyurl.com/2to5w2">Radeon HD2600</a></li>
<li>A nice (and big) <a class="reference" href="http://tinyurl.com/2a3trn">Samsung Syncmaster 223BW</a></li>
<li>A Asus DVD player: <a class="reference" href="http://tinyurl.com/2k355e">DRW-1814BLT</a></li>
</ul>
<p>Here a little photo:</p>
<p><img src="http://jkx.larsen-b.com/photos/Computers/DSC02751.sized.jpg" alt="http://jkx.larsen-b.com/photos/Computers/DSC02751.sized.jpg" /></p>
<p>So let&#8217;s take a look closer.. I bought the Q6600 because it has a good price right now.</p>
<p>For the motherboard I wanted to buy a serious brand (I had some bad issues with ASRock ..). And Asus build some good ones, but doesn&#8217;t have a PS2 keyboard plug. I choose the Gigabytes because the bridge cooler is on the right, so I can use a big fan in the case back (no cpu-fan) without the bridge fan issue.</p>
<p>For the harddrive, I already have this type of Seagate on another box (in ATA, not SATA), and it&#8217;s damn cool ! Low noise and great performances .. a substain 58Mo/sec (a little bit more than my previous LVDS-SCSI config at 10 000 rpm !)</p>
<p>The perfect box should have two 120mn fans. So this CoolMaster is fine.<br />
I only use the front fan right now, but this may change in future. The case is quite big (too much for my needs), easy to mount, and serious quality. The hard-drive combo stuff, isn&#8217;t really easy to use but it does it&#8217;s job.</p>
<p>For the power-supply, after reading a lot of website, I bought the Seasonic. This stuff cost a little money, but it&#8217;s a really silent one, and seems to be robust.</p>
<p>As I bought a silent power supply, I needed a silent cpu cooler two. Everybody knows that default Intel fan are awfully noisy, so I decided to test this Freezer. And that was a good choice. On idle, the fan runs at 450 rpm, (hey that&#8217;s low!!) and CPU is at 31Â°. At full load, the fan runs at 1000 rpm (still really low!!) and the CPU is at 46Â°. My initial plan was to remove the fan on the cooler and to place a big 120 mn on the case back, but haven&#8217;t done this yet.</p>
<p>For the video card, I was looking for something with good bench on Linux, so ATI was a good challenger (beside it only works with the latest ATI binary shit). And finding a passive HD2600 is a bit hard.</p>
<p>For the DVD, I didn&#8217;t have any ideas. Most DVD players I used are noisy, have unstable speed. My previous Samsung was a real bullshit. I went to me local computer store, and bought the cheaper they have on stock. And this is a really good surprise. This DVD burner is really cool. So, if someone ask, give it a try :)</p>
<p>So, as you can imagine, this little stuff is quite silent and powerfull :)</p>
<p>I will upload some pictures soon &#8230;</p>
<p><strong>Update</strong>: I took some <a class="reference" href="http://jkx.larsen-b.com/gallery/Computers/DSC02743">photos</a></p>
<p><strong>Enjoy cores</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://www.larsen-b.com/Article/271.html/feed</wfw:commentRss>
		<slash:comments>13</slash:comments>
		</item>
		<item>
		<title>My New Cheap GSM / Voip wifi Phone (Twin v2)</title>
		<link>http://www.larsen-b.com/Article/263.html</link>
		<comments>http://www.larsen-b.com/Article/263.html#comments</comments>
		<pubDate>Wed, 30 Nov -0001 00:00:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Other]]></category>
		<category><![CDATA[gsm]]></category>
		<category><![CDATA[voip]]></category>
		<category><![CDATA[Wifi]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[Everybody have a mobile phone right now, and me too :) I just bought a nice little phone from my DSL provider. They offer a good deal for new users like me: Free phone when you call wired phone (or SIP) thought a Wifi connection, and pay at normal rate when you use the GSM [...]]]></description>
			<content:encoded><![CDATA[<p>Everybody have a mobile phone right now, and me too :) I just bought a nice little phone from my DSL provider. They offer a good deal for new users like me: Free phone when you call wired phone (or SIP) thought a Wifi connection, and pay at normal rate when you use the GSM bands. That&#8217;s fine for me cause, I just want to use a little, and the phone itself cost only 50Euros !!</p>
<p>The phone itself is pretty nice, use Linux (yes !! kernel 2.6.10 inside ) and can be hacked: <a class="reference" href="http://opentwin.org/">http://opentwin.org/</a></p>
<p><img src="http://jkx.larsen-b.com/photos/Electronic/twin1.sized.jpg" alt="http://jkx.larsen-b.com/photos/Electronic/twin1.sized.jpg" /><br />
<img src="http://jkx.larsen-b.com/photos/Electronic/twin2.sized.jpg" alt="http://jkx.larsen-b.com/photos/Electronic/twin2.sized.jpg" /></p>
<p>You can use it to surf quite well. Opera does a really good job, and you can even watch TV for free.. This phone is a good piece of stuff for the price.</p>
<p>Hum, I &#8216;m guessing you will see some new post about Asterisk or other fun stuff here soon ;)</p>
<p><strong>/Enjoy VoIP</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://www.larsen-b.com/Article/263.html/feed</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
		<item>
		<title>Media Player (Dvico 3100) + Netgear WGT634U = Cheap Wifi Media Player</title>
		<link>http://www.larsen-b.com/Article/258.html</link>
		<comments>http://www.larsen-b.com/Article/258.html#comments</comments>
		<pubDate>Wed, 30 Nov -0001 00:00:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Other]]></category>
		<category><![CDATA[diy]]></category>
		<category><![CDATA[dvico]]></category>
		<category><![CDATA[firewall]]></category>
		<category><![CDATA[openwrt]]></category>
		<category><![CDATA[rs232]]></category>
		<category><![CDATA[sysadmin]]></category>
		<category><![CDATA[Wifi]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[This year, for my birthday I have a very nice Media Player M3100. This stuff is really usefull, no need to use a noisy computer to watch recorded Divx. It&#8217;s pretty kool to watch films from beds you know..
The only issue: I need to take it back to my computer when I want to upload [...]]]></description>
			<content:encoded><![CDATA[<p>This year, for my birthday I have a very nice Media Player <a class="reference" href="http://www.tvix.co.kr/eng/Products/M3100U.aspx">M3100</a>. This stuff is really usefull, no need to use a noisy computer to watch recorded Divx. It&#8217;s pretty kool to watch films from beds you know..</p>
<p>The only issue: I need to take it back to my computer when I want to upload a new film, that&#8217;s it .. When I first received this gift, I went back to the shop to exchange it against a networked one. But 1) they cost a lot more money, 2) not available at the shop. (even if it&#8217;s a really big one).</p>
<p>Last week, somebody sent me a mail. He found some cheap wireless access point with a USB port: Netgear <a class="reference" href="http://kbserver.netgear.com/products/WGT634U.asp">WGT634U</a>. (50Euro) Hum, ok let&#8217;s give it a try. First test, plug a Media Player to this USB port&#8230; ok It&#8217;s working fine. But you know, I don&#8217;t have a network cable near my bed, so I decided to transform the Access Point in a Wireless client. By this way, I can simply plug the Media Player on the WGT634U and remotely put some Divx via FTP, without any wire.</p>
<div id="step-1-install-openwrt" class="section">
<h1><a name="step-1-install-openwrt">Step 1 / Install OpenWRT</a></h1>
<p>The default firmware on the WGT634 doesn&#8217;t support wireless client mode (It&#8217;s a AP). So I switched it to <a class="reference" href="http://wiki.openwrt.org/OpenWrtDocs/Hardware/Netgear/WGT634U">OpenWRT</a> Kamikaze. I build the firmware from source, but the kamikaze snapshot shoud work too. I followed the OpenWRT guide step by step with a external serial plug. You can find the complete howto for the serial connection <a class="reference" href="http://members.shaw.ca/swstuff/wgt634u.html">here</a></p>
<pre class="literal-block"># hit Ctrl-C on the bootloader
CFE&gt; ifconfig eth0 -auto
CFE&gt; flash -noheader tftp_host:openwrt-wgt634u.bin flash0.os
CFE&gt; reboot</pre>
<p>The first boot is a bit long, but all is fine&#8230;</p>
</div>
<div id="step-2-install-tools" class="section">
<h1><a name="step-2-install-tools">Step 2  / Install tools</a></h1>
<p>Here the short list of needed tools:</p>
<ul class="simple">
<li>kmod-usb2</li>
<li>kmod-usb-storage</li>
<li>kmod-vfat</li>
<li>kmod-nls-base, kmod-nls-cp437, kmod-nls-iso8859-1</li>
<li>pure-ftpd</li>
</ul>
<p>with a simple ipkg install via the serial console</p>
</div>
<div id="step-3-configure-openwrt-in-wireless-client" class="section">
<h1><a name="step-3-configure-openwrt-in-wireless-client">Step 3 / Configure OpenWRT in wireless client</a></h1>
<p>This is really simple in kamikaze, only change some files:</p>
<p>The wireless config file need to be tweaked, as I want it to join my MyDummySSID network</p>
<p><em>/etc/config/wireless</em></p>
<pre class="literal-block">config wifi-iface
option device   wifi0
option network  lan
option mode     sta
option ssid     MyDummySSID
option hidden   0
option encryption none</pre>
<p>Let&#8217;s go for the network config: MyDummySSID Access Point is 192.168.3.0/24, gateway in 3.1 and local DNS server is 1.254</p>
<p><em>/etc/config/network</em></p>
<pre class="literal-block">#### LAN configuration
config interface lan
option type     bridge
option ifname   "eth0.0"
option proto    'static'
option ipaddr   '192.168.3.2'
option netmask  '255.255.255.0'
option gateway  '192.168.3.1'
option dns      '192.168.1.254'</pre>
<p>First test: <em>ifdown wan</em> (switch off network) / <em>ifdown br-lan</em> / <em>ifup br-lan</em></p>
</div>
<div id="step-4-firewall" class="section">
<h1><a name="step-4-firewall">Step 4 / Firewall</a></h1>
<p>Ok that&#8217;s fine, but I want to restrict the access to my local network only.. so I need to hack the firewall a little to avoid remote access from other wireless clients (my wireless network is open you know..). Simply linked this little script in /etc/rc.d/</p>
<p><em>/opt/ftp-firewall</em></p>
<pre class="literal-block">#!/bin/sh

# clear all firewall rules
for T in filter nat mangle ; do
iptables -t $T -F
iptables -t $T -X
done

# drop incomming packet
iptables -P FORWARD ACCEPT
iptables -P OUTPUT  ACCEPT
iptables -P INPUT   DROP

# accept traffic on localhost
iptables -A INPUT -p tcp -i lo -j ACCEPT
iptables -A INPUT -p udp -i lo -j ACCEPT

# accept ftp only from my home network
iptables -A INPUT -s 192.168.1.0/24 -p tcp -i br-lan --dport 21 -j ACCEPT

# accept incoming http / ssh
iptables -A INPUT -p tcp --dport 80 -j ACCEPT
iptables -A INPUT -p tcp --dport 22 -j ACCEPT

# finaly accept already open Cnx
iptables -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT</pre>
</div>
<div id="step-5-misc" class="section">
<h1><a name="step-5-misc">Step 5 / Misc</a></h1>
<p>After some tests, I discover that I need a way to know if the WGT634U managed to join the wireless network or no. So I added this little script, that check for the wireless BSSID, and turn the power led in yellow if something goes wrong .. this is really usefull in fact.</p>
<p><em>/opt/led-daemon</em></p>
<pre class="literal-block">#!/bin/sh

while true
do
{
STATE=$(iwconfig ath0 |grep  00:13:13:53:DA:D1 | wc -l)
[ $STATE -eq 1 ] &amp;&amp; echo 0 &gt; /proc/diag/led/power
[ $STATE -eq 0 ] &amp;&amp; echo 1 &gt; /proc/diag/led/power
sleep 20
}
done</pre>
<p>Foo</p>
</div>
<div id="step-6-finally" class="section">
<h1><a name="step-6-finally">Step 6 / Finally</a></h1>
<p>Here the result:</p>
<div class="image"><img src="http://jkx.larsen-b.com/photos/Electronic/DSC02573.sized.jpg" alt="http://jkx.larsen-b.com/photos/Electronic/DSC02573.sized.jpg" /></div>
<p>The finished product (grrr) works really fine and managed to achieve something like 850Ko/sec, I mean full speed ;) (11Mbs network) I need to remove the serial port right now, and close the box..</p>
<p><strong>Important update</strong></p>
<p>I read on Engadget that I use this to stream video to my TV, (like the Apple TV do), but this is absolutely wrong. This media player has a <strong>320Go hard-drive</strong>. Why would stream film on this ? I just put it on that&#8217;s it :)</p>
<p>This is really amazing how people doesn&#8217;t read the article to see what I&#8217;ve done. It&#8217;s not the first time this happen in fact.</p>
<p>Here in France, most advanded users have some network TV from a long time, and this little boxes can play network stream (like the Apple TV) for a long time now. Beside you don&#8217;t pay for this service (rent for the boxes are included in DSL bill), the only issue is that you must have another computer to stream.</p>
<p>I guess nobody here (in France) would by a Apple TV, since we already have this kind of products for free for a long time. Look at a <a class="reference" href="http://fr.wikipedia.org/wiki/Freebox">Freebox</a> for example.</p>
<p><strong>It&#8217;s time to watch a film :)</strong></p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.larsen-b.com/Article/258.html/feed</wfw:commentRss>
		<slash:comments>21</slash:comments>
		</item>
		<item>
		<title>2*PIII 600 on a dual Asus P2BD</title>
		<link>http://www.larsen-b.com/Article/219.html</link>
		<comments>http://www.larsen-b.com/Article/219.html#comments</comments>
		<pubDate>Wed, 30 Nov -0001 00:00:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[computer]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[I have for a long time now, a Asus P2BD motherboard with 2 PII 350 on it. After googling a bit, I discover that I can put 2 Katmai PIII at 600Mhz on this board.
I have been looking at eBay for a while, I bought a pair of matched CPUs. Today, I received them. After [...]]]></description>
			<content:encoded><![CDATA[<p>I have for a long time now, a Asus P2BD motherboard with 2 PII 350 on it. After googling a bit, I discover that I can put 2 Katmai PIII at 600Mhz on this board.</p>
<p>I have been looking at eBay for a while, I bought a pair of matched CPUs. Today, I received them. After a bios upgrade, I put the CPU &#8220;as is&#8221; on the motherboard. In fact, my motherboard haven&#8217;t the x 6 jumper settings.. but despite the jumpers settings are totally wrong, the CPUs work at 600Mhz.</p>
<p>Yes, I get 1200 BogoMips for 42 Euros :)</p>
<p>Thanks eBay ! and this <a class="reference" href="http://homepage.hispeed.ch/rscheidegger/p2b_procupgrade_faq.html">faq</a> !</p>
]]></content:encoded>
			<wfw:commentRss>http://www.larsen-b.com/Article/219.html/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Shuttle ST62K (aka Zen) Fan issue</title>
		<link>http://www.larsen-b.com/Article/200.html</link>
		<comments>http://www.larsen-b.com/Article/200.html#comments</comments>
		<pubDate>Wed, 30 Nov -0001 00:00:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[computer]]></category>
		<category><![CDATA[fan]]></category>
		<category><![CDATA[stk62k]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[Like a lot of users, i get an issue with my fan on the Shuttle Xpc. In fact, i found a lot of comments over the net, that Shuttle used some bad fan in this boxes. Some users decide to use the waranty, but i don&#8217;t want to send this back to Paris, just to [...]]]></description>
			<content:encoded><![CDATA[<p>Like a lot of users, i get an issue with my fan on the Shuttle Xpc. In fact, i found a lot of comments over the net, that Shuttle used some bad fan in this boxes. Some users decide to use the waranty, but i don&#8217;t want to send this back to Paris, just to have another crappy fan.</p>
<p>I decided to change it by myself. But finding the right fan is really hard, because it&#8217;s 80mn x 80mn x 1.5mn fan. After a long search i decided to go to a tunning shop. (They have a bunch of various CPU fan).. The guy said to me: <em>Ok, No problem. We have a video card fan that can feet</em> .. Oh really a video fan ?</p>
<p>He give me a <a href="http://www.zalman.com/eng/product/Product_Read.asp?Idx=128">Zalman ZM-OP1</a></p>
<p><img src="http://i2.techpowerup.com/reviews/Zalman/ZM-80D/images/package4_small.jpg" alt="" /></p>
<p>Despite this fan doesn&#8217;t have the exact same caracteristics as the default one, it perform quite the same. And it does even less noise. So i&#8217;m really happy :)</p>
<p>Many thanks to the shop: Tuning Informatique (<a class="reference" href="http://www.tuninginformatique.com/">http://www.tuninginformatique.com/</a>)</p>
<p><strong>update</strong>: fix the Zalman URL</p>
]]></content:encoded>
			<wfw:commentRss>http://www.larsen-b.com/Article/200.html/feed</wfw:commentRss>
		<slash:comments>30</slash:comments>
		</item>
		<item>
		<title>Playing music on soundcard without locking</title>
		<link>http://www.larsen-b.com/Article/194.html</link>
		<comments>http://www.larsen-b.com/Article/194.html#comments</comments>
		<pubDate>Wed, 30 Nov -0001 00:00:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Other]]></category>
		<category><![CDATA[alsa]]></category>
		<category><![CDATA[audio]]></category>
		<category><![CDATA[computer]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[soundcard]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[Why this soundcard allow me to play 2 mp3 at the same time while this doesn&#8217;t.. Hum good question. In fact to support this kind of stuff the sound card should support have some sub-device, to be sure .. simply aplay -l
Here on my shuttle .. not working
aplay -l
**** List of PLAYBACK Hardware Devices ****
card [...]]]></description>
			<content:encoded><![CDATA[<p>Why this soundcard allow me to play 2 mp3 at the same time while this doesn&#8217;t.. Hum good question. In fact to support this kind of stuff the sound card should support have some sub-device, to be sure .. simply <strong>aplay -l</strong></p>
<p>Here on my shuttle .. not working</p>
<pre class="literal-block">aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: IXP [ATI IXP], device 0: ATI IXP AC97 [ATI IXP AC97]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: IXP [ATI IXP], device 1: ATI IXP IEC958 [ATI IXP IEC958 (AC97)]
Subdevices: 1/1
Subdevice #0: subdevice #0</pre>
<p>Here on another box (VIA C3 based)</p>
<pre class="literal-block">aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: V8235 [VIA 8235], device 0: VIA 8235 [VIA 8235]
Subdevices: 4/4
Subdevice #0: subdevice #0
Subdevice #1: subdevice #1
Subdevice #2: subdevice #2
Subdevice #3: subdevice #3
card 0: V8235 [VIA 8235], device 1: VIA 8235 [VIA 8235]
Subdevices: 1/1
Subdevice #0: subdevice #0</pre>
<p>So yes the C3 can play 4 stream at the same time, while the AC97 doesn&#8217;t.</p>
<p>Another way to do this is to use <a class="reference" href="http://www.alsa-project.org/alsa-doc/doc-php/asoundrc.php#softmix">software mixing</a></p>
<p><strong>Update:</strong></p>
<p>To use the software mix in Alsa: simply change the pcm.default to pcm.dmix</p>
<pre class="literal-block">#pcm.default cards.pcm.default
pcm.default pcm.dmix</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.larsen-b.com/Article/194.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Suspend to disc with Dell Latitude D400 on Linux</title>
		<link>http://www.larsen-b.com/Article/173.html</link>
		<comments>http://www.larsen-b.com/Article/173.html#comments</comments>
		<pubDate>Wed, 30 Nov -0001 00:00:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[acpi]]></category>
		<category><![CDATA[d400]]></category>
		<category><![CDATA[dell]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[I now have a Dell Latitude D400 for 1 month. This little (really small) computer is pretty nice to use, but it right now, it&#8217;s really hard to have suspend working on this kind of stuff. The main reason: it only support ACPI (no APM), and ACPI isn&#8217;t well supported by the Linux kernel.
I have [...]]]></description>
			<content:encoded><![CDATA[<p>I now have a Dell Latitude D400 for 1 month. This little (really small) computer is pretty nice to use, but it right now, it&#8217;s really hard to have suspend working on this kind of stuff. The main reason: it only support ACPI (no APM), and ACPI isn&#8217;t well supported by the Linux kernel.</p>
<p>I have tested several way to fix this issue. The only that&#8217;s working fine right now, is to use swsup. So to make it work:</p>
<ul class="simple">
<li>install the latest 2.6.9 kernel (the 2.6.8 has a issue w/ agpart and drm)</li>
<li>in kernel select &#8216;ACPI -&gt; sleep state&#8217;</li>
<li>and &#8216;ACPI -&gt; swsup&#8217;</li>
<li>build the kernel</li>
<li>create a swap partition if you don&#8217;t have one (i resized a ntfs w/ qparted)</li>
<li>mkswap /dev/hda4 (for example)</li>
<li>add &#8216;resume=/dev/hda4&#8242; in your boot prompt (in grub for example)</li>
</ul>
<p>Now your system is ready. Reboot :) ..To put the the system in standby and dump the current state in the swap: <strong>echo 4 &gt; /proc/acpi/sleep</strong>.</p>
<p>Next step simply bind the power button on this action. This is done w/ the acpid.</p>
<pre class="literal-block">#!/bin/sh
# /etc/acpi/powerbtn.sh

# put the box in swsup mode
echo 4 &gt; /proc/acpi/sleep</pre>
<p>Beside the S2/S3 ACPI doesn&#8217;t work right now, swsup permit to have suspend to disk without too much trouble.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.larsen-b.com/Article/173.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Maxtor Diamond Star Boot Error on ST62K</title>
		<link>http://www.larsen-b.com/Article/169.html</link>
		<comments>http://www.larsen-b.com/Article/169.html#comments</comments>
		<pubDate>Wed, 30 Nov -0001 00:00:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[hard drive]]></category>
		<category><![CDATA[issue]]></category>
		<category><![CDATA[stk62k]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[I just received my new hard-drive, a Maxtor Diamonstar 90 &#8211; 8M (read 80Go and 8M of cache). So I decided to fdisk + cp -a my old distros to the new drive. Everything is ok .. I have something like this:
/dev/hda1  Win (I don't install this but leave a blank fat32 .. if)
/dev/hda2 [...]]]></description>
			<content:encoded><![CDATA[<p>I just received my new hard-drive, a Maxtor Diamonstar 90 &#8211; 8M (read 80Go and 8M of cache). So I decided to fdisk + cp -a my old distros to the new drive. Everything is ok .. I have something like this:</p>
<pre class="literal-block">/dev/hda1  Win (I don't install this but leave a blank fat32 .. if)
/dev/hda2  Linux (my current debian)
/dev/hda3  BSD (NetBSD I think)
/dev/hda4  Data (10Go for what you wants)</pre>
<p>After I finish my cp -a /dev/hda2 /dev/hdc2, I just chroot to this and run grub-install. Ok .. that&#8217;s fine (no error message), it&#8217;s time to reboot.</p>
<p>Ouch! My new system doesn&#8217;t want to boot, I get a &#8216;SYSTEM BOOT FAILURE, INSERT BOOT DISK &#8230;&#8217; hum .. that&#8217;s sucks! Ok .. boot from a <a class="reference" href="http://www.sysresccd.org/">rescue CD</a> (which I really love after a day of issue on this HD), just chroot to my new drive install Lilo instead of grub .. =&gt; Crash .. oh god .. I tried it a several times and have random crash. After 2 hours, I discover that the HD have some issues with the <em>Prefetch Read/Write</em>, so I disable it.. Ok, no more random crash. Now I need to fix the boot error issue. I tested several things, and took me a lot of time and i discover something. In my bios  (I even made a new bios install), the default option is &#8216;auto detect&#8217; from the kind of HD: Large / LBA / CHS.. And this fucking HD is detected as a CHS, so I forced it to LBA, and now it works. In fact the OS doesn&#8217;t bios so it can read/write on the HD, but Lilo or Grub use the bios directly.</p>
<p>To resume Maxtor DiamonStar:</p>
<ul class="simple">
<li>Doesn&#8217;t support Read / Write prefetch</li>
<li>Do some bad thing w/ bios detection (I never seen this before ooo)</li>
<li>Are really quiet</li>
<li>Perform quite well: 56Mbs/sec in hdparm -t (far from my 110Mbs/ SCSI HD but..)</li>
<li>Are damn hot (really really hot !!)</li>
</ul>
<p>I destroy 2 Maxtor HD in a previous life, I hope this one will work a bit longer. Anyway, this is really the last time I buy this shit.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.larsen-b.com/Article/169.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->
