You are not logged in.

#1 2022-07-19 14:08:13

newarchuser11
Member
Registered: 2022-07-09
Posts: 7

[Solved]CD-Drive ejects randomly. How to disable it completely.

My CD-drive ejects randomly while laptop is working. It opens when I turn laptop on but sometimes just while working, it's really hard to say if there's any pattern.

eject -i 1

says

eject: CD-Drive may NOT be ejected with device button

but if I press on the button on cd-drive it will be ejected and it keep ejecting randomly.

I want to completely disable it (I can probably remove it manually but I'm not sure)..
I found this https://bbs.archlinux.org/viewtopic.php?id=228234 solution but it doesn't work for me.

Thing fell out of the laptop and solved the problem...

Last edited by newarchuser11 (2022-07-25 09:58:46)

Offline

#2 2022-07-19 18:49:32

Irets
Member
Registered: 2019-02-01
Posts: 143

Re: [Solved]CD-Drive ejects randomly. How to disable it completely.

A *really nasty* way of doing it would be to move /lib/modules/$(uname -r)/kernel/drivers/cdrom/cdrom.ko to somewhere else.
I would assume that after rebooting, the kernel can't talk to the cdrom at all anymore, although pacman will put that file back there after a kernel upgrade.

You could also try blacklisting the cdrom module, which *should* accomplish the same result, but without mutilating your kernel modules dir and the blacklist will carry over after kernel upgrades.

The third option would be to investigate why your computer ejects the drive on it's own and then fix it.

Last edited by Irets (2022-07-19 19:04:16)

Offline

#3 2022-07-19 19:43:46

twelveeighty
Member
Registered: 2011-09-04
Posts: 1,453

Re: [Solved]CD-Drive ejects randomly. How to disable it completely.

Desktop machines used to do the opposite: close the CD drive upon reboot/startup. I wonder if this is a BIOS thing, have you checked that? Also describe if this is new behavior, or if this is the first time running Arch on that laptop.

Is there anything in the journal of interest during startup?

Offline

Board footer

Powered by FluxBB