<?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>AmmarkoV  `s  Personal Website</title>
	<atom:link href="http://ammar.gr/?feed=rss2&#038;p=226" rel="self" type="application/rss+xml" />
	<link>http://ammar.gr</link>
	<description>I would love to change the world , but they won`t give me the source code</description>
	<lastBuildDate>Thu, 25 Oct 2012 11:53:41 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.4.2</generator>
		<item>
		<title>Replacing my WebServer with the Pi..</title>
		<link>http://ammar.gr/?p=569</link>
		<comments>http://ammar.gr/?p=569#comments</comments>
		<pubDate>Tue, 23 Oct 2012 17:19:48 +0000</pubDate>
		<dc:creator>Ammar Qammaz</dc:creator>
				<category><![CDATA[Post]]></category>
		<category><![CDATA[Raspberry Pi]]></category>

		<guid isPermaLink="false">http://ammar.gr/?p=569</guid>
		<description><![CDATA[My very own Raspberry Pi just arrived today.. It took almost 10 days to come , but I got the updated 512MB RAM model so , everything went better than expected.. .. Now I can finally return the one that I borrowed ( the second one I borrowed anyways.. ) .. Today I spent a [...]]]></description>
			<content:encoded><![CDATA[<p>My very own Raspberry Pi just arrived today.. It took almost 10 days to come , but I got the updated 512MB RAM model so , <a href="http://knowyourmeme.com/memes/everything-went-better-than-expected">everything went better than expected</a>.. <img src='http://ammar.gr/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' />  .. Now I can finally return the one that I borrowed ( the second one I borrowed <img src='http://ammar.gr/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' />  anyways.. ) ..</p>
<p><a href="http://ammar.gr/wp-content/uploads/2012/10/2rapsberries_packed.jpg"><img src="http://ammar.gr/wp-content/uploads/2012/10/2rapsberries_packed-300x198.jpg" alt="Two Raspberry Pi&#039;s with modmy pi cases" title="Two Raspberry Pi&#039;s with modmy pi cases" width="300" height="198" class="alignnone size-medium wp-image-570" /></a></p>
<p>Today I spent a good part of the day migrating my stuff to the Raspberry..<br />
The SD card I have installed has a total size 4GB so unfortunately not all of my things could fit..!<br />
Also I am very concerned about the memory wear problem so I am thinking of adding a USB hard drive and mounting all of the most active parts of the SD filesystem there ( /var /tmp /home/user/public_html etc.. )</p>
<p>The server that I plan to replace is this ( first time posing for the camera.. )<br />
<a href="http://ammar.gr/wp-content/uploads/2012/10/ammserver2012.jpg"><img src="http://ammar.gr/wp-content/uploads/2012/10/ammserver2012-198x300.jpg" alt="AmmarServer Mini-ITX" title="AmmarServer Mini-ITX" width="198" height="300" class="alignnone size-medium wp-image-571" /></a> <a href="http://ammar.gr/wp-content/uploads/2012/10/rasp_vs_current_ammarserver.jpg"><img src="http://ammar.gr/wp-content/uploads/2012/10/rasp_vs_current_ammarserver-198x300.jpg" alt="Raspberry Pi Vs My current web server box" title="Raspberry Pi Vs My current web server box" width="198" height="300" class="alignnone size-medium wp-image-572" /></a></p>
<p>Its a cabling mess really <img src='http://ammar.gr/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  with a case made out of the retail motherboard box..</p>
<p>The raspberry takes much less space and will draw much much less power making this site more eco-friendly <img src='http://ammar.gr/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  .. My UPS will also be able to power it up for days in the event of a power failure ..</p>
<p>I also conducted some experiments with wordpress on the raspberry , it performs worse than my current machine but my upload bandwidth is such a big bottleneck that 300ms of delay are barely noticeable ( I tested it from the computers of some of my friends and sometimes it takes almost 20 seconds for it to completely load ) ..</p>
]]></content:encoded>
			<wfw:commentRss>http://ammar.gr/?feed=rss2&#038;p=569</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Serving a WordPress site with Raspberry Pi ( and AmmarServer )</title>
		<link>http://ammar.gr/?p=531</link>
		<comments>http://ammar.gr/?p=531#comments</comments>
		<pubDate>Sat, 20 Oct 2012 12:41:40 +0000</pubDate>
		<dc:creator>Ammar Qammaz</dc:creator>
				<category><![CDATA[Post]]></category>
		<category><![CDATA[AmmarServer]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[Benchmark]]></category>
		<category><![CDATA[Chromium]]></category>
		<category><![CDATA[planet]]></category>
		<category><![CDATA[Raspberry Pi]]></category>
		<category><![CDATA[Web Server]]></category>

		<guid isPermaLink="false">http://ammar.gr/?p=531</guid>
		<description><![CDATA[As I&#8217;ve mentioned before , one of the original goals of AmmarServer was getting rid of my current web server and replacing it with a Raspberry Pi. As one can easily notice this site is based on wordpress ( one thing that is a little harder to notice is that it is hosted in a [...]]]></description>
			<content:encoded><![CDATA[<p>As I&#8217;ve mentioned before , one of the original goals of AmmarServer was getting rid of my current web server and replacing it with a Raspberry Pi. As one can easily notice this site is based on wordpress ( one thing that is a little harder to notice is that it is hosted in a PC in my kitchen <img src='http://ammar.gr/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' />  ) .  WordPress is a heavy burden even on my current Intel Based machine let alone on the slower Raspberry Pi.</p>
<p>There are tools that cache the wordpress web pages or imporve PHP performance but basically all of them try to work around quering the database and PHP interpreter  and serving static files instead.. </p>
<p>To add to the CPU limitations of the Pi , using an SD card also means delays when writing/and reading to disk ( <a href="http://en.wikipedia.org/wiki/Flash_memory#Memory_wear">not to mention the finite read/write cycles</a> ) when performing automatic caching operations , so instead of this I decided to add a script ( basically an alias for a wget call with the needed parameters ) that clones the whole site without hassle..   </p>
<p>If you want to try it and after cloning AmmarServer ( with &#8220;git clone git://github.com/AmmarkoV/AmmarServer &#8221; ) you can use the bash script provided in the repository and called &#8220;MirrorAmmarServer.sh&#8221;<br />
Lets say that your WordPress blog is hosted on http://ammar.gr .<br />
STEP 1 ) Being on the parent directory of AmmarServer  issue &#8220;./MirrorAmmarServer.sh http://ammar.gr&#8221;<br />
wget will gradually start to mirror the site into static files and create a subdirectory called ammar.gr/ where the files will be stored<br />
STEP 2 ) Edit the file src/main.c and change  char webserver_root[MAX_FILE_PATH]=&#8221;public_html/&#8221;; to char webserver_root[MAX_FILE_PATH]=&#8221;ammar.gr/&#8221;;<br />
If you want you can change the DEFAULT_BINDING_PORT to another port ( you may want to set it to port 80 because the default is 8080 )<br />
STEP 3 ) issue &#8220;./make &#038;&#038; ./run_ammarserver&#8221; and voila your site will be availiable at http://127.0.0.1:8080 ( or any other port you choose )</p>
<p>Here is a comparison of pinging the Raspberry Pi and pinging my Intel Based Server PC on a LAN<br />
<a href="http://ammar.gr/wp-content/uploads/2012/10/raspberry_pi_vs_intel_ping_times.png"><img src="http://ammar.gr/wp-content/uploads/2012/10/raspberry_pi_vs_intel_ping_times-300x98.png" alt="" title="raspberry_pi_vs_intel_ping_times" width="300" height="98" class="alignnone size-medium wp-image-567" /></a><br />
The ping times of the intel system have an average of 0.158 ms while the raspberry pi has an average time of 0.543 ms , almost 3-4 times worse.. </p>
<p>Here are some benchmarks conducted with chromium that give an overview of the performance difference ( all of the tests are done in a LAN so bandwidth is not a limiting factor ) : </p>
<p><a href="http://ammar.gr/wp-content/uploads/2012/10/FirstHit_apache_regular_wordpressVSammarserver_cached.png"><img src="http://ammar.gr/wp-content/uploads/2012/10/FirstHit_apache_regular_wordpressVSammarserver_cached-300x84.png" alt="" title="FirstHit_apache_regular_wordpressVSammarserver_cached" width="300" height="84" class="alignnone size-medium wp-image-540" /></a><br />
<em><strong>Left</strong> : First Uncached Hit , Apache Serving regular WordPress on my regular PC ( 1.33MB transferred , DOMContent loaded @ 494 ms , onload @ 1.35s )<br />
    <strong>Right</strong> : First Uncached Hit , AmmarServer serving cached static files on Raspberry Pi ( 1.39MB transferred , DOMContent loaded @ 159 ms , onload @ 968ms )  </em></p>
<p><a href="http://ammar.gr/wp-content/uploads/2012/10/HomeClicked2ndHit_apache_regular_wordpressVSammarserver_cached.png"><img src="http://ammar.gr/wp-content/uploads/2012/10/HomeClicked2ndHit_apache_regular_wordpressVSammarserver_cached-300x84.png" alt="" title="HomeClicked2ndHit_apache_regular_wordpressVSammarserver_cached" width="300" height="84" class="alignnone size-medium wp-image-542" /></a><br />
<em><strong>Left</strong> : Second Hit after clicking Home , Apache Serving regular WordPress on my regular PC ( 22.67KB transferred , DOMContent loaded @ 566 ms , onload @ 2.04s )<br />
    <strong>Right</strong> : Second Hit after clicking Home , AmmarServer serving cached static files on Raspberry Pi ( 61.54KB transferred , DOMContent loaded @ 140 ms , onload @ 515ms )  </em></p>
<p><a href="http://ammar.gr/wp-content/uploads/2012/10/2012-10-19-164015_3840x1080_scrot.png"><img src="http://ammar.gr/wp-content/uploads/2012/10/2012-10-19-164015_3840x1080_scrot-300x84.png" alt="Apache Serving cached static files on left compared to AmmarServer serving cached static files on right" title="Apache Serving cached static files on left compared to AmmarServer serving cached static files on right" width="300" height="84" class="alignnone size-medium wp-image-534" /></a><br />
<em><strong>Left</strong> : Apache Serving cached static files on my Regular PC<br />
    <strong>Right</strong> : AmmarServer serving cached static files on Raspberry Pi</em></p>
<p>Some things to notice is that in the static files version of the site , the image links on the menu bar that come directly from github , and the youtube embeds are the most laggy parts of the page and this distorts loading times. The onload event would drop by almost 400ms if they were part of the site.. </p>
<p>Performance also gets better by increasing the priority of the webserver  ( IRL decreasing it to -15 <img src='http://ammar.gr/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' />  ) , removing cross-site content and making some other small tweaks. I have managed to drop times to around 50-60ms and I hope to further improve those numbers..</p>
<p>Network latency of course is the biggest bottleneck when dropping times so low and in any case even if i managed to serve the whole site from 60ms ( transaction latency ) + 150ms ( network latency )  in say 20ms  ( transaction latency )  + 150 ms ( network latency ) the perceived difference from the average client will be very small..</p>
<p>Thats it for now.. <img src='http://ammar.gr/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  </p>
]]></content:encoded>
			<wfw:commentRss>http://ammar.gr/?feed=rss2&#038;p=531</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ETags 304 Not Modified and 200 OK headers..!</title>
		<link>http://ammar.gr/?p=520</link>
		<comments>http://ammar.gr/?p=520#comments</comments>
		<pubDate>Wed, 17 Oct 2012 16:01:04 +0000</pubDate>
		<dc:creator>Ammar Qammaz</dc:creator>
				<category><![CDATA[Post]]></category>
		<category><![CDATA[AmmarServer]]></category>
		<category><![CDATA[HTTP]]></category>
		<category><![CDATA[Web Server]]></category>

		<guid isPermaLink="false">http://ammar.gr/?p=520</guid>
		<description><![CDATA[For the last couple of days I have been implementing ETags on AmmarServer which seem to be a nice way for cache handshaking ( and work very well with my internal server side caching mechanism ) .. To profile my server&#8217;s behaviour I am using chromium and the very handy Developer Tools that come integrated [...]]]></description>
			<content:encoded><![CDATA[<p>For the last couple of days I have been implementing <a href="http://en.wikipedia.org/wiki/HTTP_ETag">ETags</a> on <a href="https://github.com/AmmarkoV/AmmarServer">AmmarServer</a> which seem to be a nice way for cache handshaking ( and work very well with my internal server side caching mechanism )   ..</p>
<p>To profile my server&#8217;s behaviour I am using chromium and the very handy Developer Tools that come integrated in it , Especially the Network Timeline feature is great for debugging this sort of things.. <a href="http://redbot.org/?uri=http%3A%2F%2Fammar.gr%3A8080%2F">RedBot is also a very useful tool!</a> that I use for debugging HTTP handshakes..</p>
<p>Although my implementation isn&#8217;t ready yet I am getting some very weird results when I emmit 304 Not Changed responses illustrated in the screenshots bellow ..!</p>
<p>The screenshots are that big due to my dual 1080p screen setup <img src='http://ammar.gr/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> </p>
<p><a href="http://ammar.gr/wp-content/uploads/2012/10/apache_and_ammarserver_200_ok.png"><img src="http://ammar.gr/wp-content/uploads/2012/10/apache_and_ammarserver_200_ok-300x84.png" alt="Apache And AmmarServer both serving 200 OK responses.." title="Apache And AmmarServer both serving 200 OK responses.." width="300" height="84" class="alignnone size-medium wp-image-521" /></a></p>
<p><a href="http://ammar.gr/wp-content/uploads/2012/10/apache_and_ammarserver_304_and_200.png"><img src="http://ammar.gr/wp-content/uploads/2012/10/apache_and_ammarserver_304_and_200-300x84.png" alt="Apache and AmmarServer , AmmarServer emmiting 304 responses and Apache 200 OK " title="Apache and AmmarServer , AmmarServer emmiting 304 responses and Apache 200 OK " width="300" height="84" class="alignnone size-medium wp-image-522" /></a></p>
<p>I can&#8217;t seem to grasp the reason why a 304 response has such a large &#8220;Waiting Time&#8221; , Is it my Response header that is missing something , is it the whole  Keep Alive thing not being handled properly , or is the waiting time supposed to mean something else in the graph..<br />
How is it possible when only 200 byte headers get served that the response time is 4 times worse than when the full files get served from memory ?  </p>
<p>I haven&#8217;t still figured it out and it is driving me crazy , but I will get to the bottom of this <img src='http://ammar.gr/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' />  ..  </p>
<p><strong>UPDATE </strong><br />
After some tweaking around and with the help of <a href="http://redbot.org/?uri=http%3A%2F%2Fammar.gr%3A8080%2F">redbot</a> it turns out that the 304 Not Modified header should retransmit all of the original fields transmitted with the first &#8220;200 OK&#8221; message.. This means all of the E-Tag , Date etc fields.. I was missing out some of them so including them fixed the behaviour.. </p>
]]></content:encoded>
			<wfw:commentRss>http://ammar.gr/?feed=rss2&#038;p=520</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>AmmarServer has a Wiki now..</title>
		<link>http://ammar.gr/?p=515</link>
		<comments>http://ammar.gr/?p=515#comments</comments>
		<pubDate>Fri, 12 Oct 2012 14:27:36 +0000</pubDate>
		<dc:creator>Ammar Qammaz</dc:creator>
				<category><![CDATA[Post]]></category>
		<category><![CDATA[AmmarServer]]></category>

		<guid isPermaLink="false">http://ammar.gr/?p=515</guid>
		<description><![CDATA[I just finished creating a Wiki for AmmarServer.. It is not very detailed but , I believe , gives an overview of what I am trying to achive.. Hope you find it useful..!]]></description>
			<content:encoded><![CDATA[<p>I just finished creating <a href="http://github.com/AmmarkoV/AmmarServer/wiki">a Wiki for AmmarServer</a>..<br />
It is not very detailed but , I believe , gives an overview of what I am trying to achive..</p>
<p>Hope you find it useful..! </p>
]]></content:encoded>
			<wfw:commentRss>http://ammar.gr/?feed=rss2&#038;p=515</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Testing the raspberry pi as a webserver!</title>
		<link>http://ammar.gr/?p=502</link>
		<comments>http://ammar.gr/?p=502#comments</comments>
		<pubDate>Tue, 25 Sep 2012 00:35:03 +0000</pubDate>
		<dc:creator>Ammar Qammaz</dc:creator>
				<category><![CDATA[Post]]></category>
		<category><![CDATA[AmmarServer]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[Raspberry Pi]]></category>
		<category><![CDATA[Web Server]]></category>

		<guid isPermaLink="false">http://ammar.gr/?p=502</guid>
		<description><![CDATA[My friend Philimon lent me his new raspberry pi after experiencing problems using the usb ports on the board.. After a little tinkering I found out that using a usb hub with an external power supply solved the issues and everything worked fine so his problems must have been power related with the pi not [...]]]></description>
			<content:encoded><![CDATA[<p>My friend Philimon lent me his new raspberry pi after experiencing problems using the usb ports on the board.. After a little tinkering I found out that using a usb hub with an external power supply solved the issues and everything worked fine so his problems must have been power related with the pi not supplying enough juice for the power hungry usb peripherals he connected.  </p>
<p>Having the opportunity to first-hand test the pi  I immediately apt-got git and <a href="https://github.com/AmmarkoV/AmmarServer">cloned my AmmarServer repo</a> to test it with the board <img src='http://ammar.gr/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>The results look very promising since the pi with ammarserver beats my current mini-itx intel atom based setup which is running the heavier apache webserver..</p>
<p>In more detail subsequently querying a static version of the the page you see right now ( as described in a previous post ) gave the following times..</p>
<p>Raspberry Pi using AmmarServer :<br />
00:00:02.64 <- first uncached try with actual sd read time ( also worth to note that a Class 10 sd card is used )<br />
00:00:00.706 <- rasp cached , no file reading involved<br />
00:00:00.787 <- rasp cached , no file reading involved<br />
00:00:00.818 <- rasp cached , no file reading involved<br />
00:00:00.833 <- rasp cached , no file reading involved<br />
00:00:00.788 <- rasp cached , no file reading involved<br />
00:00:00.810 <- rasp cached , no file reading involved</p>
<p>My current webserver using apache ( and dynamic content [ php/mysql/wordpress ] ) :<br />
00:00:02.802 <- ammar.gr with apache<br />
00:00:01.561 <- ammar.gr with apache (some images etc. cached probably) </p>
<p>My current webserver using AmmarServer ( and static saved pages ) :<br />
00:00:01.72 <- ammar.gr first uncached try with actual hd read time<br />
00:00:00.678 <- ammar.gr with ammarserver cached , no file reading involved<br />
00:00:00.652 <- ammar.gr with ammarserver cached , no file reading involved</p>
<p>As one can see the best times of the pi 00:00:00.706 are pretty damn close to the 00:00:00.652 of my current machine when the content is already cached in memory so I may be changing my web hosting setup soon..!</p>
<p>I will probably keep my current webserver as a platform to make dynamic webpages using the really nice GUI of wordpress and then pass static versions of them to the pi which will act as the always on webserver..<br />
An additional thing that I didn't test was performance using more processes like a mumble server, an ftp server or an actual php/apache setup but.. </p>
<p>When I'll order my own pi I will try all of them and blog back with my results..!</p>
<p><a href="http://ammar.gr/wp-content/uploads/2012/09/raspberry1.jpg"><img src="http://ammar.gr/wp-content/uploads/2012/09/raspberry1-300x252.jpg" alt="" title="raspberry1"  height="198" class="alignnone size-medium wp-image-503" /></a> <a href="http://ammar.gr/wp-content/uploads/2012/09/raspberry2.jpg"><img src="http://ammar.gr/wp-content/uploads/2012/09/raspberry2-300x198.jpg" alt="" title="raspberry2"  height="198" class="alignnone size-medium wp-image-504" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://ammar.gr/?feed=rss2&#038;p=502</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MIDI Usb keyboard + Synthesia + Ubuntu Linux + Wine = GG</title>
		<link>http://ammar.gr/?p=490</link>
		<comments>http://ammar.gr/?p=490#comments</comments>
		<pubDate>Tue, 07 Aug 2012 23:08:06 +0000</pubDate>
		<dc:creator>Ammar Qammaz</dc:creator>
				<category><![CDATA[Post]]></category>
		<category><![CDATA[Keyboard]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[MIDI]]></category>
		<category><![CDATA[Synthesia]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Wine]]></category>

		<guid isPermaLink="false">http://ammar.gr/?p=490</guid>
		<description><![CDATA[Today my new midi keyboard , ( an M-Audio Oxygen 61 ) finally arrived! In the past , as a child I had regular piano lessons for almost 7 years but somewhere close to high school I abandoned it.. Lately and after watching Nodame Cantabille ( great anime btw xD ) it all suddenly came [...]]]></description>
			<content:encoded><![CDATA[<p>Today my new midi keyboard , ( an M-Audio Oxygen 61 ) finally arrived!<br />
In the past , as a child I had regular piano lessons for almost 7 years but somewhere close to high school I abandoned it..<br />
Lately and after watching <a href="http://anidb.net/perl-bin/animedb.pl?show=anime&#038;aid=4691">Nodame Cantabille</a> ( great anime btw xD ) it all suddenly came back to me , so since my birthday is near ( 11-Aug ) my girlfriend <3 bought me this as a gift! <img src='http://ammar.gr/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />   </p>
<p>I am using it with <a href="http://synthesiagame.com/">synthesia</a> a very nice program to learn and play the piano that uses midi files as input and has an impressive feature list and actually makes it &#8220;fun&#8221; to play and reduces very much the overall difficulty curve of learning to play complicated pieces..<br />
Its learning pack is kind of expensive ( 40$ ) so I am planning to buying it to support its programmer , sometime soon but not right now.. For now its free mode is more than enough..! </p>
<p>One of the down-sides of synthesia is that it is a windows targeted application but thanks to the great work by the wine guys it plays with no problems at all using wine ( 1.5.10 )..! There is an other program which is linux oriented called linthesia but for some strange reason it refuses to start at all on my machine and from what I gather it has very limited capabilities compared to synthesia..!</p>
<p>The keyboard required no configuration on my part since it was recognized instantly when plugged in the USB port ( I am running Lubuntu 12.04 ) , the only &#8220;hack&#8221; needed was starting timidity in a pulseaudio friendly mode , done by issuing : timidity -A100 -iA -B2,8 -Os -EFreverb=0 2>&#038;1 &#038; and then chosing the keyboard from the synthesia menu and the testing one by one the midi out ports until sound came out..! </p>
<p>Thats about it..!<br />
I am now trying to learn the following piece , in one day after so many years , I am close to the middle xD :</p>
<p>Yann Tiersen: Comptine d&#8217;un autre été</p>
<p><center><br />
<a href="http://www.youtube.com/watch?v=83EmFIRZIm4" target="_new"><img src="http://ammar.gr/wp-content/uploads/2012/08/synthesia_yann_tiersen.png" alt="Synthesia - Yann Tiersen - Youtube" title="Synthesia - Yann Tiersen - Youtube" width="608" height="339" class="alignnone size-full wp-image-562" /></a><br />
<!--iframe width="560" height="315" src="http://www.youtube.com/embed/83EmFIRZIm4" frameborder="0" allowfullscreen></iframe--></p>
<p><a href="http://ammar.gr/wp-content/uploads/2012/08/timidity_ubuntu_m-audio_oxygen_61_synthesia_wine_linux1.jpg"><img src="http://ammar.gr/wp-content/uploads/2012/08/timidity_ubuntu_m-audio_oxygen_61_synthesia_wine_linux1-300x225.jpg" alt="Unboxing M-Audio Oxygen 61" title="Unboxing M-Audio Oxygen 61" width="250" class="alignnone size-medium wp-image-491" /></a> <a href="http://ammar.gr/wp-content/uploads/2012/08/timidity_ubuntu_m-audio_oxygen_61_synthesia_wine_linux.jpg"><img src="http://ammar.gr/wp-content/uploads/2012/08/timidity_ubuntu_m-audio_oxygen_61_synthesia_wine_linux-300x225.jpg" alt="M-audio Oxygen 61 on my desk Linux,timidity,ubuntum,synthesia,wine at work xD" title="M-audio Oxygen 61 on my desk Linux,timidity,ubuntum,synthesia,wine at work xD" width="250" class="alignnone size-medium wp-image-492" /></a></center></p>
]]></content:encoded>
			<wfw:commentRss>http://ammar.gr/?feed=rss2&#038;p=490</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>AmmarServer cont..</title>
		<link>http://ammar.gr/?p=475</link>
		<comments>http://ammar.gr/?p=475#comments</comments>
		<pubDate>Sun, 05 Aug 2012 02:06:31 +0000</pubDate>
		<dc:creator>Ammar Qammaz</dc:creator>
				<category><![CDATA[Post]]></category>
		<category><![CDATA[AmmarServer]]></category>
		<category><![CDATA[Apache]]></category>

		<guid isPermaLink="false">http://ammar.gr/?p=475</guid>
		<description><![CDATA[AmmarServer is now pretty stable and I am begining to add more interesting functionallity such as request caching etc.. One of the tests that I&#8217;ve made is converting this wordpress site into static files using a firefox extension called scrapbook that can save entire web sites many pages deep as files and then using the [...]]]></description>
			<content:encoded><![CDATA[<p><a href="https://github.com/AmmarkoV/AmmarServer">AmmarServer</a> is now pretty stable and I am begining to add more interesting functionallity such as request caching etc..</p>
<p>One of the tests that I&#8217;ve made is converting this wordpress site into static files using <a href="https://addons.mozilla.org/en-us/firefox/addon/scrapbook/">a firefox extension called scrapbook that can save entire web sites many pages deep as files</a> and then using the saved files , serving them with ammarserver <img src='http://ammar.gr/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />   !</p>
<p>The result is that AmmarServer serving the cached files ( reading them from the disk every time ) is actually serving them twice as fast as when apache + php + wordpress dynamically create most of the content and serve the images etc in the same manner.. I am wondering how much better will I be able to do by caching and not querying the filesystem / hard disk subsystem at all..!   </p>
<p>Attached are two screenshots taken using the <a href="http://www.numion.com/stopwatch/">numion stopwatch</a> tool</p>
<p>AmmarServer running on port 8080 ,serving cached files reading them from disk and scoring 0.838 seconds<br />
<center><br />
<a href="http://ammar.gr/wp-content/uploads/2012/08/ammserv.jpg"><img src="http://ammar.gr/wp-content/uploads/2012/08/ammserv-1024x557.png" alt="" title="AmmarServer" width="500"  class="alignnone size-large wp-image-476" /></a></center></p>
<p>Regular apache + php + wordpress running on the site you currently see and scoring 1.888 seconds almost the double time..<center><br />
<a href="http://ammar.gr/wp-content/uploads/2012/08/apache.jpg"><img src="http://ammar.gr/wp-content/uploads/2012/08/apache-1024x557.png" alt="" title="apache" width="500"   class="alignnone size-large wp-image-477" /></a></center></p>
<p>These tests were executed on the same machine in a LAN network so no serious network unpredictable latencies exist and we are almost purely CPU bound..</p>
<p>Testing with caching in memory enabled for my site today gives the following times..<br />
Apache + PHP + MySQL + WordPress : 2.323 secs<br />
AmmarServer , cache enabled , first hit serving everything as a file : 1.383<br />
AmmarServer , cache enabled , subsequent hits serving everything from memory : 0.762<br />
 <img src='http://ammar.gr/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>using :<br />
time wget http://ammar.gr/<br />
and<br />
time wget http://ammar.gr:8080/<br />
just for the index.php  file of wordpress shows the difference , 0.2s vs 0.004s </p>
<p><center><br />
<a href="http://ammar.gr/wp-content/uploads/2012/08/comparison_wget.png"><img src="http://ammar.gr/wp-content/uploads/2012/08/comparison_wget.png" alt="" title="comparison_wget" width="500"  class="alignnone size-full wp-image-488" /></a><br />
</center><br />
Streaming Full-HD content with ammarserver<br />
<center><br />
<a href="http://ammar.gr/wp-content/uploads/2012/08/2012-08-10-140534_3840x1080_scrot.jpg"><img src="http://ammar.gr/wp-content/uploads/2012/08/2012-08-10-140534_3840x1080_scrot-300x168.jpg" alt="Streaming fullhd content with AmmarServer" title="Streaming fullhd content with AmmarServer" width="300" height="168" class="alignnone size-medium wp-image-499" /></a></center></p>
]]></content:encoded>
			<wfw:commentRss>http://ammar.gr/?feed=rss2&#038;p=475</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>AmmarServer for Linux / NVIDIA problems solved..!</title>
		<link>http://ammar.gr/?p=466</link>
		<comments>http://ammar.gr/?p=466#comments</comments>
		<pubDate>Wed, 01 Aug 2012 12:44:17 +0000</pubDate>
		<dc:creator>Ammar Qammaz</dc:creator>
				<category><![CDATA[Post]]></category>
		<category><![CDATA[Games]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[NVIDIA]]></category>
		<category><![CDATA[Problems]]></category>
		<category><![CDATA[Wine]]></category>

		<guid isPermaLink="false">http://ammar.gr/?p=466</guid>
		<description><![CDATA[I am pleased to report that using NVidia driver 304.22 along with a 3.2.0-28 kernel and powermizer set to the lowest level ( always ) is stable and I can now once again play starcraft 2 using wine without my pc getting a blank screen every 10 minutes ..! My /etc/X11/xorg.conf Screen section follows..! Section [...]]]></description>
			<content:encoded><![CDATA[<p>I am pleased to report that using NVidia driver 304.22 along with a 3.2.0-28 kernel and powermizer set to the lowest level ( always ) is stable and I can now once again play starcraft 2 using wine without my pc getting a blank screen every 10 minutes ..! </p>
<p>My /etc/X11/xorg.conf Screen section follows..!</p>
<blockquote><p>
Section &#8220;Screen&#8221;<br />
    Identifier     &#8220;Screen0&#8243;<br />
    Device         &#8220;Device0&#8243;<br />
    Monitor        &#8220;Monitor0&#8243;<br />
    DefaultDepth    24<br />
    Option         &#8220;NoLogo&#8221; &#8220;True&#8221;<br />
    Option         &#8220;Coolbits&#8221; &#8220;1&#8243;<br />
    Option         &#8220;RegistryDwords&#8221; &#8220;PowerMizerEnable=0&#215;1; PerfLevelSrc=0&#215;2222; PowerMizerLevel=0&#215;3; PowerMizerDefault=0&#215;3; PowerMizerDefaultAC=0&#215;3&#8243;<br />
    SubSection     &#8220;Display&#8221;<br />
        Depth       24<br />
    EndSubSection<br />
EndSection
</p></blockquote>
<p><a href="http://ammar.gr/wp-content/uploads/2012/08/2012-08-01-150355_3840x1080_scrot.png"><img src="http://ammar.gr/wp-content/uploads/2012/08/2012-08-01-150355_3840x1080_scrot-1024x288.png" alt="" title="AmmarServer Screenshot..!" width="1024" height="208" class="alignnone size-large wp-image-467" /></a></p>
<p>In other news since it is summer and I dont have many things to do..<br />
I decided to rewrite from scratch AmmarServer ( http server ) for linux ..<br />
The <a href="http://ammar.gr/~ammar/atech_old/Myshop/view_item.php?id=4">outdated windows version of AmmarServer can be found in my legacy site</a> ..<br />
In this new one I will be including keep-alive support , a better code layout , the ability to create virtual files via linking an arbitrary executable to the web server , and automatic caching web page queries to the memory.. This should be particularly handy to be used as a server in conjuction with the raspberry pi.. ( when I get my hands on one ) ..</p>
<p>The thing about virtual files is that I would like to make a virtual file called camera.jpg that when requested by the client would trigger an other frame grabbing application that would make a .jpg conversion of the image on the fly and serve it directly to the client without reading or writing to the flash memory/disk .. That way linking everything together all possible delays will be shoved off..!</p>
<p><a href="https://github.com/AmmarkoV/AmmarServer"><br />
AmmarServer github repository can be found here</a></p>
<p>Thats it for now..</p>
]]></content:encoded>
			<wfw:commentRss>http://ammar.gr/?feed=rss2&#038;p=466</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>NVIDIA problems cont. , digging deeper :P</title>
		<link>http://ammar.gr/?p=446</link>
		<comments>http://ammar.gr/?p=446#comments</comments>
		<pubDate>Sat, 07 Jul 2012 20:49:12 +0000</pubDate>
		<dc:creator>Ammar Qammaz</dc:creator>
				<category><![CDATA[Post]]></category>
		<category><![CDATA[Games]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[NVIDIA]]></category>
		<category><![CDATA[Problems]]></category>
		<category><![CDATA[Wine]]></category>

		<guid isPermaLink="false">http://ammar.gr/?p=446</guid>
		<description><![CDATA[Using irqpoll pcie_aspm=off selinux=0 as boot parameters and setting powermizer to lowest performance setting ( to prevent the gfx card from heating at all ) , disabled openGL flipping , the crashing behaviour has changed.. The card no longer drops from the PCIexpress bus but instead it produces some more revealing messages .. While playing [...]]]></description>
			<content:encoded><![CDATA[<p>Using irqpoll pcie_aspm=off selinux=0 as boot parameters and setting powermizer to lowest performance setting ( to prevent the gfx card from heating at all ) , disabled openGL flipping ,   the crashing behaviour has changed.. The card no longer drops from the PCIexpress bus but instead it produces some more revealing messages ..</p>
<p>While playing starcraft 2 with wine..<br />
Kern.log -></p>
<blockquote><p>
Jul  7 23:50:32 ammar-desktop kernel: [  960.691374] INFO: task SC2.exe:2189 blocked for more than 120 seconds.<br />
Jul  7 23:50:32 ammar-desktop kernel: [  960.691377] &#8220;echo 0 > /proc/sys/kernel/hung_task_timeout_secs&#8221; disables this message.<br />
Jul  7 23:50:32 ammar-desktop kernel: [  960.691379] SC2.exe         D ffffffff81806080     0  2189      1 0&#215;00020000<br />
Jul  7 23:50:32 ammar-desktop kernel: [  960.691382]  ffff88018088bb78 0000000000000086 0000000000000001 ffff88018088bbc8<br />
Jul  7 23:50:32 ammar-desktop kernel: [  960.691386]  ffff88018088bfd8 ffff88018088bfd8 ffff88018088bfd8 0000000000013780<br />
Jul  7 23:50:32 ammar-desktop kernel: [  960.691389]  ffff8801b4c416f0 ffff88017ff92de0 0000000000000000 7fffffffffffffff<br />
Jul  7 23:50:32 ammar-desktop kernel: [  960.691392] Call Trace:<br />
Jul  7 23:50:32 ammar-desktop kernel: [  960.691398]  [<ffffffff81657abf>] schedule+0x3f/0&#215;60<br />
Jul  7 23:50:32 ammar-desktop kernel: [  960.691401]  [<ffffffff81658105>] schedule_timeout+0x2a5/0&#215;320<br />
Jul  7 23:50:32 ammar-desktop kernel: [  960.691405]  [<ffffffff8118ad40>] ? poll_freewait+0xe0/0xe0<br />
Jul  7 23:50:32 ammar-desktop kernel: [  960.691407]  [<ffffffff8118ae30>] ? __pollwait+0xf0/0xf0<br />
Jul  7 23:50:32 ammar-desktop kernel: [  960.691410]  [<ffffffff816578ff>] wait_for_common+0xdf/0&#215;180<br />
Jul  7 23:50:32 ammar-desktop kernel: [  960.691414]  [<ffffffff8105faf0>] ? try_to_wake_up+0&#215;200/0&#215;200<br />
Jul  7 23:50:32 ammar-desktop kernel: [  960.691416]  [<ffffffff81657a7d>] wait_for_completion+0x1d/0&#215;20<br />
Jul  7 23:50:32 ammar-desktop kernel: [  960.691494]  [<ffffffffa1119d99>] os_acquire_semaphore+0&#215;69/0&#215;80 [nvidia]<br />
Jul  7 23:50:32 ammar-desktop kernel: [  960.691550]  [<ffffffffa10ea245>] _nv014565rm+0&#215;9/0xe [nvidia]<br />
Jul  7 23:50:32 ammar-desktop kernel: [  960.691596]  [<ffffffffa0b5870a>] ? _nv016163rm+0xce/0x1ee [nvidia]<br />
Jul  7 23:50:32 ammar-desktop kernel: [  960.691638]  [<ffffffffa0b3d031>] ? _nv001029rm+0xbc0/0xca0 [nvidia]<br />
Jul  7 23:50:32 ammar-desktop kernel: [  960.691680]  [<ffffffffa0b3d1f8>] ? _nv001063rm+0&#215;66/0x2afb [nvidia]<br />
Jul  7 23:50:32 ammar-desktop kernel: [  960.691722]  [<ffffffffa0b3585b>] ? _nv000937rm+0&#215;26/0&#215;147 [nvidia]<br />
Jul  7 23:50:32 ammar-desktop kernel: [  960.691780]  [<ffffffffa10e432d>] ? _nv001095rm+0x33d/0xa9f [nvidia]<br />
Jul  7 23:50:32 ammar-desktop kernel: [  960.691835]  [<ffffffffa10f15d0>] ? rm_ioctl+0&#215;76/0xf3 [nvidia]<br />
Jul  7 23:50:32 ammar-desktop kernel: [  960.691888]  [<ffffffffa110fdcc>] ? nv_kern_ioctl+0x15c/0&#215;490 [nvidia]<br />
Jul  7 23:50:32 ammar-desktop kernel: [  960.691892]  [<ffffffff81094cd7>] ? getnstimeofday+0&#215;57/0xe0<br />
Jul  7 23:50:32 ammar-desktop kernel: [  960.691945]  [<ffffffffa1110121>] ? nv_kern_compat_ioctl+0&#215;21/0&#215;30 [nvidia]<br />
Jul  7 23:50:32 ammar-desktop kernel: [  960.691949]  [<ffffffff811c864d>] ? compat_sys_ioctl+0xad/0&#215;240<br />
Jul  7 23:50:32 ammar-desktop kernel: [  960.691953]  [<ffffffff810b6475>] ? compat_sys_time+0&#215;25/0&#215;60<br />
Jul  7 23:50:32 ammar-desktop kernel: [  960.691956]  [<ffffffff81664470>] ? sysenter_dispatch+0&#215;7/0x2e
</p></blockquote>
<p>Xorg log -></p>
<blockquote><p>
[   822.042] (WW) NVIDIA(0): WAIT (2, 6, 0&#215;8000, 0x0000a4c8, 0x0000c408)<br />
[   828.683] [mi] EQ overflowing.  Additional events will be discarded until existing events are processed.<br />
[   828.683]<br />
Backtrace:<br />
[   828.704] 0: /usr/bin/X (xorg_backtrace+0&#215;26) [0x7f73b42b3996]<br />
[   828.704] 1: /usr/bin/X (mieqEnqueue+0&#215;263) [0x7f73b4294073]<br />
[   828.704] 2: /usr/bin/X (0x7f73b412b000+0x62ab4) [0x7f73b418dab4]<br />
[   828.704] 3: /usr/lib/xorg/modules/input/evdev_drv.so (0x7f73ac544000+0x5d88) [0x7f73ac549d88]<br />
[   828.704] 4: /usr/bin/X (0x7f73b412b000+0x8af87) [0x7f73b41b5f87]<br />
[   828.704] 5: /usr/bin/X (0x7f73b412b000+0xb0eca) [0x7f73b41dbeca]<br />
[   828.704] 6: /lib/x86_64-linux-gnu/libpthread.so.0 (0x7f73b3451000+0xfcb0) [0x7f73b3460cb0]<br />
[   828.704] 7: (vdso) (0x7fff0bbcc000+0&#215;707) [0x7fff0bbcc707]<br />
[   828.704] 8: (vdso) (0x7fff0bbcc000+0x7e5) [0x7fff0bbcc7e5]<br />
[   828.704] 9: (vdso) (__vdso_gettimeofday+0x2b) [0x7fff0bbcca1b]<br />
[   828.704] 10: /usr/lib/xorg/modules/drivers/nvidia_drv.so (0x7f73ad02c000+0x883a5) [0x7f73ad0b43a5]<br />
[   828.704] 11: /usr/lib/xorg/modules/drivers/nvidia_drv.so (0x7f73ad02c000+0xff713) [0x7f73ad12b713]<br />
[   828.704] 12: /usr/lib/xorg/modules/drivers/nvidia_drv.so (0x7f73ad02c000+0x4cf326) [0x7f73ad4fb326]<br />
[   828.704] 13: /usr/bin/X (0x7f73b412b000+0x11988c) [0x7f73b424488c]<br />
[   828.704] 14: /usr/bin/X (0x7f73b412b000+0x4a953) [0x7f73b4175953]<br />
[   828.704] 15: /usr/bin/X (0x7f73b412b000+0x4e8b1) [0x7f73b41798b1]<br />
[   828.705] 16: /usr/bin/X (0x7f73b412b000+0x3d6da) [0x7f73b41686da]<br />
[   828.705] 17: /lib/x86_64-linux-gnu/libc.so.6 (__libc_start_main+0xed) [0x7f73b22e676d]<br />
[   828.705] 18: /usr/bin/X (0x7f73b412b000+0x3d9d1) [0x7f73b41689d1]<br />
[   828.705] [mi] These backtraces from mieqEnqueue may point to a culprit higher up the stack.<br />
[   828.705] [mi] mieq is *NOT* the cause.  It is a victim.<br />
[   829.042] (WW) NVIDIA(0): WAIT (1, 6, 0&#215;8000, 0x0000a4c8, 0x0000c408)<br />
[   829.042] [mi] Increasing EQ size to 512 to prevent dropped events.<br />
[   829.042] [mi] EQ processing has resumed after 43 dropped events.<br />
[   829.042] [mi] This may be caused my a misbehaving driver monopolizing the server&#8217;s resources.<br />
[   832.044] (WW) NVIDIA(0): WAIT (2, 6, 0&#215;8000, 0x0000a4c8, 0x0000e348)<br />
[   839.044] (WW) NVIDIA(0): WAIT (1, 6, 0&#215;8000, 0x0000a4c8, 0x0000e348)<br />
[   842.047] (WW) NVIDIA(0): WAIT (2, 6, 0&#215;8000, 0x0000a4c8, 0x000002a8)<br />
[   849.047] (WW) NVIDIA(0): WAIT (1, 6, 0&#215;8000, 0x0000a4c8, 0x000002a8)<br />
[   852.048] (WW) NVIDIA(0): WAIT (2, 6, 0&#215;8000, 0x0000a4c8, 0x000062d8)<br />
[   859.048] (WW) NVIDIA(0): WAIT (1, 6, 0&#215;8000, 0x0000a4c8, 0x000062d8)<br />
[   862.049] (WW) NVIDIA(0): WAIT (2, 6, 0&#215;8000, 0x0000a4c8, 0&#215;00008218)<br />
[   869.049] (WW) NVIDIA(0): WAIT (1, 6, 0&#215;8000, 0x0000a4c8, 0&#215;00008218)<br />
[   872.050] (WW) NVIDIA(0): WAIT (2, 6, 0&#215;8000, 0x0000a4c8, 0x0000a158)<br />
[   879.050] (WW) NVIDIA(0): WAIT (1, 6, 0&#215;8000, 0x0000a4c8, 0x0000a158)
</p></blockquote>
<p>I changed my xorg.conf Section &#8220;Device&#8221; to</p>
<p>Section &#8220;Device&#8221;<br />
    Identifier     &#8220;Device0&#8243;<br />
    Option  &#8220;Coolbits&#8221; &#8220;1&#8243;<br />
    Option  &#8220;RegistryDwords&#8221; &#8220;PowerMizerEnable=0&#215;1; PerfLevelSrc=0&#215;2222; PowerMizerLevel=0&#215;3; PowerMizerDefault=0&#215;3; PowerMizerDefaultAC=0&#215;3&#8243;<br />
    Driver         &#8220;nvidia&#8221;<br />
    VendorName     &#8220;NVIDIA Corporation&#8221;<br />
EndSection</p>
<p>to set the graphics card powermizer setting to always use the lowest setting as a test but since it heats up a lot less , it is more quiet and the onboard electronics will probably last longer I am thinking of keeping it configured that way..! <img src='http://ammar.gr/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> </p>
<p>NVidia forums remain under &#8220;maintenance&#8221;<br />
nvnews.net has disabled new registrations..</p>
<p>just..<br />
<a href="http://www.youtube.com/watch?v=MShbP3OpASA#t=49m57s"><img src="http://ammar.gr/wp-content/uploads/2012/07/linus-torvald-fuck-you-nvidia-300x163.jpg" alt="" title="linus-torvald-fuck-you-nvidia" width="300" height="163" class="alignnone size-medium wp-image-450" /></a> </p>
]]></content:encoded>
			<wfw:commentRss>http://ammar.gr/?feed=rss2&#038;p=446</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linux , Wine , Fallout New Vegas / Starcraft 2  and NVIDIA drivers..!</title>
		<link>http://ammar.gr/?p=429</link>
		<comments>http://ammar.gr/?p=429#comments</comments>
		<pubDate>Thu, 05 Jul 2012 17:12:21 +0000</pubDate>
		<dc:creator>Ammar Qammaz</dc:creator>
				<category><![CDATA[Post]]></category>
		<category><![CDATA[Games]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[NVIDIA]]></category>
		<category><![CDATA[Problems]]></category>
		<category><![CDATA[Wine]]></category>

		<guid isPermaLink="false">http://ammar.gr/?p=429</guid>
		<description><![CDATA[After upgrading my main desktop machine ( core i7 with a GTX 295 and an ASUS P6T SE motherboard ) to lubuntu 12.04 ( Linux ammar-desktop 3.2.0-26-generic #41-Ubuntu SMP Thu Jun 14 17:49:24 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux ) I reinstalled wine to continue playing Fallout New Vegas and Starcraft 2 on my linux [...]]]></description>
			<content:encoded><![CDATA[<p>After upgrading my main desktop machine ( core i7 with a GTX 295 and an ASUS P6T SE motherboard ) to lubuntu 12.04 ( Linux ammar-desktop 3.2.0-26-generic #41-Ubuntu SMP Thu Jun 14 17:49:24 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux ) I reinstalled wine to continue playing Fallout New Vegas and Starcraft 2 on my linux pc!<br />
To my dismay under wine 1.5.7 both exhibited regressions that have luckilly been minimized using the following configurations..!</p>
<p>First of all setting Pulseaudio and OpenAL to a 48000Khz<br />
using<br />
sudo nano /etc/pulse/daemon.conf<br />
and changing<br />
; default-sample-rate = 44100<br />
to -> default-sample-rate = 48000 ( removing the semicolon )</p>
<p>also changing the ;default-fragment-size-msec = 10<br />
to -> default-fragment-size-msec = 5 ( once again removing the semicolon for all you noobs out there ;p [ just joking.. ] )</p>
<p>using<br />
sudo nano /etc/pulse/daemon.conf<br />
to change #frequency = 44100 to<br />
frequency = 48000</p>
<p>issuing wine regedit to create the key<br />
HKEY_CURRENT_USER/Software/Wine/Direct3D<br />
and creating string keys with values as follow<br />
KEY                   &#8211;   VALUE<br />
DirectDrawRenderer    &#8211;   opengl<br />
Multisampling         &#8211;   disabled<br />
OffScreenRenderingMode-   pbuffer<br />
PixelShaderMode       &#8211;   enabled<br />
RenderTargetLockMode  &#8211;   disabled<br />
StrictDrawOrdering    &#8211;   disabled<br />
UseGLSL               &#8211;   disabled<br />
VertexShaderMode      &#8211;   hardware<br />
VertexShaders         &#8211;   hardware<br />
VideoMemorySize       &#8211;   Your_video_memory_size_here_mine_is_895</p>
<p>the next step is setting cpu frequency scaling to performance mode before playing!<br />
due to not having the gnome applets in lxde one can have the same functionality by apt-getting zenity and then running this <a href="http://ammar.gr/~ammar/Scripts/cpufreq-govern-select.sh">cpufreq-govern-select.sh script</a> ..</p>
<p>This with enabled VSYNC OpenGL setting in the NVIDIA driver and an emulated virtual desktop ( from winecfg ) makes Starcraft 2 run with no pulseaudio related sound glitches @ a solid 60fps on my PC , without these steps the game is almost unplayable with an average of 5-15fps..!</p>
<p>Fallout NewVegas on the other hand has very weird behaviour near areas with water , almost completely hanging ,  possibly due to shaders going haywire under wine/nvidia drivers/mesa/X  ( you get the picture <img src='http://ammar.gr/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' />  )<br />
Luckily the game is very configurable and turning off all the water options solved the problems ..<br />
To do so go to your /home/name/My Games/FalloutNV folder , make a backup copy of FALLOUT.ini and FalloutPrefs.ini and then go on and overwrite to make both of there water setting blocks look like this </p>
<blockquote><p>[Water]<br />
bUseWaterShader=0<br />
bUseWaterReflections=0<br />
bUseWaterRefractions=0<br />
bUseWaterDepth=0<br />
bUseWaterHiRes=0<br />
bUseWaterDisplacements=0<br />
bUseWaterLOD=0<br />
bReflectExplosions=0<br />
bAutoWaterSilhouetteReflections=0<br />
bForceHighDetailReflections=0<br />
bForceLowDetailReflections=0<br />
fTileTextureDivisor=4.7500<br />
fSurfaceTileSize=2048.0000<br />
fNearWaterOutdoorTolerance=1024.0000<br />
fNearWaterIndoorTolerance=512.0000<br />
fNearWaterUnderwaterVolume=0.9000<br />
fNearWaterUnderwaterFreq=0.3000<br />
uNearWaterPoints=8<br />
uNearWaterRadius=1000<br />
uSurfaceFPS=12<br />
iWaterReflectWidth=512<br />
iWaterReflectHeight=512<br />
bUseWaterReflectionBlur=0<br />
iWaterBlurAmount=4</p></blockquote>
<p>At last I can complete <a href="http://fallout.wikia.com/wiki/Volare!">the underwater Volare mission</a> ;P</p>
<p><a href="http://ammar.gr/wp-content/uploads/2012/07/volare.png"><img src="http://ammar.gr/wp-content/uploads/2012/07/volare-300x189.png" alt="" title="volare" width="150"  class="alignnone size-medium wp-image-440" /></a></p>
<p>Finally one last problem that I have <a href="http://www.nvidia.com/content/forums/index.html#entry1428311">faced using the latest NVIDIA drivers is my card dropping from the PCI bus</a> , It is not only me who has the problem and thats good because it means its not hardware related and I have tried various things , turning powermizer on and of booting with kernel parameters &#8220;intel_iommu=off noirqbalance PCI=biosirq&#8221; , disabling CPU Virtualization features from BIOS , upgrading my bios to the latest version , enabling NVIDIA persistance mode , working with or without a second monitor physically connected , disabling irqbalance , disabling prelink  , trying all the drivers ( NVIDIA-Linux-x86_64-285.05.09.run was the lowest driver version that seems to run with new kernels )  and many many many other things to find what causes this behaviour but it is probably something inside the NVIDIA binary blob so for now , just have to deal with it using patience..!<br />
It is also not a heat problem since temperature is around 60degrees Celcious which is normal ..</p>
<blockquote><p>
Jul 7 16:42:42 ammar-desktop kernel: [ 3934.728909] show_signal_msg: 24 callbacks suppressed<br />
Jul 7 16:42:42 ammar-desktop kernel: [ 3934.728913] lxpanel[1822]: segfault at 79 ip 000000000041fc92 sp 00007fffb7f17c30 error 4 in lxpanel[400000+2e000]<br />
Jul 7 16:46:31 ammar-desktop kernel: [ 4163.707866] NVRM: GPU at 0000:05:00.0 has fallen off the bus.<br />
Jul 7 16:46:31 ammar-desktop kernel: [ 4163.707873] NVRM: GPU at 0000:05:00.0 has fallen off the bus.<br />
Jul 7 16:46:31 ammar-desktop kernel: [ 4163.707877] NVRM: GPU at 0000:04:00.0 has fallen off the bus.<br />
Jul 7 16:46:31 ammar-desktop kernel: [ 4163.707880] NVRM: GPU at 0000:04:00.0 has fallen off the bus.</p></blockquote>
<p>Some mentions of the bug :<br />
<a href="https://bugzilla.kernel.org/show_bug.cgi?id=43050">https://bugzilla.kernel.org/show_bug.cgi?id=43050</a><a href="https://bugs.launchpad.net/ubuntu/+source/nvidia-graphics-drivers/+bug/882710?comments=all">https://bugs.launchpad.net/ubuntu/+source/nvidia-graphics-drivers/+bug/882710?comments=all</a><a href="http://www.nvnews.net/vbulletin/showthread.php?t=174759"><br />
http://www.nvnews.net/vbulletin/showthread.php?t=174759</a><a href="https://wiki.archlinux.org/index.php/NVIDIA#.27.2Fdev.2Fnvidia0.27_Input.2FOutput_error"></p>
<p>https://wiki.archlinux.org/index.php/NVIDIA#.27.2Fdev.2Fnvidia0.27_Input.2FOutput_error</a></p>
<p><a href="http://www.nvnews.net/vbulletin/showthread.php?t=167363">http://www.nvnews.net/vbulletin/showthread.php?t=167363</a></p>
]]></content:encoded>
			<wfw:commentRss>http://ammar.gr/?feed=rss2&#038;p=429</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
