Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tawindow.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tawindow.py b/tawindow.py
index 219427a..d3241cd 100644
--- a/tawindow.py
+++ b/tawindow.py
@@ -104,7 +104,8 @@ def twNew(win, path, lang, parent=None):
tw.area = win.window
tw.gc = tw.area.new_gc()
# on an OLPC-XO-1, there is a scaling factor
- if os.path.exists('/etc/olpc-release'):
+ if os.path.exists('/etc/olpc-release') or \
+ os.path.exists('/sys/power/olpc-pm'):
tw.lead = 1.6
tw.scale = 1.0
else: