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!

```
$ cat /etc/systemd/system/fix-graphics-after-boot.service
[Unit]
Description=Restart display-manager if amdgpu initialization failed
After=display-manager.service
JobRunningTimeoutSec=30

[Install]
WantedBy=graphical.target

[Service]
Type=oneshot
ExecCondition=/usr/bin/dash -c "journalctl -fk | grep -Fm1 'amdgpu_cs_ioctl 
[amdgpu]] *ERROR* Failed to initialize parser'"
ExecStart=/usr/bin/systemctl restart display-manager.service
```

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.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1870971

Title:
  [amdgpu] Xubuntu 20.04 boots to black screen on Lenovo Ideapad
  L340-17API

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1870971/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to