Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
lyrnya opened this issue Feb 9, 2024 · 1 comment
Open

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

lyrnya opened this issue Feb 9, 2024 · 1 comment

Comments

@lyrnya
Copy link

lyrnya commented Feb 9, 2024

图片
图片

Error information
  WARNING: BIOS Fan Control Disabled
Traceback (most recent call last):
  File "/home/arch/omen-fan/omen-fan.py", line 340, in <module>
    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
Copy link
Owner

alou-S commented Feb 29, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants