Settings

Theme

Ask HN: Linux Nvidia driver broke my touchpad. WTF?

3 points by DreamWalker1 4 years ago · 5 comments · 1 min read


Got a brand new thinkpad p1 gen4. Installed Ubuntu 21.10. Everything worked like a charm. Never expected it to be so smooth. Even bluetooth worked. Didn't believe it.

So I had only one step to do. Install Nvidia drivers. Used autoinstall. And surprise, surprise it broke something. Multitouch gestures stopped working. Spend multiple hours to realize it. Another drivers didn't help.

Anyway for me the general question was. How do I revert apt get commands? It seems kind of difficult. I could purge all nvidia stuff or whatever. BUT is there maybe some general solution? That is the reason I'm always afraid of apt upgrade. It may break something and I have no idea how to restore. But maybe it's just a newbie question. Is it?

MrWiffles 4 years ago

I’ve had stuff like this happen on Linux when using it as a desktop all the damn time. It’s just not good enough for that yet (but server? nothing else comes close).

Reverting an apt install is just apt uninstall packagename. Or maybe it’s remove-typing this from the hospital bed so I don’t remember for sure (going home later today though, doing well!)

I hate to recommend this, but if I were in your shoes, I’d just install another distro or OS in place of what you have just to PROVE whether it’s the hardware itself that’s broken, or if it’s only a software issue. If the hardware really is busted, reinstall the factory os-probably windows-then see if you can get it repaired or replaced via warranty. Just put it back into windows world so they don’t use that as an excuse to weasel out of honoring their warranty.

  • DreamWalker1OP 4 years ago

    Exactly that is what I did. Everything worked again. The driver broke it so. BUT it is kind of a general problem, since it isn't always possible to just format and reinstall everything... Something like git revert would be amazing for apt. But maybe I just want to much.

    • MrWiffles 4 years ago

      No, I don't think you're asking too much here at all, and I totally agree with you. Take a look at Nix OS - it's a Linux distro that, if memory serves, comes with those kind of guarantees as to how it handles packages, installations, etc. No idea how useable it is for a desktop environment as compared to Ubuntu, but you might find the general approach appealing (again, if memory serves, please pardon me if not).

      • DreamWalker1OP 4 years ago

        Not sure how user-friendly Nix is for Desktop. But definitely the approach seems to be right.

        Anyway my solution right now is using timeshift. Quite happy with it. Already was able to rollback the nvidia driver and get my touchpad back. Seems like a workable approach, but definitely would expect some kind of native functionality.

nebul 4 years ago

Well, I'm a few days late but I'm going to leave this here if it can help someone else.

If Ubuntu works like Fedora in this regard, it probably switched from Wayland to Xorg when you installed the proprietary Nvidia driver. The Wayland session supports touchpad gestures natively, but the Xorg one doesn't. You can install something like libinput-gestures[1] to replicate the functionality, with the caveat that the gestures won't be triggered until you lift your fingers off the touchpad. (On Wayland the interface reacts to the gestures as you swipe.)

Ubuntu switching 'silently' to Xorg is actually working as intended because Nvidia's support for Wayland was somewhat experimental until very recently. It's getting better though, and it's now officially supported on Fedora 35.

[1] https://github.com/bulletmark/libinput-gestures

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection