alou-S / omen-fan

Utility to control fans in Omen laptops
GNU General Public License v3.0
49 stars 5 forks source link

Can set the fan speed correctly, but cannot start the service #8

Open lyrnya opened 7 months ago

lyrnya commented 7 months ago

图片 图片

Error information ``` WARNING: BIOS Fan Control Disabled Traceback (most recent call last): File "/home/arch/omen-fan/omen-fan.py", line 340, in cli() File "/usr/lib/python3.11/site-packages/click/core.py", line 1157, in __call__ return self.main(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/click/core.py", line 1078, in main rv = self.invoke(ctx) ^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/click/core.py", line 1688, in invoke return _process_result(sub_ctx.command.invoke(sub_ctx)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/click/core.py", line 1434, in invoke return ctx.invoke(self.callback, **ctx.params) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/click/core.py", line 783, in invoke return __callback(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/arch/omen-fan/omen-fan.py", line 256, in service_cli subprocess.Popen("omen-fand") File "/usr/lib/python3.11/subprocess.py", line 1026, in __init__ self._execute_child(args, executable, preexec_fn, close_fds, File "/usr/lib/python3.11/subprocess.py", line 1950, in _execute_child raise child_exception_type(errno_num, err_msg, err_filename) FileNotFoundError: [Errno 2] No such file or directory: 'omen-fand' ```

System information:Arch Linux based on 6.7.4-arch1-1 Python:3.11.6

alou-S commented 6 months ago

Well there are two parts in the script. The CLI itself and the daemon. The script assumes that both have been added to PATH without their .py extensions.

You can fix this by linking them both to /usr/bin/ or your preferred in the PATH (ln -s $HOME/omen-fan/omen-fan.py /usr/bin/omen-fan)

I always had intentions to rewrite this into Rust and distribute it properly as a package but never got to it.