summaryrefslogtreecommitdiffstats
path: root/examples/crtc-detection
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2014-03-13 23:31:48 +0100
committerMattias Andrée <maandree@operamail.com>2014-03-13 23:31:48 +0100
commit24c87751ea37c948565d40cb84d7726466b0c4b0 (patch)
treee2ff3bb543cd533f30e09f352d51da6bb3cdd45f /examples/crtc-detection
parentfix and demo drm support (diff)
downloadblueshift-24c87751ea37c948565d40cb84d7726466b0c4b0.tar.gz
blueshift-24c87751ea37c948565d40cb84d7726466b0c4b0.tar.bz2
blueshift-24c87751ea37c948565d40cb84d7726466b0c4b0.tar.xz
ttymode variable + document drm support
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'examples/crtc-detection')
-rw-r--r--examples/crtc-detection3
1 files changed, 0 insertions, 3 deletions
diff --git a/examples/crtc-detection b/examples/crtc-detection
index 000dfce..9b3b2ed 100644
--- a/examples/crtc-detection
+++ b/examples/crtc-detection
@@ -7,9 +7,6 @@
# The colour temperature to apply.
temp = 6500
-# Check if we are in X or TTY.
-ttymode = not (('DISPLAY' in os.environ) and (':' in os.environ['DISPLAY']))
-
# List all connected outputs.
outputs = list_screens('drm' if ttymode else 'randr').find_by_connected(True)