SUMMARY Ejecting a CD/DVD drive causes it to open and immediately closes the tray as if something is repeatedly issuing a "close" command to the CD/DVD ROM drive. STEPS TO REPRODUCE 1. Press the Eject option in Dolphin or run the `eject` command OBSERVED RESULT Tray opens and then immediately closes. EXPECTED RESULT Tray should open and stay open long enough to take a disc out, usually automatically closed by the hardware itself or until the user presses the eject button again. SOFTWARE/OS VERSIONS Linux/KDE Plasma: (available in About System) KDE Plasma Version: KDE Frameworks Version: Qt Version: ADDITIONAL INFORMATION This started on /r/kde on Reddit via this discussion: https://www.reddit.com/r/kde/comments/a69sec/kde_doesnt_leave_my_cdrom_tray_open/ We observed that it does *not* happen if you exit KDE and run the `eject` command manually. It does happen if you run the `eject` command while inside a KDE session. Also does not happen in other non-KDE based distros such as Ubutnu 18.04 Sorry if the location of this bug is invalid it's hard to find the right place for such a bug in KDE.
Sorry I left out some details in the initial comment, here they are from the OP: KDE neon: 5.14 KDE Plasma: 5.14.4 Frameworks: 5.53.0 Qt Ver: 5.11.2 Kernel: 4.15.0-42-generic
Check out https://wiki.archlinux.org/index.php/Optical_disc_drive#Disc_tray_autocloses *** This bug has been marked as a duplicate of bug 398465 ***
Thanks Nate. The sysctl workaround solved the Redditor's problem. Any reason why this happens with KDE but not other distros?
No idea, sorry. If it does indeed happen with KDE but not other DEs, then maybe there is indeed a problem for us to solve. I'll re-open 398465.