mirror of
https://github.com/hirschmann/nbfc.git
synced 2026-04-26 00:56:01 +03:00
[GH-ISSUE #801] Clevo laptops based configuration. #700
Labels
No labels
Stale
bug
config
discussion
duplicate
enhancement
experimental
feature
help-wanted
info
invalid
invalid
pull-request
question
up-for-grabs
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/nbfc-hirschmann#700
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @ivan-habl on GitHub (Dec 9, 2019).
Original GitHub issue: https://github.com/hirschmann/nbfc/issues/801
Hi, dear hirschmann! Thanks for helpful program.
On Clevo based laptops can control CPU, GPU1 and GPU2 fan from EC. It confirms linux utilite https://github.com/tuxedocomputers/tuxedo-fan-control (I tested it on my Clevo P157SM - it fully works).
The EC code describes on https://github.com/tuxedocomputers/tuxedo-fan-control/blob/master/native/ec_access.cc
I found code for create nbfc config, but it not work ( It is EC code
And we can read CPU FAN data from 0xCE=206 registry.
There is my config, but it cannot work - only correct read, don't write (( Please, help me to write correct config for my Clevo and other Clevo based laptops.
@junocomp commented on GitHub (Jan 17, 2020):
Hi, take a look at this.
https://github.com/SkyLandTW/clevo-indicator
You might be able to get more information here.
@ivan-habl commented on GitHub (Jan 17, 2020):
Thanks. I looked at the clevo-indicator code. There, the same algorithm controls the registers EC_DATA_PORT and EC_COMMAND_PORT.
@deebfeast commented on GitHub (Feb 24, 2020):
Hi I'm starting to work on a config for my Clevo NH55RDQ. It has two fans although I'm not sure yet about Nvidia/GPU modes. It might be similar for the whole Clevo NH55xx range and others
As proof of concept I first changed clevo-indicator until it worked so I can now read and set speeds on both fans and this is the logic:
Reading registers (BTW you can also read these directly with EC dumps):
EC_REG_CPU_TEMP 0x07
EC_REG_FAN_DUTY 0xCE
EC_REG_FA2_DUTY 0xCF
EC_REG_FAN_RPMS_HI 0xD0
EC_REG_FAN_RPMS_LO 0xD1
EC_REG_FA2_RPMS_HI 0xD2
EC_REG_FA2_RPMS_LO 0xD3
EC_SC 0x66
EC_DATA 0x62
EC_SC_READ_CMD = 0x80
For writing it goes like this:
DUTY = duty_percentage / 100.0 * 255.0
EC_SC 0x66
EC_DATA 0x62
EC_WRITE_CMD 0x99
EC_FAN 0x01 or 0x02 (so for two fans run it twice)
Now this seems to work well enough but next step to see if nbfc can do the controlling. The clevo-indicator can do some auto-magic but it's setuid in the end which doesn't feel right. Well I'm putting it out here in case since I don't know when I can work on the next step. If anyone really wants clevo-indicator I can supply the modifications but perhaps let me test it another week :)
@github-actions[bot] commented on GitHub (Aug 26, 2020):
This issue is stale because it has been open more than 180 days with no activity. If nobody comments within 7 days, this issue will be closed