Gangmax Blog

自由之思想,独立之精神

How to disable auto sleep in Ubuntu 18.04

Recently I upgraded a computer from Ubuntu 16.04 to 18.04. Then I found when I closed the lid, the notebook computer would go to sleep. Here is the instructions from here how to disable the auto-sleep feature.