From the log, looks like intel_vbtn driver treats the undock/disconnect event as a switch event, and then starts to register input-dev again.
[ 83.861917] device_add+0xe0/0x740 [ 83.861919] input_register_device+0xe8/0x370 [ 83.861924] notify_handler+0x12e/0x1a0 [intel_vbtn] We need to check below commits after v6.5+ to see if there is any changes that may lead to this behavior. 41ab81ce8490 platform/x86/intel: add missing MODULE_DESCRIPTION() macros ea5f6ad9ad96 Merge tag 'platform-drivers-x86-v6.10-1' of git://git.kernel.org/pub/scm/linux/kernel/git/pdx86/platform-drivers-x86 434e5781d8cd platform/x86: intel-vbtn: Update tablet mode switch at end of probe 868adf8a2917 platform/x86: intel-vbtn: Use acpi_has_method to check for switch 7ad58be75fcd platform/x86: intel-vbtn: Log event code on unexpected button events 84c16d01ff21 platform/x86: intel-vbtn: Stop calling "VBDL" from notify_handler 14c200b7ca46 platform/x86: intel-vbtn: Fix missing tablet-mode-switch events -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2073001 Title: Regression: kernel bug upon keyboard disconnect To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/2073001/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs