Editing Bluetooth stereo audio with XMMS

Warning: You are not logged in. Your IP address will be recorded in this page's edit history.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision Your text
Line 1: Line 1:
-
{{out of date}}
+
== '''HOWTO: Near Seamless  Bluetooth Stereo Audio with XMMS''' ==
 +
----
-
This howto for getting [[Bluetooth]] stereo audio with XMMS makes the assumption that you are comfortable with the command line and the vi editor.  The user them self is responsible for the quality of their work, and although I'm enjoying my BT headphones with my N800 it doesn't mean it will work for everyone.  Never underestimate the power of a Geek to out think their self.  For now this tutorial only works on the [[Nokia N800|N800]] due to the fact that the 770 doesn't have enough oompf for XMMS.  However I'm convinced that some of the information herein can be used with any mplayer based (like kagu) media player or mplayer itself, though I've not tested it. (I'm using my 770 for other tests, I'm playing with)
+
'''Intro:'''  
-
==Get Software==
+
This Howto makes the assumption that you are comfortable with the command line and the vi editor.  The user them self is responsible for the quality of their work, and although I'm enjoying my BT headphones with my n800 it doesn't mean it will work for everyone.  Never underestimate the power of a Geek to out think their self.  For now this tutorial only works on the n800 due to the fact that the 770 doesn't have enough oompf for XMMS.  However I'm convinced that some of the information herein can be used with any mplayer based (like kagu) media player or mplayer itself, though I've not tested it. (I'm using my 770 for other tests, I'm playing with)
 +
----
 +
'''Get Software:'''
Get XMMS [http://www.internettablettalk.com/forums/showthread.php?t=11892 here]
Get XMMS [http://www.internettablettalk.com/forums/showthread.php?t=11892 here]
You will also find that with XMMS you will need a different kind of keyboard (it isn't Hildon aware.)  and that is also available in the debfarm repo.  It's called xvkbd.  Get xmms + any extra's you want (like infinity) and procede.  '''NOTE:''' Due to the way crossfade works you can't use it + the Alsa plugin so no crossfade for BT headphones.
You will also find that with XMMS you will need a different kind of keyboard (it isn't Hildon aware.)  and that is also available in the debfarm repo.  It's called xvkbd.  Get xmms + any extra's you want (like infinity) and procede.  '''NOTE:''' Due to the way crossfade works you can't use it + the Alsa plugin so no crossfade for BT headphones.
-
 
+
----
-
==Bluetooth setup==
+
'''BT Setup:'''
First step is of course to properly setup your headphones.  Follow your particular headphones instructions and pair your n8XX with the headphones.  Don't bother going any further till this is done.  Once completed the real fun begins.
First step is of course to properly setup your headphones.  Follow your particular headphones instructions and pair your n8XX with the headphones.  Don't bother going any further till this is done.  Once completed the real fun begins.
Line 80: Line 83:
For whatever reason, it seems that although BT stereo needs all of the CPU room it can grab it isn't capable of over ridding the power saving features in the IT.  The next step will over ride this and  stop the drops.   
For whatever reason, it seems that although BT stereo needs all of the CPU room it can grab it isn't capable of over ridding the power saving features in the IT.  The next step will over ride this and  stop the drops.   
-
I created a small shell script below.  open vi and copy & paste or type this in.  (much easier than typing it new every time you need it.)  I called the script blues using the vi editor:
+
I created a small shell script below.  open vi and copy & paste or type this in.  (much easier than typing it new every time you need it.)  I called the script blues using the vi editor:
# vi blues
# vi blues
-
<source lang="bash">
 
-
#!/bin/sh
 
-
# CPU power mode changer linuxrebel 2008
 
-
# Ask what we are to do
 
-
echo "bluetooth use state: 1 on; 2 off"
 
-
read ans
 
-
# take action based on that request
 
-
if [ $ans -eq "1" ]; then
 
-
      # go into a mode where the cpu is always at full speed
 
-
      echo performance > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
 
-
elif [ $ans -eq "2" ]; then
 
-
        # Go into the normal demand driven mode
 
-
        echo ondemand  > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
 
-
else
 
-
      # in case you typed wrong you won't think something happened that didn't
 
-
      echo "Try again hombre $ans is not an option"
 
-
fi
 
-
</source>
 
-
I then save it, chmod it 755 and through sudo, run it. choose 1, load up XMMS and enjoy as I am hours of near dropout free music.   
+
      #!/bin/sh
 +
      # CPU power mode changer linuxrebel 2008
 +
      # Ask what we are to do
 +
      echo "bluetooth use state: 1 on; 2 off"
 +
      read ans
 +
      # take action based on that request
 +
    if [ $ans -eq "1" ]; then
 +
            # go into a mode where the cpu is always at full speed
 +
            echo performance > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
 +
    elif [ $ans -eq "2" ]; then
 +
            # Go into the normal demand driven mode
 +
            echo ondemand > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
 +
    else
 +
            # in case you typed wrong you won't think something happened that didn't
 +
            echo "Try again hombre $ans is not an option"
 +
    fi
 +
I then save it, chmod it 755 and through sudo, run it.  choose 1, load up XMMS and enjoy as I am hours of near dropout free music.   
 +
----
'''Post:'''
'''Post:'''
When you are done just re-run blues and choose 2, this will put it back into the normal ondemand mode, and ensure the highest power saving mode.   
When you are done just re-run blues and choose 2, this will put it back into the normal ondemand mode, and ensure the highest power saving mode.   
-
[[Category:Media]]
+
 
-
[[Category:Bluetooth]]
+
[[Category:Users]]
-
[[Category:Power users]]
+
-
[[Category:N8x0]]
+

Learn more about Contributing to the wiki.


Please note that all contributions to maemo.org wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see maemo.org wiki:Copyrights for details). Do not submit copyrighted work without permission!


Cancel | Editing help (opens in new window)

Templates used on this page: