maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Development (https://talk.maemo.org/forumdisplay.php?f=13)
-   -   Headphone/Speaker Switching (https://talk.maemo.org/showthread.php?t=25678)

muki 2008-12-19 13:51

Headphone/Speaker Switching
 
Here are the commands for switching between headphones/speakers with headphones plugged in. Easy to put into shell script/s...

dbus-send --type=method_call --dest=com.nokia.osso_hp_ls_controller /com/nokia/osso_hp_ls_controller com.nokia.osso_hp_ls_controller.loudspeaker.force_ loudspeaker_on

dbus-send --type=method_call --dest=com.nokia.osso_hp_ls_controller /com/nokia/osso_hp_ls_controller com.nokia.osso_hp_ls_controller.loudspeaker.force_ loudspeaker_off

Saturn 2009-01-18 12:24

Re: Headphone/Speaker Switching
 
Thanks a lot.

BTW, I really like the E71's feature (probably in other phones too) that when rings (alarm or phonecall) it rings to both..

jpt 2009-01-28 02:43

Re: Headphone/Speaker Switching
 
Thanks! This is great. I was thinking of messing with the sound module to achieve something similar. Except, I want the built-in mic on the N810 to work when headphones are plugged in. Any idea how I could do that?
Also, it's unfortunate that skype doesn't ring through the loudspeaker when headphones are plugged in :(

muki 2009-01-28 11:38

Re: Headphone/Speaker Switching
 
jpt, I got the info from watching dbus messages using dbus-monitor. Try it and see what msgs occur when you plug in the headphones.


All times are GMT. The time now is 06:57.

vBulletin® Version 3.8.8