Closed heitorPB closed 3 months ago
This block haven't received any changes in the last few versions. What is the output of ls /dev/dri
? A driver/kernel update changed the card name from "card0" to "card1" some time ago, and maybe you've updated the kernel together with i3status-rs?
If this is the case, the error message can be definitely improved.
Oh, interesting. I changed from card0
to card1
and stuff is back into normal.
I see card1
in /dev/dri
and /sys/class/drm
.
If this is the case, the error message can be definitely improved.
Device {device} not found
would be great. Could you mentor me on what needs to be done to implement this?
Sure, it should be pretty easy. A check needs to be added to Device::new
. Something like if !path.exists() { Err(Error::new(format!("Device {name} not found"))) } else { Ok(Self { path }) }
I updated my system and got the 0.33.0 i3status-rs, but I saw a red block on my status bar saying
Failed to read gpu_busy_percent
.My config for this block is:
If I manually run
i3status-rs
, the JSON for this block is this: