Hello community,

here is the log from the commit of package yast2-x11 for openSUSE:Factory 
checked in at 2016-06-29 15:01:08
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/yast2-x11 (Old)
 and      /work/SRC/openSUSE:Factory/.yast2-x11.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "yast2-x11"

Changes:
--------
--- /work/SRC/openSUSE:Factory/yast2-x11/yast2-x11.changes      2015-08-21 
12:42:00.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.yast2-x11.new/yast2-x11.changes 2016-06-29 
15:01:09.000000000 +0200
@@ -1,0 +2,6 @@
+Wed Jun 15 15:10:47 CEST 2016 - snw...@suse.de
+
+- add set_videomode script to adjust video mode using xrandr (bsc#974821)
+- 3.1.5
+
+-------------------------------------------------------------------

Old:
----
  yast2-x11-3.1.4.tar.bz2

New:
----
  yast2-x11-3.1.5.tar.bz2

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ yast2-x11.spec ++++++
--- /var/tmp/diff_new_pack.ZvFeLB/_old  2016-06-29 15:01:10.000000000 +0200
+++ /var/tmp/diff_new_pack.ZvFeLB/_new  2016-06-29 15:01:10.000000000 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package yast2-x11
 #
-# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -17,7 +17,7 @@
 
 
 Name:           yast2-x11
-Version:        3.1.4
+Version:        3.1.5
 Release:        0
 
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
@@ -55,6 +55,7 @@
 %defattr(-,root,root)
 
 %{yast_ybindir}/testX
+%{yast_ybindir}/set_videomode
 /usr/sbin/xkbctrl
 /etc/icewm
 

++++++ yast2-x11-3.1.4.tar.bz2 -> yast2-x11-3.1.5.tar.bz2 ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/yast2-x11-3.1.4/package/yast2-x11.changes 
new/yast2-x11-3.1.5/package/yast2-x11.changes
--- old/yast2-x11-3.1.4/package/yast2-x11.changes       2015-08-18 
16:47:09.000000000 +0200
+++ new/yast2-x11-3.1.5/package/yast2-x11.changes       2016-06-15 
15:56:09.000000000 +0200
@@ -1,4 +1,10 @@
 -------------------------------------------------------------------
+Wed Jun 15 15:10:47 CEST 2016 - snw...@suse.de
+
+- add set_videomode script to adjust video mode using xrandr (bsc#974821)
+- 3.1.5
+
+-------------------------------------------------------------------
 Tue Aug 18 14:00:28 UTC 2015 - sndir...@suse.com
 
 - xkbctrl uses systemd mapping information now (fate#318426)
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/yast2-x11-3.1.4/package/yast2-x11.spec 
new/yast2-x11-3.1.5/package/yast2-x11.spec
--- old/yast2-x11-3.1.4/package/yast2-x11.spec  2015-08-18 16:47:09.000000000 
+0200
+++ new/yast2-x11-3.1.5/package/yast2-x11.spec  2016-06-15 15:56:09.000000000 
+0200
@@ -17,7 +17,7 @@
 
 
 Name:           yast2-x11
-Version:        3.1.4
+Version:        3.1.5
 Release:        0
 
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
@@ -51,6 +51,7 @@
 %defattr(-,root,root)
 
 %{yast_ybindir}/testX
+%{yast_ybindir}/set_videomode
 /usr/sbin/xkbctrl
 /etc/icewm
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/yast2-x11-3.1.4/src/tools/Makefile.am 
new/yast2-x11-3.1.5/src/tools/Makefile.am
--- old/yast2-x11-3.1.4/src/tools/Makefile.am   2015-04-17 10:43:09.000000000 
+0200
+++ new/yast2-x11-3.1.5/src/tools/Makefile.am   2016-06-15 15:56:09.000000000 
+0200
@@ -4,6 +4,8 @@
 
 ybin_PROGRAMS = testX
 
+ybin_SCRIPTS = set_videomode
+
 sbin_SCRIPTS = xkbctrl
 
 man_MANS = xkbctrl.1
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/yast2-x11-3.1.4/src/tools/set_videomode 
new/yast2-x11-3.1.5/src/tools/set_videomode
--- old/yast2-x11-3.1.4/src/tools/set_videomode 1970-01-01 01:00:00.000000000 
+0100
+++ new/yast2-x11-3.1.5/src/tools/set_videomode 2016-06-15 15:56:09.000000000 
+0200
@@ -0,0 +1,51 @@
+#! /usr/bin/perl
+
+use strict;
+
+my $usage = <<XXX;
+set_videomode [MODE][,DPI]
+
+Sets video mode MODE using xrandr. If DPI is specified, also adjusts physical
+screen size to match the dpi value. If MODE is missing, only DPI is adjusted.
+
+If the mode can't be set, the old video mode is kept.
+
+To be precise, it changes the first connected display.
+XXX
+
+my ($mode, $dpi) = split /,/, @ARGV[0];
+$dpi += 0;
+
+die $usage unless $mode ne "" || $dpi;
+
+open my $log, ">>/var/log/YaST2/y2videomode.log";
+
+my $xrandr = "xrandr";
+
+my @randr = `$xrandr 2>&1`;
+print $log "== xrandr ==\n", @randr;
+
+my $output;
+my %modes;
+
+for(@randr) {
+  if(/^(\S+)\s+connected\s/ ... /^\S/) {
+    $output = $1 if !defined $output;
+    $modes{$1} = 1 if /^\s+(\S+)\s+\S+/;
+  }
+}
+
+print $log "== mode = '$mode', dpi = '$dpi', output = '$output'\n";
+print $log "  '$_'\n" for sort keys %modes;
+
+if($modes{$mode}) {
+  $xrandr .= " --output '$output' --mode '$mode'";
+}
+
+if($dpi) {
+  $xrandr .= " --dpi '$dpi'"
+}
+
+@randr = `$xrandr 2>&1`;
+print $log "== $xrandr ==\n", @randr;
+


Reply via email to