Home » Questions » Computers [ Ask a new question ]

Disable CD eject button on Windows laptop

Disable CD eject button on Windows laptop

Most laptops have a CD eject that is very sensitive, and placed such that it regularly gets triggered when handling the laptop. This is in particular a problem (for clumsy-handed me) when picking up the laptop to stow in in a laptop bag; I've lost count of the number of times it has ejected just as I am lowering it into the case!

Asked by: Guest | Views: 215
Total answers/comments: 5
Guest [Entry]

I wrote LockCD application after giving up on finding a properly functioning software that would lock the CD ROM eject button which i hit quite frequently on my Lenovo T520 laptop. The main problem with the software found over the internet was that it wouldn't retain the lock state after Sleep/Resume. I made it freely available at http://sourceforge.net/p/lockcd/wiki/Home/
Guest [Entry]

"There are several ways you work through this problem.

Firstly I would say just disabling the drive entirely is really not the right option here. So let us explore some other options.

I would consider is to use a small piece of software that is capable of locking the drive. This can be done in software which is well evident during those times the drive won't let you eject the disk. I have not tried to do this kind of thing specifically but I am sure this is possible if you can write a little code. You might be able to find a small systray app for this kind of thing already off the shelf.

The second suggestion I would make would be to remove the drive and inspect the eject control mechanism. In many cases it uses a sub-miniature surface mount single pole, single throw switch like the ones used in the right and left buttons on a standard mouse. This configuration gives you two obvious options I can think of. One is to install a small toggle switch somewhere inside the drive that can sever the trace to the eject button. Controlling the problem electrically is great however there is a question of whether there is enough room inside the device for anything extra and also if you have the soldering/assembly skills to pull this modification off properly. A screw up with this method could render the drive a hunk of slag. An easier method would be to find the end of the plastic button for the drive eject. Once you find the spot where the button and the switch meet, you can use some sandpaper to take off a small amount of material until the button is sufficiently resistant to being accidently activated. Be very careful here because removing too much material will render the button permanently disabled."
Guest [Entry]

"There is some way of locking CD drives so that they can't be ejected anymore. I know that CDex did this back when I used it (was pretty nasty when it crashed because the only way to open the drive again was to reboot). Maybe there is a tool which allows one to do that on purpose.

Digging around a little I stumbled over this which is Winbatch but seems to just call a WINsows API function so that might easily adapted into a small program. Also I found this."
Guest [Entry]

"Toddler Keys is exactly what you are looking for: http://tk.ms11.net/

""It is a useful tool for parents that allows you to lock your computer
keyboard, CD drive doors and power-off
button. When the keyboard is used it
will display images and play sounds
every time a key is pressed, thereby
preventing access to the desktop and
applications, while adding some
entertainment value for the kid. You
can select the images and sounds to be
used by copying them to the Toddler
Keys folder. To exit the locked
screen, just type the word QUIT."""
Guest [Entry]

"You can use AutoHotKey to disable the Button. First you have to find the number of the key.
Autohotkey offers a great possibility to find the ""number"" of the key:

If your keyboard or mouse has a key not listed above, you might still
be able to make it a hotkey by using the following steps (requires
Windows XP/2000/NT or later):


Ensure that at least one script is running that is using the keyboard hook. You can tell if a script has the keyboard hook by
opening its main window and selecting ""View->Key history"" from the
menu bar.
Double-click that script's tray icon to open its main window.
Press one of the ""mystery keys"" on your keyboard.
Select the menu item ""View->Key history""
Scroll down to the bottom of the page. Somewhere near the bottom are the key-down and key-up events for your key. NOTE: Some keys do
not generate events and thus will not be visible here. If this is the
case, you cannot directly make that particular key a hotkey because
your keyboard driver or hardware handles it at a level too low for
AutoHotkey to access. For possible solutions, see further below.
If your key is detectible, make a note of the 3-digit hexadecimal value in the second column of the list (e.g. 159).


Than you can disable this key by adding the following line to the script:

SC159::return

Replace 159 with your key's value

Now the key should be disabled.

Also you could possibly lock the disk with this script:

Drive, Lock, D:"