Ubuntu 14.04 Mate - disable automatic screen lock and "Screen Lock" button over terminal

11,154

Solution 1

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

Solution 2

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>.

Share:
11,154

Related videos on Youtube

marius
Author by

marius

Updated on September 18, 2022

Comments

  • marius
    marius over 1 year

    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
    marius over 8 years
    I have no (hidden) folder named kde but I was able to find the org.freedesktop.upower.policy file. I will edit it and look if it works.
  • TellMeWhy
    TellMeWhy over 8 years
    @ghostgate answer updated
  • xCovelus
    xCovelus about 3 years
    Very good. Still working in Ubuntu 18.04, 20.04, and Debian 10