Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 16 Jun 2008 15:34:24 -0400
From:      Chuck Robey <chuckr@telenix.org>
To:        FreeBSD GNOME Mailing List <FreeBSD-gnome@FreeBSD.org>
Subject:   Hal or dbus info
Message-ID:  <4856C040.9000601@telenix.org>

next in thread | raw e-mail | index | archive | help
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Anyone know, in the case of FreeBSD, how Hal gets (or, I suppose, dbus gets) the
usb device info?  I am writing an Xorg Xinput driver for a USB graphic tablet,
and I need to instrument the Hal & dbus interface for it.  I think I will be
able to get away with (as far as a purely FreeBSD portion) using the uhid
driver, so I don't need to write any FreeBSD driver.  However, using my tools at
hand, I get the feeling that hal doesn't get realtime data for usb plugging info.

Reason I say that Hal knows usb is because I can use lshal, and list all of the
current usb devices.  However, if I use dbus-monitor to watch teh dbus state in
realtime, then I unplug & plug my graphic tablet, dbus monitor is slient about
it, even if I wait 30 minutes.

So, I want to find out what's the source of dbus's info about the state of the
USB devices.  It's gotta get this info somehow.  Alex Leidinger suggested you
(and I am running Gnome here, it's possible my Hal is learning all this via Gnome).

You see, if I'm not able to make myself happy with whatever I find, I may well
write some kind of a app to run from devfs or devd (which seems to know this
stuff in realtime) to tip off dbus.  However, if it's Gnome, maybe the
possibility exists to configure Gnome to know more?

So. help me please?
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.4 (FreeBSD)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFIVsBAz62J6PPcoOkRAjJcAJ91nREktRt/iYgPiSIINR0uksLF8ACaAsFT
3sfYPXhvDWfXPHo3X1rnZyU=
=vBjG
-----END PGP SIGNATURE-----



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4856C040.9000601>