4

How can I disable that Ubuntu locks the screen after 5 minutes and how can I remove the "Screen Lock" button from the menu? I have to do it over a Terminal.

marius
  • 93

2 Answers2

6

For me with fairly new versions of MATE DevRobot's solution doesn't work, although for all I know for Ubuntu 14.04's version of MATE it could work. For me what works is:

gsettings set org.mate.screensaver lock-enabled false
Josh Pinto
  • 8,089
5

Disable screen lock:

dconf write /org/gnome/desktop/screensaver/lock-enabled false 

Change Lock=true to false.

I'm not sure how you can remove the screen lock button, but you can open this file and see if it contains a screen-lock section (I don't have mate so I can't say if it is present):

sudo -H pluma /usr/share/polkit-1/actions/org.mate.power.policy

If you find it, replace <allow_active>yes</allow_active> with <allow_active>no</allow_active>.

Zanna
  • 72,312
TellMeWhy
  • 17,964
  • 41
  • 100
  • 142