From owner-freebsd-ports@FreeBSD.ORG Tue Dec 26 18:27:11 2006 Return-Path: X-Original-To: freebsd-ports@freebsd.org Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 7393F16A407 for ; Tue, 26 Dec 2006 18:27:11 +0000 (UTC) (envelope-from jylefort@FreeBSD.org) Received: from mirapoint3.brutele.be (mirapoint3.brutele.be [212.68.199.148]) by mx1.freebsd.org (Postfix) with ESMTP id E4FCA13C47C for ; Tue, 26 Dec 2006 18:27:10 +0000 (UTC) (envelope-from jylefort@FreeBSD.org) Received: from host-212-68-244-81.brutele.be (host-212-68-244-81.brutele.be [212.68.244.81]) by mirapoint3.brutele.be (MOS 3.7.5a-GA) with ESMTP id ACE98146; Tue, 26 Dec 2006 19:14:52 +0100 (CET) Received: from jsite.lefort.net (jsite.lefort.net [192.168.1.2]) by gateway.lefort.net (Postfix) with ESMTP id C2D83550D; Tue, 26 Dec 2006 19:14:51 +0100 (CET) Received: from jsite.lefort.net (localhost [127.0.0.1]) by jsite.lefort.net (Postfix) with SMTP id 5FCF22E; Tue, 26 Dec 2006 19:14:51 +0100 (CET) Date: Tue, 26 Dec 2006 19:14:43 +0100 From: Jean-Yves Lefort To: Matt Dawson Message-Id: <20061226191443.c2bd29fa.jylefort@FreeBSD.org> In-Reply-To: <200612261506.47387.matt@chronos.org.uk> References: <200612261506.47387.matt@chronos.org.uk> X-Mailer: Sylpheed running on FreeBSD Mime-Version: 1.0 Content-Type: multipart/signed; protocol="application/pgp-signature"; micalg="PGP-SHA1"; boundary="Signature=_Tue__26_Dec_2006_19_14_43_+0100_auPm9Q_ThRc_W4ur" X-Junkmail-Status: score=10/50, host=mirapoint3.brutele.be X-Junkmail-SD-Raw: score=unknown, refid=str=0001.0A090205.4591651F.00B1,ss=1,fgs=0, ip=212.68.244.81, so=2006-05-09 23:27:51, dmn=5.2.125/2006-10-10 Cc: freebsd-ports@freebsd.org Subject: Re: dbus, hal, atapicam and cdrecord X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 26 Dec 2006 18:27:11 -0000 --Signature=_Tue__26_Dec_2006_19_14_43_+0100_auPm9Q_ThRc_W4ur Content-Type: text/plain; charset=US-ASCII Content-Disposition: inline Content-Transfer-Encoding: 7bit On Tue, 26 Dec 2006 15:06:46 +0000 Matt Dawson wrote: > sorry if this has been covered before (please direct me to the thread if it > has), but I'm really struggling. cdrecord refuses to work properly with hal > and dbus enabled. It locks the whole system tight with messages like these: > > Dec 25 22:26:17 laptop64 kernel: acd0: WARNING - TEST_UNIT_READY taskqueue > timeout - completing request directly > Dec 25 22:26:23 laptop64 kernel: acd0: WARNING - TEST_UNIT_READY freeing > taskqueue zombie request > Dec 25 22:28:17 laptop64 kernel: acd0: WARNING - PREVENT_ALLOW taskqueue > timeout - completing request directly > Dec 25 22:28:17 laptop64 kernel: acd0: WARNING - PREVENT_ALLOW freeing > taskqueue zombie request > > All I can do is hard reset the system. > > System specifics: > > laptop64 ~ $ uname -a > FreeBSD laptop64 6.1-RELEASE-p11 FreeBSD 6.1-RELEASE-p11 #5: Tue Dec 26 > 10:08:56 GMT 2006 > md001@central.local.chronos.org.uk:/usr/obj/usr/src/sys/LAPTOP64 i386 > > laptop64 ~ $ lshal | most > Dumping 54 device(s) from the Global Device List: > ------------------------------------------------- > [...] > udi = '/org/freedesktop/Hal/devices/ide_host_0' > ide_host.number = 0 (0x0) (int) > info.bus = 'ide_host' (string) > freebsd.unit = 0 (0x0) (int) > freebsd.driver = 'ata' (string) > info.product = 'ATA channel 0' (string) > info.udi = '/org/freedesktop/Hal/devices/ide_host_0' (string) > info.parent = '/org/freedesktop/Hal/devices/pci_1002_4376' (string) > > udi = '/org/freedesktop/Hal/devices/ide_host_0_scsi_host' > info.udi = '/org/freedesktop/Hal/devices/ide_host_0_scsi_host' (string) > info.product = 'SCSI Host Adapter' (string) > scsi_host.host = 0 (0x0) (int) > info.bus = 'scsi_host' (string) > info.parent = '/org/freedesktop/Hal/devices/ide_host_0' (string) > [...] > udi = '/org/freedesktop/Hal/devices/ide_host_1' > ide_host.number = 1 (0x1) (int) > info.bus = 'ide_host' (string) > freebsd.unit = 1 (0x1) (int) > freebsd.driver = 'ata' (string) > info.product = 'ATA channel 1' (string) > info.udi = '/org/freedesktop/Hal/devices/ide_host_1' (string) > info.parent = '/org/freedesktop/Hal/devices/pci_1002_4376' (string) > > udi = '/org/freedesktop/Hal/devices/ide_host_1_scsi_host' > info.udi = '/org/freedesktop/Hal/devices/ide_host_1_scsi_host' (string) > info.product = 'SCSI Host Adapter' (string) > scsi_host.host = 1 (0x1) (int) > info.bus = 'scsi_host' (string) > info.parent = '/org/freedesktop/Hal/devices/ide_host_1' (string) > > udi = '/org/freedesktop/Hal/devices/ide_host_1_scsi_host_scsi_device_lun0' > info.udi > = '/org/freedesktop/Hal/devices/ide_host_1_scsi_host_scsi_device_lun0 > ' (string) > scsi.type = 'cdrom' (string) > scsi.model = 'DVD-RW GWA-4082N' (string) > scsi.vendor = 'HL-DT-ST' (string) > info.vendor = 'HL-DT-ST' (string) > info.product = 'SCSI Device' (string) > scsi.lun = 0 (0x0) (int) > scsi.target = 0 (0x0) (int) > scsi.bus = 1 (0x1) (int) > scsi.host = 1 (0x1) (int) > info.bus = 'scsi' (string) > info.parent = '/org/freedesktop/Hal/devices/ide_host_1_scsi_host' (string) > > udi = '/org/freedesktop/Hal/devices/temp/48' > info.udi = '/org/freedesktop/Hal/devices/ignored-device' (string) > info.ignore = true (bool) > storage.lun = 0 (0x0) (int) > storage.firmware_revision = 'CB03' (string) > info.product = 'Ignored Device' (string) > info.vendor = 'HL-DT-ST' (string) > storage.cdrom.write_speed = 0 (0x0) (int) > storage.cdrom.read_speed = 0 (0x0) (int) > storage.cdrom.support_media_changed = false (bool) > storage.cdrom.hddvdrw = false (bool) > storage.cdrom.hddvdr = false (bool) > storage.cdrom.hddvd = false (bool) > storage.cdrom.bdre = false (bool) > storage.cdrom.bdr = false (bool) > storage.cdrom.bd = false (bool) > storage.cdrom.dvdplusrwdl = false (bool) > storage.cdrom.dvdplusrdl = false (bool) > storage.cdrom.dvdplusrw = false (bool) > storage.cdrom.dvdplusr = false (bool) > storage.cdrom.dvdram = false (bool) > storage.cdrom.dvdrw = false (bool) > storage.cdrom.dvdr = false (bool) > storage.cdrom.dvd = false (bool) > storage.cdrom.cdrw = false (bool) > storage.cdrom.cdr = false (bool) > storage.vendor = 'HL-DT-ST' (string) > storage.model = 'DVD-RW GWA-4082N' (string) > storage.physical_device > = '/org/freedesktop/Hal/devices/ide_host_1_scsi_host_s > csi_device_lun0' (string) > storage.no_partitions_hint = true (bool) > storage.automount_enabled_hint = true (bool) > storage.media_check_enabled = true (bool) > storage.hotpluggable = false (bool) > storage.requires_eject = true (bool) > storage.removable = true (bool) > storage.drive_type = 'cdrom' (string) > storage.bus = 'scsi' (string) > block.minor = 83 (0x53) (int) > block.major = 0 (0x0) (int) > block.device = '/dev/cd0' (string) > info.bus = 'block' (string) > freebsd.unit = 0 (0x0) (int) > freebsd.driver = 'cd' (string) > info.parent > = '/org/freedesktop/Hal/devices/ide_host_1_scsi_host_scsi_device_l > un0' (string) > > laptop64 ~ $ ls /var/db/pkg | grep cdrtools > cdrtools-2.01_5 > laptop64 ~ $ ls /var/db/pkg | grep hal- > hal-0.5.8.20061217 > > Burncd works perfectly and cdrecord works if I disable dbus, polkit and hal. > This is across all my systems, so it's not limited to this laptop. if it > matters, I've used both K3B and cdrecord from the command line with the same > results. > > Any ideas/things I've missed? I am in the operator group and cdrecord is suid > and owned by root. Both acd0 and cd0 are not in fstab and are read/write for > my user, pass and xpt are both read/write and hal works fine with USB pen > drives and CDs. It is only cdrecord that causes problems. > > I have recompiled cdrtools after enabling the hardware abstraction layer just > in case, but no change. Any help would be appreciated. I think the problem is that HAL is talking to your CD-ROM via the ATAPI device /dev/acd0 while, at the same time, cdrecord is trying to access it via the atapicam device /dev/cd0. This is not a good idea, as mentioned in the BUGS section of atapicam(4). Try to setup HAL so that it uses the atapicam device for talking to your CD-ROM (see /usr/local/share/doc/hal-0.5.8/README). -- Jean-Yves Lefort jylefort@FreeBSD.org http://lefort.be.eu.org/ --Signature=_Tue__26_Dec_2006_19_14_43_+0100_auPm9Q_ThRc_W4ur Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (FreeBSD) iD8DBQFFkWabyzD7UaO4AGoRAqDjAJ4uUh35FQVKnShpoyATmdppeVmcQACePSD+ vqDjGsBB3P+XukYUHXa3/W0= =3zHw -----END PGP SIGNATURE----- --Signature=_Tue__26_Dec_2006_19_14_43_+0100_auPm9Q_ThRc_W4ur--