Programming, tutorials, mechatronics, operating systems, and other tech stuff

How to fix missing suspend function in cinnamon ubuntu

No comments
After a long time using xfce in my ubuntu laptop. Finally a few days ago I had to replace my desktop into cinnamon.

Till now, I never turn off/shut down my laptop. Whenever I finished using my laptop, i always suspend it, because i don't want to wait for a long boot time when i want to use it again.

Well, there's a problem showed up after I install cinnamon desktop. There are no suspend menu when click quit in the launcher. Which only shows "Restart", "Cancel" and "Shut Down".

In my case, the source of the problem is the cinnamon default session setting does not use logind. You can use the command to see what the settings are:

gsettings get org.cinnamon.desktop.session settings-daemon-uses-logind

gsettings get org. cinnamon. desktop. session session-manager-uses-logind

If both of the above commands output "false". Then it means cinnamon session does not use logind. We should set it up manually with these commands:
gsettings set org.cinnamon.desktop.session settings-daemon-uses-logind true
gsettings set org.cinnamon.desktop.session session-manager-uses-logind true
gsettings set org.cinnamon.desktop.session screensaver-uses-logind false

After restart, suspend button now appears in window session

Finally I can suspend my laptop.

But.... here comes another problem, When the laptop lid is closed, my ubuntu doesn't suspend. Although in the power settings I have set it up that way.

And again, Finally I found a solution, it's very simple, just uncomment a single line in a configuration file:


use your favorite text editor to change this, do not forget the sudo command.

sudo nano /etc/systemd/logind.conf

Locate the line that contains the configuration of "HandleLidSwitch = suspend", then uncheck the fence at the beginning of the line. (uncomment).

Then restart, my "suspend" problems on my ubuntu laptop cinnamon is now gone.

After that, there are many more problems that I encountered during the transition to the cinnamon. which I'll share in another post.

I hope this badly organized post can be useful.

No comments :

Post a Comment