Joined: 29 Dec 2003
|Posted: Fri May 01, 2020 12:02 pm Post subject: [solved] CD closes immediately after open/eject
|I don't use my cd reader often, but when I do, it closes about a second after opening (either using eject, or pressing the eject button).
Since I'm getting older, I'm no longer quick enough to get the media in before it snaps shut
Some digging around and I found this:
I did this:
|ian2 ~ # sysctl -a | grep cdrom
dev.cdrom.autoclose = 1
dev.cdrom.autoeject = 0
dev.cdrom.check_media = 0
dev.cdrom.debug = 0
dev.cdrom.info = CD-ROM information, Id: cdrom.c 3.20 2003/12/17
and now the cd tray stays open after it is ejected, allowing for a more sedate experience.
|ian2 ~ # sysctl dev.cdrom.autoclose=0
dev.cdrom.autoclose = 0
ian2 ~ #
Adding dev.cdrom.autoclose=0 to /etc/sysctl.d/local.conf makes the change permanent.
Not sure why the default value for autoclose on a cdrom should be true. I can't think of any use case where that would be a useful thing to have.
Still fix is easy if you know where to look, hence posting this so it can be found by someone in the future.