-
Notifications
You must be signed in to change notification settings - Fork 42
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
GS66 11UE #9
Comments
You can try to use this app for battery thresholds and other stuff: |
SummaryI will answer you in three parts:
Battery thresholdYour laptop seems to match with the values in the constants.h file for the battery threshold. You can adjust it by 4 ways:
echo max >/sys/devices/platform/msi-ec/battery_mode
echo medium >/sys/devices/platform/msi-ec/battery_mode
echo min >/sys/devices/platform/msi-ec/battery_mode
echo 100 > /sys/class/power_supply/BAT0/charge_control_end_threshold
echo 80 > /sys/class/power_supply/BAT0/charge_control_end_threshold
echo 60 > /sys/class/power_supply/BAT0/charge_control_end_threshold
Keyboard backlightAgain, you can adjust it in a similar way to the battery threshold.
echo 1 > /sys/class/leds/platform::led0/brightness
echo 2 > /sys/class/leds/msiacpi::kbd_backlight/brightness
Unknown values in your dumpYou can contribute to support unknown values in the future. For this and if you are interested, you need dual boot and Dragon Center installed. Try to enable/disable them and copy/paste here the decimal value given. Also, a |
Hi! I made a couple of debug attributes in my fork, they should help with getting information about your model's EC configuration. Can I please ask you to run them on your laptop? Here's the instruction:
|
Hi! I am really sorry for the delay but it has been a while since I booted into Linux because of work... This is what the debug.txt looks like (backlight does not turn on)
I run gpu_burn for a couple of minutes and while still running executed the code on step 8 and got this on the dump txt:
|
Thank you! Okay, so judging by your debug.txt I can see some of the addresses. And I also have a couple of questions
Both addresses contain a valid value. Does your laptop charge up to 60% or all the way up to 100% ?
0x2e and 0x2f seem correct. Just to be sure, was your webcam disabled?
Can't tell. If you can switch Fn and Win buttons in the official Windows MSI app and run debug for me again we'll be able to see the right address.
May be correct. This parameter's address seems universal.
Looks good to me
Looks correct
These look correct. Looking at EC dump, my laptop has the same behavior as yours.
I'm leaning towards 0xd3. I can see you run the dump several times and pressed the backlight button between the runs. Am I correct? |
|
Okay, I added your laptop If you wish to check it, then:
Here is the list of supported features:
Not sure why. My laptop's backlight button is controlled by hardware, so if yours' too then your backlight may be broken. But if it works in windows then it is something on the software side. |
OK. So i succesfully changed my battery threshold using:
Still no luck with my keyboard BL... Tried using |
Great!
Are you sure your backlight works itself? Pressing Fn+F10 changes [0xd3], so the shortcut works. |
Everything works fine on Windows... the issue has to be software related then. Not even through CLI was I able to turn it on. |
Then I don't know what the problem is :( Probably needs more than toggling a single ec address... but I don't know what exactly |
:( is there something I could do while on windows to see what happens under
the hood when I turn the backlight on?
…On Sat, Feb 18, 2023, 19:05 teackot ***@***.***> wrote:
Then I don't know what the problem is :(
Probably needs more than toggling a single ec address... but I don't know
what exactly
—
Reply to this email directly, view it on GitHub
<#9 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ARYXPENU5AS24TF7RFSDK53WYEFOVANCNFSM6AAAAAARTHY3GQ>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Hmm actually there is a Windows app to view EC memory. Its developer commented here. You can switch the backlight and see what changes. You can also play around with different settings in the official MSI Center / MSI Dragon Center / MSI Creator Center and see how it reflects on EC memory |
Some of your dump's patterns are very similar to those of MSI Summit E16 Flip laptop, so everything points to [0xd3] being the backlight parameter. But I have an idea. Several people with RGB laptops reported this parameter not having any effect, so my theory is, maybe this parameter controls the backlight of non-RGB laptops, and RGB laptops have it only for compability reasons. If it is true, then it is out of scope of this driver |
Makes sense... I will try my luck with Open RGB then! They don't have
support out of the box for my KB but maybe I can find another kind soul
like you and make it work!
Thank you very much for your help and time!
El dom, 19 feb 2023 a las 18:11, teackot ***@***.***>)
escribió:
… Some of your dump's patterns are very similar to those of MSI Summit E16
Flip laptop, so everything points to [0xd3] being the backlight parameter.
But I have an idea. Several people with RGB laptops reported this
parameter not having any effect, so my theory is, maybe this parameter
controls the backlight of non-RGB laptops, and RGB laptops have it only for
compability reasons. If it is true, then it is out of scope of this driver
|
Update: got the backlight working flawlessly with BUT now I can't install |
Hi! First time Linux user trying to get stuff to work. I installed your repo on Mint and got this results:
/sys/devices/platform/msi-ec/battery_mode
max
/sys/devices/platform/msi-ec/cooler_boost
off
/sys/devices/platform/msi-ec/cpu
cat: /sys/devices/platform/msi-ec/cpu: Is a directory
/sys/devices/platform/msi-ec/driver
cat: /sys/devices/platform/msi-ec/driver: Is a directory
/sys/devices/platform/msi-ec/driver_override
(null)
/sys/devices/platform/msi-ec/fan_mode
unknown (41)
/sys/devices/platform/msi-ec/fn_key
unknown (32)
/sys/devices/platform/msi-ec/fw_release_date
2022/01/04 13:53:21
/sys/devices/platform/msi-ec/fw_version
16V4EMS1.114
/sys/devices/platform/msi-ec/gpu
cat: /sys/devices/platform/msi-ec/gpu: Is a directory
/sys/devices/platform/msi-ec/leds
cat: /sys/devices/platform/msi-ec/leds: Is a directory
/sys/devices/platform/msi-ec/modalias
platform:msi-ec
/sys/devices/platform/msi-ec/power
cat: /sys/devices/platform/msi-ec/power: Is a directory
/sys/devices/platform/msi-ec/shift_mode
unknown (112)
/sys/devices/platform/msi-ec/subsystem
cat: /sys/devices/platform/msi-ec/subsystem: Is a directory
/sys/devices/platform/msi-ec/uevent
DRIVER=msi-ec
MODALIAS=platform:msi-ec
/sys/devices/platform/msi-ec/webcam
unknown (11)
/sys/devices/platform/msi-ec/win_key
unknown (32)
How should I proceed to change any of the settings? I'm particularly interested in battery thresholds and keyboard functionalities.
Thank you so much in advance
The text was updated successfully, but these errors were encountered: