|
|
07-17-2012
, 03:01 PM
|
|
Posts: 1,590 |
Thanked: 6,085 times |
Joined on May 2010
|
#32
|
|
|
07-17-2012
, 03:05 PM
|
|
Posts: 955 |
Thanked: 929 times |
Joined on Feb 2011
|
#33
|
|
|
07-20-2012
, 08:50 AM
|
|
Posts: 122 |
Thanked: 368 times |
Joined on Oct 2009
|
#34
|
|
|
07-24-2012
, 09:07 AM
|
|
Posts: 1,590 |
Thanked: 6,085 times |
Joined on May 2010
|
#35
|
$ dbus-monitor --system
...
signal sender=:1.16 -> dest=(null destination) serial=109 path=/com/nokia/policy/decision; interface=com.nokia.policy; member=audio_actions
uint32 0
array [
...
dict entry(
string "com.nokia.policy.context"
array [
array [
struct {
string "variable"
variant string "jackbias"
}
struct {
string "value"
variant string "off"
}
]
)
...
]
...
$ mdbus2 --system -a -p | grep :1.16
:1.16 (818)
$ ps auxf | grep 818
818 root 8372 S /usr/sbin/ohmd --no-daemon
|
|
07-24-2012
, 09:20 AM
|
|
Posts: 1,590 |
Thanked: 6,085 times |
Joined on May 2010
|
#36
|
usage: %s [-h] [-p priority] [-c class]
h print this help message and exit
p priority run on run-time priority
s class system UI window class
c class call UI window class
127.0.0.1
app-detect [ERROR]: Failed to setup connection to policy server port %d. Reason: %s
%d standby
%d %s
active
%d %s
%d standby
systemui
rtcom-call-ui
hp:s:c:
app-detect: Started
_MB_CURRENT_APP_WINDOW
_NET_WM_WINDOW_TYPE
_NET_WM_WINDOW_TYPE_DIALOG
_HILDON_WM_WINDOW_TYPE_APP_MENU
_NET_ACTIVE_WINDOW
_NET_WM_PID
_NET_SHOWING_DESKTOP
_MAEMO_ROTATION_TRANSITION
app-detect [ERROR]: Error during initialization
app-detect [ERROR]: ignoring invalid realtime priority %d
app-detect [ERROR]: Failed to set realtime priority %d. Reason: %s
app-detect: Running on real-time priority %d
app-detect: Waiting for XEvents
systemui popdown
callui popdown
systemui popup
callui popup
rotation-transition %s
|
|
07-24-2012
, 10:11 AM
|
|
Posts: 1,590 |
Thanked: 6,085 times |
Joined on May 2010
|
#37
|
|
|
07-24-2012
, 02:29 PM
|
|
Posts: 1,590 |
Thanked: 6,085 times |
Joined on May 2010
|
#39
|
context_variable(jackbias, B) :- ( headset_accessible, ( call_alerting ; call_active ) *-> A=on ; A=off ), context_entry(jackbias, A, B).
headset_accessible :-
fact_exists('com.nokia.policy.audio_device_accessible', [name, connected], [headset, 1]).
call_alerting :-
fact_exists('com.nokia.policy.call', [direction, state], [incoming, created]).
call_active :-
fact_exists('com.nokia.policy.active_media_group', [media, group, state], [audio_playback, cscall, on]).
call_active :-
fact_exists('com.nokia.policy.playback', [group, setstate], [ipcall, play]).
context_entry(B, C, A) :- A=[context, [variable, B], [value, C]].
|
|
07-24-2012
, 03:11 PM
|
|
Posts: 122 |
Thanked: 368 times |
Joined on Oct 2009
|
#40
|
)
![]() |
| Thread Tools | Search this Thread |
|
jack-bias: on
in all possible modes in alsaped.conf, it is probably not the best way though. It (and 'off') are in [context] part so hard to say without source when those kick in/switch. Maybe commenting bias on/off from there and manually setting it once to 'on' would do the trick?