Bug 28023

Summary: manual eject of optical media results in immediate reload; second try works as expected
Product: Mageia Reporter: Frank Griffin <ftg>
Component: RPM PackagesAssignee: Mageia Bug Squad <bugsquad>
Status: RESOLVED FIXED QA Contact:
Severity: minor    
Priority: Low CC: lewyssmith, ouaurelien
Version: Cauldron   
Target Milestone: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Source RPM: kernel CVE:
Status comment:

Description Frank Griffin 2021-01-06 03:18:31 CET
I've been seeing this for several months now, but never got around to reporting it.

If you load an optical medium into a drive on a cauldron system and then press the EJECT button on the drive, the disk ejects but then immediately reloads.  If you then press EJECT again, the disk ejects and stays ejected.

This does not seem to happen if a program issues the EJECT request.  For instance, a k3b burn will generally eject the disk when it is done, and it stays ejected.

Since this behavior occurs with no application involved, assigning to kernel.  The DE is Plasma, if that turns out to be a factor.

This only seems to happen on desktop internal SATA optical drives where the drive supports the kernel (or whatever else) sending a command to the drive to close the tray.  It does not happen with USB DVD drives plugged in to laptops doing the same tasks; in those cases the drive ejects and stays ejected, probably because such drives don't support programmatic closing of the drive tray (it requires manual closing of the drive tray if that's what you want).
Comment 1 Lewis Smith 2021-01-06 21:29:57 CET
Well, I have jusr tried this on a desktop PC with ATAPI ? SATA optical drive under Xfce. After inserting a DVD, it (after a bit) popped a notification and opened a FM window showing the DVD contents. I ejected the DVD 3 different ways:
- clicking its eject icon in the FM LH pane
- right-clicking its desktop icon, eject
- manually on the PC
and each time, the DVD was ejected just once, & stayed that way.
I will try it under Plasma.
What about Mageia 7?

What you are reporting, Frank, is very trivial. One would (I would say should) normally eject a CD/DVD from within the sytem: as noted above, or from the application which is using it.
Can you say why what you report matters beyond an academic curiosity?

Status: NEW => UNCONFIRMED
Ever confirmed: 1 => 0
CC: (none) => lewyssmith

Comment 2 Frank Griffin 2021-01-06 21:57:01 CET
Hi Lewis,

I'm pretty sure this is Plasma-related, but it is a change of behavior.  I've changed the priority and severity accordingly.  It's basically just an annoyance.

Priority: Normal => Low
Severity: normal => minor

Comment 3 Lewis Smith 2021-01-07 21:48:32 CET
Well, here I am under Plasma via SDDM to be sure.
I inserted a DVD, and it popped a Plasma notification which I dismissed; so no application - even a file manager - got near it, it remained unmounted.

Ejecting it with the PC button did just that; out it came - & stayed out.

> It's basically just an annoyance
In the 'fault' you describe, can you say whether it happens:
- with the DVD unmounted, before any use
- with it mounted, but not otherwise used
- mounted, then unmounted (from desktop or FM), but not otherwise used
- mounted, used, unmounted (from desktop or FM)
In short, in what situation *does* it happen? A common or rare annoyance?
Comment 4 Frank Griffin 2021-01-07 22:18:44 CET
It happens with the DVD unmounted before any use.  It also happens with a Wine application used to read the DVD but which does not eject it at the end.

It does *not* happen with k3b, which ejects the disk by itself after a burn is complete.

My installs are finished off by mass installing a list of packages taken from the system being replaced, and I'm wondering if some conflict there is causing this as well as bug#28022 and bug#28024.  I'll do a fresh install and test all three of these before that final stage.  If it works there, I suspect it is still a bug, since all MGA packages should coexist without behavior like this, but it will be of much less significance.
Comment 5 Aurelien Oudelet 2021-01-13 14:45:45 CET
Same under Plasma
(Only task-plasma5-minimal installed for Plasma 5 desktop)

CD-audio: eject is OK
DVD: same for commercial and un-protected DVD.

I can't reproduce the behaviour with kernel-5.10.7

CC: (none) => ouaurelien

Comment 6 Aurelien Oudelet 2021-01-28 21:32:01 CET
Hi, what's the status of this?
Comment 7 Aurelien Oudelet 2021-03-17 15:30:37 CET
Reporter, could you please reply to the previous question? If you don't reply within two weeks from now, I will have to close this bug as OLD. Thank you.
Comment 8 Frank Griffin 2021-03-17 15:56:37 CET
The affected system is stuck running an older kernel at the moment, so I'll close this as INVALID until I can test with current cauldron.

Resolution: (none) => INVALID
Status: UNCONFIRMED => RESOLVED

Comment 9 Frank Griffin 2021-07-05 16:03:13 CEST
No longer happening with current cauldron kernels.

Resolution: INVALID => FIXED