Ubuntu Studio 20.04 freezes everything but mouse after lid closes and opens

The solution described in comment #16 on Bug #1866686 “20.04 Xubuntu does not resume from suspend” : Bugs : xfce4-power-manager package : Ubuntu posted by Arham Amouei worked flawlessy for me. Excerpt from that comment:

I uninstalled xfce4-screensaver for another reason: The system took ~30 secs to suspend. By uninstalling xfce4-screensaver both the problems disappeared.


This seemed to work for me:

  1. Remove xfce4-screensaver:

    sudo apt-get remove xfce4-screensaver
    
  2. Install light-locker:

    sudo apt-get install light-locker
    
  3. Reboot and test. Xfce power settings are all suspend on lid close.