Plug/unplug events of headphone
Hello. I want to catch plug/unplug events of headphone. Could anybody explain where I need to search? Regards, Dmitry
On Sun, 15 Sep 2013 01:12:30 +1100, Dmitry Kolesov said:
I want to catch plug/unplug events of headphone. Could anybody explain where I need to search?
If you explained a bit more what you're trying to do, we'd be able to give better advice. Are you trying to catch them from userspace, or inside the kernel? And what do you want to do once you catch the event?
Thanks for reply. I have problem with headphone on my laptop. I can not listen sound from speakers after reboot laptop if I power off laptop with headphone. And I need to plug/unplug headphone to listen music from speakers. Regards, Dmitry 2013/9/15 <Valdis.Kletnieks@vt.edu>
On Sun, 15 Sep 2013 01:12:30 +1100, Dmitry Kolesov said:
I want to catch plug/unplug events of headphone. Could anybody explain where I need to search?
If you explained a bit more what you're trying to do, we'd be able to give better advice.
Are you trying to catch them from userspace, or inside the kernel? And what do you want to do once you catch the event?
On Sep 14, 2013 8:57 PM, "Dmitry Kolesov" <apolenary@gmail.com> wrote:
Thanks for reply. I have problem with headphone on my laptop. I can not listen sound from speakers after reboot laptop if I power off
laptop with headphone.
And I need to plug/unplug headphone to listen music from speakers. I suggest seeking help from alsa-devel mailing list.
Regards, Dmitry
2013/9/15 <Valdis.Kletnieks@vt.edu>
On Sun, 15 Sep 2013 01:12:30 +1100, Dmitry Kolesov said:
I want to catch plug/unplug events of headphone. Could anybody explain where I need to search?
If you explained a bit more what you're trying to do, we'd be able to give better advice.
Are you trying to catch them from userspace, or inside the kernel? And what do you want to do once you catch the event?
_______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
On Sun, 15 Sep 2013 02:13:11 +1100, you said:
I can not listen sound from speakers after reboot laptop if I power off laptop with headphone. And I need to plug/unplug headphone to listen music from speakers.
That sounds like a bug with the ALSA drivers not correctly sensing the state of the jack at boot time. Fortunately, the fact that a plug/unplug fixes it means that the signal routing (what pin of the sound chip connects where) is correct. You probably want to post at alsa-devel@alsa-project.org and explain *in detail* the problem - include stuff like your exact kernel release, the laptop model, the sound chip used (probably listed in 'lspci' output), and so on.
participants (3)
-
anish singh -
Dmitry Kolesov -
Valdis.Kletnieks@vt.edu