Thread
:
[ANNOUNCE] Phone Speakers Switcher - turns speakers on/off during call
View Single Post
hawaii
2010-03-26 , 12:09
Posts: 1,030 | Thanked: 792 times | Joined on Jun 2009
#
61
@jaeezzy;
from monitoring lshal, here's what a connect and disconnect looks like -
08:06:04.813: computer_logicaldev_input_1 added
08:06:23.737: computer_logicaldev_input_1 removed
and there is no change in the headphone/state file - it's always disconnected, so assume that's for the wired headset only.
I ran a diff of lshal and the only bits that change when connected and disconnected is this line;
udi = '/org/freedesktop/Hal/devices/computer_logicaldev_input_1'
udi = '/org/freedesktop/Hal/devices/computer_logicaldev_input_0'
First is connected, second is disconnected - so a simple sanity check for input_1 would suffice for NOT enabling the loudspeaker when the keyboard is slid open.
Last edited by hawaii; 2010-03-26 at
12:23
.
Quote & Reply
|
The Following User Says Thank You to hawaii For This Useful Post:
jaeezzy
hawaii
View Public Profile
Send a private message to hawaii
Find all posts by hawaii