<?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>fadvisor.net/blog &#187; Fedora</title>
	<atom:link href="http://fadvisor.net/blog/tag/fedora/feed/" rel="self" type="application/rss+xml" />
	<link>http://fadvisor.net/blog</link>
	<description>Fahad Alduraibi Blog</description>
	<lastBuildDate>Tue, 29 Nov 2011 22:28:07 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Front Mic problem in Fedora 14</title>
		<link>http://fadvisor.net/blog/2011/03/front-mic-problem-in-fedora-14/</link>
		<comments>http://fadvisor.net/blog/2011/03/front-mic-problem-in-fedora-14/#comments</comments>
		<pubDate>Fri, 18 Mar 2011 15:48:35 +0000</pubDate>
		<dc:creator>Fahad Alduraibi</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Alsa]]></category>
		<category><![CDATA[D620]]></category>
		<category><![CDATA[Dell]]></category>
		<category><![CDATA[Fedora]]></category>
		<category><![CDATA[Front Mic]]></category>
		<category><![CDATA[Pulseaudio]]></category>

		<guid isPermaLink="false">http://fadvisor.net/blog/?p=452</guid>
		<description><![CDATA[After upgrading to Fedora 14 I noticed that the built-in mic in my Dell D620 stopped working, after searching here and there I the problem is between ALSA and Pulseaudio, since alsa will show to capture devices &#8220;Mic&#8221; &#38; &#8220;Front Mic&#8221; and Pulseaudio will use Mic as the default instead of Front Mic. So I [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">After upgrading to Fedora 14 I noticed that the built-in mic in my Dell D620 stopped working, after searching here and there I the problem is between ALSA and Pulseaudio, since alsa will show to capture devices &#8220;Mic&#8221; &amp; &#8220;Front Mic&#8221; and Pulseaudio will use Mic as the default instead of Front Mic.</p>
<p style="text-align: justify;">So I used &#8220;alsamixer&#8221; to set the correct capture source and that worked but after a reboot it was set back to Mic. Then I found about &#8220;alsactl&#8221; which should store the current setting by doing &#8220;alsactl store&#8221; but that did not work either since I think pulseaudio does not look into that.</p>
<p style="text-align: justify;">Uninstalling pulseaudio as some people suggested solved the Mic problem but caused many other problems when playing many applications that want to play audio (like flash apps such as youtube and video apps&#8230;etc),  this is an ALSA problem that pulseaudio try to solve AFAIK.</p>
<p>The solution that I found was to use &#8220;amixer&#8221; which can be run from the command line with the parameters to set &#8220;Front Mic&#8221; as the capture source. Here is the full command for my device:</p>
<pre class="brush: bash; title: ; notranslate">amixer -c 0 cset numid=6,iface=MIXER,name='Input Source' 1</pre>
<p>To explain the previous command:<br />
[-c 0] is to select the first sound card (the only card in my laptop, but if you have two cards they will be 0 and 1)<br />
[cset] is to tell amixer that you want to set these settings<br />
[numid, iface, and MIXER] are information about your card and what source you want to change the settings for, and here is how I get these information:</p>
<pre class="brush: bash; title: ; notranslate">[fad@fad ~]$ amixer -c0 contents
numid=2,iface=MIXER,name='Master Playback Switch'
 ; type=BOOLEAN,access=rw------,values=2
 : values=on,on
numid=1,iface=MIXER,name='Master Playback Volume'
 ; type=INTEGER,access=rw---R--,values=2,min=0,max=31,step=0
 : values=14,14
 | dBscale-min=-46.50dB,step=1.50dB,mute=0
......
......
numid=6,iface=MIXER,name='Input Source'
 ; type=ENUMERATED,access=rw------,values=1,items=2
 ; Item #0 'Mic'
 ; Item #1 'Front Mic'
 : values=0
......
......</pre>
<p style="text-align: justify;">And as you can see in the previous result the part that am looking for is (<strong>numid=6,iface=MIXER,name=&#8217;Input Source&#8217;</strong>) and it lists <strong>Mic=0</strong> and <strong>Front Mic=1</strong> but the selected<strong> values=0</strong> which is for Mic and I need to set it to 1</p>
<p>Here is the command again:</p>
<pre class="brush: bash; title: ; notranslate">amixer -c 0 cset numid=6,iface=MIXER,name='Input Source' 1</pre>
<p style="text-align: justify;">put this command in a script file and make it run whenever you login to your profile (I tried adding it to the rc.local so it will execute with every boot but that didn&#8217;t work, since I think the settings is applied during login time for each user)</p>
<p>For KDE users you can put that script (or a link to it) under:</p>
<pre class="brush: bash; title: ; notranslate">/home/&lt;username&gt;/.kde/Autostart/</pre>
<p>or through the KDE &#8220;System Settings&#8221;&gt;&#8221;Startup and Shutdown&#8221;&gt;&#8221;Autostart&#8221;</p>
<p>Now at each login this command should set the correct input source which pulseaudio will use it.</p>
]]></content:encoded>
			<wfw:commentRss>http://fadvisor.net/blog/2011/03/front-mic-problem-in-fedora-14/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fedora 9 and UTC time problem</title>
		<link>http://fadvisor.net/blog/2008/06/fedora-9-and-utclocaltime-time-problem/</link>
		<comments>http://fadvisor.net/blog/2008/06/fedora-9-and-utclocaltime-time-problem/#comments</comments>
		<pubDate>Tue, 03 Jun 2008 19:31:01 +0000</pubDate>
		<dc:creator>Fahad Alduraibi</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Fedora]]></category>
		<category><![CDATA[KDE]]></category>
		<category><![CDATA[Localtime]]></category>
		<category><![CDATA[UTC]]></category>

		<guid isPermaLink="false">http://fadvisor.net/blog/?p=6</guid>
		<description><![CDATA[Fedora 9 was released I installed it on my laptop next to the pre-installed Fedora 8 and Windows XP. There are some issues with the release, like nVidia drivers, but I was expecting such things. However, there was one small problem that didn&#8217;t make since at first which is the time settings. Whenever I change [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">Fedora 9 was released I installed it on my laptop next to the pre-installed Fedora 8 and Windows XP. There are some issues with the release, like nVidia drivers, but I was expecting such things. However, there was one small problem that didn&#8217;t make since at first which is the time settings.</p>
<p style="text-align: justify;">Whenever I change from Fedora 8 or Windows XP to the new Fedora 9  or vice versa the time of my machine will change, it will go backward or forward with a fixed offset, and I knew it is a problem with timezone. So before I explain the problem I would like to mention that each machine has a clock that works even if the machine is turned off, using a battery that is connected to the motherboard, and when the operating system boots it will read the time from that clock.<span id="more-6"></span></p>
<p style="text-align: justify;">For Windows OS, the time that is shown to you in the taskbar is the same time of the hardware clock, and when you change your time in Windows, it will update the hardware clock to reflect the same change. So let say that you are in a city with timezone &#8221; -6 &#8221; and Windows is set to that zone, then the hardware clock will have the time of that zone also. However, Unix, and Unix compatible OS like Linux, assumes the hardware clock to be set to the UTC &#8220;coordinated universal time&#8221; (which is also called GMT) and it will calculate the local time based on the selected timezone (by adding the offset to the time).</p>
<p style="text-align: justify;">If you have a system with dual boot Windows and Linux you will have this problem, but lucky we are that Linux has the option to assume the hardware clock to be the local-time instead of UTC and it will ack like Windows and that will solve the problem.</p>
<p style="text-align: justify;">So after remembering all of that I tried to loacate this option under my Feroa 9 which tells it to treat the machine clock as a local-time instead of UTC, but I could not find it any where, and after some digging I discovered that since I installed KDE4 only with my new installation, the tool that allows this is based on Gnome desktop and it is called &#8220;system-config-time&#8221;. <em>But I am still wondering why KDE4 does not have a GUI for that!! even in the older version!!</em></p>
<p style="text-align: center;"><a href="http://fadvisor.net/blog/wp-content/uploads/2008/06/kde4-time-control.png"><img class="size-medium wp-image-7" title="kde4-time-control" src="http://fadvisor.net/blog/wp-content/uploads/2008/06/kde4-time-control-272x300.png" alt="The time/date control under KDE 4 and it has no option to tell it if the machine clock is set to local-time or UTC" width="272" height="300" /></a></p>
<p style="text-align: justify;">So I installed this tool and I found that the option for UTC time is checked and I have to uncheck it to resolve the problem.</p>
<p style="text-align: center;"><a href="http://fadvisor.net/blog/wp-content/uploads/2008/06/system-config-time.png"><img class="size-medium wp-image-8" title="system-config-time" src="http://fadvisor.net/blog/wp-content/uploads/2008/06/system-config-time-291x300.png" alt="Date/Time control under Gnome and it has the option to say the hardware (System) clock is using UTC or local-time" width="291" height="300" /></a></p>
<p style="text-align: justify;">Unfortunately it did not work and it gave me an error message after I clicked the OK button and it did not change the settings:</p>
<p><code><br />
File "/usr/lib/python2.5/shutil.py", line 41, in copyfile<br />
raise Error, "`%s` and `%s` are the same file" % (src, dst)<br />
shutil.Error: `/usr/share/zoneinfo/America/Chicago` and `/etc/localtime` are the same file<br />
</code></p>
<p style="text-align: justify;">Finally after more google search I found this command line program &#8220;timeconfig&#8221; (which is text version of the system-config-date) which I used to successfully change the way Linux uses the time stored in my machine.</p>
<p style="text-align: center;"><a href="http://fadvisor.net/blog/wp-content/uploads/2008/06/timeconfig.png"><img class="size-medium wp-image-9" title="timeconfig" src="http://fadvisor.net/blog/wp-content/uploads/2008/06/timeconfig-300x216.png" alt="A command line application that allowed me to set the right time configuration" width="300" height="216" /></a></p>
<p style="text-align: justify;">From my understanding, both tools the GUI &#8220;system-config-date&#8221; and the text based &#8220;timeconfig&#8221; are developed by Redhat, and since they use Gnome as their default destop management they tend to build their tools based on that. However, I like KDE more since it provides me with things that Gnome can&#8217;t. So do I have to suffer for that?</p>
<p style="text-align: justify;">Is this Redhat problem or KDE should develope all of these things?</p>
<p style="text-align: justify;">Any way, I am happy now that my problem is fixed, but I hope the option will be available in KDE 4.1.</p>
]]></content:encoded>
			<wfw:commentRss>http://fadvisor.net/blog/2008/06/fedora-9-and-utclocaltime-time-problem/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
	</channel>
</rss>

