Skip to content

GF66 (MSI Katana) and possibly other models have different battery threshold address #1

@levnikmyskin

Description

@levnikmyskin

Hey everyone! So it looks like the Katana model has a different battery threshold address. I don't know about the other addresses (since this was the only one I was interested about). I can tell you that cooler boost, for instance, works out of the box. Other things might work as well, who knows.

That said, for the battery address, change the isw.conf file (bottom of the file, MSI_ADDRESS_DEFAULT), like:

...
[MSI_ADDRESS_DEFAULT]
address_profile = MSI_ADDRESS_DEFAULT
fan_mode_address = 0xf4
cooler_boost_address = 0x98
usb_backlight_address = 0xf7
battery_charging_threshold_address = 0xd7  <---- this is what you need to change (default now is 0xef)
...

Once you've done this and saved the file, you can simply do isw -t 80 to set the battery threshold at 80% (laptop needs to be below 80% when you plug it in for this to work, from my experience).
Now, I didn't look into the isw python code too much, but I feel like all the addresses are taken from the MSI_ADDRESS_DEFAULT or am I wrong?
If addresses are taken by the model specific section, then we should be good to go simply changing the address in a specific section for this (and possibly many more) model.
Also, see this issue on the original isw repo

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinginvestigatingWorking on a solution

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions