Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#11699 closed Bug Report - General (Invalid)

Eject fails with non-standard DVD device

Reported by: Göran Uddeborg <goeran@…> Owned by:
Priority: minor Milestone: unknown
Component: MythTV - DVD Playback Version: 0.26
Severity: medium Keywords:
Cc: Ticket locked: no

Description

We have been running MythTV 0.26.0 on Fedora 17 box for a while. Recently, we added a DVD player to the box.

At first DVD playback didn't work at all. We figured out this was because Fedora creates the device as /dev/sr0 with a soft link from /dev/cdrom, but MythTV looks for a name /dev/dvd.

We added manually a /dev/dvd link, and then things worked fine.

That link will not be persistent, since /dev is populated by udev on each boot. So after some investigation, we realized there was a setting for this, which we changed from "default" to "/dev/cdrom". (DVDDeviceLocation in the settings table in the database.)

After that playback works fine without the manually added link. But the eject entry says there is no device. Ejecting worked fine with the manually added link.

This is a bug, isn't it? The eject function should use the device configured for DVD playback, right?

Attachments (1)

mythfrontend.log.ticket11699.xz (3.1 KB) - added by Göran Uddeborg <goeran@…> 11 years ago.
Output from mythfrontend when run with: -v media --loglevel=debug

Download all attachments as: .zip

Change History (8)

comment:1 Changed 11 years ago by J.Pilk@…

This probably ought to be aired first on the users' list, but it may be relevant that Frontend > Setup > Media Settings defines a DVD device in at least two places; in Videos Settings > Player Settings and in Archive Files Settings. You seem to be writing direct to the database.

comment:2 Changed 11 years ago by Göran Uddeborg <goeran@…>

I did change the setting from the GUI, but I followed what happened in the database. And I mentioned the field I saw change to avoid misunderstandings just in case there might be multiple settings. Which apparently there is. :-)

I've now changed the setting in "Archive File Settings" too to say "/dev/cdrom". It didn't make any difference as far as ejecting is concerned.

comment:3 Changed 11 years ago by peper03

Have you perhaps instructed MediaMonitor? to ignore /dev/cdrom (Setup->General->Media Monitor->Ignore devices)? That's the only way so far that I've managed to reproduce what you're seeing.

Could you provide traces from MythFrontend by running 'mythfrontend -v media --loglevel=debug'? (without the quotes).

The setting in 'Archive File Settings' is only for the MythArchive? plugin when you want to burn a DVD.

Changed 11 years ago by Göran Uddeborg <goeran@…>

Output from mythfrontend when run with: -v media --loglevel=debug

comment:4 Changed 11 years ago by Göran Uddeborg <goeran@…>

The "ignore units" line in "media monitor" is empty. (I'm running in Swedish, so I'm guessing a bit what the English labels might be. But I guess you understand what I mean.)

I've ran mythfrontend with the debugging flags you recommended, tried to eject the file, and tried to eject the DVD tray, so we got to the place where we get the message about no devices.

For completeness I should add that since I filed this report we have upgraded the box to Fedora 19. Fedora 17 has reached EOL. This still means MythTV 0.26.0, and the behaviour is the same as far as ejecting is concerned.

comment:5 Changed 11 years ago by peper03

Resolution: Invalid
Status: newclosed

These lines:

2013-08-24 21:25:56.005642 A  MMUnix:CheckMountable: DBus interface error: The name org.freedesktop.UDisks was not provided by any .service files
2013-08-24 21:25:56.507163 A  MMUnix:CheckMountable: DBus interface error: The name org.freedesktop.UDisks was not provided by any .service files
2013-08-24 21:25:57.008659 A  MMUnix:CheckMountable: DBus interface error: The name org.freedesktop.UDisks was not provided by any .service files
2013-08-24 21:25:57.510179 A  MMUnix:CheckMountable: DBus interface error: The name org.freedesktop.UDisks was not provided by any .service files
2013-08-24 21:25:58.011594 A  MMUnix:CheckMountable: DBus interface error: The name org.freedesktop.UDisks was not provided by any .service files

seem to indicate that the UDisks package is not installed. Without this package, the media monitor (which is what performs the eject) cannot detect new media.

After installing the UDisks package, you can probably set the DVD device back to 'default'. Installing the package should also make MythFrontend start up quicker (see also http://www.gossamer-threads.com/lists/mythtv/users/514400)

comment:6 Changed 11 years ago by Göran Uddeborg <goeran@…>

Right, udisks2 was installed but not udisks. And after installing udisks too, MythFrontend can indeed eject again. Thanks for the help! And sorry for reporting an installation mistake as a bug.

(I'll contact the Fedora packager and ask if maybe MythTV package should require the udisks package, to avoid mistakes like this.)

comment:7 Changed 11 years ago by Göran Uddeborg <goeran@…>

I tried to set the device back to "default" too, but then I couldn't play any DVDs any more. (I could still eject.) That might be some other misconfiguration on my side though, I'll look a bit more at it.

Note: See TracTickets for help on using tickets.