From nobody@FreeBSD.org  Sat May 26 17:30:46 2007
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52])
	by hub.freebsd.org (Postfix) with ESMTP id 9F9DF16A400
	for <freebsd-gnats-submit@FreeBSD.org>; Sat, 26 May 2007 17:30:46 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [69.147.83.33])
	by mx1.freebsd.org (Postfix) with ESMTP id 919B313C484
	for <freebsd-gnats-submit@FreeBSD.org>; Sat, 26 May 2007 17:30:46 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id l4QHUkYl018415
	for <freebsd-gnats-submit@FreeBSD.org>; Sat, 26 May 2007 17:30:46 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id l4QHUkWa018414;
	Sat, 26 May 2007 17:30:46 GMT
	(envelope-from nobody)
Message-Id: <200705261730.l4QHUkWa018414@www.freebsd.org>
Date: Sat, 26 May 2007 17:30:46 GMT
From: hip0<roots_bg@yahoo.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: Problem with cdrecord when hald is running
X-Send-Pr-Version: www-3.0

>Number:         113036
>Category:       ports
>Synopsis:       sysutils/hal: Problem with cdrecord when hald is running
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    gnome
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat May 26 17:40:03 GMT 2007
>Closed-Date:    Sat Jun 23 18:32:43 GMT 2007
>Last-Modified:  Sat Jun 23 18:32:43 GMT 2007
>Originator:     hip0
>Release:        6.2-RELEASE
>Organization:
None
>Environment:
FreeBSD jericho.pcfreak 6.2-RELEASE-p4 FreeBSD 6.2-RELEASE-p4 #1: Tue May  1 21:21:32 EEST 2007     root@jericho.pcfreak:/usr/obj/usr/src/sys/JERICHO  i386

>Description:
I experienced problem when trying to record cd with k3b or gnome baker, misteriously when using burncd and cdrecord and generated iso with mkisofs I was able to burn cds. After googling around and discussing my problem in irc.freenode.net ##freebsd I come to the conclusion that the problem is because of  the hald. I tried to stop hald and tried to use k3b and gnomebaker and everything had worked perfect, so I did a small workaround a wrapper script to run k3b and gnome baker stopping hald before starting k3b and gnomebaker and running it again when the app is closed but this is a temporary solution I guess somebody which is more familiar with hald should take a look.
>How-To-Repeat:
Install FreeBSD 6.2-RELEASE, enable hald ( to be able to automount external devices ), try to burn a cd using k3b or gnomebaker, or try to blank a cd using cdrecord or burncd. 
>Fix:
A little workaround wrapper script to stop and start the hald when k3b and gnomebaker is started.
#!/usr/local/bin/bash
var1=$(ps ax | grep -i hald-runner | awk '{ print $5 }'|grep -v grep|grep -v bash);
if [ ${var1} ]; then
sudo /usr/local/etc/rc.d/hald stop
fi
sh -c "/usr/local/bin/k3b1"
while [ 1 ]; do
sleep 10;
var=$(ps ax | grep -i k3b1 | awk '{ print $5 }'|grep -v grep|grep -v bash);
if [ ! ${var} ]; then
sudo /usr/local/etc/rc.d/hald start
exit 1
fi
done


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->freebsd-ports-bugs 
Responsible-Changed-By: remko 
Responsible-Changed-When: Sun May 27 13:41:22 UTC 2007 
Responsible-Changed-Why:  
Reassign to ports team. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=113036 
Responsible-Changed-From-To: freebsd-ports-bugs->gnome 
Responsible-Changed-By: miwi 
Responsible-Changed-When: Tue May 29 15:24:55 UTC 2007 
Responsible-Changed-Why:  
Over to maintainer. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=113036 
State-Changed-From-To: open->closed 
State-Changed-By: marcus 
State-Changed-When: Sat Jun 23 18:30:16 UTC 2007 
State-Changed-Why:  
This is a bug in atapicam that was fixed in RELENG_6.  See 
http://lists.freebsd.org/pipermail/freebsd-stable/2007-April/034556.html for 
more details.  A patch is available at 
http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/dev/ata/atapi-cam.c.diff?r1=1.42.2.3;r2=1.42.2.4 . 

http://www.freebsd.org/cgi/query-pr.cgi?pr=113036 
>Unformatted:
