Headphones

Questions about hardware,drivers and peripherals
Forum rules
Before you post please read this

Headphones

Postby rockingrector on Thu Jul 16, 2009 1:30 pm

Hi guys,
I'm running Gloria on an Acer Aspire 5633WLMi. I can get sound beautifully through the laptop speakers, but when I attach my Plantronics USB DSP v 4 headphones, can't get any sound through them. Sound continues through the speakers. I've tried ticking all the boxes in turn on the volume control mixer and on Gnome player, but to no avail.
Can anyone enlighten me, please?
rockingrector
Level 1
Level 1
 
Posts: 22
Joined: Fri Jun 26, 2009 4:20 am

Linux Mint is funded by ads and donations.
 

Re: Headphones

Postby Kaye on Thu Jul 16, 2009 2:09 pm

I had the same problem, however it is different for me because I use OSS rather than ALSA (which is the default). I ended up having to write a small bash script to change my mixer values and I just run that script to put my laptop in "headphone mode." Unless there is some ALSA trick I'm unaware of, which is very possible, you'll just have to mess with the mixer until you achieve the desired results. I honestly don't even know what the ALSA mixer looks like, but I would advise looking for something along the lines of the input-mode or speaker-mode, anything like that. For me, the bash script is:
Code: Select all
 #!/bin/bash

 MODE=$(ossmix jack.int-speaker.mode)
 if [ "$MODE" = "Value of mixer control jack.int-speaker.mode set to mix2" ]; then
    ossmix jack.int-speaker.mode input
 else
    ossmix jack.int-speaker.mode mix2
 fi

So, this communicates with OSS, telling it to change the int-speaker mode. For me, hitting <Control> h runs the script, changing my audio output to speakers or to the headphones jack. Hopefully you can modify that script to suit your needs.
"In somnis veritas"
Antivirus or defragging?
Image
User avatar
Kaye
Level 5
Level 5
 
Posts: 942
Joined: Fri Feb 06, 2009 5:05 pm
Location: Boston College

Re: Headphones

Postby rockingrector on Fri Jul 17, 2009 2:45 pm

Thanks for your speedy help.
I changed the default to OSS - and the laptop speakers still worked fine - then added your script in a terminal, but nothing seemed to change. Maybe I wasn't running the script? tried ctrl h but didn't work for me and don't have enough knowledge to work anything else out!
Any further ideas?
rockingrector
Level 1
Level 1
 
Posts: 22
Joined: Fri Jun 26, 2009 4:20 am

Re: Headphones

Postby cookmint on Sat Jul 18, 2009 5:00 pm

hay I had to log out and do it as root give that a try
cookmint
Level 1
Level 1
 
Posts: 1
Joined: Sat Jul 18, 2009 4:55 pm

Re: Headphones

Postby Kaye on Mon Jul 20, 2009 10:42 am

If you want to use <Control> h as a shortcut, go into the Keyboard Shortcuts menu and set <Control> h to run the command sh ~/.headphones.sh
"In somnis veritas"
Antivirus or defragging?
Image
User avatar
Kaye
Level 5
Level 5
 
Posts: 942
Joined: Fri Feb 06, 2009 5:05 pm
Location: Boston College

Re: Headphones

Postby rockingrector on Tue Jul 21, 2009 1:19 pm

Thanks for your help. I've tried these suggestions, but still no luck, I'm afraid.
When In paste the code into a terminal, I get the following message: bash: ossmix: command not found
Is there anything else I should be doing?
rockingrector
Level 1
Level 1
 
Posts: 22
Joined: Fri Jun 26, 2009 4:20 am

Re: Headphones

Postby Kaye on Tue Jul 21, 2009 2:30 pm

That means you don't have the OSS package installed. Look for the package in Synaptic, install it, then try again.
"In somnis veritas"
Antivirus or defragging?
Image
User avatar
Kaye
Level 5
Level 5
 
Posts: 942
Joined: Fri Feb 06, 2009 5:05 pm
Location: Boston College

Re: Headphones

Postby rockingrector on Wed Jul 22, 2009 12:30 pm

Thanks.
I've now downloaded everything I can see that has 'oss' as part of its name (except Skype - even I know what that is!) and tried again. This is the result:
sudo #!/bin/bash
usage: sudo -h | -K | -k | -L | -l | -V | -v
usage: sudo [-bEHPS] [-p prompt] [-u username|#uid] [VAR=value]
{-i | -s | <command>}
usage: sudo -e [-S] [-p prompt] [-u username|#uid] file ...
janice@janice-laptop ~ $
janice@janice-laptop ~ $ MODE=$(ossmix jack.int-speaker.mode)
bash: ossmix: command not found
janice@janice-laptop ~ $ if [ "$MODE" = "Value of mixer control jack.int-speaker.mode set to mix2" ]; then
> ossmix jack.int-speaker.mode input
> else
> ossmix jack.int-speaker.mode mix2
> fi

I appreciate your patience.
rockingrector
Level 1
Level 1
 
Posts: 22
Joined: Fri Jun 26, 2009 4:20 am

Re: Headphones

Postby Kaye on Wed Jul 22, 2009 1:38 pm

Sorry, that output you posted has confused me. What exactly are you trying to run as a terminal command? As a quick test just type
Code: Select all
ossmix

in a terminal and post the output of that here.
"In somnis veritas"
Antivirus or defragging?
Image
User avatar
Kaye
Level 5
Level 5
 
Posts: 942
Joined: Fri Feb 06, 2009 5:05 pm
Location: Boston College

Re: Headphones

Postby rockingrector on Thu Jul 23, 2009 10:39 am

janice@janice-laptop ~ $ sudo ossmix
[sudo] password for janice:
sudo: ossmix: command not found
janice@janice-laptop ~ $
rockingrector
Level 1
Level 1
 
Posts: 22
Joined: Fri Jun 26, 2009 4:20 am

Re: Headphones

Postby Kaye on Thu Jul 23, 2009 11:00 am

It was as I thought, for some reason your system is not recognizing OSS. Switching you to OSS just for this if ALSA is working perfectly for everything else might be a little bit of overkill. If you would like to switch to OSS, you can follow this guide to make it happen. Otherwise, wait for someone who knows about ALSA to come in here and solve the problem, because I know nothing about it :?
"In somnis veritas"
Antivirus or defragging?
Image
User avatar
Kaye
Level 5
Level 5
 
Posts: 942
Joined: Fri Feb 06, 2009 5:05 pm
Location: Boston College

Re: Headphones

Postby rockingrector on Thu Jul 23, 2009 12:21 pm

Thanks so much for your time and patience. You've been really helpful and at least i now know where to look!
rockingrector
Level 1
Level 1
 
Posts: 22
Joined: Fri Jun 26, 2009 4:20 am

Re: Headphones

Postby Kaye on Thu Jul 23, 2009 2:19 pm

No problem. I had serious sound issues when I first started out with Linux so I never mind helping others fix theirs (when I can :P ). Good luck!
"In somnis veritas"
Antivirus or defragging?
Image
User avatar
Kaye
Level 5
Level 5
 
Posts: 942
Joined: Fri Feb 06, 2009 5:05 pm
Location: Boston College

Linux Mint is funded by ads and donations.
 

Return to Hardware Support

Who is online

Users browsing this forum: feffer and 6 guests