Giter Site home page Giter Site logo

mlfc's Introduction

I need your feedback #31

MSi Laptop Fan Control

This is an attempt to create an analogue of MSI Dragon Center for OS GNU/Linux. I am not a designer, so do not expect much.

The application is divided into two parts. Server and client. The server part must work with root privileges to read/write to the file. The server part only reads the data from the file. The client part works like a regular application. Communication takes place using the dbus interface.

Image of Client

Installation

I am testing on Ubuntu 20.04

Dependencies

  1. C++17 compiler
  2. Qt, I am using 5.15.1
  3. Toml++
  4. Magic Enum C++
  5. GoogleTest
  6. CMake

modprobe ec_sys write_support=1

Compiling

git clone https://github.com/marshevms/mlfc.git
cd mlfc
mkdir build
cd build
cmake cmake -DCMAKE_BUILD_TYPE=Release ..

Deploying

The client and server folders should appear in the build folder; they contain binary files. The name begins with mlfc_ [client | server]. Next, you need files from the dbus folder.

In com.github.mlfc.server.service should contain the path to the server.

Move files:

  1. com.github.mlfc.server.service - /usr/share/dbus-1/system-services
  2. com.github.mlfc.server.conf, com.github.mlfc.client.conf - /etc/dbus-1/system.d

Thanks

https://github.com/YoyPa/isw - for the documentation

mlfc's People

Contributors

marshevms 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

Watchers

 avatar

mlfc's Issues

Build instructions for dummies pls.

I am trying to build the app but having difficulties with installing dependencies. I have cloned the Toml++ repository and created an environment variable 'tomlplusplus_DIR' assigned to the path that I cloned Toml++. The problem is cmake cannot find 'tomlplusplusTargets.cmake' file and thus cannot compile. That specific file does not exist in the Toml++ repository. The same story goes for the Magic Enum. Clearly, I am doing something wrong here. If someone can explain what should I do to install these dependencies correctly and build the repo it would be really great. Thanks.

There is a certain problem with librarie

The inculde folder is empty from the box - you need to immediately expand it with the toml ++ library. Also replace toml_version.h in appinfo with toml.h (bearing in mind that you still add to unclude tolm++)

Does this work in arch? On a ge72mvr?

I am unfamiliar with doing builds but am definitely willing to learn but am unsure if the commands would be the same in arch or the locations. I am using garuda linux KDE Dragonized gaming edition latest version as of this post. I am absolutely loving the experience. Having setup a pure arch install on a different computer in the past I know how hard it can be to get everything working. With garuda it worked out of the box which was phenomenal and can play RE Villiage at 45 - 60 hz easy with no problems. I installed a few widgets to get my temps and other things on my desktop and notice my cpu running at around 70 degrees c at idle with not much going on and started looking into fan control and found isw and your gui. Tried and failed to build his python package lol not sure what happened. it just left me with a curser. I found yours after the fact and saw that you used some of his stuff but noticed you were in ubuntu and didn't recognize the locations at the end of your install guide. Anyhow he has listed support for my laptop and I have included the ec values as he had on his documentation. If you could let me know if it would work as is or could make it work that would be awesome. Maybe I am just too much of a newb but I would love some real fan control and appreciate any help or advice you have on the matter. No rush as my hardware button still works for cooler booster functionality I just have no way to adjust my fans At least I can see their temps now. Gaming on linux has been better for me than windows after this garuda install and am loving it. Thanks again for any help.

code on his site minus the brackets so github didn't mistake hash symbols for formating

[179CEMS1]
[# GE72M_7RG
[# 179CEMS1.106
address_profile = MSI_ADDRESS_DEFAULT
fan_mode = 140
battery_charging_threshold = 100
[# CPU
cpu_temp_0 = 55
cpu_temp_1 = 61
cpu_temp_2 = 67
cpu_temp_3 = 73
cpu_temp_4 = 79
cpu_temp_5 = 85
cpu_fan_speed_0 = 40
cpu_fan_speed_1 = 48
cpu_fan_speed_2 = 56
cpu_fan_speed_3 = 66
cpu_fan_speed_4 = 76
cpu_fan_speed_5 = 86
cpu_fan_speed_6 = 95
[# GPU
gpu_temp_0 = 55
gpu_temp_1 = 60
gpu_temp_2 = 65
gpu_temp_3 = 70
gpu_temp_4 = 75
gpu_temp_5 = 75
gpu_fan_speed_0 = 0
gpu_fan_speed_1 = 54
gpu_fan_speed_2 = 62
gpu_fan_speed_3 = 70
gpu_fan_speed_4 = 78
gpu_fan_speed_5 = 86
gpu_fan_speed_6 = 86]

How to autostart the client on Linux Mint

These days, when I start my computer, I start the client program automatically. I like to know how to add it automatically with no GUI, and I like to have the icon visual in my task bar. I tried to add the program to my startup programs, but that did not work.

Regards,
rob Oudendijk

Add a config file

Add a configuration file to restore user configuration when the program starts or after restoring the laptop from sleep

No such file or directory on Ubuntu 22.04

After running program, I get this message An error occured An attempt to open the "/sys/kernel/debug/ec/ec0/io" file resulted in an error: No such file or directory MSI Stealth 15m
image

AUR-Support/PKGBUILD

Thread to discuss and note down stepstones and advancements in creation of a PKGBUILD for the AUR

Periodic freezes when app is running (even in the background)

Hello, and first of all thanks for the great app!

But I've noticed periodic freezes when running the app on MSI Creator 15A, Ubuntu 21.10, the XOrg (X11) session. It is pretty easy to notice when you:

  1. Move the window.
  2. Move the cursor using the touchpad (but not the mouse for some reason).
  3. Play any game using Steam for example.

All the freezes immediately go away when I quit the app using the tray icon. The issue still persists when the app window is closed but it is running in the background (minimized to the tray in other words). Not sure what causes the freezes since the CPU and memory usage of the processes belonging to the app is pretty low.

Error uncnown fun mode

After running program, I get this message "An error occured. While reading fun mode: uncnown fun mode: 0".

CPU fun speed always 0, even when enabled Cooler boost. Model of laptop is MSI Catana GF 76 Intel Core i5-11400H
msi_fun_control

Msi GT75 - Compiling

Hello,

I really would like to test it out. Unfortunately I don't have the expertise to install all the required dependencies to make it build.

Any option to have a build-ed version for Linux Mint?

Nvidia driver 460 MSI GE62-6QC

Just a few hours ago I updated my nvidia driver from 450 to 460 version and I noticed some things. There is an indicator on my laptop, it shows if discrete graphics are working.

  1. RED - nvidia
  2. BLUE - intel

Until now, it has always been red, but power saving was enabled in nvidia settings, which means only Intel is running. I remember on some version ubuntu ago it's sometimes was a blue.

Now it sometimes switches to blue and then to red. In most cases, this is a red light. I thought something was wrong with my laptop and I didn't care. But now I open the GUI for testing and noticed that the GPU temperature is sometimes zero and the auto profile value changed sometimes. Again, I thought that something was wrong with the program, but on the server side I didn't change anything. I was looking for bugs. And then I remembered some facts: new driver and indicator glitching.

Now it was necessary to check one fact, what would happen if the driver was rolled back. Do you know what happened? Everything works as before.

P.S. That's it. I don’t know what nvidia is doing there, but something is clearly happening and it looks like the video card does not turn off in the power saving mode, at least on my laptop.

Archpackage - Error: please fill the config file: /home/neko/.config/mlfc_client/mlfc.toml

`

current_mode = 'auto'
icon_theme = 'light'

[[mode]]
    [mode.auto]
    cpu_fan_speeds = []
    cpu_temps = []
    gpu_fan_speeds = []
    gpu_temps = []
    [[mode]]

[[mode.advanced]]
    [mode.advanced.default]
    cpu_fan_speeds = []
    cpu_temps = []
    gpu_fan_speeds = []
    gpu_temps = []

`

opening this file revealed a bunch of empty arrays, i assume i am supposed to fill them with a basic grid relating Temps to Fanspeed - can you give me some examples what to put into this? also i think it WOULD make sense to put in some of these values from the getgo.

[Server] Redesigne code style

  1. Function names must start with a lowercase letter.
  2. Think about the design of the name of the functions that are called through DBus interface

Cant launch program: /sys/kernel/debug/ec/ec0/io does not exist

When trying to launch the program it wont boot anymore after recent updates to the machine. (running Arch)
Might however not be the fault of mlfc itself - seems quite a few things across the system are funky now so i will reinstall in the coming days and then report back if the issue persists.

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.