Chromebook headphone jack detection

This forum is for supported devices using an ARMv7 Samsung SoC.

Chromebook headphone jack detection

Postby bharath1097 » Tue Apr 29, 2014 3:41 pm

Is there any way to get headphone jack detection on this device ?
Right now when i connect headphones, i have to open alsamixer and mute some channels and unmute some other channels.
bharath1097
 
Posts: 3
Joined: Sat Apr 19, 2014 4:54 pm

Re: Chromebook headphone jack detection

Postby dotsdan » Thu May 01, 2014 12:10 am

You could go ahead and set up keyboard shortcuts in XFCE, so will not't have to do it manually each time. Here is what I did to change the headphone's volume. BTW change 'Headphone' to 'Speaker' to adjust the speakers 8-)

1. Applications Menu -> Settings -> Keyboard -> Applications and Shorcuts
2. Click add
3. Enter the shortcut, mine is

- shift - F8 for mute then enter $this->bbcode_second_pass_code('', 'amixer set Headphone 0')
- shift - F9 for volume down then enter $this->bbcode_second_pass_code('', 'amixer set Headphone 1%-')
- shift - F10 for volume up then enter $this->bbcode_second_pass_code('', 'amixer set Headphone 1%+')

Good luck
-Daniel
dotsdan
 
Posts: 7
Joined: Sat Mar 08, 2014 7:33 pm

Re: Chromebook headphone jack detection

Postby Polichronucci » Wed May 21, 2014 11:13 pm

Well you could use acpi.
First make sure you have acpid package installed.
Then you have to start the acpid.service and enable it so itll still be running after reboot.
Edit the /etc/acpi/handler.sh file and add just before the *) line at the end of the file the following:
$this->bbcode_second_pass_code('', '
jack/headphone)
case "$3" in
plug)
logger 'Headphone pluged'
amixer set Headphone unmute
amixer set Speaker mute
;;
unplug)
logger 'Headphone unpluged'
amixer set Speaker unmute
amixer set Headphone mute
;;
esac
;;
')
I hope this is what you were looking for.
Polichronucci
 
Posts: 31
Joined: Wed Oct 09, 2013 10:47 am


Return to Samsung

Who is online

Users browsing this forum: No registered users and 26 guests