xev shows the following events after I press the power-off button:
MappingNotify event, serial 37, synthetic NO, window 0x0, request MappingKeyboard, first_keycode 8, count 248
PropertyNotify event, serial 38, synthetic NO, window 0x4400001, atom 0x14a (_NET_WM_STATE), time 175585994, state PropertyNewValue
PropertyNotify event, serial 38, synthetic NO, window 0x4400001, atom 0x14a (_NET_WM_STATE), time 175587075, state PropertyNewValue
MappingNotify event, serial 38, synthetic NO, window 0x0, request MappingKeyboard, first_keycode 8, count 248
PropertyNotify event, serial 39, synthetic NO, window 0x4400001, atom 0x14a (_NET_WM_STATE), time 175588730, state PropertyNewValue
xev shows the following events after I press the power-off button:
MappingNotify event, serial 37, synthetic NO, window 0x0,
request MappingKeyboard, first_keycode 8, count 248
PropertyNotify event, serial 38, synthetic NO, window 0x4400001,
atom 0x14a (_NET_WM_STATE), time 175585994, state PropertyNewValue
PropertyNotify event, serial 38, synthetic NO, window 0x4400001,
atom 0x14a (_NET_WM_STATE), time 175587075, state PropertyNewValue
MappingNotify event, serial 38, synthetic NO, window 0x0,
request MappingKeyboard, first_keycode 8, count 248
PropertyNotify event, serial 39, synthetic NO, window 0x4400001,
atom 0x14a (_NET_WM_STATE), time 175588730, state PropertyNewValue