Blank screen after sleeping for a while

Hey! Since switching to unstable, I’ve been noticing a problem with making my computer sleep. My computer uses an RTX 2060 and so I’m using the proprietary Nvidia graphics drivers. When my computer sleeps, the screen stays blank when:

  • it’s been sleeping for a while (getting to it shortly after it sleeps seems to show the login screen as expected)
  • I use rofi-power-menu to make the computer sleep

Again, I’m using unstable and I don’t recall this issue occurring before updating to Vicuna. I’m running the stable Nvidia drivers (config.boot.kernelPackages.nvidiaPackages.stable), but I have tried production and I believe unstable, to no effect. Messing with the function keys doesn’t do anything; I can open a terminal through them, but using F2 to return to the display leaves me with a blank screen again. Lastly, I’ve tried enabling SDDM but to no avail. I am using i3 with xfce as a desktop environment, and I don’t know if switching to GNOME or KDE would change anything.

EDIT: Restarting X (via sudo systemctl restart displaymanager) got my displays back, so I assume this is a problem with X. Also, I should have noted, my mouse cursor is visible and can be moved while the rest of the screen is black.

Apparently this is a picom issue and not a NixOS issue. In fact, looking it up, there’s a plethora of issues people run into after waking from suspension while using picom. I remember now that this started happening after I set it up for window transparency. Running pkill -9 picom gives me back my displays without logging me out.