pobrn / qc71_laptop

Linux kernel platform driver for QC71 based laptops.
GNU General Public License v2.0
33 stars 11 forks source link

Fix the generation of KEY_UNKNOWN events #16

Open Lt-Henry opened 1 year ago

Lt-Henry commented 1 year ago

We have been reported with the driver emitting unknown keycodes (240) and producing some undesired effects on some circumstances under X11. I've took a look at kernel sources and it seems _sparse_keymap_reportevent generates an unknown keycode on unmapped cases.

I've also reduced a bit verbosity. Perhaps, I should have split into several patches.... :\

Btw, I am currently maintaining slimbook qc71 fork, you clan close pr #12 because it is a bit outdated. I will create another pr later.