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

thinkpad_acpi watchdog keeps triggering after commit d3951070f95ffe1ec5e4505c58387edb63206b8a #57

Closed
susanwl opened this issue Aug 6, 2018 · 3 comments
Assignees
Labels
Milestone

Comments

@susanwl
Copy link
Contributor

susanwl commented Aug 6, 2018

Hi,

Apparently for me commit d395107 makes thinkpad_acpi driver to constantly spam into dmesg(every 2 minutes) like:

[Aug 6 05:14] thinkpad_acpi: fan watchdog: enabling fan
[Aug 6 05:16] thinkpad_acpi: fan watchdog: enabling fan
[Aug 6 05:18] thinkpad_acpi: fan watchdog: enabling fan
[Aug 6 05:20] thinkpad_acpi: fan watchdog: enabling fan
[Aug 6 05:22] thinkpad_acpi: fan watchdog: enabling fan

And, btw if I understand sleeptime parameter correctly, should not src/driver.cpp:147 be

else if (last_watchdog_ping_ + min(watchdog_, sleeptime) <= std::chrono::system_clock::now())

instead of

else if (last_watchdog_ping_ + watchdog_ + sleeptime <= std::chrono::system_clock::now())
@vmatare
Copy link
Owner

vmatare commented Aug 24, 2018

Good catch, looks like since commit d395107 we're always pinging the watchdog sleeptime seconds too late. However I think min(watchdog_, sleeptime) isn't the best approach. If I'm not overlooking anything, the watchdog is currently always set to 120 seconds, so we want to subtract the sleeptime to make sure we ping now if we know that it's going to trigger during the next sleep period.

@vmatare
Copy link
Owner

vmatare commented Aug 24, 2018

It would be great if you could test again with commit fd94d53.

@vmatare vmatare added the bug label Aug 24, 2018
@vmatare vmatare added this to the 1.0.1 milestone Aug 24, 2018
@vmatare vmatare self-assigned this Aug 24, 2018
@vmatare vmatare changed the title Spam in dmesg after commit d3951070f95ffe1ec5e4505c58387edb63206b8a thinkpad_acpi watchdog keeps triggering after commit d3951070f95ffe1ec5e4505c58387edb63206b8a Aug 24, 2018
@susanwl
Copy link
Contributor Author

susanwl commented Aug 28, 2018

Yep, makes sense. Commit fd94d53 fixes problem. Thank you!

@vmatare vmatare closed this as completed Aug 28, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants