From 0213da221e52ac4a2079addfd5fdaaa12dba775c Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Tue, 11 Mar 2014 05:57:27 +0100 Subject: m MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/backlight.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)] -- cgit v1.2.3-70-g09d2