Hello community,

here is the log from the commit of package suse-prime for openSUSE:Factory 
checked in at 2019-01-11 14:05:48
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/suse-prime (Old)
 and      /work/SRC/openSUSE:Factory/.suse-prime.new.28833 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "suse-prime"

Fri Jan 11 14:05:48 2019 rev:3 rq:664399 version:0.3

Changes:
--------
--- /work/SRC/openSUSE:Factory/suse-prime/suse-prime.changes    2019-01-10 
15:23:30.674319895 +0100
+++ /work/SRC/openSUSE:Factory/.suse-prime.new.28833/suse-prime.changes 
2019-01-11 14:06:42.947725990 +0100
@@ -1,0 +2,12 @@
+Thu Jan 10 14:41:06 UTC 2019 - [email protected]
+
+- Update to release 0.3
+  * added "query" switch: use 'prime-select query' to check which
+    GPU you're currently using
+  * removed UseDisplayDevice option from xorg-nvidia.conf which is
+    not needed anymore and prevents use of external displays
+- supersedes patches
+  * U_Fixed-syntax-error-and-handled-not-yet-existing-conf.patch
+  * U_adding-query-switch.patch
+
+-------------------------------------------------------------------

Old:
----
  SUSEPrime-0.2.tar.gz
  U_Fixed-syntax-error-and-handled-not-yet-existing-conf.patch
  U_adding-query-switch.patch

New:
----
  SUSEPrime-0.3.tar.gz

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

Other differences:
------------------
++++++ suse-prime.spec ++++++
--- /var/tmp/diff_new_pack.4j4LlW/_old  2019-01-11 14:06:43.603725330 +0100
+++ /var/tmp/diff_new_pack.4j4LlW/_new  2019-01-11 14:06:43.607725326 +0100
@@ -17,15 +17,13 @@
 
 
 Name:           suse-prime
-Version:        0.2
+Version:        0.3
 Release:        0
 Summary:        GPU (nvidia/intel) selection for NVIDIA optimus laptops
 License:        SUSE-Public-Domain
 Group:          System/X11/Utilities
 Url:            https://github.com/michalsrb/SUSEPrime
 Source0:        
https://github.com/michalsrb/SUSEPrime/archive/%{version}.tar.gz#/SUSEPrime-%{version}.tar.gz
-Patch0:         U_adding-query-switch.patch
-Patch1:         U_Fixed-syntax-error-and-handled-not-yet-existing-conf.patch
 Recommends:     nvidia_driver
 Supplements:    modalias(nvidia_driver:pci:v00008086d*sv*sd*bc03sc*i*)
 Conflicts:      suse-prime-alt
@@ -38,8 +36,6 @@
 
 %prep
 %setup -n SUSEPrime-%{version}
-%patch0 -p1
-%patch1 -p1
 
 %build
 :

++++++ SUSEPrime-0.2.tar.gz -> SUSEPrime-0.3.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/SUSEPrime-0.2/README.md new/SUSEPrime-0.3/README.md
--- old/SUSEPrime-0.2/README.md 2018-10-11 13:11:53.000000000 +0200
+++ new/SUSEPrime-0.3/README.md 2019-01-09 16:24:24.000000000 +0100
@@ -14,6 +14,7 @@
 1. Run "prime-select nvidia" log out and login again, hopefully you are
    using nvidia GPU. To switch back to intel GPU run "prime-select intel"
    Remember to run as root.
+2. To check which GPU you're currently using run "prime-select query".
 
 Contact
 -------
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/SUSEPrime-0.2/prime-select.sh 
new/SUSEPrime-0.3/prime-select.sh
--- old/SUSEPrime-0.2/prime-select.sh   2018-10-11 13:11:53.000000000 +0200
+++ new/SUSEPrime-0.3/prime-select.sh   2019-01-09 16:24:24.000000000 +0100
@@ -5,6 +5,7 @@
 
 # Public domain by Bo Simonsen <[email protected]>
 # Adapted for OpenSUSE Tumbleweed by Michal Srb <[email protected]>
+# Extended for TUXEDO Computers by Vinzenz Vietzke <[email protected]>
 
 type=$1
 
@@ -18,6 +19,11 @@
 
 case $type in
   nvidia)
+      if [[ $EUID -ne 0 ]]; then
+         echo "This script must be run with root permissions" 2>&1
+         exit 1
+      fi
+
       clean_files 
 
       gpu_info=`nvidia-xconfig --query-gpu-info`
@@ -27,8 +33,14 @@
       update-alternatives --set libglx.so $libglx_nvidia
 
       cat $xorg_nvidia_conf | sed 's/PCI:X:X:X/'${nvidia_busid}'/' > 
/etc/X11/xorg.conf.d/90-nvidia.conf
+      echo "nvidia" > /etc/prime/current_type
   ;;
   intel)
+      if [[ $EUID -ne 0 ]]; then
+         echo "This script must be run with root permissions" 2>&1
+         exit 1
+      fi
+
       clean_files
 
       libglx_xorg=`update-alternatives --list libglx.so|grep xorg-libglx.so`
@@ -36,9 +48,19 @@
       update-alternatives --set libglx.so $libglx_xorg
 
       cp $xorg_intel_conf /etc/X11/xorg.conf.d/90-intel.conf
+      echo "intel" > /etc/prime/current_type
+  ;;
+  query)
+      if [ -f /etc/prime/current_type ]; then
+         echo -n "Currently running: "
+         cat /etc/prime/current_type
+      else
+         echo -n "Not configured yet! "
+         echo "Please use \"prime-select nvidia|intel\" for configuration."
+      fi
   ;;
   *)
-      echo "prime-select nvidia|intel"
+      echo "Usage: prime-select nvidia|intel|query"
       exit
   ;;
 esac
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/SUSEPrime-0.2/xorg-nvidia.conf 
new/SUSEPrime-0.3/xorg-nvidia.conf
--- old/SUSEPrime-0.2/xorg-nvidia.conf  2018-10-11 13:11:53.000000000 +0200
+++ new/SUSEPrime-0.3/xorg-nvidia.conf  2019-01-09 16:24:24.000000000 +0100
@@ -25,5 +25,4 @@
     Identifier "nvidia"
     Device "nvidia"
     Option "AllowEmptyInitialConfiguration" "on"
-    Option "UseDisplayDevice" "None"
 EndSection


Reply via email to