Messages in this thread | | | Date | Mon, 30 Mar 1998 00:50:51 +0100 (BST) | From | Alistair Riddell <> | Subject | Re: Detecting media insertion |
| |
This has been brought up many times before... There is no way that you can detect media insertion/eject with standard hardware. Windows works by polling the device every few seconds which obviously increases the load on the system.
On Sun, 29 Mar 1998, Adam J. Richter wrote:
> I am trying to figure out how to detect insertion of media > (such as a CDROM, floppy or zip cartridge) without noticeable physical > hardware activity. For example, I would like to bring up a CDROM icon > as soon as the user inserts a CDROM without the user having to do > anything else to bring this to the computer's attention, just like > under Windows. > > Simply trying to read a byte every second from /dev/fd0 or the > CDROM device is unacceptable, because that causes the floppy to > spin up and make a lot of noise and causes the cdrom drive to retract > its tray. > > I don't believe that there is currently any ioctl defined > or this purpose or even a defined way for kernel code to get this > information from a device driver, but I'd like to know if there is.
-- Alistair Riddell - BOFH IT Support Department, George Watson's College, Edinburgh Tel: +44 131 447 7931 Ext 176 Fax: +44 131 452 8594 Microsoft - because god hates us
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu
| |