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

tp_smapi reported as missing/not installed in LTS 24.04 (kernel 6.8.0) #69

Open
nap-commit-nap opened this issue Sep 10, 2024 · 6 comments

Comments

@nap-commit-nap
Copy link

X220 here. I used to be able to report battery cycles with tlp-stat -b until I started using 6.x kernel. Now tlp reports that tp_smapi is not loaded despite newest tp-smapi-dkms being installed (0.44 from the package maintainers). lsmod does not indicate tp_smapi.
I had this problem before in 22.04, but it could be solved by downgrading kernel back to 5.x -- unfortunately this is no longer possible with 24.04. I guess something is preventing this module from loading. Help?

@evgeni
Copy link
Member

evgeni commented Sep 10, 2024

How are you loading the module?

@nap-commit-nap
Copy link
Author

I'm assuming it's always auto-loaded on boot (defaults). In the past, I'd install tp-smapi-dkms and (maybe) reboot, this would typically report the module as installed (and loaded)?

@evgeni
Copy link
Member

evgeni commented Sep 10, 2024

The module is not automatically loaded.

You gotta add it to /etc/modules or whatever your OS is using

@nap-commit-nap
Copy link
Author

I finally found information on the official tlp website that as of 23.10 and 24.04 the package from the official Ubuntu repository is broken and will not build and install tp_smapi. More info here: https://linrunner.de/tlp/installation/ubuntu.html -- thanks for your replies!

@evgeni
Copy link
Member

evgeni commented Sep 10, 2024

But the package in 23.10 and 24.04 is (almost) identical to the one in Debian 🤔

Does it work with Debian's package?

@nap-commit-nap
Copy link
Author

It works with the Debian package. I had to install it using a different package manager because apt insisted on installing from Ubuntu repositories. I loaded the kernel module manually, launched tlp-stat -b and the additional attributes were reported (cycle count etc).

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

2 participants