lm-sensors / lm-sensors

lm-sensors repository
https://hwmon.wiki.kernel.org/
GNU General Public License v2.0
926 stars 271 forks source link

IT8587 #380

Open junocomp opened 2 years ago

junocomp commented 2 years ago

Any chance of providing support for 0x8587 ITE? All Clevo laptops use this to control the fan.

Wer-Wolf commented 2 years ago

Afaik, its hard or even impossible to gain access to the datasheets of such ITE chips, and without them there will be likely no support. Sorry

Wer-Wolf commented 2 years ago

Also please note that support for individual hardware is an issue regarding the drivers inside the linux kernel.

junocomp commented 2 years ago

I found this online, does it help? IT8587.pdf

Source: https://repowebapps.blogspot.com/2019/10/kbc-ite-it8587-schematic.html

Wer-Wolf commented 2 years ago

That is a circuit plan, not a Datasheet, sry.

viktorxda commented 2 years ago

Here is a datasheet for the: IT5576E-128.pdf It seems IT5570/IT5576/IT8528/IT8587 are somewhat similar.

junocomp commented 2 years ago

any updates on this?

Vitamin-X commented 1 year ago

the tuxedo-control-center got support for it... may take a look into thier sources?

ntzb commented 1 year ago

@Vitamin-X which chip do you mean exactly? also can please share how you know that tuxedo has support for it? where did you see it?

Vitamin-X commented 1 year ago

i got an IT5570 in my notebook and its controllable by the Tuxedo software

coreboot also got some stuff about it -> https://github.com/coreboot/coreboot/tree/master/src/ec/clevo/it5570e

junocomp commented 1 year ago

@Vitamin-X any chance of making a it5570e-dkms for this and I can try to test it?

Vitamin-X commented 1 year ago

the tuxedo-keyboard pakage got one its part of thier controll center

https://github.com/tuxedocomputers/tuxedo-keyboard

junocomp commented 1 year ago

But that's the entire tuxedo-keyboard package with it5570e.

Vitamin-X commented 1 year ago

yea the IT5570 is also controlling the Keyboard so its part of it anyway

i also just found all that here cuz im looking to get Nvidia Optimus working, which is controlled by the same chip

system76 is also another Linux Clevo reseller, they also got some stuff on thier github page

https://github.com/system76

ntzb commented 1 year ago

interesting.. I have it5571 which might be a related/similar chip. should installing the tuxedo_keyboard module help make the EC/sensor detectable? I tried but it didn't seem to make a difference (it might be due to it not being it5571 but it5570e though)

Vitamin-X commented 1 year ago

yea up here the fans are also not shown in lm-sensors

if you got an Clevo notebook, have you tryed the full tuxedo controll software? its not that bad

btw: when you search on google for your notebook and add site:e-weekly.co.uk you can find the service manual with schematics to see whats all connected to the Embedded Controller

thats the one of my notebook https://www.e-weekly.co.uk/download/RnD/DRIVERS/CLEVO/PCxxHxx/ESM7.pdf

ntzb commented 1 year ago

I don't have a clevo or tuxedo hardware, it's an ASUS laptop. seems like schematics won't help advancing any support in lm-sensors for IT557X devices.

Vitamin-X commented 1 year ago

oh the person switched haha i ment the other one

but do asus notebooks uses these ITE chips too? so far i notice that asus i way more friendly against linux... maybe they got some similar stuff

ntzb commented 1 year ago

nothing linux friendly from asus. some of their laptops use ITE chips. mine uses IT5570 unfortunately.

junocomp commented 1 year ago

https://github.com/a1wong/it87

Vitamin-X commented 1 year ago

annoying the creator ? haha

but what exacly do they need to support them? currently rewriting that system76 EC flash and i could provide some details.

never user lm-sensors much, and came just randomly by here, cuz google found it while i was searching for that chip

ntzb commented 1 year ago

I'm not sure what's needed, but if tuxedo/coreboot got it working with their clients, it seems doable for lm-sensors. I tried poking around other forks like here https://github.com/frankcrawford/it87/issues/8 but it seems it557x are too different from the it87 devices to get any help.

Vitamin-X commented 1 year ago

https://github.com/Vitamin-X/ec/blob/master/src/board/system76/common/smfi.c#L355

some code running inside the IT5570 to communicate with the PCH ... it executes some commands these also include getFanSpeed

and it seems like it runs on SPI

grafik grafik