|
OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below. |
|
Thread Tools | Display Modes |
|
|||
How to disable DVD optical drive?
Is there a way to disable CD-DVD optical drive inside OpenBSD?
I used to disable it via bios menu. However I installed coreboot recently and there is no options for me to disable it. I am curious whether it is possible to disable my optical driver inside OpenBSD? The reason I would like to disable it because my hardware got some issue, and just a little pressure to the optical drive would activate or trigger my laptop to eject it, really annoying. I don't want to take it apart either cause it make my laptop uglier and less sturdy. My workaround was tape it, but the optical drive still activate randomly. My laptop is Thinkpad T430. |
|
|||
#2 I made changed to the kernel and boot from a bsd.newl. I check with cdio eject and it couldn't eject the disk which is a good thing. However when I press the physical button to eject disk, it still activate the CD/DVD optical drive. I think disable it within the OS doesn't disable the hardware.
Even though the problem not solved, I did learn more about OpenBSD kernel things, and it wasn't hard as I imagined. Thank you @iggimi Code:
Script started on Sun Jan 23 21:57:41 2022 ]0;cinux@openbsd:~[32mcinux@openbsd[0m:[34m~[32m$[0m PS1="" doas -e config -e /bsd.new doas (cinux@openbsd) password: WARNING no output file specified OpenBSD 7.0 (GENERIC.MP) #4: Tue Jan 18 05:38:49 MST 2022 root@syspatch-70-amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP Enter 'help' for information ukc> s find 40 40 cd* at scsibus* disable target -1 lun -1 flags 0x0 ukc> exit ^D Script done on Sun Jan 23 21:58:28 2022 Last edited by cinux; 24th January 2022 at 03:07 AM. Reason: add dmesg |
|
|||
Quote:
And thank you a lot. |
|
||||
This particular IOCTL is not used by any userland application in the OS, according to find(1). But once you've learned a little C you may be able to add a custom function to the cdio(1) tool for your personal use. This program's source code resides in /usr/src/usr.bin/cdio/.
|
|
||||
Quote:
Quote:
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
How to get optical spdif sound output | psypro | OpenBSD General | 0 | 21st December 2016 10:58 AM |
Disable DHCP: is it at all possible? | WeoNat | OpenBSD General | 14 | 29th March 2016 01:38 AM |
FBSD 8.1 install; no floppy, no optical | Mantazz | FreeBSD Installation and Upgrading | 3 | 29th January 2011 01:04 PM |
Creating USB flash drive drive image from FreeBSD disc1.iso | FBSD | Guides | 1 | 10th February 2010 04:42 PM |
Wired/Optical Microsoft IntelliMouse Explorer 3.0 installation | vigol | FreeBSD General | 2 | 17th November 2009 12:34 PM |