<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
  <title>Linux</title>
  <link rel="alternate" type="text/html" href="http://stephen.evanchik.com/category/entries/life/open-source/linux"/>
  <link rel="self" type="application/atom+xml" href="http://stephen.evanchik.com/taxonomy/term/4/atom/feed"/>
  <id>http://stephen.evanchik.com/taxonomy/term/4/atom/feed</id>
  <updated>2006-11-12T18:32:49-08:00</updated>
  <entry>
    <title>Ringtones on my RAZR V3 in Linux</title>
    <link rel="alternate" type="text/html" href="http://stephen.evanchik.com/blog/2006/05/ringtones-my-razr-v3-linux.html" />
    <id>http://stephen.evanchik.com/blog/2006/05/ringtones-my-razr-v3-linux.html</id>
    <published>2006-05-16T21:18:22-07:00</published>
    <updated>2006-11-12T18:27:44-08:00</updated>
    <author>
      <name>Stephen Evanchik</name>
    </author>
    <category term="Linux" />
    <summary type="html"><![CDATA[	<p>I just got a Motorola <span class="caps">RAZR</span> V3 when I changed my cellphone plan. It is a really nice phone that I can connect to my computer using a <span class="caps">USB</span> cable. I decided that I wanted a custom ringtone instead of the default. It&#8217;s not a difficult process at all but there is a lot of information scattered around the Intarweb that makes it difficult. Here is my summary process:</p>

	<ol>
		<li>Find something you want to use as your ringtone. It can be an mp3 or wav file or whatever.</li>
		<li>Convert to wav file if its not already there, minimal survival command: <code>mplayer -ao pcm filename.mp3</code>. You should now have a <strong>audiodump.wav</strong> file.</li>
		<li>Download and use <a href="http://audacity.sf.net/">Audacity</a> to cut the audiodump.wav to about 20 seconds (mine is 18)</li>
	</ol>
	<ol>
		<li>Save the clipped wav file and then encode it to mp3, minimal survival command: lame -b 64 -s 44.1 -mm &#8212;tt &#8220;Title&#8221; cutsound.wav output.mp3</li>
	</ol>    ]]></summary>
    <content type="html"><![CDATA[	<p>I just got a Motorola <span class="caps">RAZR</span> V3 when I changed my cellphone plan. It is a really nice phone that I can connect to my computer using a <span class="caps">USB</span> cable. I decided that I wanted a custom ringtone instead of the default. It&#8217;s not a difficult process at all but there is a lot of information scattered around the Intarweb that makes it difficult. Here is my summary process:</p>

	<ol>
		<li>Find something you want to use as your ringtone. It can be an mp3 or wav file or whatever.</li>
		<li>Convert to wav file if its not already there, minimal survival command: <code>mplayer -ao pcm filename.mp3</code>. You should now have a <strong>audiodump.wav</strong> file.</li>
		<li>Download and use <a href="http://audacity.sf.net/">Audacity</a> to cut the audiodump.wav to about 20 seconds (mine is 18)</li>
	</ol>
	<ol>
		<li>Save the clipped wav file and then encode it to mp3, minimal survival command: lame -b 64 -s 44.1 -mm &#8212;tt &#8220;Title&#8221; cutsound.wav output.mp3</li>
	</ol>

	<p>Basically, the <span class="caps">RAZR</span> V3 needs to have mp3s at 44.1kHz, 64kbps and under 200kb for it to be used as a ringtone. Once you have the file, you need to upload it to the phone using <a href="http://moto4lin.sf.net/">moto4lin</a>. Connect to the phone and place the file in <code>/a/mobile/audio/</code>.</p>

	<p>Change your phone to <strong>Silent</strong> and then delete <code>MyToneDB.db</code> and <code>TempToneDB.db</code>. Power cycle your phone.</p>

	<p>Once your phone is back on, change your phone to something other than <strong>Silent</strong> and then browse for a new ringtone. You should see the name of the uploaded file.</p>    ]]></content>
  </entry>
  <entry>
    <title>Workstation crashed, filesystem corrupted</title>
    <link rel="alternate" type="text/html" href="http://stephen.evanchik.com/blog/2005/11/workstation-crashed-filesystem-corrupted.html" />
    <id>http://stephen.evanchik.com/blog/2005/11/workstation-crashed-filesystem-corrupted.html</id>
    <published>2005-11-01T04:41:30-08:00</published>
    <updated>2006-11-12T18:27:35-08:00</updated>
    <author>
      <name>Stephen Evanchik</name>
    </author>
    <category term="Linux" />
    <summary type="html"><![CDATA[<p>The title says it all folks. This is the first time in my Linux usage history (which begins somewhere in 1995-1996) that I have had a workstation crash due to something out of my control. I will admit that I have caused my workstations to crash a number of times due to my own stupidity or carelessness, no sense in denying that. What is very different in this case is that my workstation crashed this morning due to a kernel bug and what's more this is the worst kind of bug -- one that is known to exist.<br />
Over the course of the last few days I have had several incidents where I had to reboot the computer and do a n extended, manual filesystem check because of the following error:<br />
EXT3-fs error (device dm-0) in start_transaction: Journal has aborted</p>
    ]]></summary>
    <content type="html"><![CDATA[<p>The title says it all folks. This is the first time in my Linux usage history (which begins somewhere in 1995-1996) that I have had a workstation crash due to something out of my control. I will admit that I have caused my workstations to crash a number of times due to my own stupidity or carelessness, no sense in denying that. What is very different in this case is that my workstation crashed this morning due to a kernel bug and what's more this is the worst kind of bug -- one that is known to exist.<br />
Over the course of the last few days I have had several incidents where I had to reboot the computer and do a n extended, manual filesystem check because of the following error:</p>
<p>EXT3-fs error (device dm-0) in start_transaction: Journal has aborted</p>
<p>It's not exactly that error that causes the problem, apparently its a page allocation failure. I don't know, I'm never around when it happends and all I ususally see is the above error in my really long dmesg buffer.<br />
<strong> </strong><br />
<strong></strong><br />
A little background is in order, I am using <a href="http://centos.org">CentOS 4.2</a> with ext3 and lvm support. It's the default install for a 'Workstation' computer in the graphical installer. CentOS is the 'Community Enterprise OS' which is based off of the RHEL source RPMS. The CentOS people do a good job rebuilding the packages and I have been very happy with my experience.&nbsp; I don't use RHEL because I have to pay<strong> $179 dollars </strong>for it. Just to let you know, I can purchase Microsoft Windows XP for less than that! Please! <a href="http://redhat.com">RedHat</a> I don't need to be able to call you for support, I can read your <a href="https://bugzilla.redhat.com/bugzilla/long_list.cgi?buglist=149088">Bugzilla Bug 149088</a> about my problem. In fact, Google found it for me - it was even at the top of the search results. I can also implement the 'fix' which is to basically not use the Enterprise Linux kernel (the EL series) and use the <a href="http://fedora.redhat.com">FC4</a> 'community' kernel. This fix isn't sanctioned by RedHat by the way, it serves to solve the bug reporter's problem and isolate the problem to the EL kernel itself.<br />
Scary stuff that the 'Enterprise' package is inferior to the 'Community' package. Even more scary, the bug was opened on <strong>February 18, 2005</strong> and I can reliably reproduce the error on my system. All I have to do is run some disk benchmark tools or do use an application that exercises the disk such as running <a href="http://qmail.org">qmail</a> and receiving several hundred emails (mostly spam).<br />
&nbsp;<br />
I am currently downloading the CentOS 4.2 RPMs from the CentOS 4.0 rescue disk so that I can reinstall the files that were corrupted and lost during the fsck. I have to use 'rpm --force --noscripts' to install them because neither the rpm command nor yum has a 'reinstall' command line option.<br />
&nbsp;<br />
In any case, I think RedHat needs to rethink the decision to make RHEL a non-mainstream distribution. They have plenty of <a href="http://www.gnome.org/~clarkbw/blog/">smart</a> people working for them but just not enough of them and I doubt they could afford the numbers needed to catch all of these issues and fix them.<br />
&nbsp;<br />
I wonder how long it would have taken for this to be fixed in Fedora? Isn't RHEL supposed to be based off of Fedora or just the 'idea' of Fedora?</p>
    ]]></content>
  </entry>
  <entry>
    <title>Biostar iDEQ 200V Suspend to RAM</title>
    <link rel="alternate" type="text/html" href="http://stephen.evanchik.com/blog/2005/10/biostar-ideq-200v-suspend-ram.html" />
    <id>http://stephen.evanchik.com/blog/2005/10/biostar-ideq-200v-suspend-ram.html</id>
    <published>2005-10-25T21:24:53-07:00</published>
    <updated>2006-11-12T18:28:28-08:00</updated>
    <author>
      <name>Stephen Evanchik</name>
    </author>
    <category term="Linux" />
    <summary type="html"><![CDATA[<p>I had this really great post but my Drupal decided to eat it because FCKEditor died or something. What total crap. Oh well.</p>
<p>I have been really busy lately so I haven't had much time to work on the TrackPoint driver. It seems to have found its way in to the -mm kernel tree which makes my life easier.</p>
<p>I have become obessed with making my SFF PC quiet and reducing the amount of electricity we use in our apartment. The need for quiet comes from a noisy fan. I want to find a place that sells the Vantec 60mm Stealth fan and grommet as well as some noise dampening material. I don't want to have them shipped seperately as I'll pay way too much. I also ordered a <a href="http://www.p3international.com/products/special/P4400/P4400-CE.html">kill-a-watt</a> tool that I can use to measure the amount of electricity devices use. I plan on testing my PC at idle, full load and, on ACPI S3 which is Suspend to RAM or STR. </p>
    ]]></summary>
    <content type="html"><![CDATA[<p>I had this really great post but my Drupal decided to eat it because FCKEditor died or something. What total crap. Oh well.</p>
<p>I have been really busy lately so I haven't had much time to work on the TrackPoint driver. It seems to have found its way in to the -mm kernel tree which makes my life easier.</p>
<p>I have become obessed with making my SFF PC quiet and reducing the amount of electricity we use in our apartment. The need for quiet comes from a noisy fan. I want to find a place that sells the Vantec 60mm Stealth fan and grommet as well as some noise dampening material. I don't want to have them shipped seperately as I'll pay way too much. I also ordered a <a href="http://www.p3international.com/products/special/P4400/P4400-CE.html">kill-a-watt</a> tool that I can use to measure the amount of electricity devices use. I plan on testing my PC at idle, full load and, on ACPI S3 which is Suspend to RAM or STR. </p>
<p>Which brings me to the relatively exciting thing that happened tonight: I finally got Suspend to RAM working on my iDEQ 200V. I needed to do a couple of things before everything just worked. First I needed to upgrade the BIOS. I was using a BIOS from September 2003 which forced me to turn ACPI off entirely. With the November 2004 BIOS version ACPI works flawlessly. The next thing is that STR works great with one tiny resume problem. It turns out that some BIOS implementations fail to repost the video card's BIOS and as a consequence the video card is never reinitialized. The Linux kernel can't do anything about this because the BIOS sets up the video hard and hands it off to the kernel at boot time. In order to fix this you need to use <a href="http://www.srcf.ucam.org/~mjg59/vbetool/">vbetool</a> to repost the BIOS. One small issue is that this program really messes with your video hardware which means you shouldn't try this with X running on your screen. If you switch to a console then it works great. I created a script to process power button events which works like a charm.</p>
<p>Here's my /etc/acpi/actions/power_btn.sh from <a href="http://www.centos.org">CentOS 4.2</a>:</p>
<p>#!/bin/bash<br />#<br /># Stephen Evanchik &lt;evanchsa@gmail.com&gt;<br />#<br /># Licensed under the GPL<br />#<br /># ACPI S3 (Suspend to RAM) for Biostar iDEQ 200V<br />#<br /># Power button has been pressed, now:<br />#<br /># 1. Blank the screen<br /># 2. sync the file systems<br /># 3. chvt to tty 1</p>
<p>test -f /usr/sbin/laptop_mode || exit 0<br />test -f /usr/local/sbin/vbetool || exit 0<br />test -f /etc/sysconfig/power_btn || exit 0</p>
<p>. /etc/sysconfig/power_btn</p>
<p>if [ -f /var/run/console/console.lock ]; then<br />&nbsp; XUSER=`cat /var/run/console/console.lock`<br />&nbsp; su -l -c &quot;xscreensaver-command -activate&quot; $XUSER<br />fi</p>
<p>chvt 1<br />sync</p>
<p>echo -n &quot;mem&quot; &gt; /sys/power/state</p>
<p>/usr/local/sbin/vbetool post<br />/usr/local/sbin/vbetool dpms on<br />if [ -f /var/run/console/console.lock ]; then<br />&nbsp; XUSER=`cat /var/run/console/console.lock`<br />&nbsp; su -l -c &quot;xscreensaver-command -deactivate&quot; $XUSER<br />fi<br />chvt 7</p>
    ]]></content>
  </entry>
  <entry>
    <title>Updates: Linux 2.6.5 USB Resume and TrackPoint</title>
    <link rel="alternate" type="text/html" href="http://stephen.evanchik.com/blog/2004/04/updates-linux-265-usb-resume-and-trackpoint.html" />
    <id>http://stephen.evanchik.com/blog/2004/04/updates-linux-265-usb-resume-and-trackpoint.html</id>
    <published>2004-04-04T06:25:20-07:00</published>
    <updated>2006-11-12T18:31:39-08:00</updated>
    <author>
      <name>Stephen Evanchik</name>
    </author>
    <category term="Linux" />
    <category term="Trackpoint" />
    <summary type="html"><![CDATA[<p>It looks like the USB Suspend/Resume bug has finally been fixed in <a href="http://www.kernel.org">Linux 2.6.5</a>. I&rsquo;ll leave my  patch available for anyone who can&rsquo;t upgrade.<br />
 I&rsquo;ve updated the TrackPoint driver for Linux 2.6.5, get it at <a href="http://www.clarkson.edu/%7Eevanchsa/">Stephen @ Clarkson</a>.</p>
    ]]></summary>
    <content type="html"><![CDATA[<p>It looks like the USB Suspend/Resume bug has finally been fixed in <a href="http://www.kernel.org">Linux 2.6.5</a>. I&rsquo;ll leave my  patch available for anyone who can&rsquo;t upgrade.</p>
<p> I&rsquo;ve updated the TrackPoint driver for Linux 2.6.5, get it at <a href="http://www.clarkson.edu/%7Eevanchsa/">Stephen @ Clarkson</a>.</p>
    ]]></content>
  </entry>
  <entry>
    <title>Update: udev-023 with Slackware 9.1 / -current</title>
    <link rel="alternate" type="text/html" href="http://stephen.evanchik.com/blog/2004/03/update-udev-023-slackware-91-current.html" />
    <id>http://stephen.evanchik.com/blog/2004/03/update-udev-023-slackware-91-current.html</id>
    <published>2004-03-27T04:26:25-08:00</published>
    <updated>2006-11-12T18:32:49-08:00</updated>
    <author>
      <name>Stephen Evanchik</name>
    </author>
    <category term="Linux" />
    <summary type="html"><![CDATA[<p>&nbsp;<a href="http://www.advogato.org/person/clarkbw/">Bryan</a> mentioned that I was behind the times with udev-022. So, I upgraded to udev-023 and everything still works.</p>
    ]]></summary>
    <content type="html"><![CDATA[<p>&nbsp;<a href="http://www.advogato.org/person/clarkbw/">Bryan</a> mentioned that I was behind the times with udev-022. So, I upgraded to udev-023 and everything still works.</p>
    ]]></content>
  </entry>
</feed>
