Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved] CD closes immediately after open/eject
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
ipic
Apprentice
Apprentice


Joined: 29 Dec 2003
Posts: 298
Location: UK

PostPosted: Fri May 01, 2020 12:02 pm    Post subject: [solved] CD closes immediately after open/eject Reply with quote

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:
Code:
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
......
I did this:
Code:
ian2 ~ # sysctl dev.cdrom.autoclose=0
dev.cdrom.autoclose = 0
ian2 ~ #
and now the cd tray stays open after it is ejected, allowing for a more sedate experience.

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.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum