I've bought the ROG G551JM Asus laptop which proven to be Ubuntu-compatible. The computer's keyboard is ill-designed with the key "Poweroff" being an ordinary key, placed in the spot, where one usually finds the "End" key. The computer is fine otherwise, so I bought it with the assumption, that I would be able to somehow "fix" the problem, i.e. remap the PowerOff button into the "End" key.
The PowerOff button made wrong (ASUS G551JM):
Normally there is an «End» key (ASUS N56VZ):
The "PowerOff" button events are produced by the
/dev/input/event2: Power Button device (as reported by
evtest) with code 116 (example line from
Event: time 1422895638.246142, type 1 (EV_KEY), code 116 (KEY_POWER), value 1)
The key is also visible to X server, and ultimately Ubuntu can identify key presses as a
PowerOff key and launches the "Goodbye user Adam..." semi-transparent dialog box that confirms my will to actually turn the computer off.
The problem is that the binding that binds the PowerOff key press with the routine that displays that confirmation dialog is not visible under dconf-editor and I have no hint where to find it.
Can anyone tell me, where to change (or delete) the default binding for the PowerOff key???
It should be something easy.
There is a way to permanently disable the dialog box, see How do I modify the options for the power button? . I hope that after disabling the power button, it would be possible to re-assign it to something else.