Im stalled... :(
Elric Milon
truewhirm at yahoo.es
Fri Aug 6 04:22:19 PDT 2004
El Viernes, 6 de Agosto de 2004 01:50, David Zeuthen escribió:
> Hi,
>
> On Fri, 2004-08-06 at 01:23 +0200, Elric Milon wrote:
> > Well Im trying to read the messages that Hal generates on dbus...
> > on Ipython I'm doing that:
> > whirm at 9[~]$ ipython
> > Python 2.3.4 (#2, Jul 28 2004, 09:39:34)
> > Type "copyright", "credits" or "license" for more information.
> >
> > IPython 0.6.0 -- An enhanced Interactive Python.
> > ? -> Introduction to IPython's features.
> > @magic -> Information about IPython's 'magic' @ functions.
> > help -> Python's own help system.
> > object? -> Details about 'object'. ?object also works, ?? prints more.
> >
> > In [1]: import dbus
> >
> > In [2]: mybus =dbus.Bus(dbus.Bus.TYPE_SYSTEM)
> >
> > In [3]: myservice=mybus.get_service('org.freedesktop.Hal.Manager')
>
> This is wrong; the service is called org.freedesktop.Hal. Granted, D-BUS
> can be a bit confusing with services, interfaces and object paths
> especially because services and interfaces use the same notation style.
Wow, I think I need to read more... ^_^
> Attached is a tiny python program (that will go in the updated hal spec
> which will be out anytime soon) that lists the devices exported by hal
> and reacts to changes when devices are added/removed.
>
> Hope this helps,
> David
whirm at 2[kde-whirm]$ python examply-manager.py
Found device /org/freedesktop/Hal/devices/block_34_2
Found device /org/freedesktop/Hal/devices/block_34_1
Found device /org/freedesktop/Hal/devices/block_34_0
Found device /org/freedesktop/Hal/devices/block_33_2
Found device /org/freedesktop/Hal/devices/block_33_1
Found device /org/freedesktop/Hal/devices/block_33_0
Found device /org/freedesktop/Hal/devices/block_22_64
Found device /org/freedesktop/Hal/devices/block_3_69
Found device /org/freedesktop/Hal/devices/block_3_68
Found device /org/freedesktop/Hal/devices/block_3_67
Found device /org/freedesktop/Hal/devices/block_3_66
Found device /org/freedesktop/Hal/devices/block_3_65
Found device /org/freedesktop/Hal/devices/block_3_64
Found device /org/freedesktop/Hal/devices/block_3_0
Found device /org/freedesktop/Hal/devices/input_13_66
Found device /org/freedesktop/Hal/devices/input_13_65
Found device /org/freedesktop/Hal/devices/input_13_64
Found device /org/freedesktop/Hal/devices/legacy_floppy_0
Found device /org/freedesktop/Hal/devices/pci_10b7_9200
Found device /org/freedesktop/Hal/devices/pci_1102_7002
Found device /org/freedesktop/Hal/devices/pci_1102_2
Found device /org/freedesktop/Hal/devices/ide_3_0
Found device /org/freedesktop/Hal/devices/ide_host_3
Found device /org/freedesktop/Hal/devices/ide_2_0
Found device /org/freedesktop/Hal/devices/ide_host_2
Found device /org/freedesktop/Hal/devices/pci_1103_4
Found device /org/freedesktop/Hal/devices/usbif_usb_0_0_206_-1_0000:02:00.0_0
Found device /org/freedesktop/Hal/devices/usb_0_0_206_-1_0000:02:00.0
Found device /org/freedesktop/Hal/devices/pci_1022_7449
Found device /org/freedesktop/Hal/devices/pci_1022_7448
Found device /org/freedesktop/Hal/devices/pci_1022_7443
Found device /org/freedesktop/Hal/devices/ide_1_1
Found device /org/freedesktop/Hal/devices/ide_host_1
Found device /org/freedesktop/Hal/devices/ide_0_1
Found device /org/freedesktop/Hal/devices/ide_0_0
Found device /org/freedesktop/Hal/devices/ide_host_0
Found device /org/freedesktop/Hal/devices/pci_1022_7441
Found device /org/freedesktop/Hal/devices/pci_1022_7440
Found device /org/freedesktop/Hal/devices/pci_10de_171
Found device /org/freedesktop/Hal/devices/pci_1022_700d
Found device /org/freedesktop/Hal/devices/pci_1022_700c
Found device /org/freedesktop/Hal/devices/computer
Traceback (most recent call last):
File "examply-manager.py", line 28, in ?
'/org/freedesktop/Hal/Manager')
TypeError: add_signal_receiver() takes at most 5 arguments (6 given)
whirm at 2[kde-whirm]$
I must have a too old version of hal...
These are the lastest versions on Debian SID:
root at 3[whirm]# apt-cache policy dbus-1 dbus-1-dev dbus-1-doc dbus-1-utils
dbus-1:
Instalados: 0.21-7
Candidato: 0.21-7
Tabla de versión:
*** 0.21-7 0
500 http://localhost unstable/main Packages
100 /var/lib/dpkg/status
dbus-1-dev:
Instalados: 0.21-7
Candidato: 0.21-7
Tabla de versión:
*** 0.21-7 0
500 http://localhost unstable/main Packages
100 /var/lib/dpkg/status
dbus-1-doc:
Instalados: 0.21-7
Candidato: 0.21-7
Tabla de versión:
*** 0.21-7 0
500 http://localhost unstable/main Packages
100 /var/lib/dpkg/status
dbus-1-utils:
Instalados: 0.21-7
Candidato: 0.21-7
Tabla de versión:
*** 0.21-7 0
500 http://localhost unstable/main Packages
100 /var/lib/dpkg/status
Today I'm going out for holydays, when I return will continue, thanks to all!
--
Elric Milon (whirm)
Aún usas internet explorer y outlook? Mira esto:
http://bulma.net/body.phtml?nIdNoticia=2051
More information about the dbus
mailing list