My laptop is an Acer predator.
When it goes to sleep mode, sometimes it does not wake up from sleep. By that, I mean the keyboard backlight comes on and the laptop's power light goes on as well and it looks like the laptop wakes up from sleep. But only screen is black so I can't see anything then I will be forced to hold down the power button for 5 secs..
It happens 1 out of 4 times when laptop goes to sleep. Could someone please help?
here is my var/log file i don't really understand were us the error, maybe someone could do please?... log file
February 18, 2020 update
Log file has been posted and when system suspends at 17:00 the next action is reboot at 20:00 (rather than resume):
This is similar to:
You need to find the error message(s) that are occurring during resume from suspend. Once you know the error then you can fix it.
When your resume breaks and you restart your system open the terminal and type
gedit /var/log/syslog
. Then scroll to the section where the system suspended and resumed. For example, my system suspended at 5:52 am before going to work and resumed at 16:56 (4:56 pm) when returning home:Look through your own log file using this example until you find an error message and perform a google search on the error.
Use this same technique for all problems you encounter, not just suspend / resume errors.
There are couple things you could do.
If the only thing, that is missing is graphical interface you can open virtual console, login and start it from there:
Ctrl+Alt+F1 - will open first virtual console. Your GUI usually lives either in F1 or F7, but you can choose any of virtual desktops from F1 to F7
Once you open virtual console, you will see a full-screen terminal and you will be able to login. Once you have, you can start GUI by typing:
startx
Caution: Do not try
sudo startx
- you will end up with more problems, than you have started with :)If that helped and you now see your favorite desktop environment - good. If not - you need to keep looking on what is causing your problem and since this seems to be a phantom bug - it's not going to be trivial
Updating kernel
If you are not afraid of messing with your system - keep reading. Often, when I buy a new hardware and it doesn't work as expected, the first thing I try before long and tedious investigation, is upgrading kernel to its latest version. It's not hard and it's likely, that newer kernel will have better support for newer hardware. This is especially true for laptops
In order to do that, go to: https://kernel.ubuntu.com/~kernel-ppa/mainline/ and download latest and greatest kernel. You will find it in the bottom of the page. Today it is v5.5, whcih includes number of tweaks to power management and graphics. Avoid using those with rc in the name, like
v5.5-rc7
- this one still goes through testing.Once you have located the latest kernel, check, that you are not already running one, by running
uname -sr
. This will show you the kernel you are runningIf you are not running the latest version already - you may proceed with upgrading. Follow the link with the latest version. You will see the page with bunch of links to deb files. In 99% of the cases, you will need files from
Build for amd64 succeeded
section. These are the files you need to download (highlighted with red rectangles):You can download them from your browser, save them in a new folder, navigate to that folder from command line and upgrade it from there. You could also run similar commands:
Now, all you need to do to install a new kernel is run:
Now you can reboot your machine and hopefully enjoy new kernel
Update kernel from GUI
If you want to update kernel, but you don't want to do it from command line for whatever reason, you could install and run UKUU (Ubuntu Kernel Upgrade Utility):
Then you can upgrade the kernel from simple graphical user interface
If, for whatever reason, the kernel doesn't work for you - you can always restart your machine and change the kernel from grub menu. So, only delete old kernel, once you have confirmed, the new one works for you
I hope this guide helps