hedgieinsocks / gnome-extension-indicator

Add an indicator for a custom service
https://extensions.gnome.org/extension/6293/indicator/
5 stars 0 forks source link

journal spamming #1

Open personaingrata opened 7 months ago

personaingrata commented 7 months ago

hi, i have a hybrid iGPU/dGPU notebook and ive put this command "grep D3cold /sys/class/drm/card1/device/power_state" and icons to see my dGPUs power state. this works perfectly fine but my systemd journal gets spammed every N seconds (configured check frequency)... ... gnome-shell[12476]: D3cold gnome-shell[12571]: D3cold gnome-shell[12634]: D3cold gnome-shell[12677]: D3cold ... is there a way to turn off this behaviour?

thanks for the extensions btw, very useful maybe you can add the possibility to add more than one command?

hedgieinsocks commented 7 months ago

Hi, you can try to use grep -q which will not generate stdout and thus perhaps no log lines. As for the ability to use multiple commands, I wanted this to be an analog of Executor extension but it turned out to be beyond my humble abilities. So if you need multiple commands, you can give a try to the Executor or Argos extensions

personaingrata commented 7 months ago

Hi, you can try to use grep -q which will not generate stdout and thus perhaps no log lines. thanks for the quick reply! i wasn`t aware of the -q option in grep, it works like a charm. i won't forget this, thanks!