diff options
author | Mattias Andrée <maandree@operamail.com> | 2014-03-11 05:57:27 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2014-03-11 05:57:27 +0100 |
commit | 0213da221e52ac4a2079addfd5fdaaa12dba775c (patch) | |
tree | 8e47782334e18bf05442504d43c3ff993dcf1f40 | |
parent | add backlight support through sysfs (diff) | |
download | blueshift-0213da221e52ac4a2079addfd5fdaaa12dba775c.tar.gz blueshift-0213da221e52ac4a2079addfd5fdaaa12dba775c.tar.bz2 blueshift-0213da221e52ac4a2079addfd5fdaaa12dba775c.tar.xz |
m
Signed-off-by: Mattias Andrée <maandree@operamail.com>
-rw-r--r-- | src/backlight.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backlight.py b/src/backlight.py index 54090ae..3d61780 100644 --- a/src/backlight.py +++ b/src/backlight.py @@ -89,7 +89,7 @@ class Backlight: ''' if not self.__adjbacklight: with open('%s/brightness' % self.__controller, 'wb') as file: - file.write((str(value + self.__minimum) + '\n').encode('utf-8')) + file.write(('%i\n' % (value + self.__minimum)).encode('utf-8')) file.flush() else: cmd = ['adjbacklight', self.__controller, '--set', str(value + self.__minimum)] |