{"id":43703,"date":"2023-02-16T15:36:04","date_gmt":"2023-02-16T15:36:04","guid":{"rendered":"https:\/\/ubuntuhandbook.org\/?p=43703"},"modified":"2024-05-07T07:21:45","modified_gmt":"2024-05-07T07:21:45","slug":"auto-brightness-onoff-switch","status":"publish","type":"post","link":"https:\/\/ubuntuhandbook.org\/index.php\/2023\/02\/auto-brightness-onoff-switch\/","title":{"rendered":"Add &#8220;Auto Brightness&#8221; ON\/OFF Switch in Ubuntu 24.04 System Menu"},"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>For Ubuntu 24.04, Fedora workstation 39\/40, Arch, Manjaro, etc, with GNOME desktop 43 ~ 46, there&#8217;s now an extension to add &#8220;Auto Brightness&#8221; toggle button in quick settings (aka system menu).<\/p>\n<p>Meaning user don&#8217;t have to open <code>System Settings<\/code> and go to <code>Power<\/code> page again and again to turn on\/off the function. Just open the top-right corner system tray menu, there&#8217;ll be a toggle button to quickly turn on\/off auto brightness just like on a smartphone.<\/p>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/02\/auto-brightness-button.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-43704\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/02\/auto-brightness-button.webp\" alt=\"\" width=\"474\" height=\"336\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/02\/auto-brightness-button.webp 474w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/02\/auto-brightness-button-300x213.webp 300w\" sizes=\"auto, (max-width: 474px) 100vw, 474px\" \/><\/a><\/p>\n<p><b>NOTE: Your laptop MUST support auto brightness feature and have GPU driver properly installed. To verify, just open System Settings and find out if there&#8217;s <code>Automatic Screen Brightness<\/code> option under Power tab.<\/b><\/p>\n<h3>How to Install the Auto Brightness quick menu button<\/h3>\n<p>The extension so far supports GNOME from version 43 to 46. It\u00a0is available in <a href=\"https:\/\/extensions.gnome.org\/extension\/5736\/auto-brightness-toggle\/\" target=\"_blank\" rel=\"noopener\">EGO<\/a>, which however lack of update for recent GNOME versions. If you want this quick toggle button, then it&#8217;s easy to install from the source tarball.<\/p>\n<p>1. First, click the link below to download the source tarball.<\/p>\n<div class=\"wp-block-buttons aligncenter\">\n<div class=\"wp-block-button is-style-fill\"><a class=\"wp-block-button__link has-vivid-cyan-blue-to-vivid-purple-gradient-background has-text-color has-background\" href=\"https:\/\/github.com\/m1nicrusher\/auto-brightness-toggle\/archive\/refs\/heads\/main.zip\" target=\"_blank\" rel=\"noreferrer noopener\">Download Auto Brightness Extension<\/a><\/div>\n<\/div>\n<p>For choice, you may go to the <a href=\"https:\/\/github.com\/m1nicrusher\/auto-brightness-toggle\" target=\"_blank\" rel=\"noopener\">Github project page<\/a> for the source code.<\/p>\n<p>2. After downloaded the source package, do following steps one by one to install it:<\/p>\n<ul>\n<li>Extract the downloaded package, and navigate to the extracted folder.<\/li>\n<li>Open another file window and navigate to <code>.local\/share\/gnome-shell\/extensions<\/code> directory.<\/li>\n<li>Finally, drag and drop the sub-folder from extracted folder to new opened window.<\/li>\n<\/ul>\n<p>Tips: <code>.local<\/code> is a hidden folder, you need to press <b>Ctrl+H<\/b> to view (and press again to hide) in file manager. The <code>gnome-shell<\/code> and <code>extensions<\/code> sub-folders may NOT exist under &#8216;<code>.local\/share<\/code>&#8216; if this is the first extension you&#8217;re going to install. Just create manually.<\/p>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/02\/install-auto-brightness-toggle.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-46526\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/02\/install-auto-brightness-toggle-700x409.webp\" alt=\"\" width=\"610\" height=\"356\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/02\/install-auto-brightness-toggle-700x409.webp 700w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/02\/install-auto-brightness-toggle-300x175.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/02\/install-auto-brightness-toggle-768x448.webp 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/02\/install-auto-brightness-toggle.webp 1223w\" sizes=\"auto, (max-width: 610px) 100vw, 610px\" \/><\/a><\/p>\n<p>3. Next log out and back in.<\/p>\n<p>Install either <b>GNOME Extensions<\/b> or <b>Extension Manager<\/b> from App Center (filter by Debian package), and launch it. Finally, turn on the &#8220;Auto Brightness Toggle&#8221; extension for displaying the new button in top-right system status menu.<\/p>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/02\/toggle-autobrightness-extension.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-46527\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/02\/toggle-autobrightness-extension-700x518.webp\" alt=\"\" width=\"610\" height=\"451\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/02\/toggle-autobrightness-extension-700x518.webp 700w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/02\/toggle-autobrightness-extension-300x222.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/02\/toggle-autobrightness-extension-768x568.webp 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/02\/toggle-autobrightness-extension.webp 931w\" sizes=\"auto, (max-width: 610px) 100vw, 610px\" \/><\/a><\/p>\n<h3>Uninstall:<\/h3>\n<p>As the last screenshot shows you, in &#8220;Extension Manager&#8221; window just click the up\/down arrow beside the toggle switch. Then, you&#8217;ll see the &#8216;Remove&#8217; button for removing the extension.<\/p>\n<p>Alternatively, you may delete the theme folder under <code>.local\/share\/gnome-shell\/extensions<\/code> directory, and log out and back in to apply.<\/p>","protected":false},"excerpt":{"rendered":"<p>For Ubuntu 24.04, Fedora workstation 39\/40, Arch, Manjaro, etc, with GNOME desktop 43 ~ 46, there&#8217;s now an extension to add &#8220;Auto Brightness&#8221; toggle button in quick settings (aka system menu). Meaning user don&#8217;t have to open System Settings and go to Power page again and again to turn on\/off the function. Just open the [&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":[1015],"class_list":["post-43703","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-howtos","tag-batch-image-converter"],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts\/43703","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=43703"}],"version-history":[{"count":0,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts\/43703\/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=43703"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/categories?post=43703"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/tags?post=43703"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}