FaridZelli / ISW-Modern

Modern fork of Ice-Sealed Wyvern, a fan control service for MSI Laptops on Linux written in Python 🪭
GNU General Public License v3.0
72 stars 10 forks source link

isw[659]: FileNotFoundError: [Errno 2] No such file or directory: '/dev/ec' #24

Open Twix53791 opened 1 year ago

Twix53791 commented 1 year ago

On arch linux, since my last upgrade, /dev/ec is missing. Is that relative to ec_sys? lsmod output gives me ec_sys 12288 0. I resolve the problem now by switching back the last commit of isw bin:

+EC_IO_FILE = '/sys/kernel/debug/ec/ec0/io'
-EC_IO_FILE = '/dev/ec'

But I am wondering if it is the good way to solve this... Thanks to any clue!

FaridZelli commented 1 year ago

I resolve the problem now by switching back the last commit of isw bin

Hey, sounds like Arch added back ec_sys to their kernel. This is great news! You may have to switch to acpi_ec (/dev/ec) if it breaks again in the future. You can read more about it here: https://github.com/YoyPa/isw/issues/263

But I am wondering if it is the good way to solve this...

You could've reinstalled acpi_ec, which would have fixed it as well. Both workarounds are fine.

Twix53791 commented 1 year ago

Ok, thanks to the answer. What you say make me feel like the ec_sys solution is better, so I let thinks like that... Maybe, as a suggestion, isw could detects automatically the system set up to use one or the other mode? For future users it could be a good idea, isw is enough cryptic to set up like that, and install something which bug straightaway is always demoralizing especially for "newbies" (normal users...) !

FaridZelli commented 1 year ago

This could absolutely be automated, unfortunately I no longer own an MSI laptop and nor do I know Python. ISW is a very handy program however large portions of it need to be reworked. If I ever buy another MSI laptop in the (far, far) future, I'll surely create an alternative from the ground up.

Twix53791 commented 1 year ago

Ah! I did'nt see the project is no more maintained! Really this isw project can't live too long in the same hands! But @BeardOverflow alternative seems promising, lets wait that... I would like to join the development of such a so usefull tool but sadly my skills as a programmer are not enough advanced to dig into the linux kernel and write in C... unless I am forced to is I can't find no more any other alternative!

FaridZelli commented 1 year ago

BeardOverflow's msi-ec project is a universal kernel driver for MSI laptop hardware, not a userspace application. I've already made a list of alternatives to ISW which you can find here: https://github.com/YoyPa/isw/issues/263