8 Replies - 3457 Views - Last Post: 11 April 2010 - 06:42 PM

#1 Dogstopper  Icon User is offline

  • The Ninjaducky
  • member icon



Reputation: 2876
  • View blog
  • Posts: 11,051
  • Joined: 15-July 08

Sound Transfer to USB Headset (Kubuntu 9.10)

Posted 05 April 2010 - 05:34 PM

Hello everyone,

I have a destroyed primary audio jack (headphone crap stuck deep in there), however, I do now have a very nice USB headset (Gigaware Catalog No. 43-122) and can only get them to work on system audio and in amarok and a few other system sound applications. As I stated in the title, I run Kubuntu 9.10. I have already set the drivers up and have them set for highest precedence on everything (via audio manager), but the darned things won't work on games, or other sound applications like web browsers. Is there a way to get this to work?! I already said USB headset is highest precedence in games.

As a side note, I'm trying to get the same thing to work in Xubuntu 9.10 on my laptop, but even system sounds don't work. If you could help me with the Kubuntu first and then the Xubuntu, I would appreciate it.

Thanks All!

Is This A Good Question/Topic? 0
  • +

Replies To: Sound Transfer to USB Headset (Kubuntu 9.10)

#2 no2pencil  Icon User is offline

  • Admiral Fancy Pants
  • member icon

Reputation: 5395
  • View blog
  • Posts: 27,389
  • Joined: 10-May 07

Re: Sound Transfer to USB Headset (Kubuntu 9.10)

Posted 09 April 2010 - 01:48 PM

I would tail dmesg with the USB not plugged in, then plug in the audio device, tail dmesg, & then see what device that it's set to.

Then issue ls -l /dev/audio to see which device that the system has linked to audio, & then setup a new symbolic link for /dev/audio to the device assigned above.
Was This Post Helpful? 0
  • +
  • -

#3 Dogstopper  Icon User is offline

  • The Ninjaducky
  • member icon



Reputation: 2876
  • View blog
  • Posts: 11,051
  • Joined: 15-July 08

Re: Sound Transfer to USB Headset (Kubuntu 9.10)

Posted 09 April 2010 - 06:49 PM

Hey, No2, I'm sure I could figure out how to do that, but right now, I have no clue. If you have time, could you help me with the process of assigning USB audio? "tail dmesg"?

Like I said, I could figure it out, but don't want to screw too much up!


Done...I'll see if it works.

This post has been edited by Dogstopper: 09 April 2010 - 08:33 PM

Was This Post Helpful? 0
  • +
  • -

#4 Dogstopper  Icon User is offline

  • The Ninjaducky
  • member icon



Reputation: 2876
  • View blog
  • Posts: 11,051
  • Joined: 15-July 08

Re: Sound Transfer to USB Headset (Kubuntu 9.10)

Posted 09 April 2010 - 08:42 PM

@no2pencil, the symbolic link was wiped as soon as kde restarted. However /dev/audio represents my speakers and /dev/audio1 represents the USB headset. How can I configure it so the default is /dev/audio1?

edit: also /dev/dsp1, /dev/mixer1....

Just need to get those set to the main ones.

This post has been edited by Dogstopper: 09 April 2010 - 08:51 PM

Was This Post Helpful? 0
  • +
  • -

#5 no2pencil  Icon User is offline

  • Admiral Fancy Pants
  • member icon

Reputation: 5395
  • View blog
  • Posts: 27,389
  • Joined: 10-May 07

Re: Sound Transfer to USB Headset (Kubuntu 9.10)

Posted 10 April 2010 - 05:15 AM

You could make a script to run at login time, check for dsp1 & if it exists, remove /dev/dsp & make a symbolic from dsp1 to dsp.

#!/bin/sh

if [ -f /dev/dsp1 ]; then
  echo "Switching to USB Audio"
  rm -f /dev/dsp
  ln -s /dev/dsp1 /dev/dsp
else
  echo "USB audio is not present"
fi



Since you are messing w/ device, you'll most likely need to sudo the script.
Was This Post Helpful? 1
  • +
  • -

#6 Dogstopper  Icon User is offline

  • The Ninjaducky
  • member icon



Reputation: 2876
  • View blog
  • Posts: 11,051
  • Joined: 15-July 08

Re: Sound Transfer to USB Headset (Kubuntu 9.10)

Posted 10 April 2010 - 03:06 PM

No2, I actually had to change 2 things to make it work:

#! /bin/bash

# Had to use -e
if [ -e /dev/dsp2 ]; then
    echo "Switching to USB Audio"
    rm -f /dev/dsp1
    ln -s /dev/dsp1 /dev/dsp2
    rm -f /dev/audio1
    ln -s /dev/audio1 /dev/audio2
    rm -f /dev/mixer1
    ln -s /dev/mixer1 /dev/mixer2
else
    echo "No USB Audio inputted"
fi



Now, the symbolic link is in place...However, I'm still getting only system sounds and amarok out of the headphones. I still cannot get internet or games to play through yet...Is there something that I am just missing?

edit: updated code. those are the file I have.

This post has been edited by Dogstopper: 10 April 2010 - 03:25 PM

Was This Post Helpful? 0
  • +
  • -

#7 no2pencil  Icon User is offline

  • Admiral Fancy Pants
  • member icon

Reputation: 5395
  • View blog
  • Posts: 27,389
  • Joined: 10-May 07

Re: Sound Transfer to USB Headset (Kubuntu 9.10)

Posted 10 April 2010 - 06:14 PM

View PostDogstopper, on 09 April 2010 - 09:42 PM, said:

However /dev/audio represents my speakers and /dev/audio1 represents the USB headset.

Assuming the above statement to be true, why would you remove all of the devices that end with 1? Wouldn't those all be the USB devices?
Was This Post Helpful? 0
  • +
  • -

#8 Dogstopper  Icon User is offline

  • The Ninjaducky
  • member icon



Reputation: 2876
  • View blog
  • Posts: 11,051
  • Joined: 15-July 08

Re: Sound Transfer to USB Headset (Kubuntu 9.10)

Posted 10 April 2010 - 06:35 PM

As it turns out...I was wrong. audio1, dsp1, are my speakers...and audio2, dsp2 are my headset. And it actually worked...for the internet...as of yet, it still doesn't work for games

Scratch that...no sound.

This post has been edited by Dogstopper: 10 April 2010 - 06:36 PM

Was This Post Helpful? 0
  • +
  • -

#9 Dogstopper  Icon User is offline

  • The Ninjaducky
  • member icon



Reputation: 2876
  • View blog
  • Posts: 11,051
  • Joined: 15-July 08

Re: Sound Transfer to USB Headset (Kubuntu 9.10)

Posted 11 April 2010 - 06:42 PM

Hey, guys, not to be rude, but I also just made a post at ubuntuforums to see if I could get any further help. I am happy to still take input from you all though. Since I linked here, I will link you there:

http://ubuntuforums....660#post9109660
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1