-
Notifications
You must be signed in to change notification settings - Fork 0
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
Some commands in dasharo_ectool fail #648
Comments
still relevant? |
v1.5.2 TGL nv41mz, booted DTS 2.1.0 via IPXE, and got almost identical error message:
Appears when running dasharo_ectool fan 0, up to fan 255 |
In theory, fix should be simple. Within ectool source, in subcommand parsing, we should use value_of_os instead of value_of, when allowing invalid utf8, in the part where we acquire index of the fan. Some(("fan", sub_m)) => {
let index = sub_m.value_of("index").unwrap().parse::<u8>().unwrap();
let duty_opt = sub_m.value_of("duty").map(|x| x.parse::<u8>().unwrap());
match duty_opt {
Some(duty) => match unsafe { fan_set(&mut ec, index, duty) } {
Ok(()) => (),
Err(err) => {
eprintln!("failed to set fan {} to {}: {:X?}", index, duty, err);
process::exit(1);
},
},
None => match unsafe { fan_get(&mut ec, index) } {
Ok(()) => (),
Err(err) => {
eprintln!("failed to get fan {}: {:X?}", index, err);
process::exit(1);
},
},
}
}, |
Care to try it out and report back here whether theory works in practice? |
I will give it a shot, but I need to familiarize myself with rust/ectool buildinging first. |
should be simply |
58 was shown during normal operation, 255 when setting fan turbo mode [fn +1] |
Resolved by Dasharo/ec#65 |
Device
NovaCustom *
Dasharo version
v1.5.1 TGL, v1.7.1 ADL
Affected component(s) or functionality
dasharo_ectool
Brief summary
Running ie.
dasharo_ectool fan 0
returns rust string parsing errorHow reproducible
100%
How to reproduce
dasharo_ectool fan 0
Expected behavior
Command returns fan speed
Actual behavior
Screenshots
No response
Additional context
No response
Solutions you've tried
workaround:
returns the raw PWM value for fan index 0
The text was updated successfully, but these errors were encountered: