kern/115232: [ata] Audio CD tracks not displayed properly by atapi driver

Marc Fonvieille blackend at FreeBSD.ORG
Wed Aug 11 08:23:08 UTC 2010


On Tue, Aug 10, 2010 at 12:28:22PM +0200, Oliver Fromme wrote:
> Yuri <yuri at rawbw.com> wrote:
>  > Could you check if:
>  > > # dd if=/dev/acd0 of=/dev/null count=1
>  > > 
>  > > does the trick as mentioned in the Handbook?
>  > > 
>  > > 
>  > > http://www.freebsd.org/cgi/query-pr.cgi?pr=115232
>  > 
>  > Yes, this trick works.
>  > But the problem with it is that this should be done without such 'dd'
>  > command. User should be relieved from issuing such meaningless command
> 
> It's not meaningless.  It causes the driver to actually
> look at the drive, re-read the TOC of the CD (there is no
> other way to find out if the CD was changed) and update
> the device nodes in /dev.
> 
>  > since system can do this automatically, avoiding user actions and
>  > possible user confusion.
>  > 
>  > Driver knows when disk is inserted
> 
> No, the driver does *not* know when a disk is inserted,
> unless it actually accesses the CD (caused by the "dd"
> command above, for example).
> 
> Automatic detection and notification is not supported by
> the hardware (unlike USB devices, for example).
> 
>  > (for example in Windows autorun executes when disk is inserted).
> 
> That only works because Windows actively polls the drives
> periodically, which is a bad hack, in my opinion.
>

I assume that a box with a KDE/GNOME thing using HAL should behave the
same as windows, am I right?

-- 
Marc


More information about the freebsd-bugs mailing list