Disabling CD-ROM drive eject button

For discussing Linux compatible (or not) devices

Moderators: ChrisThornett, LXF moderators

Disabling CD-ROM drive eject button

Postby Nobber » Mon Aug 15, 2005 11:48 am

When a CD is mounted, the eject button on the CD-ROM drive is disabled (usually). Which is nice (or not, according to personal taste). So...

Q: How can I disable the eject button on my CD-ROM drive when there's NO disc in the drive?

There must be a simple software solution to this problem!
User avatar
Nobber
LXF regular
 
Posts: 370
Joined: Mon Apr 11, 2005 3:24 pm
Location: Nova Scotia

RE: Disabling CD-ROM drive eject button

Postby nelz » Mon Aug 15, 2005 12:08 pm

Duct tape :D
"Insanity: doing the same thing over and over again and expecting different results." (Albert Einstein)
User avatar
nelz
Site admin
 
Posts: 8522
Joined: Mon Apr 04, 2005 11:52 am
Location: Warrington, UK

RE: Disabling CD-ROM drive eject button

Postby Nobber » Mon Aug 15, 2005 12:48 pm

Around my son's fingers, or across the CD-ROM drive?
800 LINES ERIC - GET BACK TO PYSKOOL
User avatar
Nobber
LXF regular
 
Posts: 370
Joined: Mon Apr 11, 2005 3:24 pm
Location: Nova Scotia

RE: Disabling CD-ROM drive eject button

Postby Nigel » Mon Aug 15, 2005 2:23 pm

Found the following on the web...
http://www.informit.com/articles/article.asp?p=24152&seqNum=4&rl=1 wrote:Disable CD-ROM drive eject buttons

Some newer CD-ROM drives, especially those from big-name manufacturers, ship with a jumper- or switch-operated feature to allow the user to completely disable the frontal eject button while leaving software eject intact. Even in the absence of such an option, you may be able to disable the button manually with a little tinkering, though doing so will likely void your warranty. Once the button has been disconnected or disabled, a CD can be inserted only after the user has logged into Linux and issued the eject command.


I also saw mention of a program called setcd that seems to be able to do what you want - if you're running Debian you can get a package from here, I've seen mentions of an RPM but haven't located it.
Hope this helps,

Nigel.
User avatar
Nigel
LXF regular
 
Posts: 1141
Joined: Fri Apr 08, 2005 8:03 pm
Location: Gloucestershire, UK

RE: Disabling CD-ROM drive eject button

Postby Nobber » Mon Aug 15, 2005 2:54 pm

setcd looks like just the ticket - thanks! (I'm running Slackware, but I can just download the source code from a Debian repository. Open source is handy like that.)
800 LINES ERIC - GET BACK TO PYSKOOL
User avatar
Nobber
LXF regular
 
Posts: 370
Joined: Mon Apr 11, 2005 3:24 pm
Location: Nova Scotia

RE: Disabling CD-ROM drive eject button

Postby Nobber » Mon Aug 15, 2005 3:32 pm

Or not...

Looks as if setcd allows you to enable the eject button even when a CD is mounted - but I want the exact opposite!

:(
800 LINES ERIC - GET BACK TO PYSKOOL
User avatar
Nobber
LXF regular
 
Posts: 370
Joined: Mon Apr 11, 2005 3:24 pm
Location: Nova Scotia

RE: Disabling CD-ROM drive eject button

Postby Nigel » Mon Aug 15, 2005 3:49 pm

Rats...

Looks like it's back to the Duct Tape, then :(

Of course, you could always leave a mounted CD in the drive...
Hope this helps,

Nigel.
User avatar
Nigel
LXF regular
 
Posts: 1141
Joined: Fri Apr 08, 2005 8:03 pm
Location: Gloucestershire, UK

RE: Disabling CD-ROM drive eject button

Postby nelz » Mon Aug 15, 2005 4:11 pm

Try cdctl. the options include

-oA --lockdoor=A lock or unlock the eject button

or you could stick to duct taping his fingers put of harm's way :)
"Insanity: doing the same thing over and over again and expecting different results." (Albert Einstein)
User avatar
nelz
Site admin
 
Posts: 8522
Joined: Mon Apr 04, 2005 11:52 am
Location: Warrington, UK

RE: Disabling CD-ROM drive eject button

Postby Nobber » Mon Aug 15, 2005 4:17 pm

Aha! [cautious optimism]Looks more promising...[/cautious optimism]
800 LINES ERIC - GET BACK TO PYSKOOL
User avatar
Nobber
LXF regular
 
Posts: 370
Joined: Mon Apr 11, 2005 3:24 pm
Location: Nova Scotia

RE: Disabling CD-ROM drive eject button

Postby nelz » Mon Aug 15, 2005 4:29 pm

cdctl or the duct tape? :D
"Insanity: doing the same thing over and over again and expecting different results." (Albert Einstein)
User avatar
nelz
Site admin
 
Posts: 8522
Joined: Mon Apr 04, 2005 11:52 am
Location: Warrington, UK

RE: Disabling CD-ROM drive eject button

Postby Nobber » Thu Aug 18, 2005 8:22 am

And...it works!

(cdctl --lockdoor, that is.)
800 LINES ERIC - GET BACK TO PYSKOOL
User avatar
Nobber
LXF regular
 
Posts: 370
Joined: Mon Apr 11, 2005 3:24 pm
Location: Nova Scotia

RE: Disabling CD-ROM drive eject button

Postby cadmium3 » Mon Aug 29, 2005 6:32 am

thanks for the help, trolled to get this fix.....kinda new to the forum...

Have you every tried Alien Package Converter (http://www.kitenet.net/programs/alien/) to change deb's to rpm's? works pretty slick like!!

Thanks for the cd fix too!!
:wink: :wink:
Ted Brown
Inland NW Gaming & Systems, LLC
cadmium3
 
Posts: 1
Joined: Mon Aug 29, 2005 6:24 am


Return to Hardware

Who is online

Users browsing this forum: No registered users and 0 guests