> Why can't the eject button cause the same action - try to unmount and > then eject? Or at very least cause a pop up message instruction on what > to do to get the disk out instead of just not working. I noticed while
It is possible. All you have to do is either enhance the sd(7D) driver's DKIOCSTATE ioctl to poll for the eject button presses in addition to disc state, or to switch HAL from using this ioctl to its own polling algorithm using uscsi(7I). In either case, HAL would emit the "EjectPressed" DBus signal, which would be handled by the volume manager in the same way as when you click on the eject icon/menu. There is an RFE filed for this - you are welcome to work on it. > many people just reboot Solaris when they want to take the disk out... I find it hard to believe. Optical drives have not always supported this feature, it's a relatively recent addition. Even Windows 95 users knew how to right-click on the drive icon and choose "Eject". Of course, there are users who think their CDROM drive is a cup holder, but I wouldn't view them as a target demographic for the OS design. -Artem
