From d626856fb9cac482d4eace839ac22a0de0ea2832 Mon Sep 17 00:00:00 2001 From: "Elf M. Sternberg" Date: Mon, 20 Nov 2017 18:30:05 -0800 Subject: [PATCH] Adding the keyboard touchpad to devices remapped on rotation. --- autorotate/autorotate.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autorotate/autorotate.py b/autorotate/autorotate.py index 73c482a..e0c24ed 100755 --- a/autorotate/autorotate.py +++ b/autorotate/autorotate.py @@ -12,7 +12,7 @@ devicename = 'NTRG0001:01 1B96:1B05' freq = 5.0 MONITOR_CONNECTED_RE = re.compile(r'\bconnected\b') -DIGITIZER_RE = re.compile(r'NTRG0001\:01\s+1B96\:1B05') +DIGITIZER_RE = re.compile(r'(NTRG0001\:01\s+1B96\:1B05|Microsoft Surface Type Cover Touchpad)') PEN_RE = re.compile(r'\bPen (stylus|eraser)\b') PROXIMITY_RE = re.compile(r'\bProximity\=(\w+)', re.M)