Missing mandatory properties on volume.disc

Bug #74540 reported by Jason Gerard DeRose on 2006-12-05
8
Affects Status Importance Assigned to Milestone
hal (Ubuntu)
Undecided
Unassigned

Bug Description

I'm running under Edgy, hal 0.5.7.1-0ubuntu17.

Some mandatory volume.disc properties aren't availably for some discs. In particular, is_vcd, is_svcd, and is_videodvd are missing for blank CDR discs, audio CDs, and probably others that I haven't tested yet. Here are some examples:

Blank CDR:
volume.disc.type = cd_r
volume.disc.has_audio = False
volume.disc.has_data = False
volume.disc.is_vcd: No property
volume.disc.is_svcd: No property
volume.disc.is_videodvd: No property
volume.disc.is_appendable = False
volume.disc.is_blank = True
volume.disc.is_rewritable = False

Audio CD:
volume.disc.type = cd_rom
volume.disc.has_audio = True
volume.disc.has_data = False
volume.disc.is_vcd: No property
volume.disc.is_svcd: No property
volume.disc.is_videodvd: No property
volume.disc.is_appendable = False
volume.disc.is_blank = False
volume.disc.is_rewritable = False

Video DVD:
volume.disc.type = dvd_rom
volume.disc.has_audio = False
volume.disc.has_data = True
volume.disc.is_vcd = False
volume.disc.is_svcd = False
volume.disc.is_videodvd = True
volume.disc.is_appendable = False
volume.disc.is_blank = False
volume.disc.is_rewritable = False

Tags: hal Edit Tag help
Mike Dahlgren (dahlgren) wrote :

Since there have been no updates on this bug and edgy is no longer supported, I was wondering if this is still an issue or can you reproduce it with a newer release?

 Thanks,
     ~ Mike

Jason Gerard DeRose (jderose) wrote :

This same bug is still present under Hardy, hal 0.5.11~rc2-1ubuntu8.2.

I just re-ran my test on 7 different disc and it failed on 4 of them. The is_vcd, is_svcd, and is_videodvd properties are missing on audio CDs, blank CDR, blank CDRW, and blank DVDR.

Maybe I'm misunderstanding what "Mandatory" means in the HAL specification, but these missing properties make the API more difficult to use than it should be. I originally encountered this problem working on my DVD ripper (https://launchpad.net/kungfu), for which all I need to check is the is_videodvd property. Unless the check is wrapped in a try/except, my ripper crashes when certain discs are inserted.

I know this is kind of nit-picking, but it would be nice if it were fixed. If I have a chance, I'll take a look at it this weekend, but I'm totally unfamiliar with the HAL source, so no promises. ;)

Here is the test results:

# Audio CD: Fail
volume.disc.has_audio = 1
volume.disc.has_data = 0
volume.disc.is_vcd: No property
volume.disc.is_svcd: No property
volume.disc.is_videodvd: No property
volume.disc.is_appendable = 0
volume.disc.is_blank = 0
volume.disc.is_rewritable = 0
volume.disc.capacity = 511047680
volume.disc.type = cd_rom

# Video DVD: Okay
volume.disc.has_audio = 0
volume.disc.has_data = 1
volume.disc.is_vcd = 0
volume.disc.is_svcd = 0
volume.disc.is_videodvd = 1
volume.disc.is_appendable = 0
volume.disc.is_blank = 0
volume.disc.is_rewritable = 0
volume.disc.capacity = 8318572544
volume.disc.type = dvd_rom

# Data CD: Okay
volume.disc.has_audio = 0
volume.disc.has_data = 1
volume.disc.is_vcd = 0
volume.disc.is_svcd = 0
volume.disc.is_videodvd = 0
volume.disc.is_appendable = 0
volume.disc.is_blank = 0
volume.disc.is_rewritable = 0
volume.disc.capacity = 735051776
volume.disc.type = cd_r

# Data DVD: Okay
volume.disc.has_audio = 0
volume.disc.has_data = 1
volume.disc.is_vcd = 0
volume.disc.is_svcd = 0
volume.disc.is_videodvd = 0
volume.disc.is_appendable = 0
volume.disc.is_blank = 0
volume.disc.is_rewritable = 0
volume.disc.capacity = 964493312
volume.disc.type = dvd_r

# Blank CDR: Fail
volume.disc.has_audio = 0
volume.disc.has_data = 0
volume.disc.is_vcd: No property
volume.disc.is_svcd: No property
volume.disc.is_videodvd: No property
volume.disc.is_appendable = 0
volume.disc.is_blank = 1
volume.disc.is_rewritable = 0
volume.disc.capacity = 4706074624
volume.disc.type = dvd_r

# Blank CDRW: Fail
volume.disc.has_audio = 0
volume.disc.has_data = 0
volume.disc.is_vcd: No property
volume.disc.is_svcd: No property
volume.disc.is_videodvd: No property
volume.disc.is_appendable = 0
volume.disc.is_blank = 1
volume.disc.is_rewritable = 1
volume.disc.capacity = 735051776
volume.disc.type = cd_rw

# Blank DVDR: Fail
volume.disc.has_audio = 0
volume.disc.has_data = 0
volume.disc.is_vcd: No property
volume.disc.is_svcd: No property
volume.disc.is_videodvd: No property
volume.disc.is_appendable = 0
volume.disc.is_blank = 1
volume.disc.is_rewritable = 0
volume.disc.capacity = 4706074624
volume.disc.type = dvd_r

Chris Coulson (chrisccoulson) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. You reported this bug a while ago and there hasn't been any activity in it recently. We were wondering is this still an issue for you? Can you try with latest Ubuntu release? If it is still an issue, please attach the output of lshal to this bug report.

Thanks in advance.

Changed in hal:
status: New → Incomplete
Scott Howard (showard314) wrote :

We are closing this bug report because it lacks the information we need to investigate the problem, as described in the previous comments. Please reopen it if you can give us the missing information, and don't hesitate to submit bug reports in the future. To reopen the bug report you can click on the current status, under the Status column, and change the Status back to "New". Thanks again!

Changed in hal (Ubuntu):
status: Incomplete → Invalid
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers