From owner-freebsd-stable@FreeBSD.ORG Mon Jan 3 20:32:09 2005 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A20F316A4CE for ; Mon, 3 Jan 2005 20:32:09 +0000 (GMT) Received: from smtp-vbr12.xs4all.nl (smtp-vbr12.xs4all.nl [194.109.24.32]) by mx1.FreeBSD.org (Postfix) with ESMTP id 07DC143D46 for ; Mon, 3 Jan 2005 20:32:09 +0000 (GMT) (envelope-from rsmith@xs4all.nl) Received: from slackbox.xs4all.nl (slackbox.xs4all.nl [213.84.242.160]) by smtp-vbr12.xs4all.nl (8.12.11/8.12.11) with ESMTP id j03KW7qv015311 for ; Mon, 3 Jan 2005 21:32:07 +0100 (CET) (envelope-from rsmith@xs4all.nl) Received: by slackbox.xs4all.nl (Postfix, from userid 1001) id 22F096344; Mon, 3 Jan 2005 21:32:20 +0100 (CET) Date: Mon, 3 Jan 2005 21:32:20 +0100 From: Roland Smith To: freebsd-stable@freebsd.org Message-ID: <20050103203220.GA81645@slackbox.xs4all.nl> Mail-Followup-To: freebsd-stable@freebsd.org References: <20041229154905.GA1820@algol.adsl.nerim.net> <20041230083332.GA587@nosferatu.blackend.org> <20041231150712.GA1203@algol.adsl.nerim.net> <20050101010111.GA7319@slackbox.xs4all.nl> <20050102121737.GA744@algol.adsl.nerim.net> <20050102132227.GA47076@slackbox.xs4all.nl> <20050103192333.GA2429@algol.adsl.nerim.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="UugvWAfsgieZRqgk" Content-Disposition: inline In-Reply-To: <20050103192333.GA2429@algol.adsl.nerim.net> User-Agent: Mutt/1.4.2.1i X-GPG-Fingerprint: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 X-GPG-Key: http://www.xs4all.nl/~rsmith/pubkey.txt X-GPG-Notice: If this message is not signed, don't assume I sent it! Organization: Me, organized? X-Virus-Scanned: by XS4ALL Virus Scanner Subject: Re: USB scanner not attached when connected after system startup] X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 Jan 2005 20:32:09 -0000 --UugvWAfsgieZRqgk Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Jan 03, 2005 at 08:23:33PM +0100, Harald Weis wrote: > On Sun, Jan 02, 2005 at 02:22:27PM +0100, Roland Smith wrote: > > On Sun, Jan 02, 2005 at 01:17:37PM +0100, Harald Weis wrote: >=20 > > Sometimes the device that gets noticed by usbd is not the device that > > you eventually want. For instance, I have a usb pendrive. When I plug it > > in, usbd sees a device called umass0. But what I'm interested in is the > > adXsY device that represents the partition on the drive. So in this case > > usbd isn't very helpful. > =20 > and you would see it in dmesg ? Yes. For instance when I plug in my digital camera to offload pictures, I get the following in dmesg: umass0: NIKON NIKON DSC D70, rev 1.10/1.00, addr 2 da0 at umass-sim0 bus 0 target 0 lun 0 da0: Removable Direct Access SCSI-2 device=20 da0: 1.000MB/s transfers da0: 244MB (500401 512 byte sectors: 64H 32S/T 244C) In usbd I'd only see the events related to umass0. > > I've asked this before, but you never answered; If you plug in the > > scanner in a running system, do you see it in the 'dmesg' output? >=20 > No. That's not good. AFAICT, the code that reports a new scanner to dmesg is also present in 4.x, so if you don't see a message, it looks like the scanner is not found for one reason or another. Do you see anything in dmesg if it is available at boot? If so, it would look like a definite bug to me.=20 But since it works on 5.3, I don't know what the value would be of sending a Problem Report on 4.9, since 5.3 is now STABLE. Have you considered upgrading to 5.3? > [Very sorry for not having replied to that question before. I have > simply repressed it (verdr=E4ngt in German)=20 :-) > because sane, scanimage and > last not least usbd clearly proved - to my troubled mind - that the > scanner was not attached and I was subconsciously convinced that dmesg > signals only events during system startup. This is how I used it up to > now. I still don't know what `core file' and `name list' or `kernel > image' exactly means.] See 'man core' for more info about coredumps. Core is an old term for memory (dating from the time of ferrite core memory). See the jargon file. > > If you do _not_ get a message like: > >=20 > > uscanner0: EPSON EPSON Scanner, rev 1.10/3.02, addr 2 > >=20 > > in your dmesg after you plug in the scanner, I'd say that your kernel > > doesn't recognize the scanner for some reason. This would be a bug in 4= .x. >=20 > So I've got a long-standing bug (on two different boxes and several > releases starting in 2001) Very strange that I'd be the only case in > this world. I couldn't find anything in the mailing list archives. It might be the combination of the type of motherboard, chipset and scanner that causes the problem. So you could get only a small number of people affected. During a recent discussion of a bug in the direct rendering code for Radeon graphics cards on amd64, only three users of those particular cards on amd64 participated IIRC. > > If it does appear, the scanner is found by the kernel. If the scanner > > does not work in this case, what exactly is the reported error? If > > you've not running devfs, and the scanner wasn't available at boot time, >=20 > devfs does not exist on 4.x According to the manual page for devfs(5), it has existed since 2.0. AFAIK, it has only become mandatory in 5.x.=20 > > maybe the the device node was never created? Can you confirm that the > > device node for the scanner exists if you boot up without the scanner > > present? >=20 > Yes, I confirm definitely. Ok, so at least that's not the problem. :-) Roland --=20 R.F. Smith /"\ ASCII Ribbon Campaign r s m i t h @ x s 4 a l l . n l \ / No HTML/RTF in e-mail http://www.xs4all.nl/~rsmith/ X No Word docs in e-mail public key: http://www.keyserver.net / \ Respect for open standards --UugvWAfsgieZRqgk Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (FreeBSD) iD8DBQFB2avUEnfvsMMhpyURAlAfAJ48xjsXBZrtPN5NVTLSEJEHAL+RMwCcDIhU Me1xJKhqB2qVf2gs+RGZuOo= =RS/q -----END PGP SIGNATURE----- --UugvWAfsgieZRqgk--