Speaking of which, only the drivers should be affected by detaching /
attaching a detachable keyboard, and precisely, the drivers should
handle things so that upper layers don't need to care about the
keyboard attached/detached state (except very specific parts of the UI,
e.g. to show the detached/attached state and/or pop up a software
keyboard when the HW one is not here and keyboard input is needed). Most
certainly "all daemons up to GUI" should not be involved IMO.