Re: FreeBSD hotplugging (Hal) info



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Alexander Leidinger wrote:
Quoting Chuck Robey <chuckr@xxxxxxxxxxx> (from Mon, 16 Jun 2008 09:40:51
-0400):

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Konrad Jankowski wrote:
Replying to my own mail, I realize I've worded this badly ... what I
meant is,
does any part of FreeBSD's base make any use of Hal's (the hardware
abstraction
layer) API? If it does, and you could tell me where that is
(because I can't

Base definitely doesn't use it.
All you can find in base is devd.

Well, good news and bad. Dropping the bad news first, I can't grep
for hal or
dbus anywhere in the devd src dir, which I think might mean it's not a
direct
user or propagator of hal. OTOH, devd's man page lists devctl, which
seems
mightily interesting, and could extremely likely be adapted into
reporting to
hal directly.

devctl is reporting to devd. There's no relationship to HAL.

My immediate worry is something I picked up from the devctl man page,
that it is
meant for a single reader. Does that mean that I am somehow prevented
from
sharing it to both devd (or devfs) AND hal, both? Or, do I manually
(well, via
script) create an extra devctl node? Or, maybe, am I knocking on the
door of
the wrong mailing list?

You can let devd issue commands in arrival/departure.

You missed the point, which is, because I am writing an Xorg Xinput driver, I
MUST use hal. I *can* use devd or devfs, if and only if I also use the hal
interface.

I just found out about lshal, so I was able to prove that hal is aware of all
the usb devices, I just need some way to prove that hal knows this info in
real-time. So far, using a dbus tool, I can't see where hal is broadcasting
about new usb devices, even things that show up in /var/log/messages on time. I
need to see how hal finds out about it's devices, and either prove to myself
that it knows this in realtime, or add it. That's why I was interested in
devctl, because it seems like the ideal method to find out about new devices,
and use that info to give it to dbus.

Maybe I could write some devfs or devd script, maybe one in python (there's a
Python interface to dbus) to tell hal about new devices, but that would be doing
it secondhand, I'd far rather get it directly from devctl. That's why I asked
about the man p[age comment about devctl talking only to devd, I'd like to
change that. Maybe I'll find out who wrote that, and grill that guy.


Please let me know, my stubborn streak has seen me too close to the
ending of
this driver of mine to consider stopping now, I just MUST answer this
last
feature worry of mine.

Ask on gnome@ about dbus, and on x11@ about the X11 HAL stuff.

Bye,
Alexander.


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

iD8DBQFIVqxsz62J6PPcoOkRAukvAJ9pmTL3Q0rKiCyEC57MclDDEUFVlQCgkfto
KJbQORD0H/ZGuipQCm4jdT8=
=4hI6
-----END PGP SIGNATURE-----
_______________________________________________
freebsd-hackers@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • Re: FreeBSD hotplugging (Hal) info
    ... All you can find in base is devd. ... My immediate worry is something I picked up from the devctl man page, ... Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org ...
    (freebsd-hackers)
  • Re: devctl (alike?) for devfs
    ... in verbose boot: ... devctl calls in kern_conf. ... Here is a log of devd started with -dD flags in single-user mode, ...
    (freebsd-hackers)
  • Re: devctl (alike?) for devfs
    ... in verbose boot: ... devctl calls in kern_conf. ... Here is a log of devd started with -dD flags in single-user mode, ...
    (freebsd-hackers)
  • Re: Patch to make powerd(8) devd(8)-aware
    ... :> Yes, devctl should probably be able to have more readers, I won't argue with that. ... devd allows any number of consumers to the devd.pipe. ... (sending messages to the kernel, ... the pipe from the kernel. ...
    (freebsd-current)
  • Re: future of the desktop
    ... P> have been done by FreeBSD's devd for many years now. ... P> structure on FreeBSD. ... Just remember: FreeBSD had "hotplug ... but DBus is a generic IPC system. ...
    (freebsd-questions)