When shutting down, the keyboard should be set back into compatibility mode, in case the OS you boot into doesn't understand the custom events.
@Markus00000 This I think is your issues with powering off vs. rebooting. When you reboot, the keyboard stays powered up so remembers to send "native" mouse events. However, the older kernel you are booting into doesn't know how to reset this. You have a USB keyboard, right?
When shutting down, the keyboard should be set back into compatibility mode, in case the OS you boot into doesn't understand the custom events.
@Markus00000 This I think is your issues with powering off vs. rebooting. When you reboot, the keyboard stays powered up so remembers to send "native" mouse events. However, the older kernel you are booting into doesn't know how to reset this. You have a USB keyboard, right?