diff --git a/surface-tools-20180914git-autorotate-autodetect.patch b/surface-tools-20180914git-autorotate-autodetect.patch index 609fa28..91cddc1 100644 --- a/surface-tools-20180914git-autorotate-autodetect.patch +++ b/surface-tools-20180914git-autorotate-autodetect.patch @@ -52,7 +52,7 @@ diff -Nru surface-tools-20180914git.orig/autorotate/autorotate surface-tools-201 +XRANDR_INFO = run_shell_cmd('xrandr --verbose') + +# Find the display we are interested to move (= the laptop panel) -+POSSIBLE_OUTPUT = [ "DSI1", "eDP1", "LVDS", "LVDS1" ] ++POSSIBLE_OUTPUT = [ "DSI1", "DSI-1", "eDP1", "LVDS", "LVDS1" ] +for out in POSSIBLE_OUTPUT: + match = re.search("^" + out + r" connected .* \(.*\) (?P.*) \(", + XRANDR_INFO, diff --git a/surface-tools.spec b/surface-tools.spec index c6d0531..ae3389c 100644 --- a/surface-tools.spec +++ b/surface-tools.spec @@ -1,6 +1,6 @@ Name: surface-tools Version: 20180914git -Release: 2mamba +Release: 3mamba Summary: Tools for using the Microsoft Surface with Linux Group: System/Kernel and Hardware Vendor: openmamba @@ -59,6 +59,9 @@ install -D -m0755 penmon/penmon %{buildroot}%{_datadir}/penmon/penmon %doc LICENSE %changelog +* Tue Mar 05 2019 Silvan Calarco 20180914git-3mamba +- patch #0 updated to detect DSI-1 displays + * Sat Sep 15 2018 Silvan Calarco 20180914git-2mamba - autorotate: apply patch to check rotation at startup and fork - penmon: initial patch to support devices autodetection