From owner-freebsd-questions@FreeBSD.ORG Fri Aug 29 06:52:03 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D33F316A4C1 for ; Fri, 29 Aug 2003 06:52:03 -0700 (PDT) Received: from linux.tsu.tula.ru (linux.tsu.tula.ru [62.76.50.129]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0442543FAF for ; Fri, 29 Aug 2003 06:52:02 -0700 (PDT) (envelope-from Sergey_Zaikov@p66.f5.klax.tsu.tula.ru) Received: from ftn by linux.tsu.tula.ru with local (Exim 3.35 #1 (Debian)) id 19sjfS-0006jH-00 for ; Fri, 29 Aug 2003 17:52:00 +0400 Received: from p66.f5.klax.tsu.tula.ru by p13.f5.klax.tsu.tula.ru with FTN (ifmail v.2.10.os) id AA25868; Fri, 29 Aug 2003 17:51:58 +0400 Apparently-To: Questions@freebsd.Org To: "Questions@freebsd.Org" From: Sergey Zaikov Date: Fri, 29 Aug 2003 16:20:01 +0400 Message-Id: <1062177684@p66.f5.n5022.z2.fidonet> Organization: =?KOI8-R?B?9c7J18Vw08HM2M7ZyiDawcnHcNnXwdTFzNggdi4yLjU=?= X-FTN-Flags: PVT K/S X-FTN-Msgid: 2:5022/5.66@fidonet 3f4f8b94 X-FTN-Pid: GED386 3.0.1-asa9 SR1 X-FTN-CHRS: IBMPC 2 X-FTN-Tearline: =?KOI8-R?B?ydPUz97OycvBICjhwtUtzNgt5sFwwcTWLCDBcMHC08vJyiDQz9zUKSA=?= X-FTN-Origin: =?KOI8-R?B?9c7J18Vw08HM2M7ZyiDawcnHcNnXwdTFzNggdi4yLjUoMjo1MDIyLzUuNjYp?= X-FTN-Via: 2:5022/5.66@FidoNet @20030829.172930.UTC+4 T-Mail 2607.NT X-FTN-Via: 2:5022/5 FTrack 3.1/W32 29 Aug 2003 17:40:24 UTC+0300 MIME-Version: 1.0 Content-Type: text/plain; charset="koi8-r" Subject: USB printer HP LJ 1300 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 29 Aug 2003 13:52:04 -0000 Hello, Questions@freebsd.Org!!! I have Hewlett-Packard LaserJet 1300 printer and uname -a FreeBSD acc.acc.tula.ru 4.8-RELEASE FreeBSD 4.8-RELEASE #3: Thu Aug 28 15:43:53 MSD 2003 acc107_3@acc.acc.tula.ru:/usr/obj/usr/src/sys/Z i386 My kernel have this lines for USB support: # USB support device uhci # UHCI PCI->USB interface device ohci # OHCI PCI->USB interface device usb # USB Bus (required) device ugen # Generic device ulpt # Printer Command "dmesg" about USB says: usb0: on uhci0 usb0: USB revision 1.0 uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 But the command "dmesg |grep hp" says: ugen0: Hewlett-Packard hp LaserJet 1300, rev 1.10/1.00, addr 2 Why this printer detected as "ugen", NOT "ulpt"? The command "usbdevs -v" says: Controller /dev/usb0: addr 1: self powered, config 1, UHCI root hub(0x0000), Intel(0x0000), rev 1.00 port 1 powered port 2 addr 2: self powered, config 1, hp LaserJet 1300(0x1017), Hewlett-Packard(0x03f0), rev 1.00 PS: One man send me this answer: FreeBSD don't recognized your printer as a printer A usual reason is that this test is not true (/sys/dev/usb/ulpt.c) (id->bInterfaceProtocol == UIPROTO_PRINTER_UNI || id->bInterfaceProtocol == UIPROTO_PRINTER_BI)) The result of investigation is that a "new" printers return id->bInterfaceProtocol equvivalent 3 (or 2 - I forget). A global cause is that ulpt.c was create according Printer Class spec: http://www.usb.org/developers/data/usbprn10.pdf that is outdate. Sergey. ... Знание - столь дpагоценная вещь, что его не зазоpно добывать из любого