私はあなたの外付けモニターを入れるというあなたの望ましい解決策がうまくいくとは思いません/sys/class/backlightが、良いニュースはあなたが素晴らしい明るさのアニメーションを持つことができるということです!
やってみる
notify-send " " -i notification-display-brightness-low -h int:value:50 -h string:x-canonical-private-synchronous:brightness &
これで、Ubuntuの明るさチェンジャーをシミュレートするスクリプトを作成できます。
#!/bin/bash
#get current brightness
presbright=$(ddccontrol -p | grep -A1 0x10 | tr -d '\n\t' | sed 's/.*value=\([^a-zA-Z]*\),.*/\1/')
#stepsize for the brightness change
stepsize=10
case "$1" in
        up)
          newbright=$(( ${presbright}+${stepsize} ))
          newbright=$(echo $newbright | awk '{if($1 < 100){if($1 > 0) print $1; else print 0;} else print 100;}')
          notify-send " " -i notification-display-brightness-low -h int:value:$newbright -h string:x-canonical-private-synchronous:brightness &
          ddccontrol -p -r 0x10 -w $newbright
        ;;
        down)
          newbright=$(( ${presbright}-${stepsize} ))
          newbright=$(echo $newbright | awk '{if($1 < 100){if($1 > 0) print $1; else print 0;} else print 100;}')
          notify-send " " -i notification-display-brightness-low -h int:value:$newbright -h string:x-canonical-private-synchronous:brightness &
          ddccontrol -p -r 0x10 -w $newbright            
        ;;
        status)
          echo $presbright
        ;;
        *)
          echo "Accepted arguments are: up, down, status."
        ;;
esac
exit 0
あなたが見ることができるように、それは0〜100の値は、今、あなたが結合できるクランプupとdownでお好みのいくつかのキーボードショートカットにスクリプトへの呼び出しをシステム設定>キーボード>ショートカット fotomonsterが提案のように、。
注:
 
時間ddccontrol -pがどれくらいかかるかわかりません。長すぎるsync場合は、モニターの輝度値をファイルに保存するオプションをスクリプトに追加することもできます。次に、現在の明るさを取得する代わりにddccontrol、ファイルから取得するだけで、はるかに高速になります。もちろん、あなたが更新する必要があるだろうupし、downファイルに新しい明るさを書くために呼び出して...
archlinuxに関するこの投稿に触発されたスクリプト。