{"id":1519,"date":"2008-02-13T19:15:00","date_gmt":"2008-02-13T19:15:00","guid":{"rendered":"http:\/\/gleamynode.net\/articles\/1519\/turning-off-radeon-lcd-backlight-when-gnome-screensaver-is-activated"},"modified":"2022-12-28T01:46:20","modified_gmt":"2022-12-27T16:46:20","slug":"turning-off-radeon-lcd-backlight-when-gnome-screensaver-is-activated","status":"publish","type":"post","link":"https:\/\/vault.motd.kr\/wordpress\/posts\/1519\/turning-off-radeon-lcd-backlight-when-gnome-screensaver-is-activated\/","title":{"rendered":"Turning off Radeon LCD backlight when GNOME screensaver is activated"},"content":{"rendered":"

I wrote a quick and dirty script that turns on and off ATI Radeon LCD backlight by monitoring DBUS events to detect the activation and deactivation of GNOME screensaver. It requires the radeontool<\/tt> package to be installed and it needs to be set with suid flag (i.e. chmod u+s \/usr\/sbin\/radeontool<\/tt>). Please feel free to launch the following script when your GNOME session starts:<\/p>\n

#!\/bin\/sh
\nif [ \"x`pgrep -of 'radeon-watch'`\" != \"x$$\" ]; then
\n exit 1
\nfi
\nradeontool dac on
\nradeontool light on
\n{
\ndbus-monitor --session --monitor \"type='signal',path='\/org\/gnome\/ScreenSaver',interface='org.gnome.ScreenSaver'\" | while read -r EVT; do
\n echo \"$EVT\" | grep -qi \"SessionIdleChanged\"
\n if [ \"$?\" = '0' ]; then
\n read -r EVT_VAL
\n echo \"$EVT_VAL\" | grep -qi \"true\"
\n if [ \"$?\" = '0' ]; then
\n radeontool dac off
\n radeontool light off
\n else
\n radeontool dac on
\n radeontool light on
\n fi
\n fi
\n
\n echo \"$EVT\" | grep -qi \"AuthenticationRequestBegin\"
\n if [ \"$?\" = '0' ]; then
\n radeontool dac on
\n radeontool light on
\n fi
\n
\n echo \"$EVT\" | grep -qi \"AuthenticationRequestEnd\"
\n if [ \"$?\" = '0' ]; then
\n radeontool dac off
\n radeontool light off
\n fi
\ndone
\n} &
\n<\/pre>\n

Please note that I tested this script with my old ThinkPad X31, so you might not need this script if you have the recent laptop or you are using other video chipset.<\/p>\n","protected":false},"excerpt":{"rendered":"

I wrote a quick and dirty script that turns on and off ATI Radeon LCD backlight by monitoring DBUS events to detect the activation and deactivation of GNOME screensaver. It requires the radeontool package to be installed and it needs to be set with suid flag (i.e. chmod u+s \/usr\/sbin\/radeontool). Please feel free to launch… Continue reading →<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"yoast_head":"Turning off Radeon LCD backlight when GNOME screensaver is activated — T's message of the day<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/vault.motd.kr\/wordpress\/posts\/1519\/turning-off-radeon-lcd-backlight-when-gnome-screensaver-is-activated\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Turning off Radeon LCD backlight when GNOME screensaver is activated — T's message of the day\" \/>\n<meta property=\"og:description\" content=\"I wrote a quick and dirty script that turns on and off ATI Radeon LCD backlight by monitoring DBUS events to detect the activation and deactivation of GNOME screensaver. It requires the radeontool package to be installed and it needs to be set with suid flag (i.e. chmod u+s \/usr\/sbin\/radeontool). Please feel free to launch... Continue reading →\" \/>\n<meta property=\"og:url\" content=\"https:\/\/vault.motd.kr\/wordpress\/posts\/1519\/turning-off-radeon-lcd-backlight-when-gnome-screensaver-is-activated\/\" \/>\n<meta property=\"og:site_name\" content=\"T's message of the day\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/trustin\" \/>\n<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/trustin\" \/>\n<meta property=\"article:published_time\" content=\"2008-02-13T19:15:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-12-27T16:46:20+00:00\" \/>\n<meta name=\"author\" content=\"Trustin Lee\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@https:\/\/www.twitter.com\/trustin\" \/>\n<meta name=\"twitter:site\" content=\"@trustin\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Trustin Lee\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/vault.motd.kr\/wordpress\/posts\/1519\/turning-off-radeon-lcd-backlight-when-gnome-screensaver-is-activated\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/vault.motd.kr\/wordpress\/posts\/1519\/turning-off-radeon-lcd-backlight-when-gnome-screensaver-is-activated\/\"},\"author\":{\"name\":\"Trustin Lee\",\"@id\":\"https:\/\/vault.motd.kr\/wordpress\/#\/schema\/person\/4430ad90fc2ddeef051565701d85db9d\"},\"headline\":\"Turning off Radeon LCD backlight when GNOME screensaver is activated\",\"datePublished\":\"2008-02-13T19:15:00+00:00\",\"dateModified\":\"2022-12-27T16:46:20+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/vault.motd.kr\/wordpress\/posts\/1519\/turning-off-radeon-lcd-backlight-when-gnome-screensaver-is-activated\/\"},\"wordCount\":109,\"publisher\":{\"@id\":\"https:\/\/vault.motd.kr\/wordpress\/#\/schema\/person\/4430ad90fc2ddeef051565701d85db9d\"},\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/vault.motd.kr\/wordpress\/posts\/1519\/turning-off-radeon-lcd-backlight-when-gnome-screensaver-is-activated\/\",\"url\":\"https:\/\/vault.motd.kr\/wordpress\/posts\/1519\/turning-off-radeon-lcd-backlight-when-gnome-screensaver-is-activated\/\",\"name\":\"Turning off Radeon LCD backlight when GNOME screensaver is activated — T's message of the day\",\"isPartOf\":{\"@id\":\"https:\/\/vault.motd.kr\/wordpress\/#website\"},\"datePublished\":\"2008-02-13T19:15:00+00:00\",\"dateModified\":\"2022-12-27T16:46:20+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/vault.motd.kr\/wordpress\/posts\/1519\/turning-off-radeon-lcd-backlight-when-gnome-screensaver-is-activated\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/vault.motd.kr\/wordpress\/posts\/1519\/turning-off-radeon-lcd-backlight-when-gnome-screensaver-is-activated\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/vault.motd.kr\/wordpress\/posts\/1519\/turning-off-radeon-lcd-backlight-when-gnome-screensaver-is-activated\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/vault.motd.kr\/wordpress\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Turning off Radeon LCD backlight when GNOME screensaver is activated\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/vault.motd.kr\/wordpress\/#website\",\"url\":\"https:\/\/vault.motd.kr\/wordpress\/\",\"name\":\"T's message of the day\",\"description\":\"the best is yet to come\",\"publisher\":{\"@id\":\"https:\/\/vault.motd.kr\/wordpress\/#\/schema\/person\/4430ad90fc2ddeef051565701d85db9d\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/vault.motd.kr\/wordpress\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\/\/vault.motd.kr\/wordpress\/#\/schema\/person\/4430ad90fc2ddeef051565701d85db9d\",\"name\":\"Trustin Lee\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/vault.motd.kr\/wordpress\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/vault.motd.kr\/wordpress\/wp-content\/uploads\/2020\/09\/avatar-2019-966px.png\",\"contentUrl\":\"https:\/\/vault.motd.kr\/wordpress\/wp-content\/uploads\/2020\/09\/avatar-2019-966px.png\",\"width\":966,\"height\":966,\"caption\":\"Trustin Lee\"},\"logo\":{\"@id\":\"https:\/\/vault.motd.kr\/wordpress\/#\/schema\/person\/image\/\"},\"sameAs\":[\"https:\/\/t.motd.kr\/\",\"https:\/\/www.facebook.com\/trustin\",\"https:\/\/www.instagram.com\/trustinlee\/\",\"https:\/\/www.linkedin.com\/in\/trustin\",\"https:\/\/twitter.com\/https:\/\/www.twitter.com\/trustin\",\"https:\/\/www.youtube.com\/@trustinlee\"]}]}<\/script>","yoast_head_json":{"title":"Turning off Radeon LCD backlight when GNOME screensaver is activated — T's message of the day","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/vault.motd.kr\/wordpress\/posts\/1519\/turning-off-radeon-lcd-backlight-when-gnome-screensaver-is-activated\/","og_locale":"en_US","og_type":"article","og_title":"Turning off Radeon LCD backlight when GNOME screensaver is activated — T's message of the day","og_description":"I wrote a quick and dirty script that turns on and off ATI Radeon LCD backlight by monitoring DBUS events to detect the activation and deactivation of GNOME screensaver. It requires the radeontool package to be installed and it needs to be set with suid flag (i.e. chmod u+s \/usr\/sbin\/radeontool). Please feel free to launch... Continue reading →","og_url":"https:\/\/vault.motd.kr\/wordpress\/posts\/1519\/turning-off-radeon-lcd-backlight-when-gnome-screensaver-is-activated\/","og_site_name":"T's message of the day","article_publisher":"https:\/\/www.facebook.com\/trustin","article_author":"https:\/\/www.facebook.com\/trustin","article_published_time":"2008-02-13T19:15:00+00:00","article_modified_time":"2022-12-27T16:46:20+00:00","author":"Trustin Lee","twitter_card":"summary_large_image","twitter_creator":"@https:\/\/www.twitter.com\/trustin","twitter_site":"@trustin","twitter_misc":{"Written by":"Trustin Lee","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/vault.motd.kr\/wordpress\/posts\/1519\/turning-off-radeon-lcd-backlight-when-gnome-screensaver-is-activated\/#article","isPartOf":{"@id":"https:\/\/vault.motd.kr\/wordpress\/posts\/1519\/turning-off-radeon-lcd-backlight-when-gnome-screensaver-is-activated\/"},"author":{"name":"Trustin Lee","@id":"https:\/\/vault.motd.kr\/wordpress\/#\/schema\/person\/4430ad90fc2ddeef051565701d85db9d"},"headline":"Turning off Radeon LCD backlight when GNOME screensaver is activated","datePublished":"2008-02-13T19:15:00+00:00","dateModified":"2022-12-27T16:46:20+00:00","mainEntityOfPage":{"@id":"https:\/\/vault.motd.kr\/wordpress\/posts\/1519\/turning-off-radeon-lcd-backlight-when-gnome-screensaver-is-activated\/"},"wordCount":109,"publisher":{"@id":"https:\/\/vault.motd.kr\/wordpress\/#\/schema\/person\/4430ad90fc2ddeef051565701d85db9d"},"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/vault.motd.kr\/wordpress\/posts\/1519\/turning-off-radeon-lcd-backlight-when-gnome-screensaver-is-activated\/","url":"https:\/\/vault.motd.kr\/wordpress\/posts\/1519\/turning-off-radeon-lcd-backlight-when-gnome-screensaver-is-activated\/","name":"Turning off Radeon LCD backlight when GNOME screensaver is activated — T's message of the day","isPartOf":{"@id":"https:\/\/vault.motd.kr\/wordpress\/#website"},"datePublished":"2008-02-13T19:15:00+00:00","dateModified":"2022-12-27T16:46:20+00:00","breadcrumb":{"@id":"https:\/\/vault.motd.kr\/wordpress\/posts\/1519\/turning-off-radeon-lcd-backlight-when-gnome-screensaver-is-activated\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/vault.motd.kr\/wordpress\/posts\/1519\/turning-off-radeon-lcd-backlight-when-gnome-screensaver-is-activated\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/vault.motd.kr\/wordpress\/posts\/1519\/turning-off-radeon-lcd-backlight-when-gnome-screensaver-is-activated\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/vault.motd.kr\/wordpress\/"},{"@type":"ListItem","position":2,"name":"Turning off Radeon LCD backlight when GNOME screensaver is activated"}]},{"@type":"WebSite","@id":"https:\/\/vault.motd.kr\/wordpress\/#website","url":"https:\/\/vault.motd.kr\/wordpress\/","name":"T's message of the day","description":"the best is yet to come","publisher":{"@id":"https:\/\/vault.motd.kr\/wordpress\/#\/schema\/person\/4430ad90fc2ddeef051565701d85db9d"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/vault.motd.kr\/wordpress\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/vault.motd.kr\/wordpress\/#\/schema\/person\/4430ad90fc2ddeef051565701d85db9d","name":"Trustin Lee","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/vault.motd.kr\/wordpress\/#\/schema\/person\/image\/","url":"https:\/\/vault.motd.kr\/wordpress\/wp-content\/uploads\/2020\/09\/avatar-2019-966px.png","contentUrl":"https:\/\/vault.motd.kr\/wordpress\/wp-content\/uploads\/2020\/09\/avatar-2019-966px.png","width":966,"height":966,"caption":"Trustin Lee"},"logo":{"@id":"https:\/\/vault.motd.kr\/wordpress\/#\/schema\/person\/image\/"},"sameAs":["https:\/\/t.motd.kr\/","https:\/\/www.facebook.com\/trustin","https:\/\/www.instagram.com\/trustinlee\/","https:\/\/www.linkedin.com\/in\/trustin","https:\/\/twitter.com\/https:\/\/www.twitter.com\/trustin","https:\/\/www.youtube.com\/@trustinlee"]}]}},"_links":{"self":[{"href":"https:\/\/vault.motd.kr\/wordpress\/wp-json\/wp\/v2\/posts\/1519"}],"collection":[{"href":"https:\/\/vault.motd.kr\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/vault.motd.kr\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/vault.motd.kr\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/vault.motd.kr\/wordpress\/wp-json\/wp\/v2\/comments?post=1519"}],"version-history":[{"count":1,"href":"https:\/\/vault.motd.kr\/wordpress\/wp-json\/wp\/v2\/posts\/1519\/revisions"}],"predecessor-version":[{"id":5797,"href":"https:\/\/vault.motd.kr\/wordpress\/wp-json\/wp\/v2\/posts\/1519\/revisions\/5797"}],"wp:attachment":[{"href":"https:\/\/vault.motd.kr\/wordpress\/wp-json\/wp\/v2\/media?parent=1519"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/vault.motd.kr\/wordpress\/wp-json\/wp\/v2\/categories?post=1519"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/vault.motd.kr\/wordpress\/wp-json\/wp\/v2\/tags?post=1519"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}