patch #0 updated to detect DSI-1 displays [release 20180914git-3mamba;Tue Mar 05 2019]

This commit is contained in:
Silvan Calarco 2024-01-05 18:12:41 +01:00
parent 4bfa5f1674
commit be34a6e373
2 changed files with 5 additions and 2 deletions

View File

@ -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<rotation>.*) \(",
+ XRANDR_INFO,

View File

@ -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 <silvan.calarco@mambasoft.it> 20180914git-3mamba
- patch #0 updated to detect DSI-1 displays
* Sat Sep 15 2018 Silvan Calarco <silvan.calarco@mambasoft.it> 20180914git-2mamba
- autorotate: apply patch to check rotation at startup and fork
- penmon: initial patch to support devices autodetection