Fix enabling interrupts and select edge-sensitive mode by default (this should probably be exposed via an ioctl).