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

freezelidubuntu-studioxfce

(¿Could anybody please bounty this? I have been having this issue since march)

As title says; I recently installed Ubuntu Studio 19.10 Eoan (Now upgraded to Ubuntu Studio 20.04 Focal Fossa, still having the same exact issue) on my Toshiba Satellite laptop.

I was using Ubuntu 19.10 regularly since it came out, and it worked fine, but when I switched to Studio this happened.

What happens is that after I close and open the lid and then everything but the mouse is unresponsive.

Edit: Changed settings using this terminal sudo gedit /etc/systemd/logind.conf(had to install gedit, because Ubuntu Studio doesn't have by default somehow); still the same problem. Formatted the laptop and reinstalled Ubuntu Studio 19.10, still no change. Again changed the settings on sudo gedit /etc/systemd/logind.conf to

#HandleLidSwitch=ignore
#HandleLidSwitchExternalPower=ignore
#HandleLidSwitchDocked=ignore

Still no change.

I'm desperate to find a solution.

Also it's a bother to receive only notifications from someone just to tell me that I wrote something wrong instead of giving me any answer to my issue; specially since it's been many days since I've posted this issue.

EDIT 2: XFCE settings are "lock screen" at lid close; but all options give me the same problem.

Googled it, no solution found online gives me an answer or it's meant for regular Ubuntu and are not applicable to Ubuntu Studio.

Edit 3: If I set XFCE to "Presentation mode" I can't even move the mouse after closing or opening the lid; it's not that it won't move, it's that it's gonna be incredibly lagged.

Edit 4: It only happens if I close the lid and in any given time while the lid was closed the laptop runs on battery, or if I close the lid with laptop unplugged. I can still use ctrl+alt+F1, sign in, and use ctrl+alt+F7 and go back to where I was. But otherwise clicking or using the keyboard won't change anything (If a video was paused before closing the lid, the video would start when the lid opens)

Edit 5: Upgraded the system to Ubuntu Studio 20.04, the difference now, is that it happens every time, regardless of the laptop being plugged or not.

This is a really bothersome issue, because I have to go to "ctrl+alt+F1" and reboot the system, because nothing else -that I know of- works; and I have to lose every unsaved work that it's currently open.

Best Answer

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.