Code Monkey home page Code Monkey logo

mcontrolcenter's Introduction

MControlCenter

MControlCenter is a Free and Open Source GNU/Linux application that allows you to change the settings of MSI laptops. Screenshots of MControlCenter

Features

  • CPU and GPU temperature display
  • Fan speed display
  • Switch between modes (Since version 0.2):
    • High Performance
    • Balanced
    • Silent
    • Super Battery
  • Change the maximum battery level limit
  • Advanced Fan Speed Control (Since version 0.4)
  • Change other settings such as keyboard backlight mode, USB Power Share, etc.

TODO

  • Saving multiple fan speed profiles

Tested on

The main device on which the application is being tested: MSI Summit E16 Flip Evo A12MT

List of tested devices

Installation

The application requires the ec_sys module with option write_support=1 to run.

If the ec_sys kernel module is not included in your distribution's kernel, you can use the acpi_ec kernel module.

This is QT application. You may need to install libqt5widgets5 to run.

Installation from the archive

  1. Download MControlCenter-x.x.x.tar.gz from the releases page
  2. Unpack the archive with the program
  3. Open terminal in unpacked directory
  4. Run the script sudo ./install

Installation from the repository

openSUSE Tumbleweed:

zypper addrepo https://download.opensuse.org/repositories/home:dmitry-s/openSUSE_Tumbleweed/home:dmitry-s.repo
zypper refresh
zypper install mcontrolcenter

openSUSE Leap 15.5

zypper addrepo https://download.opensuse.org/repositories/home:dmitry-s/openSUSE_Leap_15.5/home:dmitry-s.repo
zypper refresh
zypper install mcontrolcenter

openSUSE Leap 15.4:

zypper addrepo https://download.opensuse.org/repositories/home:dmitry-s/15.4/home:dmitry-s.repo
zypper refresh
zypper install mcontrolcenter

Launch MControlCenter on session startup

To restore settings after a reboot, add MControlCenter to startup.

Execute this command on a terminal:

cp /usr/share/applications/mcontrolcenter.desktop ~/.config/autostart/mcontrolcenter.desktop

Localization

You can help translate the MControlCenter app into your native language

  1. Copy /src/i18n/MControlCenter_en.ts to src/i18n/MControlCenter_xx.ts where xx is language code into which the translation is being made.
  2. Open MControlCenter_xx.ts in text editor and change language="en_US" to your language code.
  3. Translate strings into your language directly in a text editor or use the QT Linguist app.
  4. Translate GenericName in app shortcut resources/mcontrolcenter.desktop. To do this, add the line GenericName[xx]=translated generic name.
  5. Send pull request on github.

mcontrolcenter's People

Contributors

aleksanderboe avatar alien777 avatar aronnepiperno avatar b1u3-22 avatar biro96 avatar clunkiersalt817 avatar dhilbig avatar dirhamtriyadi avatar dmitry-s93 avatar echteralsfake avatar emrgncr avatar geoffreycoulaud avatar hoffmanra avatar ios7jbpro avatar isak05 avatar jiogo18 avatar luca-demma avatar marraviglioso avatar nadimkobeissi avatar oscser avatar rottenpants466 avatar self-destructed avatar srr81 avatar ssergio-ll avatar stuckj avatar tetroner9 avatar tomitheninja avatar twix53791 avatar vadcx avatar zardzul avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

mcontrolcenter's Issues

Cooler Boost mode after fan cleaning

Not your app specific issue, but want to hear from other users. If they also faced this and somehow was able to fix it. Before cleaning my heatsink fan, the cooler booster mode gave me 7000RPM. But now it only gives me 5900RPM max. What can be issue? Tried with EC upgrade, downgrade but still the same. Anyone else have ever faced this and later fixed this? Found some reddit post too, but no solution.

https://www.reddit.com/r/MSILaptops/comments/pmul5h/cooler_boost_rpm_lower_than_usual/

MSI Delta 15 Compatibilty Report + EC Dump + Issues

Info :
All Info reported Correctly
image

Cooler Boost :
Working

Mode :
Greyed out
image

Battery Threshold :
Working (In this case i test only in Balanced to confirm.. However applying custom values seems working too)

Fan Control :
This one is weird.. Whenever i enable advance fan control.. Fan 1 speed always idling between 2500-3000RPM even tho the temp is <65C (I set 0 RPM when <65C) Further testing reveal that it doesnt obey the value on the GUI..

If i disable advance control it will be auto and both fan at 0 RPM

This should work considering Cooler Boost also working..

Keyboard Backlit :
Greyed out
image

FN <-> Super :
I dont know how to test this but the button work

Webcam Toggle :
Working

USB Power SHare :
Greyed Out.. I dont what that is..

Most of the feature exist on Windows beside USB PowerShare.. (I dont know what that thing)

Result from sudo hexdump -C /sys/kernel/debug/ec/ec0/io

00000000  00 80 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00000010  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00000020  00 00 00 00 00 00 00 00  00 00 00 88 e0 06 1a 0b  |................|
00000030  02 05 00 05 51 0a 05 00  a0 14 60 3b 10 02 c0 00  |....Q.....`;....|
00000040  18 15 49 00 b7 0f 67 fe  71 0b d8 3b ea 0b f8 43  |..I...g.q..;...C|
00000050  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00000060  00 00 00 00 00 00 00 00  27 00 41 46 4d 50 53 58  |........'.AFMPSX|
00000070  78 00 00 00 00 41 41 50  64 00 07 03 03 03 03 03  |x....AAPd.......|
00000080  00 00 41 46 4d 50 53 58  00 00 00 23 23 3c 3c 4b  |..AFMPSX...##<<K|
00000090  64 00 07 03 03 03 03 03  02 00 73 00 00 66 00 00  |d.........s..f..|
000000a0  31 35 43 4b 45 4d 53 31  2e 31 30 38 30 39 30 32  |15CKEMS1.1080902|
000000b0  32 30 32 31 31 37 3a 30  39 3a 33 34 b7 0f 00 68  |202117:09:34...h|
000000c0  00 07 25 23 f0 9e 40 00  00 03 00 00 00 00 14 00  |..%#..@.........|
000000d0  00 00 40 00 7f a1 00 00  24 90 27 80 00 17 05 02  |..@.....$.'.....|
000000e0  e2 02 00 01 10 00 00 00  00 00 25 60 00 a1 00 df  |..........%`....|
000000f0  00 00 c1 82 0d 00 05 80  00 00 00 00 00 00 00 00  |................|
00000100

Some Notes :
I use Arch with 6.2.13-zen-1.1-zen.. Secure boot Enabled, UKI.. ec_sys and acpi_ec tested to confirm the issue still present and both result is the same

MSI Vector GP66 12UGSO

Hello! I tested it on my MSI laptop. My configuration:

  • Model: Vector GP66 12UGSO
  • BIOS Version: E1544IMS.509
  • EC Version: 1544EMS1.112
  • OS: Arch Linux (6.2.2-arch2-1)
  • App version: 0.4.0

Test details:

  • Mode: Y

  • Battery Limit: Y

  • Cooler Booster: Y

  • Fan Control: Y

  • Keyboard Backlit: N

  • FN -> Super: Y

  • Webcam: Y

  • USB Power Share: N (greyed out)

Also I want to say the app is very handy and it works amazing! Thank you so much @dmitry-s93

usr/bin/ read-only files on fedora silverblue 39.

host@fedora ~/D/MControlCenter-0.4.1-bin> sudo ./install.sh
[sudo] password for host:
Installation start
'./app/mcontrolcenter' -> '/usr/bin/mcontrolcenter'
install: cannot create regular file '/usr/bin/mcontrolcenter': Read-only file system

I tried sudo nautilus but still can't change permission for /usr/bin

The program won't compile under KDE6 (?)

Hello.

As a owner of MSI Raider GE78 HX 13VI I would love to have this program up and running on my Arch, unfortunately it won't compile.

CMake Error at /usr/lib/cmake/Qt6Core/Qt6CoreMacros.cmake:729 (set_property): set_property could not find TARGET MControlCenter. Perhaps it has not yet been created. Call Stack (most recent call first): /usr/lib/cmake/Qt6Core/Qt6CoreMacros.cmake:823 (qt6_finalize_target) CMakeLists.txt:88 (qt_finalize_executable)

I'm not a programmer but I guess this has to do something with Plasma 6, and the app was meant to run under Plasma 5. Any chance of updating it to run under newest KDE6?

Just a few questions

Is there an option to switch automatically between power modes in MControlCenter?

For example, on my system preferences in kubuntu i have 2 power mode profiles:

  • When connected to AC i choose performance mode
  • When only using battery choose power save

MControlCenter doesn't change automatically between power modes if i connect the AC charger or remove it, i have to do it manually. Also, if i'm using the performance mode in system settings and super battery in McontrolCenter the laptop runs really hot because the fans are turned off.

Also is it possible to automatically change the screen refresh rate between power modes? For example, 165Hz with AC connected and 60Hz when only using the battery?

Thank you

Ui is extremly laggy

Installed from aur on arch, 0.4.0

Ui is extremely laggy, any interaction has between 2-5 seconds delay. An I mean anything, including windows resize.

No other app has this problem, everything else works fine, and I'm doing it on a fresh install.

mcontrolcenter process uses between 0-2% of cpu.

strace shows it being perpetually stuck on this, over and over:

futex(0x1e2b120, FUTEX_WAIT_BITSET_PRIVATE|FUTEX_CLOCK_REALTIME, 0, NULL, FUTEX_BITSET_MATCH_ANY

Tryint to Install this but getting a error

When I have tried to install this on my MSI GE76 on Arch Linux I get this error: (Last line being the error)

Installation start
'./app/mcontrolcenter' -> '/usr/bin/mcontrolcenter'
mode of '/usr/bin/mcontrolcenter' retained as 0755 (rwxr-xr-x)
'./app/mcontrolcenter.desktop' -> '/usr/share/applications/mcontrolcenter.desktop'
mode of '/usr/share/applications/mcontrolcenter.desktop' retained as 0644 (rw-r--r--)
'./app/mcontrolcenter.svg' -> '/usr/share/icons/hicolor/scalable/apps/mcontrolcenter.svg'
mode of '/usr/share/icons/hicolor/scalable/apps/mcontrolcenter.svg' retained as 0644 (rw-r--r--)
'./app/mcontrolcenter-helper' -> '/usr/libexec/mcontrolcenter-helper'
mode of '/usr/libexec/mcontrolcenter-helper' retained as 0755 (rwxr-xr-x)
'./app/mcontrolcenter-helper.conf' -> '/etc/dbus-1/system.d/'
cp: cannot create regular file '/etc/dbus-1/system.d/': No such file or directory

And if I was to open the app it is in a frozen like state where I cannot click any options other than the tabs.

Conversion for Windows

Hi, I was wondering if it was possible to recompile the program to run on Windows 11. I think all MSI Centers have problems, regarding cleanliness of the interface, usability and impact on performance. So I was looking for an alternative as similar as possible to g-helper, but for MSI Notebooks. What do you think about it?

Mode Tab broke

The options under the mode tab are grayed out. Everything else works fine I just can't change the mode by any means. I'm new to Linux so I probably messed up somewhere, any help would be appreciated nonetheless.

installation

can someone help me in installation? iam new to linux pop os

not working on GF63 Thin 9RCX

Hi there, I've just download and tested on my GF63 Thin 9RCX (i7-9750H - 1050Ti)
And the program seems not working properly
The only thing that works is the info tab, every thing remains can not be used
I can't use any functions of the app like cooler boost or edit fan speed, or change battery mode...
Tab Mode is even disabled, can't press anything
I'm using Ubuntu 22.04 with KDE 5.25
Pls help
image

Testing MControlCenter on Fedora 37

Hi, i was testing this on the latest Fedora 37 release and it seems it doesn't work. McontrolCenter tries to enable the ec_sys module but it fails. It seems that this particular module is not available in the Fedora kernel.

Are there any workarounds for this?

Thank you dmitry

Mux Switch Support for Bravo 15 C7VF

The byte for the mux switch changes

EC dump
00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F
000000 00 80 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >................<
000010 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >................<
000020 00 00 00 00 00 00 00 00 0a 05 00 00 00 00 4b 5a >..............KZ<
000030 03 09 00 0d 01 00 50 81 d2 11 88 2c c8 01 e0 00 >......P....,....<
000040 00 00 64 00 b6 11 00 00 b6 11 a6 32 b7 0b 00 00 >..d........2....<
000050 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 >................<
000060 00 00 00 00 00 00 00 00 54 00 3c 41 46 4e 55 5a >........T.<AFNUZ<
000070 64 54 00 21 2e 37 43 54 5c 64 0a 03 03 03 03 03 >dT.!.7CT\d......<
000080 2c 00 3c 41 46 4b 50 55 64 00 00 29 38 3f 4b 54 >,.<AFKPUd..)8?KT<
000090 5e 64 0a 03 03 03 02 03 06 00 00 06 00 00 00 00 >^d..............<
0000a0 31 35 38 4e 49 4d 53 31 2e 31 30 36 30 33 32 39 >158NIMS1.1060329<
0000b0 32 30 32 33 31 33 3a 35 34 3a 34 32 00 00 00 28 >202313:54:42...(<
0000c0 00 00 06 22 00 00 00 00 00 70 00 6a 00 00 00 00 >...".....p.j....<
0000d0 00 00 c0 81 8d 00 03 80 00 00 00 00 00 00 00 00 >................<
0000e0 e2 00 00 b6 11 00 00 40 01 00 00 00 00 9a 00 e4 >.......@........<
0000f0 00 00 70 00 33 d0 00 00 00 00 00 00 00 04 00 00 >..p.3...........<
000100

4b to 0b

Would be appreciated!

MSI GP76 11UG

Laptop Specs

Laptop: MSI GP76 Leopard 11UG
EC Version: 17K3EMS1.108
EC Build: 06/10/2021

Test Details

Info Section: Everything working as intended including cooler boost.
Mode: Anything except default(silent) gives considerably worse performance(tested in csgo). Super battery works.
Battery: Working, but custom stops it from charging sometimes.
Keyboard Backlit: 10s timer and slider does nothing.
FN -> Super: Not Working.
Webcam: Option is greyed out.
USB Power share: Doesn't work

Running on Pop OS 22.04

MSI Stealth 15m ASEK211

MSI Stealth 15m ASEK211
EC VERSION: 1562EMS1.115

Cooler boost: work great

Battery: work great

FN -> SUPER: work great
Backlight keyboard: don't work

Waiting for modes and maybe I can help you with my keyboard

Different performance profile not working with Mcontrol center

i have msi bravo 15 with fedora having kernel 6.4 + i dont have ec_sys module so i installed acpi_ec kernel module with help of this
everything works fine in MControl center but the different power profile doesnt work ...
1.can anyone suggest how to fix it ??
2.do anyone know how to install ec_sys in my msi laptop so that
the power profile works
3.is there any better way to get different power profiles in fedora instead of this way plzz suggest

List of supported devices?

Would be useful to have some sort of information on what models are supported before i try to use this on my GL73 8RC.

ec_sys fails to load (in Solus Plasma)

Hello!

I have a problem. I'm getting the following message at program start:

Screenshot_20240127_150307
When the app loads all options are disabled:

Screenshot_20240127_150556
First of all: Yes, Secure Boot has (always) been disabled.

Now: I have tried to resolve this with the help of distribution devs and forum members.

This is what I have done so far:

  1. As per the ArchWiki Kernel Module Page
    I made a file ec_sys.conf with the contents ec_sys and I placed it in /etc/modules-load.d/.
    I made a file ec_sys.conf with the contents options ec_sys write_support=1 and I placed it in /etc/modprobe.d/.
  2. I did a reboot.
  3. After login I opened the terminal and I did lsmod | grep ec_sys. This is the result: ec_sys 12288 0.

When I start the app I get the aforementioned error.

My system information is:

Operating System: Solus 4.5
KDE Plasma Version: 5.27.10
KDE Frameworks Version: 5.114.0
Qt Version: 5.15.12
Kernel Version: 6.6.11-270.current (64-bit)
Graphics Platform: X11
Processors: 8 × Intel® Core™ i5-10300H CPU @ 2.50GHz
Memory: 15.4 GiB of RAM
Graphics Processor: NVIDIA GeForce GTX 1660 Ti/PCIe/SSE2
Manufacturer: Micro-Star International Co., Ltd.
Product Name: GF65 Thin 10SDR
System Version: REV:1.0

Can someone help me?

Am I doing something wrong?

Thank you!

Install

keep getting this error 'nstallation start
install: cannot stat './app/mcontrolcenter': No such file or directory
' on install

doesnt open in zorin os

i just installed this in zorin os and doest open. i also installed sudo apt install libqt5widgets5 still wont open

MSI Katana GF66 Status & Information

Model information: Katana GF66 11UE

Info: everything works.
Screenshot_20230514_122703

Mode: everything works.
Screenshot_20230514_122838

Battery: everything works.
Screenshot_20230514_122941

Fan control: everything works.
Screenshot_20230514_123902

Settings: everything works.
Screenshot_20230514_124003

Conclusion: everything works flawlessly and keep up your good work!

Test MSI GS60 6QE Ghost Pro

Hi, first, thanks for this amazing tool! I was using ISW for a while, but thanks to the recomandations of @FaridZelli, I am moving to you app, more flexible (I can dynamically change the fan speed, not only at reboot...). The fan control works perfectly, not all the other options, but personaly I don't care (except maybe the GPU temp, would be nice...).

Laptop info:
Name: GS60 6QE Ghost Pro
EC Version: 16H7EMS1.107

Arch (+ Window)

Test details:
CPU temp - Correct.
GPU temp - Seems to not working (0°C).
CPU\GPU fan speed - Correct.
Mode - Doesn't work (only Auto or Advanced)
Battery Limit - Work.
Cooler Boost - Work.
Fan Control - Work.
Keyboard Backlit - Doesn't work, the lights however yes...
FN -> Super - Doesn't work.
Webcam - Work.

Mode setting not working on Modern 15 B7M

Hi there.
First of all, thanks for this awesome work!

I just packaged your application for Mageia. Eventually, I will push it into the official repo.
I use a dkms version of the ec_sys module, provided by https://github.com/junocomp/ec-sys-dkms

I tested it on a Modern 15 B7M. Everything works fine but the Mode selection. The whole menu is completely grayed out.

I can do some testing if you give some hints on how to develop the fix ;)

Thanks

MSI GE76 Raider 11UG

Hello.

I have tested this application.
Most of the functions work as on Windows 10 in the MSI Center.

Laptop info:
Name: GE76 Raider 11UG
BIOS Version: E17K3IMS.11D
BIOS Release Date: 2022/01/10
EC Version: 17K3EMS1.1141224202111:03:58
Windows + Manjaro (Arch)

Test details:
CPU\GPU temps - Correct.
CPU\GPU fan speed - Correct.
Mode - Work.
Battery Limit - Work.
Cooler Boost - Work.
Fan Control - Work.
Keyboard Backlit - Doesn't work.
FN -> Super - Doesn't work.
Webcam - Work.
USB Power Share - I can turn this option on and off, but I don't quite understand how it should work :)

P.S. I wish there was a Windows version of your program, because setting up fan сurve in the MSI Center is a nightmare. I searched the whole Internet for an alternative to MSI Center, but I couldn't find anything like your application anywhere.
Is there a chance that you will make a working build for Windows ?

MSI Summit E16 Flip (A12UCT model)

MY LAPTOP

  • Laptop: MSI Summit E16 Flip, model A12UCT
  • EC Version: E1592IMS.10C
  • EC Build: 19/08/2022
  • Kubuntu 22.10, kernel 6.1 RC3
  • MControlCenter 0.3.0

MY TEST

  • Cooler Boost: Works!
  • Modes (High Performance, Balanced, etc): Works!
  • Battery (Best for mobility, balanced, etc): Works!
  • Keyboard backlight adjustment/Auto 10 second off : Works!
  • FN -> Super: Works!
  • Webcam: Works!
  • USB Power share: Works!

Some keyboard special keys don't work: turn on/off touchpad, turn on/off mic, turn on/off webcam, changing between power modes, screen rotation.

Also fliping the screen doens't turn off the trackpad and keyboard, light sensor doens't apear to be working.

How to install?

Hi :) I cloned and tried to install (on ubuntu), 2 different ways. Not sure if the README is up to date, or I am missing something?

husujo@MSI-Alpha-15:~/MControlCenter$ sudo ./install
sudo: ./install: command not found

husujo@MSI-Alpha-15:~/MControlCenter$ sudo ./scripts/install.sh
Installation start
cp: cannot stat './app/mcontrolcenter': No such file or directory

GS66 Stealth 11UE

Hi! I just wanted to say thank you for your work!

I was able to get everything (but the keyboard) to work on Fedora 38 under BIOS E16V4IMS.118 (2023-02-13). I just had to also use musikid/acpi_ec as per issue #66.

For the keyboard (HW_id 1038:113a) I used Askannz/msi-perkeyrgb with the unbind trick as per issue #49.

If there is anything I could do to contribute let me know. I am dual booting Windows 10 so I could check stuff over there too.

Cheers!

MSI GS75 8SE

Hi!

I report my laptop for fix compatibility.

MY LAPTOP

  • Laptop: MSI GS75 8SE
  • EC Version: 17G1EMS1.107
  • EC Build: 07/12/2019

MY TEST

  • Cool Boost: Works!
  • Modes (High Performance, Balanced, etc): Not Working. All options are disabled.
  • Battery (Best for mobility, balanced, etc). Works!
  • Keyboard Backlit: Not Working. Option is disabled.
  • FN -> Super. Not Working.
  • Webcam. Not Working. Option is disabled.
  • USB Power share. Not Working. Option is disabled.

MY EC DUMP

$ sudo hexdump -C /sys/kernel/debug/ec/ec0/io
[sudo] password for user:

00000000 00 80 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
00000010 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
00000020 00 00 00 00 00 00 00 00 00 00 00 b0 e0 06 4b 0f |..............K.|
00000030 02 05 01 0d 50 0a 05 00 a0 14 60 3b 71 02 c0 00 |....P.....`;q...|
00000040 50 0a 27 00 00 12 c8 f7 e3 06 10 39 37 0c f8 43 |P.'........97..C|
00000050 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
00000060 00 00 00 00 00 00 00 00 3a 00 37 40 46 4c 52 58 |........:.7@FLRX|
00000070 64 32 2d 32 3c 46 46 46 4b 00 08 03 03 03 03 03 |d2-2<FFFK.......|
00000080 38 00 37 3d 41 47 4d 57 5e 32 00 32 3c 46 46 50 |8.7=AGMW^2.2<FFP|
00000090 6e 00 08 03 03 03 03 05 02 00 7d 02 00 64 00 00 |n.........}..d..|
000000a0 31 37 47 31 45 4d 53 31 2e 31 30 37 30 37 31 32 |17G1EMS1.1070712|
000000b0 32 30 31 39 30 39 3a 34 32 3a 31 38 00 12 00 00 |201909:42:18....|
000000c0 00 01 25 00 00 9e 40 00 00 00 00 9b 00 8a 00 00 |..%...@.........|
000000d0 00 00 00 00 70 80 00 00 00 00 00 80 00 00 00 00 |....p...........|
000000e0 e2 02 00 05 10 00 00 00 00 00 00 00 00 9a 00 bc |................|
000000f0 00 00 80 83 0d 00 05 00 00 00 32 00 00 00 00 00 |..........2.....|
00000100

Thanks!

MSI GF63-Thin-11UC-866IN

Well, Firstly this control center is almost close to the dragon center, and it's really very good. In my laptop, almost all the options work, only the auto off of the keyboard backlight doesn't. My problem is there are some functionalities in my Fn key row.

Fn+F2 = Share Screen, which I know will not work.
Fn+F3 = Enabling/Disabling touchpad Doesn't Work
Fn+F6 = Enabling/Disabling webcam Works(also has a LED indicator on it which pop's up)
Fn+F7 = Don't know what it does, doesn't understood even in Windows
Fn+F10 = Airplane mode button, surprisingly doesn't work
Fn+F12 = Suspend mode, which works with my surprise

Any ways to enable atleast the airplane mode option? What should I try, can u give me some ray of hope?

RFE: Moving some of the functionality to a kernel driver

Short self introduction I'm a Linux developer mostly working on hw-enablement for Linux laptops. I'm also the subsystem maintainer for kernel drivers under: drivers/platform/x86

While helping a MSI laptop user with some other issue I got pointed to MControlCenter.

First of all thank you for helping MSI laptop users with your app.

Some of the EC functionality which MControlCenter exposes has standardized kernel APIs. The most interesting feature probably being setting battery charge thresholds. On ThinkPad notebooks (and also on some other type laptops). These thresholds are exposed through the standardized kernel power-supply API: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/ABI/testing/sysfs-class-power

For example on my ThinkPad:

[hans@x1 ~]$ ls /sys/class/power_supply/BAT0/
alarm                           charge_stop_threshold  manufacturer   subsystem
capacity                        cycle_count            model_name     technology
capacity_level                  device                 power          type
charge_behaviour                energy_full            power_now      uevent
charge_control_end_threshold    energy_full_design     present        voltage_min_design
charge_control_start_threshold  energy_now             serial_number  voltage_now
charge_start_threshold          hwmon2                 status
[hans@x1 ~]$ cat /sys/class/power_supply/BAT0/charge_control_start_threshold 
50
[hans@x1 ~]$ cat /sys/class/power_supply/BAT0/charge_control_end_threshold 
85

There are plans (but no code yet) to add support to upower and to GNOME's UI to allow users to set battery thresholds through these standardized sysfs attributes. And AFAIK in KDE powerdevil + the UI already support this.

I know that the kernel has a reputation of being hard to contribute to / an unfriendly place. But I ensure you that that is generally not the case and certainly not the case for the drivers/platform/x86 code which I maintain (under which code for MSI laptop's EC would fall).

It would be nice if these same kernel APIs would also work on MSI laptops, so I'm wondering if you would be willing to contribute support to the kernel for this? If you are worried about the review process you can send initial version of patches for this to me directly and I can do an initial review before posting the patches on the public mailinglist.

Fan Speed resets after Wakeup from suspend

Hi,
first off I wanted to say that this project is really amazing and finally allowed me to control the fan speed.
But when I wake my Laptop up (after suspend) the fan speed goes back to the "default" values.
Is this intended? Or is there a workaround?
I am using a MSI Katana GF76-11UC.

Help with getting SW_TABLET_MODE reporting working on the MSI Summit E16 Flip ?

Short self introduction I'm a Linux developer mostly working on hw-enablement for Linux laptops. I'm also the subsystem maintainer for kernel drivers under: drivers/platform/x86

I have been working with a user to get SW_TABLET_MODE reporting working on their MSI Summit E16 Flip A12UCT: https://gitlab.freedesktop.org/libinput/libinput/-/issues/822

Looking at the ACPI tables of that model, their is an intel-hid ACPI device (check for HIDD in dsdt.dsl) which should report if the 2-in-1 is folded into tablet-mode or being used in laptop mode. Specifically the bit of ACPI code below should cause 0xcc / 0xcd ACPI notifies to be send which should then get picked up by the https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/drivers/platform/x86/intel/hid.c code and translated into SW_TABLET_MODE input events:

    Scope (_SB.PC00.LPCB)
    {
...
        Device (EC)
        {
...
            Method (_Q84, 0, NotSerialized)  // _Qxx: EC Query, xx=0x00-0xFF
            {
                SCIC = 0x84
                DBG8 = 0x84
                If ((IUCE == One))
                {
                    If (MYEC)
                    {
                        CONV = ISHS /* \_SB_.PC00.LPCB.EC__.ISHS */
                        If (((OSYS >= 0x07DF) && ^^^^HIDD.BTLD))
                        {
                            If ((CONV == 0x03))
                            {
                                UPBT (0x06, Zero)
                                Notify (^^^^HIDD, 0xCC) // Hardware-Specific
                            }
                            ElseIf ((CONV == One))
                            {
                                UPBT (0x06, One)
                                Notify (^^^^HIDD, 0xCD) // Hardware-Specific
                            }
                        }
                        ElseIf (CondRefOf (\_SB.PC00.GFX0.IUEH))
                        {
                            ^^^GFX0.IUEH (0x06)
                        }
                    }
                    Else
                    {
                        UPBT (0x06, One)
                        Notify (^^^^HIDD, 0xCD) // Hardware-Specific
                    }

                    Notify (LID0, 0x80) // Status Change
                }
                Else
                {
                    Notify (LID0, 0x80) // Status Change
                }
            }

But it seems that for some reason the EC is never sending 0x84 events, so this code never gets executed by the kernel's ACPI interpreter and we never get the 0xCC / 0xCD notifies on the ACPI HIDD device.

@dmitry-s93 since you have quite a bit of experience with the MSI EC on these devices, I wonder if you have any insights in this?

Cannot start installation

Hi,
Thanks for your work

I have a problem when im trying to install the app.

When a I run the script its says ./build/mcontrolcenter : no file or directory with this name

What is the problem ?

thanks

User mode switch does not handle all memory addresses (MSI Modern 15 A11M)

Hey,
I noticed that my laptop model (MSI Modern 15 A11M 1552EMS1.1180721) appears to have two additional memory addresses that are altered when I switch between user modes. Some time ago, I wrote a small Windows app to monitor the EC ram while I tweaked settings in MSI Center Pro to find out memory addresses specific to my model.

This was the data I was able to collect from switching between user modes and noting down updated addresses that my tool spit out:

Super Battery:
	 0x79 => 70 (0x46)
	 0x91 => 70 (0x46)
	 0xD2 => 194 (0xC2)
	 0xD3 => 129 (0x81)
	 0xD4 => 13 (0x0D)
	 0xEB => 143 (0x8F)

Silent:
	 0x79 => 75 (0x4B)
	 0x91 => 70 (0x46)
	 0xD2 => 193 (0xC1)
	 0xD3 => 130 (0x82)
	 0xD4 => 29 (0x1D)
	 0xEB => 128 (0x80)

Balanced:
	 0x79 => 75 (0x4B)
	 0x91 => 70 (0x46)
	 0xD2 => 193 (0xC1)
	 0xD3 => 131 (0x83)
	 0xD4 => 13 (0x0D)
	 0xEB => 128 (0x80)

High Performance:
	 0x79 => 80 (0x50)
	 0x91 => 75 (0x4B)
	 0xD2 => 192 (0xC0)
	 0xD3 => 131 (0x83)
	 0xD4 => 13 (0x0D)
	 0xEB => 128 (0x80)

MControlCenter currently sets shift mode 0xD2, fan flags 0xD4, and the super battery mode flag in 0xEB. If we ignore the backlight level 0xD3, there are two addresses left, that aren't handled by this app yet.

Both of these addresses are directly located in the address ranges, which also contain either CPU or GPU temperatures & fan speeds. Still, I'm not entirely sure what these are actually for.
My guess:
0x79: CPU power?
0x91: GPU power?

I documented all addresses I found for my model as a hex pattern file for ImHex annotations if that helps: https://github.com/ThePBone/msi-ec-modern/blob/master/msi_modern_15_a11m_ec.hexpat

It would be great if this app would also set 0x79 and 0x91 (maybe other models use these addresses as well?).

Issue with Install

I am trying to install the application on POP OS and running into some issues. First error:
Installation start cp: cannot stat './app/mcontrolcenter': No such file or directory

Looking reading install.sh, I see that the filenames and structure listed in the script do not match those in the repository. Am I missing something? Do I need to relabel all the files and directories to match?

Apologies if I am missing something obvious. I know just enough to get me in trouble most of the time.

MSI GE63 RAIDER RGB 8RE

Hello, I'm making this message to add proper support for my laptop, which is, as the title says, an MSI GE63 RAIDER RGB 8RE.

There are no proper guidelines to follow yet for making device requests, so I'm gonna try and follow what people generally show you.

Laptop Details :

  • Laptop : MSI GE63 RAIDER RGB 8RE
  • EC Version : 16P5EMS1.111
  • EC Build : 05/20/2019 09:44:24
  • Windows + Arch Linux
  • MControlCenter 0.3.0 (installed via custom PKGBUILD from #43)

Test details :

  • Battery charge : ✔️ (Is it normal that it's off by +1% though ?)

image

  • CPU Temps : ✔️ All correct.
  • Fan speeds : ❌ First is incorrect.
  • Cooler Boost : ✔️ Works !
  • Modes : ❌ Greyed out. Feature available in Dragon Center on my Windows installation.
  • Battery settings : ❌ Greyed out. In comparison, isw seems to support that feature on my laptop.
  • Keyboard backlit : ❓ Greyed out. I'm not sure about this setting. My keyboard is one made by SteelSeries, so maybe it's normal for it to be greyed out. However, for the sake of comparison, I'd like to confirm that msi-perkeyrgb works properly with my laptop.
  • USB RGB lighting : ❌ Completely missing.
  • FN / Super : ❌ Doesn't work at all.
  • WebCam : ✔️ Works !
  • USB Power Share : ❓ Greyed out. Not sure my model has this feature.

EC Dump :
I'm not sure my current EC dump is "clean" after messing around with MControlCenter, if you see what I mean.
As such, I think it's better for me to give you this one instead from a few months ago :
JordanViknar/isw-ge63-8re#1
If you wish to, you can still ask me for my current EC dump though.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.