Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 17 Dec 2006 19:55:36 +0100
From:      Patrick =?iso-8859-1?q?Lamaizi=E8re?= <patfbsds+questions@davenulle.org>
To:        freebsd-questions@freebsd.org
Subject:   Re: devd usage
Message-ID:  <200612171955.36456.patfbsds%2Bquestions@davenulle.org>
In-Reply-To: <4583E577.6060205@mail.ru>
References:  <4583E577.6060205@mail.ru>

next in thread | previous in thread | raw e-mail | index | archive | help
Maxim Vetrov :
> Hi,

Hello,

>   I'm running 6.1 on Toshiba notebook SAtellite L100. Get stuck with
> auto config of wireless cardbus adapter (D-Link DWL-G650). I want to
> load kernel module (if_ath.ko) automatically when I insert it into the
> slot. I found that I need /etc/devd.conf to be configured properly.
> There is a Deqna example that is quite self-explaining excluding those
> magic numbers assigned to "manufacturer" and "product". Where I can get
> these?

I think with the devd's socket : 
By sample i insert my usb mouse :

# cat /var/run/devd.pipe
? at port=0 vendor=0x0458 product=0x0036 devclass=0x00 devsubclass=0x00 
release=0x0110 sernum="" on uhub1
+ums0 vendor=0x0458 product=0x0036 devclass=0x00 devsubclass=0x00 
release=0x0110 sernum="" intclass=0x03 intsubclass=0x01 at port=0 
interface=0 vendor=0x0458 product=0x0036 devclass=0x00 devsubclass=0x00 
release=0x0110 sernum="" intclass=0x03 intsubclass=0x01 on uhub1

There are two events here, first an unknown device is detected '?' and then 
a new device is inserted '+ums0'.
              
See man devctl

Regards.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200612171955.36456.patfbsds%2Bquestions>