After you've created such file don't forget to enable it:
systemctl enable fix-graphics-after-boot.service
The idea of this service is to scan kernel logs for 30 seconds after display-manager is started and if there is signs that amdgpu initialization failed then restart display-manager. Works for me! Though adds 15 seconds delay for 50% of boots.
This issue is not 100% reproducible. It happens after 50% of reboots and I can't figure out regularity.
But I managed to contrive a workaround!
``` system/ fix-graphics- after-boot. service manager. service utSec=30
$ cat /etc/systemd/
[Unit]
Description=Restart display-manager if amdgpu initialization failed
After=display-
JobRunningTimeo
[Install] graphical. target
WantedBy=
[Service] /usr/bin/ dash -c "journalctl -fk | grep -Fm1 'amdgpu_cs_ioctl [amdgpu]] *ERROR* Failed to initialize parser'" /usr/bin/ systemctl restart display- manager. service
Type=oneshot
ExecCondition=
ExecStart=
```
After you've created such file don't forget to enable it: after-boot. service
systemctl enable fix-graphics-
The idea of this service is to scan kernel logs for 30 seconds after display-manager is started and if there is signs that amdgpu initialization failed then restart display-manager. Works for me! Though adds 15 seconds delay for 50% of boots.