Git Product home page Git Product logo

Comments (10)

GuilloOme avatar GuilloOme commented on July 24, 2024 1

Yep, you are right. Do you think you will be able to propose a pull request to change that ?

from clevo-indicator.

karolherbst avatar karolherbst commented on July 24, 2024 1

@aqd https://www.kernel.org/doc/Documentation/hwmon/sysfs-interface

from clevo-indicator.

karolherbst avatar karolherbst commented on July 24, 2024

@GuilloOme no, I rather work on this project: https://bitbucket.org/lynthium/clevo-xsm-wmi

from clevo-indicator.

jiping-s avatar jiping-s commented on July 24, 2024

It won't be a pull request. Kernel-based solution requires a module controlling EC and a way of communication (to userspace), plus a GUI client.

It'd be ideal to be integrated into multi-hardware platform such as lm_sensors or some sort of auto fan-control service, and I'd only have to write the driver. But lm_sensors website is down and I have no idea where to look for information.

from clevo-indicator.

patrick-mota avatar patrick-mota commented on July 24, 2024

@karolherbst thanks for your issue 👍

If I understand well it happens because we have two tools in one.
One part for the unity display so the user can change the fan speed from this "gui tool".
The other one is the part that allows to communicate directly to the EC.

So if I change the code to remove all the stuff about the gui and only use the code that allows to interact to the EC (so only command line used to reduce the fan speed) it should be ok ?

Sorry I don't know anything about Linux kernel...

from clevo-indicator.

karolherbst avatar karolherbst commented on July 24, 2024

@patrick-mota nope. In the end you want to have a linux kernel module doing all the EC stuff and then provide access to functionality through the hwmon interface for fan/temperature stuff. There is even a "fan[1-*]_target" for hwmon where you could set the desired fan speed for example.

https://www.mjmwired.net/kernel/Documentation/hwmon/sysfs-interface

In the end there is no reason to do anything clevo specific in userspace, because there are appropiate kernel->userspace interfaces already which would work with every hardware as long as they have an appropiate driver.

from clevo-indicator.

patrick-mota avatar patrick-mota commented on July 24, 2024

@karolherbst ok thank you for the explanation and pointing me to the right direction !
I'm gonna try to do it using sysfs-interface.

from clevo-indicator.

karolherbst avatar karolherbst commented on July 24, 2024

well, there is already https://bitbucket.org/lynthium/clevo-xsm-wmi which does all the things. Maybe knowledge could be shared?

from clevo-indicator.

rafaelgieschke avatar rafaelgieschke commented on July 24, 2024

I actually implemented this some time ago in https://github.com/rafaelgieschke/clevo-xsm-wmi (well, incidentally based on the work of @karolherbst; and with thanks to @aqd for your helpful work on https://github.com/SkyLandTW/ClevoECView/blob/master/ec-trace.txt).

from clevo-indicator.

michalzxc avatar michalzxc commented on July 24, 2024

Did anyone make kernel module for controlling fans at the end?

from clevo-indicator.

Related Issues (20)

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.