I'm running Ubuntu 20.04 on a Gigabyte Aero 15 Classic-SA and it has the problem that, when I close the lid the gnome desktop environment crashes -- the screen is black except for a little dash in the upper left hand corner blinking. I can restart with
Ctrl-Alt-F2, entering my login information, then running
sudo systemctl restart gdm.service.
A solution is given by this SE post. This solves the problem of the laptop not waking from suspend properly, but it causes the laptop to run extremely hot, even when the lid is shut (in fact it crashed when it was closed in my backpack), and shortens the battery life from ~8 hours to something like 2 hours.
I switched it back (that is, deleted the line from the grub file and updated grub) and it went back to normal -- long battery life, cool running, crash on suspend.
Anyone have any idea why this might be happening? And if so, what I might be able to do to fix both problems? As a side note, it suspends properly when I do
sudo pm-suspend and then close the lid, so maybe there is a workaround to have it run that command on suspend?