<?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 &#187; Linux</title>
	<atom:link href="http://ammar.gr/?feed=rss2&#038;tag=linux-2" 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>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 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>
		<item>
		<title>Creating timelapse videos on Linux</title>
		<link>http://ammar.gr/?p=232</link>
		<comments>http://ammar.gr/?p=232#comments</comments>
		<pubDate>Mon, 12 Dec 2011 17:00:44 +0000</pubDate>
		<dc:creator>Ammar Qammaz</dc:creator>
				<category><![CDATA[Post]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Photography]]></category>

		<guid isPermaLink="false">http://ammar.gr/?p=232</guid>
		<description><![CDATA[In the past weeks I started to take timelapse photographs using my Nikon D-7000 camera and ffmpeg and image magick video and picture converters..! My camera has a built in intervalometer that I use to acquire the pictures , but lower-end cameras that do not have this kind of functionality can be &#8220;hacked&#8221; with an [...]]]></description>
			<content:encoded><![CDATA[<p>In the past weeks I started to take timelapse photographs using my Nikon D-7000 camera and ffmpeg and image magick video and picture converters..!</p>
<p>My camera has a built in <a href="http://en.wikipedia.org/wiki/Intervalometer">intervalometer</a> that I use to acquire the pictures , but lower-end cameras that do not have this kind of functionality <a href="http://openmoco.org/node/88">can be &#8220;hacked&#8221; with an Arduino i.e.</a> and be used likewise.  <a href="http://openmoco.org/">This site</a> has a lot of opensource hardware and software , that can be used to this end.</p>
<p>The results are not so good until now <img src='http://ammar.gr/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' />  , at least when compared to this..<br />
<iframe class="youtube-player" type="text/html" width="640" height="385" src="http://www.youtube.com/embed/DSLgAsrcpGQ?rel=0&amp;hd=1" frameborder="0"><br />
</iframe></p>
<p>Due to environmental pollution and the lights of the city there are only a few stars visible from Athens. For daytime shots on the other hand , I have yet to find a proper position and camera configuration that on a course of 5-10 hours for example will provide a pleasing visual result..! </p>
<p>These are some of my timelapses so far , the third is the best one..<br />
<iframe class="youtube-player" type="text/html" width="640" height="385" src="http://www.youtube.com/embed/u-R4CjE_Aos?rel=0&amp;hd=1" frameborder="0"><br />
</iframe><br />
<iframe class="youtube-player" type="text/html" width="640" height="385" src="http://www.youtube.com/embed/iCqh_eoLTWQ?rel=0&amp;hd=1" frameborder="0"><br />
</iframe><br />
<iframe class="youtube-player" type="text/html" width="640" height="385" src="http://www.youtube.com/embed/UNpGaEdgrYs?rel=0&amp;hd=1" frameborder="0"><br />
</iframe> </p>
<p><a href='http://ammar.gr/wp-content/uploads/2011/12/TimeLapseTools.tar.gz'>These are the scripts I use.. (TimeLapseTools.tar)</a></p>
<p>And these are the instructions : </p>
<p>To customize them you should edit the files directly and append your own parameters  </p>
<p>STEP 0 : You will first need to extract the TimeLapseTools.tar.gz somewhere and empty your photographs , to become timelapsed in the FOLDER folder <img src='http://ammar.gr/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /><br />
they will have filenames like DSC_XXXX.jpg</p>
<p>STEP 1 : Make sure you have ffmpeg and imagemagick installed on your Linux Distro , for Debian/Ubuntu you can do sudo apt-get install ffmpeg imagemagick to download them.<br />
It goes without saying that if you need an exotic codec for your video file you must also find it and download it too..</p>
<p>STEP 2 : Open a terminal and cd to the directory which has the scripts</p>
<p>STEP 3 : Run ./file_rename_script.sh which will change the filenames from DSC_XXXX.jpg to img_XXX.jpg starting from img_001.jpg and empty the FOLDER directory placing all of the files in the current dir.</p>
<p>STEP 4 : Run ./resize_images.sh which will change the resolution of the images to 1631&#215;1080 for my cameras aspect ration creating _img_XXX.jpg for every img_XXX.jpg ( notice the initial _ )</p>
<p>STEP 5 : Run ./ffmpegcommand which will create an mp4 file with an image size of 1631&#215;1080 @ 25 fps </p>
<p>STEP 6 : Upload to Youtube , or profit ;p </p>
]]></content:encoded>
			<wfw:commentRss>http://ammar.gr/?feed=rss2&#038;p=232</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Happy 20th birthday Linux!</title>
		<link>http://ammar.gr/?p=128</link>
		<comments>http://ammar.gr/?p=128#comments</comments>
		<pubDate>Fri, 26 Aug 2011 10:41:18 +0000</pubDate>
		<dc:creator>Ammar Qammaz</dc:creator>
				<category><![CDATA[Post]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://ammar.gr/?p=128</guid>
		<description><![CDATA[The Story of Linux: Commemorating 20 Years of the Linux Operating System http://www.linuxfoundation.org/20th/ Linus pronounces linux]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.linuxfoundation.org/20th" target="_blank"><img src="http://www.linuxfoundation.org/20th/images/lf_linux20_webbadge.png" width="300" height="250" alt="I'll be celebrating 20 years of Linux with<br />
The Linux Foundation!" border="0"></a></p>
<p><a href='http://www.youtube.com/watch?v=5ocq6_3-nEw' >The Story of Linux: Commemorating 20 Years of the Linux Operating System </a></p>
<p><a href="http://www.linuxfoundation.org/20th" target="_blank">http://www.linuxfoundation.org/20th/</a></p>
<p><a href='http://en.wikipedia.org/wiki/File:Linus-pronounces-linux.ogg'>Linus pronounces linux</a></p>
]]></content:encoded>
			<wfw:commentRss>http://ammar.gr/?feed=rss2&#038;p=128</wfw:commentRss>
		<slash:comments>0</slash:comments>
<enclosure url="http://en.wikipedia.org/wiki/File:Linus-pronounces-linux.ogg" length="27008" type="audio/ogg" />
		</item>
	</channel>
</rss>
