Comment 5 for bug 1870971

Revision history for this message
Alexander Mescheryakov (alexander-s-m) wrote : Re: [amdgpu] Xubuntu 20.04 boots to black screen on Lenovo Ideapad L340-17API

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]
Type=oneshot
ExecCondition=/bin/sh -c "journalctl -fk | grep -Fm1 'amdgpu_cs_ioctl [amdgpu]] *ERROR* Failed to initialize parser'"

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