alou-S / omen-fan

Utility to control fans in Omen laptops
GNU General Public License v3.0
49 stars 5 forks source link

Support for 16-xf0175ng (8L370EA) #7

Open ghost opened 8 months ago

ghost commented 8 months ago

Hello, can you add support for 16-xf0175ng (8L370EA) laptop?

alou-S commented 7 months ago

Did you attempt to force the current script to run on your laptop?

ghost commented 6 months ago

Yep, but it not works

alou-S commented 6 months ago

Could you send me your laptop's DSDT table.

sudo cp /sys/firmware/acpi/tables/DSDT $HOME/Desktop/DSDT
sudo chown $USER:$USER $HOME/Desktop/DSDT

And then upload the DSDT file here

ghost commented 6 months ago

DSDT.zip Here you go, tell if you need any help Do you have discord or something for communication?

alou-S commented 6 months ago

The ERAM fields on your DSDT table practically has no information in it

    OperationRegion (ERAM, EmbeddedControl, Zero, 0xFF)
    Field (ERAM, ByteAcc, Lock, Preserve)
    {
        Offset (0x01), 
        Offset (0x02), 
        Offset (0x03), 
        Offset (0x60), 
        SMPR,   8, 
        SMST,   8, 
        SMAD,   8, 
        SMCM,   8, 
        SMD0,   256, 
        BCNT,   8, 
        SMAA,   24, 
        SMBN,   8, 
        Offset (0x8A)
    }

You will probably have to figure out the correct offsets yourself by using ec_probe monitor from NBFC on Windows while manually adjusting the fan speed with Omen Gaming Hub.

ghost commented 6 months ago

Offsets of what and how do I find that ec_probe?

alou-S commented 6 months ago

The thing is that this is actually somewhat complicated.

The ec_probe executable should be found in the NBFC install directory.

And you should find the offsets of the Fan Control and probably other things I have a list of my Laptops EC offsets here : https://github.com/alou-S/omen-fan/blob/main/docs/probes.md

ghost commented 6 months ago

When I try to open executable it closes immidiately

alou-S commented 6 months ago

Open it from command prompt :slightly_smiling_face:

ghost commented 6 months ago

image I'm getting those numbers, what's next?

alou-S commented 6 months ago

You gotta figure out which ones pertain to changing the fan speed when using Omen Gaming Hub to tweak the fan speeds. Here is a good guide that can help you make sense of it : https://github.com/hirschmann/nbfc/wiki/Probe-the-EC%27s-registers

Also do note that some probes just reflect the fan's current RPM and not the set target RPM by software. So don't be fooled by that. Good Luck with figuring it out.

ghost commented 6 months ago

But it shows like 50 probes and re-rendering all the time, how I supposed to see difference? Does those red ones mean something?

alou-S commented 6 months ago

The hex number in green are the addresses on your EC (probes). New numbers can appear over time as more of the addresses are modified.

The moving numbers to the right of the probes are their values over time. The red ones are so your eyes can quickly find the ones that change.

Yes there are alot of probes that serve different purposes. Some give temperature, some set power targets, some set fan speed etc. Please do check the guide link and my list of offsets link that I have posted before.

ghost commented 6 months ago

Should I close Omen spyware when writing probes, or will it not overwrite? I've tried with it both on and off, using all the probes I found that change when I choose another power mode. However, nothing changed and I know it because the energy-saving power mode would limits fan cooling speed.

alou-S commented 6 months ago

Wait doesn't the Omen software have a method to manually set the fan speed.

ghost commented 6 months ago

It is. but I started with Power mode since there's less values (3)

alou-S commented 6 months ago

Uhh just try figuring things out man. It will take a while of trial and error. Just use the resources I have given.

ghost commented 6 months ago

But how do I know it worth of wasting time if I can't modify even Power mode, alse there's strings like D8, 0A, D9 (basically any with letter) that I can't write through cmd. I'm not even sure that I'm overwriting anything... Updete: okay, those strings was Hexademical numbers, so you need to convert them, and basically I found one of working probes that affect something

ghost commented 6 months ago

So, let's start, I will put all the findings here: 0x11: Read only Fan speed? 0x14: Fan speed; 0-64 range; RPM = number * 100; Omen Gaming Hub gives 6000 max and 2500 min. Only left fan for some reason

ghost commented 6 months ago

I tried everything and can't find how to turn on right fan through EC, when you write to 0x14 it will only change left fan speed