When testing now, it works fine. When I tested previously, before suspending, I might have turned off the laptop monitor using xrandr, which is why it looked like the problem was still present.