User Tools

Site Tools


howto:usbspeakers

How To: Get Logitech V20 USB Speakers to work with Music Manager

Getting the sound to work

Configure KDE to use ALSA

  • Open the Control Center and go the Sound System by clicking on Start then Control Center then Control Center then Sound & Multimedia and then Sound System
  • Select ALSA by clicking on the Hardware tab and clicking on the drop down box next to Select audio device and selecting Advanced Linux Sound Architecture
  • Click on OK or Apply to save your changes.
  • You can now close the Control Center.

Configure Music Manager to use the USB Speakers

  • Open Music Manager by clicking on Start then Applications then Multimedia then Music Manager
  • Next click on Settings then Configure Music Manager… then Engine
  • In the drop down box next to Output plugin: select alsa
  • In the ALSA Device Configuration box change both the text boxes next to Mono: and Stereo: to read
    hw:1,0

You can now test the speakers by playing any audio file in Music Manager.

Getting the volume up/down and mute buttons to work

The track control buttons are already set up and ready to use. However, the volume up, volume down, and mute buttons need to be reconfigured.

Create a file called .Xmodmap by opening a terminal window and typing nano -w .Xmodmap then cut and paste the following:

keycode 174 = XF86AudioLowerVolume
keycode 176 = XF86AudioRaiseVolume
keycode 160 = XF86AudioMute

Then type ctrl-o to save followed by enter then ctrl-x to exit the editor

Now we need to install and configure xbindkeys by typing the following in a terminal window:

sudo aptitude install xbindkeys
xbindkeys --defaults > .xbindkeysrc

Edit .xbindkeysrc by typing

nano -w .xbindkeysrc

and then all the following lines to the end of the file

"amixer -c1 sset PCM 3-"
XF86AudioLowerVolume
"amixer -c1 sset PCM 3+"
XF86AudioRaiseVolume
"amixer -c1 sset PCM toggle"
XF86AudioMute

Now type ctrl-o and enter to save then ctrl-x to exit as before.

These settings will cause a single button push to vary the volume setting by 3dB, this value worked well for me after some experimentation, but you might prefer something different, like 5dB, 8dB, etc…

Now load xbindkeys by typing it in the terminal window and all the buttons should work.

To have xbindkeys load automaticaly at boot see the how to on running a script at startup.

howto/usbspeakers.txt · Last modified: 2008/05/15 08:45 by ivoidwarranties