8000 Check for driver before launching cli. · Issue #73 · Gnarus-G/maccel · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Check for driver before launching cli. #73

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

Open
pxlsec opened this issue Mar 14, 2025 · 0 comments
Open

Check for driver before launching cli. #73

pxlsec opened this issue Mar 14, 2025 · 0 comments

Comments

@pxlsec
Copy link
Contributor
pxlsec commented Mar 14, 2025

Currently, if the cli fails to connect to the driver at launch it will give this error:

❯ maccel

thread 'main' panicked at crates/core/src/params.rs:243:18:
Failed to set kernel param to change modes: failed to write to parameter file: /sys/module/maccel/parameters/MODE

Caused by:
    Permission denied (os error 13)
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

It would be nice if we checked it when launching the cli and send a more user friendly message when it fails:

❯ maccel

Failed to comunicate with driver;
-- Make sure that the driver is installed 'modprobe maccel'.
-- Make sure that the user is in the maccel group 'usermod -aG maccel $USER'.
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

1 participant
0