![]() |
Re: Tinkering with DBus on Jolla
Quote:
|
Re: Tinkering with DBus on Jolla
Ok, thanks for explanation.
Maybe you know how to check if BT connected to any device, when icon is white on the lockscreen ? Ok found how to chek... I can run this command and if it connected to something it will show me the address: Code:
[root@Jolla ~]# hcitool con|awk '{print $3}'|grep -v '^$'Code:
[root@Jolla ~]# address=$(hcitool con|awk '{print $3}'|grep -v '^$') |
Re: Tinkering with DBus on Jolla
Could I use DBUS to automagically start the mediaplayer after headset is inserted? What would be needed to achieve this? Any ideas?
|
Re: Tinkering with DBus on Jolla
Quote:
|
Re: Tinkering with DBus on Jolla
Sorry, I should have been more precise. I meant headphone, not headset. I can live with the fact that my headset's buttons are not supported, but I would like to automatically start the mediaplayer (maybe even start playback) when plugging in the headset/headphone.
Just started dbus-monitor to see if anything happens when music plays and I unplug the headphone. Thought this could give me a hint how to achieve the opposite, but nothing was thrown to the output when the music stopped after unplugging... now I'm out of ideas... can anybody help? |
Re: Tinkering with DBus on Jolla
Quote:
I think it defaults to session bus, and the headphones seem to trigger events on system bus. |
Re: Tinkering with DBus on Jolla
Quote:
Code:
|
Re: Tinkering with DBus on Jolla
Thank you. It displays a million messages, will try to find out, what it needs.
Edit: should have hit F5 prior to posting :) will try what szopin wrote. |
Re: Tinkering with DBus on Jolla
Had to slightly alter the script, but it works, thanks :)
Code:
dbus-monitor --system "type=signal, interface=com.nokia.policy" | |
Re: Tinkering with DBus on Jolla
Quote:
Code:
import dbus, gi.repository.GObject as gobject
|
| All times are GMT. The time now is 02:03. |
vBulletin® Version 3.8.8