Skip to content

Instantly share code, notes, and snippets.

@mgd722
mgd722 / this-drove-me-slowly-insane-for-2-weeks.md
Last active January 25, 2026 13:41
Fix touchpad on Lenovo 100e running Ubuntu

Fix touchpad on Lenovo 100e running Ubuntu

So you bought a used Lenovo 100e with a stupid ELAN066C touchpad. It works in Windows just fine, other than being god-awful slow. You want to put Xubunutu on it to make it workable, except the touchpad stopped working. Ugh.

My brain is smooth, so this took me like 40+ hours to solve. I'm sure you would have solved it faster, but just in case you need help here are the steps I took to get it working. For reference, my exact computer is Lenovo 100e 2nd Gen (82GJ).


NOTE: secure boot must be disabled for this to work!

const reverse = (array) =>
array.reduce((acc, elem) => [elem].concat(acc), []);
const map = (array, fun) =>
reverse(array.reduce((acc, elem) => [fun(elem)].concat(acc), []));
const filter = (array, pred) =>
reverse(array.reduce((acc, elem) => pred(elem) ? [elem].concat(acc) : acc, []));
@diego3g
diego3g / settings.json
Last active January 19, 2026 08:06
VSCode Settings (Updated)
{
"workbench.startupEditor": "newUntitledFile",
"editor.fontSize": 16,
"editor.lineHeight": 1.8,
"javascript.suggest.autoImports": true,
"javascript.updateImportsOnFileMove.enabled": "always",
"editor.rulers": [
80,
120
],