*** UPDATE, found the answer for power, but it looks like the mouse-lock functionality may be built into the remote.
autostart.sh
systemd-inhibit --what=handle-power-key sleep 1000d &
***
I just picked up one of these remote for my Coreelec box but i am unable to remap two of the buttons.
Top left "Power" button and 2nd row down center; "Mouse lock"
going back to the old IR days i would;
1. SSH, irw; and see what code these buttons used
2. Reference that code in the LIRCD.conf
3. make the appropriate change in /storage/.kodi/userdata/keymaps/remote.xml
Its the IRW step that im missing because i cant figure out what keypress the buttons are sending? I overwrite "POWER" to be "back" because i let my box run when not in use. But with POWER mapped the top left button still shuts down the box?
What command would the "Mouse lock" button use? Thanks for any pointers.