@webhat That's basically what I'm asking. I suppose /sys would be the place to look. The intended use is to listen on it and convert presses into an unmount followed by eject command if the unmount succeeds, altho of course you could do anything else with it too.