From owner-freebsd-questions Fri Sep 13 6:53:26 2002 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 8F19C37B400 for ; Fri, 13 Sep 2002 06:53:17 -0700 (PDT) Received: from hotmail.com (f15.pav1.hotmail.com [64.4.31.15]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2C37143E9E for ; Fri, 13 Sep 2002 06:53:17 -0700 (PDT) (envelope-from evantd@hotmail.com) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Fri, 13 Sep 2002 06:53:16 -0700 Received: from 12.229.158.71 by pv1fd.pav1.hotmail.msn.com with HTTP; Fri, 13 Sep 2002 13:53:16 GMT X-Originating-IP: [12.229.158.71] From: "Evan Dower" To: freebsd-questions@freebsd.org Subject: Re: Printer Device Busy Date: Fri, 13 Sep 2002 06:53:16 -0700 Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: X-OriginalArrivalTime: 13 Sep 2002 13:53:16.0976 (UTC) FILETIME=[E93FDB00:01C25B2C] Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Thank you, I was wondering what the appropriate waiting time was for forwarding problems to the hackers list. I actually posted one with the subject lpt0 Device Busy a few days ago and got no reply, so perhaps I should go ahead and post to hackers. I will also check for other lists. Thanks again, Evan Dower >From: "Brian T. Schellenberger" >To: "Evan Dower" , freebsd-questions@freebsd.org >Subject: Re: Printer Device Busy >Date: Fri, 13 Sep 2002 01:12:28 -0400 >MIME-Version: 1.0 >Received: from ncsmtp02.southeast.rr.com ([24.93.67.83]) by >mc4-f8.law16.hotmail.com with Microsoft SMTPSVC(5.0.2195.5600); Fri, 13 Sep >2002 00:26:11 -0700 >Received: from mail4.nc.rr.com (fe4 [24.93.67.51])by >ncsmtp02.southeast.rr.com (8.12.5/8.12.2) with ESMTP id g8D5DNCL013639;Fri, >13 Sep 2002 01:13:23 -0400 (EDT) >Received: from this.is.fake.com ([24.162.238.30]) by mail4.nc.rr.com with >Microsoft SMTPSVC(5.5.1877.757.75); Fri, 13 Sep 2002 01:12:52 -0400 >Received: by this.is.fake.com (Postfix, from userid 111)id 9968FBA12; Fri, >13 Sep 2002 01:12:29 -0400 (EDT) >User-Agent: KMail/1.4.2 >References: >In-Reply-To: >Message-Id: <200209130112.28950.bts@babbleon.org> >Return-Path: bts@fake.com >X-OriginalArrivalTime: 13 Sep 2002 07:26:11.0781 (UTC) >FILETIME=[D5F45750:01C25AF6] > > > > >On Thursday 12 September 2002 09:27 pm, Evan Dower wrote: >| Please, please, please respond with something, even if it's to tell >| me that this should go to a different list, maybe stable or hackers. >| Please help. Thanks, >| Evan Dower > >Try to avoid top-posting; it's against the "rules" on this list. I >don't even really think that rule makes that much sense, but "when in >Rome," and consistency is a virtue. > >Also, in the flood of issues here, I for one missed your post the first >time. Next time you might want to wait a couple days, though; it's all >volunteer support here and sometimes it takes a while. > >As for your problem. "device busy" doesn't really mean "device busy"; it >really means "something's wrong and I'm not sure what." The kernel >uses "device busy" as a "junk" message when it can't communicate with >the device but the device isn't telling it more specifically what's >wrong. (At least I'm pretty sure that's the case based on behavior >I've seen; no kernel hacker I.) > >So really the message should probably say "unable to communicate with >device" or something to that effect. > >As for the actual problem, I have no idea. But would, I believe, say >something like "device open" if it was busy in the sense of being >already open; rather, it means that the kernel thinks that the physical >port is too busy to talk to it. > >I think. > >And *any* time you post to questions and you "stump the band" (after a >decent interval like a couple of days), it's "fair", IMHO, to take the >query over to -hackers. > >I think that there's a list for devices, too . . . you could check. >Queries are always more likely to be answered on "specialized" lists if >you can find one that fits. > > >| >| >| From: "Evan Dower" >| >| >To: freebsd-questions@freebsd.org >| >Subject: Printer Device Busy >| >Date: Thu, 12 Sep 2002 10:48:37 -0700 >| >MIME-Version: 1.0 >| >X-Originating-IP: [12.229.158.71] >| >Received: from mc3-f29.law16.hotmail.com ([65.54.236.164]) by >| >mc3-s15.law16.hotmail.com with Microsoft SMTPSVC(5.0.2195.5600); >| > Thu, 12 Sep 2002 10:48:55 -0700 >| >Received: from mx2.freebsd.org ([216.136.204.119]) by >| >mc3-f29.law16.hotmail.com with Microsoft SMTPSVC(5.0.2195.5600); >| > Thu, 12 Sep 2002 10:48:54 -0700 >| >Received: from hub.freebsd.org (hub.FreeBSD.org [216.136.204.18])by >| >mx2.freebsd.org (Postfix) with ESMTPid 0EAC35571E; Thu, 12 Sep 2002 >| >10:48:44 -0700 (PDT)(envelope-from >| > owner-freebsd-questions@FreeBSD.ORG) Received: by hub.freebsd.org >| > (Postfix, from userid 538)id 7E16C37B401; Thu, 12 Sep 2002 10:48:42 >| > -0700 (PDT) >| >Received: from localhost (localhost [127.0.0.1])by hub.freebsd.org >| >(Postfix) with SMTPid 5811E2E800D; Thu, 12 Sep 2002 10:48:42 -0700 >| > (PDT) Received: by hub.freebsd.org (bulk_mailer v1.12); Thu, 12 Sep >| > 2002 10:48:42 -0700 >| >Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125])by >| >hub.freebsd.org (Postfix) with ESMTP id 301B237B400for >| >; Thu, 12 Sep 2002 10:48:39 -0700 >| > (PDT) Received: from hotmail.com (f101.pav1.hotmail.com >| > [64.4.31.101])by mx1.FreeBSD.org (Postfix) with ESMTP id >| > E59A643E6Efor >| >; Thu, 12 Sep 2002 10:48:38 -0700 >| >(PDT)(envelope-from evantd@hotmail.com) >| >Received: from mail pickup service by hotmail.com with Microsoft >| > SMTPSVC; Thu, 12 Sep 2002 10:48:38 -0700 >| >Received: from 12.229.158.71 by pv1fd.pav1.hotmail.msn.com with >| > HTTP;Thu, 12 Sep 2002 17:48:37 GMT >| >Delivered-To: freebsd-questions@freebsd.org >| >Message-ID: >| >X-OriginalArrivalTime: 12 Sep 2002 17:48:38.0900 (UTC) >| >FILETIME=[A028B340:01C25A84] >| >Sender: owner-freebsd-questions@FreeBSD.ORG >| >List-ID: >| >List-Archive: (Web Archive) >| >List-Help: (List >| > Instructions) List-Subscribe: >| > >| >List-Unsubscribe: >| >| >s> X-Loop: FreeBSD.ORG >| >Precedence: bulk >| >Return-Path: owner-freebsd-questions@FreeBSD.ORG >| > >| >I am trying to install a printer (Epson Stylus Color 740), but >| > FreeBSD claims that the device (/dev/lpt0) is busy. I began with >| > 4.6-RELEASE but upgrade to -STABLE to see if that would fix the >| > problem (it didn't). My system is: >| >$ uname -a >| >FreeBSD lojak.u.washington.edu 4.7-PRERELEASE FreeBSD 4.7-PRERELEASE >| > #0: Thu Sep 12 00:21:06 PDT 2002 >| >root@lojak.u.washington.edu:/usr/obj/usr/src/sys/CUSTOM i386 >| >I even tried using the GENERIC kernel to no avail. I'm fairly >| > certain my kernel is set up properly anyway since the printer is >| > detected at startup. $ dmesg >| >... >| >ppc0: at port 0x378-0x37f irq 7 on isa0 >| >ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode >| >ppc0: FIFO with 16/16/9 bytes threshold >| >ppbus0: IEEE1284 device found /NIBBLE >| >Probing for PnP devices on ppbus0: >| >ppbus0: PRINTER ESCPL2,BDC,D4 >| >lpt0: on ppbus0 >| >lpt0: Interrupt-driven port >| >... >| >Yet still, if I try to do a test print, nothing happens. >| ># echo test > /dev/lpt0 >| >/dev/lpt0: Device busy. >| >In fact, even just trying to get status info does the same thing. >| ># cat /dev/lpt0 >| >cat: /dev/lpt0: Device busy >| >So the device is busy. Certainly, a program must be bogarting it. >| > Yet fstat begs to differ. >| >$ fstat /dev/lpt0 >| >USER CMD PID FD MOUNT INUM MODE SZ|DV >| > R/W NAME That's an empty list of open files named /dev/lpt0. So >| > maybe fstat is not working as I would expect. So I'll stat >| > /dev/lpt0 to get its INODE and grep fstat for it. >| >$ stat /dev/lpt0 >| > File: "/dev/lpt0" >| > Size: 0 Allocated Blocks: 0 Filetype: Character Device >| > Mode: (0600/crw-------) Uid: (0/root) Gid: (0/wheel) >| >Device: 160768 Inode: 753 Links: 1 Device Type: 4096 >| >Access: Thu Sep 12 01:01:20 2002 >| >Modify: Thu Sep 12 10:44:59 2002 >| >Change: Thu Sep 12 10:44:59 2002 >| > >| >$ fstat | grep 753 >| >I swear fstat really does list open files! >| >$ fstat | wc >| > 557 5040 38580 >| >$ fstat /dev/dsp >| >USER CMD PID FD MOUNT INUM MODE SZ|DV >| > R/W NAME evantd esd 32539 8 / 738 crw-rw-rw- >| > dsp0.0 w /dev/dsp >| >$ fstat | grep 738 >| >evantd esd 32539 8 / 738 crw-rw-rw- dsp0.0 w >| >So fstat does work (both ways), but I still see no reason for lpt0 >| > to be busy. >| >Does anyone have any ideas? What else can make a device busy? >| >Thanks in advance, >| >Evan Dower >| > >| >_________________________________________________________________ >| >Send and receive Hotmail on your mobile device: >| > http://mobile.msn.com >| > >| > >| >To Unsubscribe: send mail to majordomo@FreeBSD.org >| >with "unsubscribe freebsd-questions" in the body of the message >| >| _________________________________________________________________ >| MSN Photos is the easiest way to share and print your photos: >| http://photos.msn.com/support/worldwide.aspx >| >| >| To Unsubscribe: send mail to majordomo@FreeBSD.org >| with "unsubscribe freebsd-questions" in the body of the message > >-- >Brian, the man from Babble-On . . . . bts@babbleon.org (personal) _________________________________________________________________ Join the world’s largest e-mail service with MSN Hotmail. http://www.hotmail.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message