LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 08-23-2016, 04:46 PM   #1
Johnny_Metal
Member
 
Registered: Feb 2016
Posts: 72

Rep: Reputation: 1
Sound does not switch to headphones after plugging jack on Alienware 15


Hello everyone

This is a known issue: https://bbs.archlinux.org/viewtopic.php?id=210923

In the Arch Wiki, this solution is posted:

Quote:
Sound don't switch to headphone, after plug jack

For fix: Add

'options snd-hda-intel position_fix=1'

to

/etc/modprobe.d/alsa-base.conf
Neither this, nor changing options in PulseAudio Volume Control has helped.

Any ideas?
 
Old 08-26-2016, 09:28 PM   #2
seasons
Member
 
Registered: Dec 2014
Distribution: siduction
Posts: 264

Rep: Reputation: 58
Remove the 'options snd-hda-intel position_fix=1' line and reboot.

Get more info: https://wiki.ubuntu.com/Audio/AlsaInfo
(It's an Ubuntu doc page, but it should work on Arch as well)/)
 
Old 08-28-2016, 04:53 AM   #3
michaldybczak
LQ Newbie
 
Registered: Aug 2016
Distribution: Manjaro KDE
Posts: 11

Rep: Reputation: Disabled
On manjaro and arch based systems /etc/modprobe.d/alsa-base.conf was moved to /usr/share/alsa/alsa-base.conf - just in case someone was looking for it.

Have the same problem on Alienware 17 R3.

Also 'options snd-hda-intel position_fix=1' didn't help. In fact I had no sound after applying it so I had to remove it. Besides, such solutions are frustrating because alsa-base.conf is a file with lot of text so I have no idea where to put that line. Should it be in some brackets or not? So maybe the solution works if it's correctly applied. Such half advices are the worst thing people can post, because it promises fix but gives us lot of work, tries, frustration and often no real solution.

Last edited by michaldybczak; 08-28-2016 at 05:26 AM.
 
Old 08-28-2016, 09:01 AM   #4
seasons
Member
 
Registered: Dec 2014
Distribution: siduction
Posts: 264

Rep: Reputation: 58
Quote:
Originally Posted by michaldybczak View Post
On manjaro and arch based systems /etc/modprobe.d/alsa-base.conf was moved to /usr/share/alsa/alsa-base.conf - just in case someone was looking for it.
I haven't used Arch in a while, but I doubt it's the same file, despite the similar name.

Quote:
Also 'options snd-hda-intel position_fix=1' didn't help. In fact I had no sound after applying it so I had to remove it.
If you read the description of position_fix, it doesn't make any sense that it would apply to this issue. position_fix deals with the position of playback buffer and not the position of audio jacks or anything like that.

Quote:
Besides, such solutions are frustrating because alsa-base.conf is a file with lot of text so I have no idea where to put that line. Should it be in some brackets or not?
Again, you're probably using the wrong file. If you're trying to use a line that begins with "options", then that line should go in a file in /etc/modprobe.d (and that file could be named anything as long as the name ends with '.conf'). A lot of examples use /etc/modprobe.d/alsa-base.conf since Debian-based distros usually have such a file, but it's not necessary. In fact, it would be better not to touch a configuration file belonging to a package. Just make your own /etc/modprobe.d/whatever.conf file, and then you can just delete it if it proves unhelpful.

Quote:
So maybe the solution works if it's correctly applied. Such half advices are the worst thing people can post, because it promises fix but gives us lot of work, tries, frustration and often no real solution.
Well, take it up with whoever wrote it. If you follow random advice and copy/paste commands or settings without understanding exactly what they're doing, you're in for a lot of frustration regardless of what OS you're using.
 
Old 08-28-2016, 10:05 AM   #5
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by michaldybczak View Post
On manjaro and arch based systems /etc/modprobe.d/alsa-base.conf was moved to /usr/share/alsa/alsa-base.conf - just in case someone was looking for it.
i don't have /usr/share/alsa/alsa-base.conf on my archlinux desktop.
the other files in /usr/share/alsa/ have NOTHING to do with modprobe.


======================================

johnny metal, just in case this wasn't clear to you, this:
Quote:
Originally Posted by seasons View Post
Get more info: https://wiki.ubuntu.com/Audio/AlsaInfo
(It's an Ubuntu doc page, but it should work on Arch as well)/)
actually means "please PROVIDE more info".

Last edited by ondoho; 08-28-2016 at 10:09 AM.
 
Old 08-28-2016, 10:31 AM   #6
michaldybczak
LQ Newbie
 
Registered: Aug 2016
Distribution: Manjaro KDE
Posts: 11

Rep: Reputation: Disabled
Quote:
Originally Posted by ondoho View Post
i don't have /usr/share/alsa/alsa-base.conf on my archlinux desktop.
the other files in /usr/share/alsa/ have NOTHING to do with modprobe.
Strange. Then it has to be manjaro thing. Usually the same things apply to manjaro and arch but on occasions some things are in different folders or named differently. I guess I assumed wrong in this case. Although... If your arch installation is not fresh, then maybe some files stayed in old places and on newly installed ones they are already somewhere else, but I can be wrong. Rolling release system updates with names and places but sometimes new install have differences with old one.
 
Old 08-28-2016, 10:42 AM   #7
michaldybczak
LQ Newbie
 
Registered: Aug 2016
Distribution: Manjaro KDE
Posts: 11

Rep: Reputation: Disabled
Quote:
Originally Posted by seasons View Post
I haven't used Arch in a while, but I doubt it's the same file, despite the similar name.

If you read the description of position_fix, it doesn't make any sense that it would apply to this issue. position_fix deals with the position of playback buffer and not the position of audio jacks or anything like that.

Again, you're probably using the wrong file. If you're trying to use a line that begins with "options", then that line should go in a file in /etc/modprobe.d (and that file could be named anything as long as the name ends with '.conf'). A lot of examples use /etc/modprobe.d/alsa-base.conf since Debian-based distros usually have such a file, but it's not necessary. In fact, it would be better not to touch a configuration file belonging to a package. Just make your own /etc/modprobe.d/whatever.conf file, and then you can just delete it if it proves unhelpful.
That's confusing but ok. I don't have time to wait years to finally understand the solution to apply it. I bet most newbies just use any fix they can find in hope it will work, because they have no possibilities to dig to such amount of data to understand it all. At the beginning when I didn't find the proper file I created it with the entry as provided but nothing happened so I deleted it. On /usr/share/alsa/alsa-base.conf I didn't find any option section so it probably really is not the file, although I found location through some forum where they claimed that the conf file was moved there (or maybe the author found it there and assumed it was moved and I repeated that info).

Quote:
Originally Posted by seasons View Post
Well, take it up with whoever wrote it. If you follow random advice and copy/paste commands or settings without understanding exactly what they're doing, you're in for a lot of frustration regardless of what OS you're using.
Advice was given on arch wiki and I don't have means to poke the author about it. In fact there is little info about it on the web.

Back to the main topic thou. How to set one of the jacks for phone and other for microphone? In windows it happens during first plug when the sound blaster option canter asks for setting how the jacks would work (they are multi purpose plugs and one jack can be for phone/microphone and other sound devices).

Last edited by michaldybczak; 08-28-2016 at 10:49 AM.
 
Old 08-28-2016, 11:46 AM   #8
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by michaldybczak View Post
Strange. Then it has to be manjaro thing. Usually the same things apply to manjaro and arch but on occasions some things are in different folders or named differently. I guess I assumed wrong in this case. Although... If your arch installation is not fresh, then maybe some files stayed in old places and on newly installed ones they are already somewhere else, but I can be wrong. Rolling release system updates with names and places but sometimes new install have differences with old one.
goddammit, i got so annoyed by this that i installed manjaro to a vm. the arrogance of youth. i must be getting old.
anyhow, on manjaro it is exactly the same as on my baremetal install:
there's a file /usr/share/alsa/alsa.conf (NOT alsa-base.conf)
the content of that file has NOTHING to do with modprobe (Add and remove modules from the Linux Kernel).


Quote:
Originally Posted by michaldybczak View Post
Advice was given on arch wiki and I don't have means to poke the author about it.
actually you have the means, and you should do something about it. that is exactly what a wiki is for.



Quote:
Back to the main topic thou.
Amen.
 
Old 08-28-2016, 03:25 PM   #9
Johnny_Metal
Member
 
Registered: Feb 2016
Posts: 72

Original Poster
Rep: Reputation: 1
I'm working on getting the info available, but i'm having trouble connecting to alsa-project.org right now. I'll display it as soon as i can.

Thanks for the help thus far.
 
Old 08-29-2016, 01:02 AM   #10
seasons
Member
 
Registered: Dec 2014
Distribution: siduction
Posts: 264

Rep: Reputation: 58
Quote:
Originally Posted by michaldybczak View Post
Back to the main topic thou. How to set one of the jacks for phone and other for microphone? In windows it happens during first plug when the sound blaster option canter asks for setting how the jacks would work (they are multi purpose plugs and one jack can be for phone/microphone and other sound devices).
There's a utility call hdajackretask that can help. Google it because I have no idea where it is in Arch.
 
Old 08-30-2016, 07:10 PM   #11
Johnny_Metal
Member
 
Registered: Feb 2016
Posts: 72

Original Poster
Rep: Reputation: 1
Sorry for the late reply, but only now i've been able to access the website to provide the requested information.

Here is the link: http://www.alsa-project.org/db/?f=c6...5535b97911d03f
 
Old 08-31-2016, 04:32 AM   #12
seasons
Member
 
Registered: Dec 2014
Distribution: siduction
Posts: 264

Rep: Reputation: 58
You might try toggling these settings in alsamixer. I'm pretty sure I've recommended that to someone with the same codec (Creative CA0132) in the past and it didn't work. It's worth a try though.

Code:
control.10 {
		iface MIXER
		name 'HP/Speaker Playback Switch'
		value false
	}
	control.12 {
		iface MIXER
		name 'HP/Speaker Auto Detect Playback Switch'
		value false
 
1 members found this post helpful.
Old 08-31-2016, 06:19 AM   #13
Johnny_Metal
Member
 
Registered: Feb 2016
Posts: 72

Original Poster
Rep: Reputation: 1
Do you actually mean a configuration file, such as for exammple /etc/asound.conf ? It doesn't seem that alsamixer is where i should change those settings.
 
Old 08-31-2016, 08:58 AM   #14
seasons
Member
 
Registered: Dec 2014
Distribution: siduction
Posts: 264

Rep: Reputation: 58
Quote:
Originally Posted by Johnny_Metal View Post
Do you actually mean a configuration file?
No. Look in alsamixer. Hold the right arrow to scroll over.
 
Old 08-31-2016, 02:07 PM   #15
Johnny_Metal
Member
 
Registered: Feb 2016
Posts: 72

Original Poster
Rep: Reputation: 1
Found it. The two options are set to false by default.

EDIT: Sorry, you meant to turn them on. It worked! Thank you very much!


PS: Would you suggest contacting someone in charge to report them of the possibility of this being a fix, and thus possibly edit the Arch Wiki page accordingly?

Last edited by Johnny_Metal; 08-31-2016 at 02:16 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
plugging in headphones or speakers doesn't disable my laptop's built in speakers moljac024 Linux - Software 14 07-13-2017 08:01 AM
[SOLVED] How do I tell if headphones (or speakers) are plugged into the headphone jack? RandomTroll Linux - Hardware 5 07-21-2015 12:56 PM
Headphones jack sensing, FC19+KDE, Asus M3A79T deluxe kaza Linux - Hardware 3 02-21-2014 12:41 AM
Audio from inbuilt monitor speakers does not mute on plugging in headphones aru11f11 Linux - Newbie 1 09-26-2008 05:46 AM
Sound: how to switch from headphones to speakers? FreakboY Slackware 1 11-28-2007 12:59 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 10:52 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration