I idly looked up how to disable an internal laptop keyboard on windows 10, and the solution people have come up with is very silly:

you go into device manager, find the keyboard, and switch it to a driver that doesn't work with your keyboard

like you set a PS/2 keyboard use a Toshiba Japanese USB Keyboard driver.

Windows will detect it doesn't work, then turn it off.

couldn't you just uninstall the original device? No, windows will just reinstall it next time you reboot.

(unless you modify windows to not do that. Just turn off PLUG & PLAY in order to keep one device driver from being loaded)

the other solution someone figured out is to rename the driver on the disk and then uninstall your keyboard driver. it won't automatically reinstall it if it can't find the driver!
this is silly.
@foone This is very silly.
@foone does the "disable" / "do not use this device" setting do anything in that case?
@foone can't you simply disable the device?
@fencepost nope! disabling it is disabled.
@foone 🤦‍♂️well isn't that special.
@foone honestly, windows is hilariously stupid nowadays. We used to be able to easily control our hardware when we needed to fix something.
@foone Is there any chance you know how to accomplish this in Linux? I looked into it once (had a laptop with a busted keyboard that would spam key-presses without being touched), but couldn't figure out how to disable it
@eigen sorry, no, I don't know off the top of my head.
@foone @eigen I would assume this would be managed by a udev rule? (Wrote that part before finding an article describing my exact assumption - https://blog.hackeriet.no/udev-disable-keyboard/)
Using udev to disable the built in keyboard on your laptop

The built in keyboard on my laptop is annoying to use, everything is wrong about it (Dell XPS Plus). To make matters worse, it is also a european layout that...

@foone Sounds like a modern "Some times one just have to be PRAGMATIC" solution.

Yep.

@foone Thank you for sharing this cursed knowledge!