Closed phodina closed 2 years ago
Hi,
thanks for the Guix package!
Can't reproduce your error at the moment.
The error points to an unwrap at line 134, here we do a "pidof sway" command. Is this the problem? But the error text NotFound, message: "No such file or directory"
makes me think otherwise.
Do you have an accelerometer device with path "/sys/bus/iio/devices/iio:device/inaccel_raw"?
Hiya! I am also having this error. I do not have any path that begins with /sys/bus/iio/
. I'm on Void linux musl using 1.3. My backtrace is this
$ RUST_BACKTRACE=full rot8 --display LVDS-1
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Os { code: 2, kind: NotFound, message: "No such file or directory" }', src/main.rs:295:57
stack backtrace:
0: 0x556208cf8483 - <unknown>
1: 0x556208d1c42c - <unknown>
2: 0x556208cf4b15 - <unknown>
3: 0x556208cf9d78 - <unknown>
4: 0x556208cf99a5 - <unknown>
5: 0x556208cfa3a6 - <unknown>
6: 0x556208cfa287 - <unknown>
7: 0x556208cf8934 - <unknown>
8: 0x556208cf9fa9 - <unknown>
9: 0x556208be79d3 - <unknown>
10: 0x556208be7ac3 - <unknown>
11: 0x556208bf6182 - <unknown>
12: 0x556208bee616 - <unknown>
13: 0x556208bf7b42 - <unknown>
14: 0x556208cf0051 - <unknown>
15: 0x556208bf6d02 - <unknown>
16: 0x7f399f20b70a - libc_start_main_stage2
at ./src/env/__libc_start_main.c:94:2
Hey,
normally the accelerometer are exposed in the sys file system, exported via the /sys directory.
Each sensor device is exposed as a subdirectory of /sys/bus/iio/devices with a name following the scheme iio:device
Are you sure you have an accelerometer?
which kernel do you use uname -r
Do you have IIO module in your kernel?
Maybe this helps: Linux kernel sysfs IIO devices
Maybe you need a packet like this: iio-sensor-proxy
No, I'm not sure that I have an accelerometer but I do know that previous releases of this laptop do include one. I'm using 5.18.9, the Void build is called 5.18.9_1. Using lsmod
and cat /proc/modules
, it does not appear that I have the iio module enabled. Going to try iio-sensor-proxy
and enable the module. I'll update with the result.
Hi, thanks for awesome crate. However, I ran it on my desktop machine with GDM running under X11 and I got panic. Seems there are some
unwrap
calls when querying the backend.FYI I'm packaging this crate for Guix.