tmux-plugins / tmux-cpu

Plug and play cpu percentage and icon indicator for Tmux.
MIT License
444 stars 69 forks source link

gpu info not showing #55

Open backpropper opened 4 years ago

backpropper commented 4 years ago

The status bar shows No GPU even though the GPU can be accessed by nvidia-smi which is available at /usr/bin included in $PATH.

Screen Shot

I am using tmux v2.6

backpropper commented 4 years ago

I login to this compute node via a login node. The tmux session was opened on the login node but I guess it is supposed to update after the update-interval and get info from the compute node. Also, there are no changes even if I refresh the status bar manually.

Basically the issue it seems is that the login node is not able to receive information from the compute node about the updates in PATH and GPU.

casperdcl commented 4 years ago

odd.

you could add PATH="/usr/bin:$PATH" to the top of $HOME/.tmux/plugins/tmux-cpu/scripts/helpers.sh

bruce-willis commented 2 years ago

Hey @casperdcl! I am wondering if this plugin can show info only from local machine (where tmux is installed and launched) or it could also work with remote machine. i.e. I am running tmux on a machine without GPU, but after connecting to a machine with GPU the panel is not updating and still showing info from the local machine: image Reloading the status bar does not solve this issue. I've also tried to add PATH="/usr/bin:$PATH" (from your previous comment, btw shouldn't it be like EXPORT PATH=...?), but in this case, the actual values are not shown in the panel at all: image