{ "version": "https://jsonfeed.org/version/1.1", "user_comment": "This feed allows you to read the posts from this site in any feed reader that supports the JSON Feed format. To add this feed to your reader, copy the following URL -- https://matoken.org/blog/tag/brightness/feed/json/ -- and add it your reader.", "home_page_url": "https://matoken.org/blog/tag/brightness/", "feed_url": "https://matoken.org/blog/tag/brightness/feed/json/", "language": "ja", "title": "Brightness – matoken's blog", "description": "Is there no plan B?", "icon": "https://matoken.org/blog/wp-content/uploads/2025/03/cropped-1865f695c4eecc844385acef2f078255036adccd42c254580ea3844543ab56d9.jpeg", "items": [ { "id": "http://matoken.org/blog/?p=2059", "url": "https://matoken.org/blog/2018/08/27/use-light-with-awesome-wm-to-adjust-the-brightness/", "title": "awesome WM \u3067 Light \u3092\u5229\u7528\u3057\u3066\u8f1d\u5ea6\u8abf\u6574\u3059\u308b", "content_html": "
\u4ee5\u524d\u306f awesome WM \u3067\u306e\u8f1d\u5ea6\u8abf\u6574\u306f xbacklight \u3092\u5229\u7528\u3057\u3066\u3044\u305f\u306e\u3067\u3059\u304c\uff0c\u52d5\u4f5c\u3057\u306a\u304f\u306a\u3063\u3066\u3044\u307e\u3057\u305f\uff0e
$ xbacklight -get\r\nNo outputs have backlight property\n\u6700\u8fd1\u307e\u3067 ThinkPad \u304c1\u53f0\u3060\u3051\u306b\u306a\u3063\u3066\u6301\u3061\u904b\u3073\u3092\u3057\u306a\u304f\u306a\u3063\u3066\u3044\u305f\u306e\u3082\u3042\u308a\uff0c\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u611f\u3058\u3067 /sys/class/backlight/intel_backlight/brightness \u306b\u6295\u3052\u3066\u3044\u307e\u3057\u305f\uff0e
$ echo 800 | sudo tee /sys/class/backlight/intel_backlight/brightness\r\n800\n\u3057\u304b\u3057\uff0c\u6700\u8fd1 T430s/X201i \u306e\u30b8\u30e3\u30f3\u30af\u3092\u5165\u624b\u3057\u3066\u88dc\u4fee\u3057\u3066\u6301\u3061\u904b\u3079\u308b ThinkPad \u304c\u51fa\u6765\u307e\u3057\u305f :)
\n\u305d\u3046\u306a\u308b\u3068\u5834\u6240\u306b\u3088\u308a\u660e\u308b\u3055\u304c\u5909\u308f\u3063\u305f\u308a\uff0c\u8f1d\u5ea6\u3092\u4e0b\u3052\u3066\u30d0\u30c3\u30c6\u30ea\u30fc\u6301\u3061\u3092\u826f\u304f\u3057\u305f\u308a\u3057\u305f\u3044\u3068\u3044\u3046\u611f\u3058\u3067\u3053\u307e\u3081\u306b\u8d77\u52d5\u8abf\u6574\u304c\u3057\u305f\u304f\u306a\u308a\u307e\u3057\u305f\uff0e
\n\u4ed6\u306ewm\u306epower manager\u3092\u4f7f\u3046\u3068\u4e00\u5fdc\u8f1d\u5ea6\u8abf\u6574\u3067\u304d\u308b\u3051\u3069\u3042\u307e\u308a\u5b09\u3057\u304f\u306a\u3044\u306a\u3068\u3044\u3046\u3053\u3068\u3067\u3061\u3087\u3063\u3068\u63a2\u3057\u3066\u307f\u308b\u3068\uff0c Light \u3068\u3044\u3046\u3082\u306e\u3092\u898b\u3064\u3051\u307e\u3057\u305f\uff0e
Arch Linux, Fedora \u306b\u306f\u30d1\u30c3\u30b1\u30fc\u30b8\u304c\u3042\u308b\u3088\u3046\u3067\u3059\uff0e\u4eca\u56de\u306fsource\u304b\u3089Ubuntu\u3068Debian\u306b\u5c0e\u5165\u3057\u307e\u3057\u305f\uff0e
\n$ git clone https://github.com/haikarainen/light\r\n$ cd light\r\n$ ./autogen.sh\r\n$ ./configure\r\n$ make\r\n$ sudo checkinstall\n\u3068\u308a\u3042\u3048\u305a\u305d\u306e\u307e\u307e\u65e2\u5b9a\u5024\u3067build\u3057\u307e\u3057\u305f\uff0e
\n$ light -G #\u8f1d\u5ea6\u53d6\u5f97\r\n56.34\r\n$ light -A 10 #\u8f1d\u5ea6 10 Up\r\n$ light -U 10 #\u8f1d\u5ea6 10 Down\n\u554f\u984c\u306a\u304f\u52d5\u304d\u307e\u3057\u305f\uff0e\u4ed6\u306b\u3082\u30aa\u30d7\u30b7\u30e7\u30f3\u306f\u3042\u308a\u307e\u3059\u304c\uff0c\u3068\u308a\u3042\u3048\u305a\u3053\u308c\u3060\u3051\u52d5\u3051\u3070\u554f\u984c\u3042\u308a\u307e\u305b\u3093\uff0e
\nawesome WM \u306e ~/.config/awesome/lua.rc \u306b\u66f8\u3044\u3066\u307f\u307e\u3059\uff0e
diff --git a/rc.lua b/rc.lua\r\nindex f9a7467..9f461b9 100644\r\n--- a/rc.lua\r\n+++ b/rc.lua\r\n@@ -289,8 +289,12 @@ globalkeys = awful.util.table.join(\r\n\r\n -- Brightness Controle\r\n--- awful.key({ }, \"XF86MonBrightnessDown\", function () awful.util.spawn(\"xbacklight - 5\") end),\r\n -- awful.key({ }, \"XF86MonBrightnessUp\", function () awful.util.spawn(\"xbacklight + 5\") end),\r\n+-- awful.key({ }, \"XF86MonBrightnessDown\", function () awful.util.spawn(\"xbacklight - 5\") end),\r\n+ -- \u4ee5\u4e0b\u306e light \u3092\u5229\u7528\r\n+ -- \"haikarainen/light: GNU/Linux application to control backlights\" https://github.com/haikarainen/light\r\n+ awful.key({ }, \"XF86MonBrightnessUp\", function () awful.util.spawn(\"light -A 10\") end),\r\n+ awful.key({ }, \"XF86MonBrightnessDown\", function () awful.util.spawn(\"light -U 10\") end),\r\n\r\n -- lock screen\r\n awful.key({ \"Mod1\" }, \"l\", function () awful.util.spawn( \"xscreensaver-command -activate\",false) end),\nawesome WM \u306e restart \u3092\u3057\u3066\uff0c\u8f1d\u5ea6\u8abf\u6574\u30dc\u30bf\u30f3\u3092\u62bc\u3059\u3068\u3061\u3083\u3093\u3068\u8f1d\u5ea6\u304cUp/Down\u3059\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\uff0e
\n\u3053\u308c\u3067\u5916\u51fa\u5148\u3067\u3082\u56f0\u308a\u307e\u305b\u3093 :)
$ $ dpkg-query -W awesome*\r\nawesome 4.2-4\r\nawesome-doc\r\nawesome-extra 2017110501\r\n$ lsb_release -d\r\nDescription: Ubuntu 18.04.1 LTS\r\n$ uname -m\r\nx86_64\n$ dpkg-query -W awesome*\r\nawesome 4.2-5\r\nawesome-doc 4.2-5\r\nawesome-extra 2018041201\r\n$ lsb_release -d\r\nDescription: Debian GNU/Linux unstable (sid)\r\n$ uname -m\r\nx86_64\n