![]() |
2012-07-17
, 19:01
|
Posts: 2,154 |
Thanked: 8,464 times |
Joined on May 2010
|
#32
|
![]() |
2012-07-17
, 19:05
|
Posts: 2,076 |
Thanked: 3,268 times |
Joined on Feb 2011
|
#33
|
![]() |
2012-07-20
, 12:50
|
Posts: 567 |
Thanked: 2,965 times |
Joined on Oct 2009
|
#34
|
![]() |
2012-07-24
, 13:07
|
Posts: 2,154 |
Thanked: 8,464 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
![]() |
2012-07-24
, 13:20
|
Posts: 2,154 |
Thanked: 8,464 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
![]() |
2012-07-24
, 14:11
|
Posts: 2,154 |
Thanked: 8,464 times |
Joined on May 2010
|
#37
|
![]() |
2012-07-24
, 18:29
|
Posts: 2,154 |
Thanked: 8,464 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]].
![]() |
2012-07-24
, 19:11
|
Posts: 567 |
Thanked: 2,965 times |
Joined on Oct 2009
|
#40
|
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?