Waybar
Waybar copied to clipboard
temperature module waking up GPU from sleep
It took me some time to find out what's going on. A while ago I noticed dmesg being full of these messages:
[27532.221679] [drm] PCIE GART of 256M enabled (table at 0x000000F400300000).
[27532.539867] [drm] UVD and UVD ENC initialized successfully.
[27532.640808] [drm] VCE initialized successfully.
[27542.222604] [drm] PCIE GART of 256M enabled (table at 0x000000F400300000).
[27542.538913] [drm] UVD and UVD ENC initialized successfully.
[27542.639860] [drm] VCE initialized successfully.
[27562.223542] [drm] PCIE GART of 256M enabled (table at 0x000000F400300000).
[27562.536680] [drm] UVD and UVD ENC initialized successfully.
[27562.637624] [drm] VCE initialized successfully.
[27572.223493] [drm] PCIE GART of 256M enabled (table at 0x000000F400300000).
[27572.541642] [drm] UVD and UVD ENC initialized successfully.
[27572.642583] [drm] VCE initialized successfully.
I found they only appeared when my computer was asleep. After some investigation I found out that the temperature module that I was using for displaying the temperature by reading /sys/class/hwmon/hwmon0/temp1_input
was to blame for. I assume that in order to pull data from that file, the driver needs to spin up the GPU, read it's temperature and then let it sleep again. This apparently is the reason for these messages.
Obviously waybar won't be able to change that. However, what waybar should definitely do is check whether dpms
was set to off
for the output that it is currently on and disable auto-updates to any widgets. Ideally this would be configurable, so just in case people have custom scripts that they want to continue running, they would be able to.