maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Development (https://talk.maemo.org/forumdisplay.php?f=13)
-   -   D-BUS service names for maemo (https://talk.maemo.org/showthread.php?t=39225)

krk969 2010-01-06 08:24

Re: D-BUS service names for maemo
 
this is what i had found out yesterday
its the list of dbus service interfaces , but im yet to find the services published by these different dbus daemons that are handled by these interaces.

You can find them on your N900 the list of interfaces used by the various dbus daemons.
just goto
/etc/dbus-1/system.d

if Ive missed to see something please report.

krk969 2010-01-06 21:19

Re: D-BUS service names for maemo
 
Quote:

Originally Posted by 412b (Post 454918)
Developing for Maemo 5 is much, much, much easier, 'cause of the existence of docs, api refs and wiki, 'cause of OS2008 developing experience. And I just miss the point again and again... Please, use search... Or use fantasy... Do you know 'bout 'dbus-inspector'? Now you do ;) Use it ;)
P.S. Nothing personal, just a long New Year holidays :)

just installed dbus-inspector on my N900.
Ran it , there were some errors :confused: and it shows nothing. just an empty window, doesnt list the interfaces or services.
is there some config I need to do ?

if this works this will definitely make up for the lack of documentation of interaces/services.
I also read that the services will show on the dbus-inspector only if the introspection has been implemented by the respective daemons. Dont know how that holds for maemo . ?

412b 2010-01-07 12:36

Re: D-BUS service names for maemo
 
Quote:

Originally Posted by krk969 (Post 456260)
just installed dbus-inspector on my N900.
Ran it , there were some errors :confused: and it shows nothing. just an empty window, doesnt list the interfaces or services.
is there some config I need to do ?

No config is needed. Did you run it in XTerm? If you did, post the output. And one more thing to be told: it takes much time to introspect (partly because of the timeouts and slow CPU).

Quote:

Originally Posted by krk969 (Post 456260)
I also read that the services will show on the dbus-inspector only if the introspection has been implemented by the respective daemons. Dont know how that holds for maemo . ?

Introspection is partly supported in Maemo unfortunately, so still docs reading to be done.

krk969 2010-01-07 20:02

Re: D-BUS service names for maemo
 
2 Attachment(s)
Quote:

Originally Posted by 412b (Post 457175)
No config is needed. Did you run it in XTerm? If you did, post the output. And one more thing to be told: it takes much time to introspect (partly because of the timeouts and slow CPU).
....

I ran it using ssh to get the error log. Its attached
The screenshot is also attached.

btw just another thing the refresh and quit buttons were working to touch.

412b 2010-01-08 20:21

Re: D-BUS service names for maemo
 
Quote:

Originally Posted by krk969 (Post 457976)
I ran it using ssh to get the error log.
...
btw just another thing the refresh and quit buttons were working to touch.

Well, you can patch a bit sources of dbus-inspector, according to last error in log dbus-inspector fails with None instead of String.

krk969 2010-01-08 20:28

Re: D-BUS service names for maemo
 
Quote:

Originally Posted by 412b (Post 459946)
Well, you can patch a bit sources of dbus-inspector, according to last error in log dbus-inspector fails with None instead of String.

Thanks, that didnt take me this post to figure out :rolleyes:
Im no expert in python, but ill try to patch it if I can in case nobody fixes it before.

412b 2010-01-08 20:49

Re: D-BUS service names for maemo
 
Quote:

Originally Posted by krk969 (Post 459960)
Thanks, that didnt take me this post to figure out :rolleyes:

;)
Quote:

Originally Posted by krk969 (Post 459960)
Im no expert in python, but ill try to patch it if I can in case nobody fixes it before.

It's quite easy, but having a device is a nice speed-up in fixing. Perhaps, a bit later I'll post patched version.

412b 2010-01-09 00:02

Re: D-BUS service names for maemo
 
1 Attachment(s)
Try this quick-patched version

krk969 2010-01-09 09:50

Re: D-BUS service names for maemo
 
1 Attachment(s)
Quote:

Originally Posted by 412b (Post 460314)
Try this quick-patched version

didnt work again :( . attached the error.
sorry ,i hadnt realized you didnt have a device to test it, would it not work on the ARMEL target in the SDK env (i mean just to test it ? )

anyways, if you would be working on it, you could send me the patched version to test anytime. ill try to have a look too myself when I can.

cheers

412b 2010-01-09 10:09

Re: D-BUS service names for maemo
 
Quote:

Originally Posted by krk969 (Post 460817)
didnt work again :( . attached the error.

In fact, there are no critical errors. Moreover, how much time did you let it to work? According to log introspection wasn't finished.

Quote:

Originally Posted by krk969 (Post 460817)
sorry ,i hadnt realized you didnt have a device to test it, would it not work on the ARMEL target in the SDK env (i mean just to test it ? )

Just for testing purposes it can be run in the SDK, but only for testing. Python is target independent, so no difference should be there.


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

vBulletin® Version 3.8.8