Dasharo / dasharo-issues

The Dasharo issue tracker
https://dasharo.com/
25 stars 0 forks source link

Some commands in dasharo_ectool fail #648

Open mkopec opened 11 months ago

mkopec commented 11 months ago

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 error

How reproducible

100%

How to reproduce

Expected behavior

Command returns fan speed

Actual behavior

thread 'main' panicked at 'Must use `_os` lookups with `Arg::allow_invalid_utf8` at `[hash: 6BFD8DFE7A7242BC]`', /usr/src/debug/dasharo-ectool/0.3.8.AUTOINC+411fab9b7c-r0/cargo_home/bitbake/clap-3.2.23/src/parser/matches/arg_matches.rs:1854:13
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

Screenshots

No response

Additional context

No response

Solutions you've tried

workaround:

echo -e '\x7' | sudo dd of=/dev/port bs=1B count=1 oflag=seek_bytes seek=$(( 0xe00 )) 2> /dev/null
sudo dd if=/dev/port bs=1B count=1 skip=$(( 0xe03 )) 2> /dev/null | xxd -ps

returns the raw PWM value for fan index 0

macpijan commented 5 months ago

still relevant?