greshake / i3status-rust

Very resourcefriendly and feature-rich replacement for i3status, written in pure Rust
GNU General Public License v3.0
2.85k stars 470 forks source link

Nvidia block needs a warning about `nvidia-smi` #1880

Open flukejones opened 1 year ago

flukejones commented 1 year ago

https://github.com/greshake/i3status-rust/blob/86213c7d1b808db043cfbf51cce74b133caff0e1/src/blocks/nvidia_gpu.rs#L11

Just an FYI, it is worth putting a very visible warning somewhere in docs about nvidia-smi use on hybrid systems. Every time nvidia-smi is called it will wake the dGPU from sleep causing excess power draw.

An alternative would be to use the (limited) dbus interface of my supergfxctl. As I don't use i3 or similar myself I don't know if I will contribute this as a block - perhaps i can find someone in my discord to assist.