I have a problem that my laptop goes to suspend randomly from time to time.
Strange thing is that this happened on UM in past version also (15.10) but not on any other distribution that i have tried.
As i love UM much i would like to check what could be the reason for this to happens only on UM.
The only thing that comes to my mind is TLP that is not included in other distribution by default that i have used.
Is there some command that will display logs from which i could find any clue regarding my problem?
Thanks.
dmesg
is such a command; also Log File Viewer is a graphical tool
menu location - Applications>System Tools>Log File Viewer
The entry dmesg in Log File Viewer is not viable at this time
Thanks mate.
I have found this in Log File Viewer:
Jun 18 18:26:52 neo systemd[1]: Started TLP suspend/resume.
Jun 18 18:26:52 neo systemd[1]: Reached target Sleep.
Jun 18 18:26:52 neo systemd[1]: Starting Suspend…
I have found 2 enabled services for TLP - and one that i have just disabled is TLP-sleep:
I have disabled it with this command:
sudo systemctl disable tlp-sleep.service
I hope that this will make some difference.
You probably know this, but for the benefit of others ...
sudo systemctl disable tlp-sleep.service
prevents this service from starting at boot; however it's still available to be started.
reenable returns the service to normal
This is more aggressive ...
sudo systemctl mask tlp-sleep.service
removes the service from usage; however unmask reverses the action.
mask will link these units to /dev/null, making it impossible to start them.
To be honest, i didn’t know those commands.
Great tip, thank you very much pfeiffep.
1 Like