From owner-freebsd-multimedia Tue Mar 18 11:55:45 2003 Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C070237B401 for ; Tue, 18 Mar 2003 11:55:43 -0800 (PST) Received: from sccrmhc01.attbi.com (sccrmhc01.attbi.com [204.127.202.61]) by mx1.FreeBSD.org (Postfix) with ESMTP id D3D4243F75 for ; Tue, 18 Mar 2003 11:55:42 -0800 (PST) (envelope-from julian@elischer.org) Received: from interjet.elischer.org (12-232-168-4.client.attbi.com[12.232.168.4]) by sccrmhc01.attbi.com (sccrmhc01) with ESMTP id <2003031819554100100e9tuoe>; Tue, 18 Mar 2003 19:55:41 +0000 Received: from localhost (localhost.elischer.org [127.0.0.1]) by InterJet.elischer.org (8.9.1a/8.9.1) with ESMTP id LAA80006; Tue, 18 Mar 2003 11:55:40 -0800 (PST) Date: Tue, 18 Mar 2003 11:55:39 -0800 (PST) From: Julian Elischer To: "Douglas K. Rand" Cc: grip-users@lists.sourceforge.net, freebsd-multimedia@freebsd.org Subject: Re: Ejecting an empty drive In-Reply-To: <87n0jt72yq.wl@bemidji.meridian-enviro.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-multimedia@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org I found this muself.. if it's scsi you have the option of camcontrol which allows you to open an empty drive (maybe you can do it with an atapi drive too with atapi-cam code..) problem is that cdcontrol won't even start up if there is no TOC to read.. On Mon, 17 Mar 2003, Douglas K. Rand wrote: > I'm having a mild problem with Grip 3.0.5 on FreeBSD 4.7: It won't > open the CD-ROM try if the drive is empty. I just start grip without > having a disk in the CD-ROM drive, and the eject button doesn't > work. If I start grip with a disk in the CD-ROM drive, the eject > button works. > > I've tried this with faulty_eject set to both 0 and 1, with no > change. > > I've traced the source, and the only difference seems to be that if > grip thinks there is a disk in the drive, it runs CDStop before > CDEject. So, I added a CDStop call at line 1211 and 1215 of cdplay.c, > and that didn't change anything. > > Working with gdb shows that in both cases (empty and non-empty drives) > CDEject executes: > > if(ioctl(disc->cd_desc,CDIOCALLOW)<0) > printf(_("Unlock failed: %d"),errno); > > if(ioctl(disc->cd_desc,CDIOCEJECT)<0) { > printf(_("CDIOCEJECT")); > return FALSE; > } > > I'm kinda stumped right now. > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-multimedia" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-multimedia" in the body of the message