ExecStart=/usr/bin/echo 'Not good. Restarting display-manager'
ExecStart=/usr/bin/systemctl restart display-manager.service
ExecStart=/usr/bin/sleep 3
ExecStart=/usr/bin/echo 'Brief suspend to fix power consumption'
# Note that mode has to be "mem". "freeze" does not fix power consumption.
ExecStart=/usr/sbin/rtcwake --mode mem --seconds 3
I noticed that after boot with badly initialized GPU idle power consumption is 2-2.5 higher than after normal boots.
But this can be fixed by putting laptop to suspend and waking it. Therefore I've extended my workaround from #3 to this:
[Service] /bin/sh -c "journalctl -fk | grep -Fm1 'amdgpu_cs_ioctl [amdgpu]] *ERROR* Failed to initialize parser'"
Type=oneshot
ExecCondition=
ExecStart= /usr/bin/ echo 'Not good. Restarting display-manager' /usr/bin/ systemctl restart display- manager. service /usr/bin/ sleep 3 /usr/bin/ echo 'Brief suspend to fix power consumption' /usr/sbin/ rtcwake --mode mem --seconds 3
ExecStart=
ExecStart=
ExecStart=
# Note that mode has to be "mem". "freeze" does not fix power consumption.
ExecStart=