Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove/Reinstall Driver #51

Closed
sayapinsergej opened this issue Nov 8, 2022 · 7 comments
Closed

Remove/Reinstall Driver #51

sayapinsergej opened this issue Nov 8, 2022 · 7 comments

Comments

@sayapinsergej
Copy link

Hi! How to remove/reinstall the driver?

@Kimplul
Copy link
Owner

Kimplul commented Nov 8, 2022

Reinstallation is basically just running make && sudo make install, removing the driver can be done with rm /usr/lib/modules/$(uname -r)/extra/hid-tmff2.ko. This is assuming you installed the driver manually, dkms works with the standard dkms remove ....

Since this is a kernel module, you might want to reinstall your machine for any changes to take effect. If you're not patient enough, something like sudo rmmod hid-tmff-new && sudo modprobe hid-tmff-new should force the kernel to reload the driver.

@MicHaeL-MonStaR
Copy link

Reinstallation is basically just running make && sudo make install...

I'm trying to do this, as I suspect the driver broke somehow, but it just returns: make: *** No targets specified and no makefile found. Stop.

I'm guessing I need to designate a target, but I don't know how that's done.

@Kimplul
Copy link
Owner

Kimplul commented May 24, 2024

Sounds like you're in the wrong directory, check that you're in the top directory to where you cloned the repository. Running ls should show (among other things) a file called Makefile, which is what make reads to know how to compile the driver.

@MicHaeL-MonStaR
Copy link

I didn't navigate to any directory as I don't know about that. - I also don't know where I would have cloned the repository. I've only followed installation-instructions about half a year ago and so it would be whatever it is by default.

It shows a hid-tmff2 folder in Home. Is that where I should run it from (or run the Terminal from in the first place)?

@Kimplul
Copy link
Owner

Kimplul commented May 24, 2024

It shows a hid-tmff2 folder in Home. Is that where I should run it from (or run the Terminal from in the first place)?

Yep, sounds like that would be it, just go cd hid-tmff2 in a terminal and continue with the installation. In general, I would recommend cloning repositories somewhere other than your home directory, but as long as it works I guess.

I suspect the driver broke somehow,

I suspect you updated your system, and it pulled in a new version of Linux. Whenever this happens, the driver has to be compiled again for the newer kernel. This is done automatically by DKMS, and I would recommend you try that install method Otherwise you'll have to periodically run make && make install which can get a bit annoying.

@MicHaeL-MonStaR
Copy link

Yes, Pop!_OS updates a lot of stuff regularly and I rarely change anything manually. I haven't in recent days, but somewhere between just a few days ago and today something changed and the wheel stopped responding to Overdrive and game-feedback (though it was still detected). So it's hard to tell what all changes with "automatic" updates.

I was looking at the installation-methods but didn't even remember which one I used, so apparently it would be the manual one. - I there a way to switch to the DKMS-method? Or is it just a matter of doing it that way and it will overwrite it?

For now it seems reinstalling worked, although it did indicate some things about different versions indeed.

@Kimplul
Copy link
Owner

Kimplul commented May 24, 2024

I there a way to switch to the DKMS-method? Or is it just a matter of doing it that way and it will overwrite it?

Just perform a DKMS install as normal. You might find in dmesg that Linux complains about duplicated drivers if you install with both methods, but that will sort itself out the next time you update Linux, no need for any kind of manual intervention.

@Kimplul Kimplul closed this as completed May 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants