kenneth@kennetheeepc:~$ sudo evtest
No device specified, trying to scan all of /dev/input/event*
Available devices:
/dev/input/event0: Lid Switch
/dev/input/event1: Sleep Button
/dev/input/event10: HDA Intel Headphone
/dev/input/event2: Power Button
/dev/input/event3: Power Button
/dev/input/event4: AT Translated Set 2 keyboard
/dev/input/event5: Asus EeePC extra buttons
/dev/input/event6: Video Bus
/dev/input/event7: UVC Camera (eb1a:2761)
/dev/input/event8: SynPS/2 Synaptics TouchPad
/dev/input/event9: HDA Intel Mic
Select the device event number [0-10]: 3
Input driver version is 1.0.1
Input device ID: bus 0x19 vendor 0x0 product 0x1 version 0x0
Input device name: "Power Button"
Supported events:
Event type 0 (EV_SYN)
Event type 1 (EV_KEY)
Event code 116 (KEY_POWER)
Testing ... (interrupt to exit)
Event: time 1339108039.366288, type 1 (EV_KEY), code 116 (KEY_POWER), value 1
Event: time 1339108039.366292, -------------- SYN_REPORT ------------
Event: time 1339108039.366319, type 1 (EV_KEY), code 116 (KEY_POWER), value 0
Event: time 1339108039.366321, -------------- SYN_REPORT ------------
kenneth@ kennetheeepc: ~$ sudo evtest
No device specified, trying to scan all of /dev/input/event*
Available devices:
/dev/input/event0: Lid Switch
/dev/input/event1: Sleep Button
/dev/input/event10: HDA Intel Headphone
/dev/input/event2: Power Button
/dev/input/event3: Power Button
/dev/input/event4: AT Translated Set 2 keyboard
/dev/input/event5: Asus EeePC extra buttons
/dev/input/event6: Video Bus
/dev/input/event7: UVC Camera (eb1a:2761)
/dev/input/event8: SynPS/2 Synaptics TouchPad
/dev/input/event9: HDA Intel Mic
Select the device event number [0-10]: 3
Input driver version is 1.0.1
Input device ID: bus 0x19 vendor 0x0 product 0x1 version 0x0
Input device name: "Power Button"
Supported events:
Event type 0 (EV_SYN)
Event type 1 (EV_KEY)
Event code 116 (KEY_POWER)
Testing ... (interrupt to exit)
Event: time 1339108039.366288, type 1 (EV_KEY), code 116 (KEY_POWER), value 1
Event: time 1339108039.366292, -------------- SYN_REPORT ------------
Event: time 1339108039.366319, type 1 (EV_KEY), code 116 (KEY_POWER), value 0
Event: time 1339108039.366321, -------------- SYN_REPORT ------------