Hal missdetect my cd burner
Sebastien ESTIENNE
sebastien.estienne at gmail.com
Fri Nov 18 17:25:57 PST 2005
hello,
thanx for helping
I noticed today that my mail didn't appear in the ml
Martin Pitt wrote:
> Hi Sebastien!
>
> Sebastien ESTIENNE [2005-11-17 0:53 +0100]:
>
>>hello
>>i have noticed a regression between 0.3 and 0.5
>
>
> 0.3? 0.4.7 you mean?
it was working in warty, and not in hoary, neither breezy
>
>
>> 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.hotpluggable = false (bool)
>> block.device = '/dev/scd0' (string)
>
>
> Let's see what your kernel says to this. Can you please send the
> output of
>
> python cdcaps.py /dev/scd0
the output is:
CDO_USE_FFLAGS returned 13
got drive capabilities: 381fe7
got disc status: 1
and got disc status is 0 when a blank cd is inserted
>
> ?
>
> Thanks,
>
> Martin
>
>
>
> ------------------------------------------------------------------------
>
> #!/usr/bin/python
> import fcntl
> import os
> import CDROM
> import sys
>
> if len(sys.argv) != 2:
> print "Usage:", sys.argv[0], "<device>"
> sys.exit(0)
>
> f=os.open(sys.argv[1], os.O_RDONLY|os.O_NONBLOCK)
>
> r = fcntl.ioctl(f, CDROM.CDROM_SET_OPTIONS, CDROM.CDO_USE_FFLAGS)
> print "CDO_USE_FFLAGS returned", r
>
> cap = fcntl.ioctl(f, CDROM.CDROM_GET_CAPABILITY, 0)
>
> print "got drive capabilities: %x" % cap
> if cap & CDROM.CDC_DVD_RAM:
> print "CDC_DVD_RAM support"
> if cap & CDROM.CDC_DVD_R:
> print "CDC_DVD_R support"
> if cap & CDROM.CDC_DVD:
> print "CDC_DVD support"
> if cap & CDROM.CDC_CD_RW:
> print "CDC_CD_RW support"
> if cap & CDROM.CDC_CD_R:
> print "CDC_CD_R support"
>
> stat = fcntl.ioctl(f, CDROM.CDROM_DISC_STATUS, 0)
> print "got disc status:", stat
>
More information about the hal
mailing list