Configuring earphone

6 respuestas [Último envío]
niyasc
Desconectado/a
se unió: 07/12/2011

When I connect earphone to HP ProBook 4230s installed with Trisquel GNU/Linux 4.5 sound appears from both speaker and earphone. How can I configure the system so that speaker automatically become muted when I connect earphone.?

Or let me to have a temporary solution so that I can hear the sound from ear phone only.

Magic Banana

I am a member!

I am a translator!

Conectado
se unió: 07/24/2010

I believe your hardware is problematic. I have used Trisquel on three different laptops and connecting the earphones has always muted the speakers.

The temporary solution would be to mute the speakers from the output tab of the sound preferences (in the System/Preferences menu). Notice the drop-down menu at the bottom of the window.

mYself
Desconectado/a
se unió: 01/18/2012

This should be an audio chipset-specific issue of the ALSA(Advanced Linux
Sound Architecture) sound system. There should be a command to toggle
mute/unmute the speakers but I cannot help you with that because I does not
use ALSA. I recommend you to try out the OSS4(Open Sound System v4) as an
alternative. It also comes with some benefits. You can read more here: , and
here: . Note, that the official (Trisquel's) documentation is a bit outdated
and inaccurate so here's my own one:

Open Terminal (press [Ctrl]+[Alt]+[T]), then follow:

To INSTALL OSS4 on Trisquel 4.0(+):
$ sudo su
$ apt-get update;apt-get install oss4-dkms oss4-gtk linux-headers-generic
linux-image-generic libc6-dev
$ dpkg-reconfigure linux-sound-base # Select OSS
$ xdg-open https://trisquel.info/wiki/installing-oss4-trisquel-40#toc4
$ FILE=/etc/pulse/default.pa;cp $FILE $FILE-old;gnome-text-editor $FILE #
Follow step 4
$ ossmix vmix0-src OFF # This will avoid low quality output.
$ reboot # This will RESTART your system!

To REMOVE OSS4:
$ sudo su
$ apt-get remove oss4*
$ FILE=/etc/pulse/default.pa;mv $FILE-old $FILE
$ dpkg-reconfigure linux-sound-base # Select ALSA
$ reboot # This will RESTART your system!

Optionally, follow steps 5-6:
$ xdg-open https://trisquel.info/en/wiki/installing-oss4-trisquel-40#toc5

If the problem persist, use this:
$ echo [Desktop Entry]>>~/Desktop/spkmute.desktop
$ echo Type=Application>>~/Desktop/spkmute.desktop
$ echo Name=Speaker Mute>>~/Desktop/spkmute.desktop
$ echo Exec=ossmix jack.int-speaker.mute TOGGLE>>~/Desktop/spkmute.desktop
$ echo Icon=xfce-sound>>~/Desktop/spkmute.desktop
$ echo >>~/Desktop/spkmute.desktop
$ chmod +x ~/Desktop/spkmute.desktop

This will create a handy shortcut on your desktop with which you can toggle
mute/unmute the internal laptop speakers. I also recommend you to put it on
your panel, so you does not need to switch to desktop and double-click on it
everytime you need it.

Also note, that these commands are originaly written for a shell script (made
for my own purposes) so the code may look a bit unclean for a 'Terminal' use.

Hope this help.

mYself
Desconectado/a
se unió: 01/18/2012

This should be an audio chipset-specific issue of the ALSA(Advanced Linux Sound Architecture) sound system. There should be a command to toggle mute/unmute the speakers but I cannot help you with that because I does not use ALSA. I recommend you to try out the OSS4(Open Sound System v4) as an alternative. It also comes with some benefits (such as better sound quality). You can read more here:
https://en.wikipedia.org/wiki/Open_Sound_System
https://trisquel.info/en/wiki/installing-oss4-trisquel-40

Note, that the official (Trisquel's) documentation is a bit outdated and inaccurate so here's my own one:

Open Terminal (press [Ctrl]+[Alt]+[T]), then follow:

To INSTALL OSS4 on Trisquel 4.0(+):
$ sudo su
$ apt-get update;apt-get install oss4-dkms oss4-gtk linux-headers-generic linux-image-generic libc6-dev
$ dpkg-reconfigure linux-sound-base # Select OSS
$ xdg-open https://trisquel.info/wiki/installing-oss4-trisquel-40#toc4
$ FILE=/etc/pulse/default.pa;cp $FILE $FILE-old;gnome-text-editor $FILE # Follow step 4
$ ossmix vmix0-src OFF # This will avoid low quality output.
$ reboot # This will RESTART your system!

To REMOVE OSS4:
$ sudo su
$ apt-get remove oss4*
$ FILE=/etc/pulse/default.pa;mv $FILE-old $FILE
$ dpkg-reconfigure linux-sound-base # Select ALSA
$ reboot # This will RESTART your system!

Optionally, follow steps 5-6:
$ xdg-open https://trisquel.info/en/wiki/installing-oss4-trisquel-40#toc5

If the problem persist, use this:
$ echo [Desktop Entry]>>~/Desktop/spkmute.desktop
$ echo Type=Application>>~/Desktop/spkmute.desktop
$ echo Name=Speaker Mute>>~/Desktop/spkmute.desktop
$ echo Exec=ossmix jack.int-speaker.mute TOGGLE>>~/Desktop/spkmute.desktop
$ echo Icon=xfce-sound>>~/Desktop/spkmute.desktop
$ echo >>~/Desktop/spkmute.desktop
$ chmod +x ~/Desktop/spkmute.desktop

This will create a handy shortcut on your desktop with which you can toggle mute/unmute the internal laptop speakers. I also recommend you to put it on your panel, so you does not need to switch to desktop and double-click on it everytime you need it.

Also note, that these commands are originaly written for a shell script (made for my own purposes) so the code may look a bit unclean for a 'Terminal' use.

Hope this help.

sphynx
Desconectado/a
se unió: 11/30/2011

Hey, I found this issue on my notebook with a Live CD, ran "$ alsamixer", and enabled the "auto-mute" option; this solved my problem. If you try it, let us know if it works for you.

lembas
Desconectado/a
se unió: 05/13/2010

Just out of curiosity where exactly is that automute? I couldn't find it.

sphynx
Desconectado/a
se unió: 11/30/2011

Hi lembas,

that was on PartedMagic, a non-free distro which I use once a week because of the damn Adobe Flash Player® in which I got my lessons.

This option doesn't appear on Trisquel's LiveCD. My notebook's sound chip is an Intel Cantiga HDMI, and I don't know if there is 100% Free Software which could handle it 100%.

Alsamixer version is 1.0.24.2 in both systems; besides, that distro chips with the latest kernel Linux's version, while Trisquel uses 2.6. I'd try it with Parabola GNU/Linux-libre LiveCD if (I) it chipped alsamixer and (II) I had Parabola installed in my dead notebook's HDD.