
{"id":40300,"date":"2022-05-28T17:18:50","date_gmt":"2022-05-28T17:18:50","guid":{"rendered":"https:\/\/ubuntuhandbook.org\/?p=40300"},"modified":"2024-11-01T14:57:53","modified_gmt":"2024-11-01T14:57:53","slug":"hide-lock-system-menu-ubuntu-2204","status":"publish","type":"post","link":"https:\/\/ubuntuhandbook.org\/index.php\/2022\/05\/hide-lock-system-menu-ubuntu-2204\/","title":{"rendered":"Hide Lock Screen option from System Menu in Ubuntu 24.04 | 22.04"},"content":{"rendered":"<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2017\/10\/gnome-logo-feature.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignleft size-thumbnail wp-image-34682\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2017\/10\/gnome-logo-feature-250x250.png\" alt=\"\" width=\"250\" height=\"250\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2017\/10\/gnome-logo-feature-250x250.png 250w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2017\/10\/gnome-logo-feature-300x300.png 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2017\/10\/gnome-logo-feature-600x600.png 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2017\/10\/gnome-logo-feature-768x768.png 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2017\/10\/gnome-logo-feature.png 1200w\" sizes=\"auto, (max-width: 250px) 100vw, 250px\" \/><\/a><\/p>\n<p>Want to hide the lock screen option from the upper-right corner system menu? Here&#8217;s how to do the trick in Ubuntu 22.04 LTS.<\/p>\n<p>For Ubuntu, Fedora and other Linux with GNOME desktop, the <i>screen lock<\/i> can be disabled either totally or only from the system menu.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-40303\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/05\/hide-lock-600x269.webp\" alt=\"\" width=\"600\" height=\"269\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/05\/hide-lock-600x269.webp 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/05\/hide-lock-300x134.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/05\/hide-lock-768x344.webp 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/05\/hide-lock.webp 900w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/p>\n<h3>Method 1: Single command to disable lock screen<\/h3>\n<p>GNOME has a hidden option to disable the lock screen. Simply press &#8220;Ctrl+Alt+T&#8221; on keyboard to open terminal, then run the command below will do the trick:<\/p>\n<pre>gsettings set org.gnome.desktop.lockdown disable-lock-screen true<\/pre>\n<p>This command works on all current Ubuntu releases, including Ubuntu 20.04, Ubuntu 22.04, Ubuntu 24.04, and even other Linux with recent GNOME, e.g., Debian 11\/12, Fedora, etc.<\/p>\n<p><b>NOTE: This command not only hide the menu option, but also completely disable the lock screen function. The <code>Super+L<\/code> shortcut and automatic screen lock when system idle will no longer work!<\/b><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-40301\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/05\/gsettings-disablelock-600x157.webp\" alt=\"\" width=\"600\" height=\"157\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/05\/gsettings-disablelock-600x157.webp 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/05\/gsettings-disablelock-300x79.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/05\/gsettings-disablelock-768x201.webp 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/05\/gsettings-disablelock.webp 786w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/p>\n<p>For those prefer a graphical configuration tool, this can also be done via &#8220;Dconf Editor&#8221; tool which is available to install in Ubuntu Software.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-40302\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/05\/dconfeditor-disablelock-600x386.webp\" alt=\"\" width=\"600\" height=\"386\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/05\/dconfeditor-disablelock-600x386.webp 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/05\/dconfeditor-disablelock-300x193.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/05\/dconfeditor-disablelock-768x495.webp 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/05\/dconfeditor-disablelock.webp 896w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/p>\n<p><b>To re-enable this feature<\/b>, open terminal and run command:<\/p>\n<pre>gsettings reset org.gnome.desktop.lockdown disable-lock-screen<\/pre>\n<h3>Method 2: Only hide menu option via Gnome Extension<\/h3>\n<p>To just hide the option from system menu, but keep all other ways (e.g, Super+L and idle action) to trigger lock screen, there&#8217;s an extension for Ubuntu 22.04, Fedora 36, and other Linux with <b>GNOME 42<\/b>.<\/p>\n<p>1.) Firstly, press Ctrl+Alt+T on keyboard to open terminal. When it opens, run the command below to install extension manager:<\/p>\n<pre>sudo apt install gnome-shell-extension-manager<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-39606\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/05\/apt-extension-manager-600x256.webp\" alt=\"\" width=\"600\" height=\"256\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/05\/apt-extension-manager-600x256.webp 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/05\/apt-extension-manager-300x128.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/05\/apt-extension-manager-768x328.webp 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/05\/apt-extension-manager.webp 786w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/p>\n<p>2.) Next, press Super (Windows) key on keyboard to open &#8220;Activities&#8221; overview screen, then search for and open the tool:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-39607\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/05\/launch-extensionmanager.webp\" alt=\"\" width=\"548\" height=\"281\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/05\/launch-extensionmanager.webp 548w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/05\/launch-extensionmanager-300x154.webp 300w\" sizes=\"auto, (max-width: 548px) 100vw, 548px\" \/><\/p>\n<p>3.) Finally, search for and install &#8220;Hide Lock item in System Menu&#8221; extension from <i>Browse<\/i> tab and done.<\/p>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/05\/hide-lock-extension.webp\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-40304\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/05\/hide-lock-extension-600x470.webp\" alt=\"\" width=\"600\" height=\"470\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/05\/hide-lock-extension-600x470.webp 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/05\/hide-lock-extension-300x235.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/05\/hide-lock-extension-768x601.webp 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2022\/05\/hide-lock-extension.webp 922w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><\/p>\n<p>For Fedora 36, you may visit the <a href=\"https:\/\/extensions.gnome.org\/extension\/5091\/hide-lock-item-in-system-menu\/\" target=\"_blank\" rel=\"noopener\">extension web page<\/a> and turn on the slider icon to install it.<\/p>","protected":false},"excerpt":{"rendered":"<p>Want to hide the lock screen option from the upper-right corner system menu? Here&#8217;s how to do the trick in Ubuntu 22.04 LTS. For Ubuntu, Fedora and other Linux with GNOME desktop, the screen lock can be disabled either totally or only from the system menu. Method 1: Single command to disable lock screen GNOME [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":34682,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[689],"class_list":["post-40300","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-howtos","tag-gnome"],"_links":{"self":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts\/40300","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/comments?post=40300"}],"version-history":[{"count":0,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts\/40300\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/media\/34682"}],"wp:attachment":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/media?parent=40300"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/categories?post=40300"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/tags?post=40300"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}