commit suse-prime for openSUSE:Factory

2020-09-07 Thread root
Hello community,

here is the log from the commit of package suse-prime for openSUSE:Factory 
checked in at 2020-09-07 22:01:08

Comparing /work/SRC/openSUSE:Factory/suse-prime (Old)
 and  /work/SRC/openSUSE:Factory/.suse-prime.new.3399 (New)


Package is "suse-prime"

Mon Sep  7 22:01:08 2020 rev:24 rq:832818 version:0.7.15

Changes:

--- /work/SRC/openSUSE:Factory/suse-prime/suse-prime.changes2020-07-17 
20:53:08.445063643 +0200
+++ /work/SRC/openSUSE:Factory/.suse-prime.new.3399/suse-prime.changes  
2020-09-07 22:01:33.126058477 +0200
@@ -1,0 +2,10 @@
+Mon Sep  7 15:29:58 UTC 2020 - Stefan Dirsch 
+
+- SUSEPrime-0.7.15
+  * prime-select.sh:
+move static X config files to /usr/share/prime; also make sure, 
+that /etc/prime dir exists before trying to write configuration
+to /etc/prime/current_type (boo#1173043)
+- adjusted specfile to new release
+
+---

Old:

  SUSEPrime-0.7.14.tar.gz

New:

  SUSEPrime-0.7.15.tar.gz



Other differences:
--
++ suse-prime.spec ++
--- /var/tmp/diff_new_pack.mQIahz/_old  2020-09-07 22:01:34.410058965 +0200
+++ /var/tmp/diff_new_pack.mQIahz/_new  2020-09-07 22:01:34.410058965 +0200
@@ -17,7 +17,7 @@
 
 
 Name:   suse-prime
-Version:0.7.14
+Version:0.7.15
 Release:0
 Summary:GPU (nvidia/intel) selection for NVIDIA optimus laptops
 License:SUSE-Public-Domain
@@ -58,17 +58,16 @@
 :
 
 %install
-mkdir -p %{buildroot}%{_sysconfdir}/prime
-install -m 0644 xorg-intel.conf  %{buildroot}%{_sysconfdir}/prime/
-install -m 0644 xorg-intel-intel.conf  %{buildroot}%{_sysconfdir}/prime/
-install -m 0644 xorg-nvidia.conf %{buildroot}%{_sysconfdir}/prime/
-install -m 0644 xorg-nvidia-prime-render-offload.conf 
%{buildroot}%{_sysconfdir}/prime/
+mkdir -p %{buildroot}%{_datadir}/prime
+install -m 0644 xorg-intel.conf  %{buildroot}%{_datadir}/prime/
+install -m 0644 xorg-intel-intel.conf  %{buildroot}%{_datadir}/prime/
+install -m 0644 xorg-nvidia.conf %{buildroot}%{_datadir}/prime/
+install -m 0644 xorg-nvidia-prime-render-offload.conf 
%{buildroot}%{_datadir}/prime/
 mkdir -p %{buildroot}%{_sysconfdir}/modprobe.d
 install -m 0644 09-nvidia-modprobe-bbswitch-G04.conf 
%{buildroot}%{_sysconfdir}/modprobe.d/
 install -m 0644 09-nvidia-modprobe-pm-G05.conf 
%{buildroot}%{_sysconfdir}/modprobe.d/
 mkdir -p %{buildroot}%{_unitdir}
 install -m 0644 prime-select.service %{buildroot}%{_unitdir}/
-echo   "undefined" > %{buildroot}%{_sysconfdir}/prime/current_type
 install -D -m 0755 prime-select.sh %{buildroot}%{_sbindir}/prime-select
 mkdir -p %{buildroot}/usr/lib/dracut/dracut.conf.d/
 install -m 0644 90-nvidia-dracut-G05.conf 
%{buildroot}/usr/lib/dracut/dracut.conf.d/
@@ -129,12 +128,13 @@
 %doc README.md
 %dir /usr/lib/dracut/
 %dir /usr/lib/dracut/dracut.conf.d/
-%{_sysconfdir}/prime
-%config %{_sysconfdir}/prime/xorg-intel.conf
-%config %{_sysconfdir}/prime/xorg-intel-intel.conf
-%config %{_sysconfdir}/prime/xorg-nvidia.conf
-%config %{_sysconfdir}/prime/xorg-nvidia-prime-render-offload.conf
-%config(noreplace) %{_sysconfdir}/prime/current_type
+%dir %{_datadir}/prime
+%{_datadir}/prime/xorg-intel.conf
+%{_datadir}/prime/xorg-intel-intel.conf
+%{_datadir}/prime/xorg-nvidia.conf
+%{_datadir}/prime/xorg-nvidia-prime-render-offload.conf
+%ghost %dir %{_sysconfdir}/prime
+%ghost %config(noreplace) %{_sysconfdir}/prime/current_type
 %{_sbindir}/prime-select
 %config %{_sysconfdir}/modprobe.d/09-nvidia-modprobe-pm-G05.conf
 /usr/lib/dracut/dracut.conf.d/90-nvidia-dracut-G05.conf
@@ -143,18 +143,19 @@
 %if 0%{?is_opensuse}
 %files bbswitch
 %doc README.md
-%{_sysconfdir}/prime
-%config %{_sysconfdir}/prime/xorg-intel.conf
-%config %{_sysconfdir}/prime/xorg-intel-intel.conf
-%config %{_sysconfdir}/prime/xorg-nvidia.conf
-%config %{_sysconfdir}/prime/xorg-nvidia-prime-render-offload.conf
-%config(noreplace) %{_sysconfdir}/prime/current_type
+%dir %{_datadir}/prime
+%{_datadir}/prime/xorg-intel.conf
+%{_datadir}/prime/xorg-intel-intel.conf
+%{_datadir}/prime/xorg-nvidia.conf
+%{_datadir}/prime/xorg-nvidia-prime-render-offload.conf
+%ghost %dir %{_sysconfdir}/prime
+%ghost %config(noreplace) %{_sysconfdir}/prime/current_type
 %{_sbindir}/prime-select
 %{_sbindir}/rcprime-select
 %config %{_sysconfdir}/modprobe.d/09-nvidia-modprobe-bbswitch-G04.conf
 %{_unitdir}/prime-select.service
 %else
-%exclude %config %{_sysconfdir}/modprobe.d/09-nvidia-modprobe-bbswitch-G04.conf
+%exclude %config %{_datadir}/modprobe.d/09-nvidia-modprobe-bbswitch-G04.conf
 %exclude %{_unitdir}/prime-select.service
 %exclude %{_sbindir}/rcprime-select
 %endif

++ SUSEPrime-0.7.14.tar.gz -> SUSEPrime-0.7.15.tar.gz ++
diff -urN 

commit suse-prime for openSUSE:Factory

2020-07-17 Thread root
Hello community,

here is the log from the commit of package suse-prime for openSUSE:Factory 
checked in at 2020-07-17 20:52:16

Comparing /work/SRC/openSUSE:Factory/suse-prime (Old)
 and  /work/SRC/openSUSE:Factory/.suse-prime.new.3592 (New)


Package is "suse-prime"

Fri Jul 17 20:52:16 2020 rev:23 rq:821478 version:0.7.14

Changes:

--- /work/SRC/openSUSE:Factory/suse-prime/suse-prime.changes2020-04-10 
23:53:49.272723803 +0200
+++ /work/SRC/openSUSE:Factory/.suse-prime.new.3592/suse-prime.changes  
2020-07-17 20:53:08.445063643 +0200
@@ -1,0 +2,28 @@
+Fri Jul 17 10:07:18 UTC 2020 - Stefan Dirsch 
+
+- Update to version 0.7.14
+  * Fix failure on TW to determine current systemd target
+  * Avoid endless loop when nvidia modules cannot be unloaded (boo#1173632)
+
+---
+Tue Jul  7 19:49:47 UTC 2020 - Stefan Dirsch 
+
+- Update to version 0.7.13
+  * (Hopefully) fixes user_logout_waiter for gdm autologin (issue#55)
+
+---
+Mon Jun 15 10:30:49 UTC 2020 - Stefan Dirsch 
+
+- Update to version 0.7.12
+  * README.md: Better explain power-off/powersave option of 
+NVIDIA GPU (issue#54) 
+
+---
+Tue Apr 14 09:55:14 UTC 2020 - Stefan Dirsch 
+
+- Update to version 0.7.11
+  * Change nvidia's NVreg_DynamicPowerManagement kernel option to
+0x01. This prevents intermittent 1s - 1.5s freezes on Turing
+GPU's in nvidia mode (issue#52).
+
+---

Old:

  SUSEPrime-0.7.10.tar.gz

New:

  SUSEPrime-0.7.14.tar.gz



Other differences:
--
++ suse-prime.spec ++
--- /var/tmp/diff_new_pack.pEAVNM/_old  2020-07-17 20:53:09.645064894 +0200
+++ /var/tmp/diff_new_pack.pEAVNM/_new  2020-07-17 20:53:09.645064894 +0200
@@ -17,7 +17,7 @@
 
 
 Name:   suse-prime
-Version:0.7.10
+Version:0.7.14
 Release:0
 Summary:GPU (nvidia/intel) selection for NVIDIA optimus laptops
 License:SUSE-Public-Domain

++ SUSEPrime-0.7.10.tar.gz -> SUSEPrime-0.7.14.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/SUSEPrime-0.7.10/09-nvidia-modprobe-pm-G05.conf 
new/SUSEPrime-0.7.14/09-nvidia-modprobe-pm-G05.conf
--- old/SUSEPrime-0.7.10/09-nvidia-modprobe-pm-G05.conf 2020-04-10 
14:12:22.0 +0200
+++ new/SUSEPrime-0.7.14/09-nvidia-modprobe-pm-G05.conf 2020-07-17 
12:03:23.0 +0200
@@ -1 +1 @@
-options nvidia NVreg_DynamicPowerManagement=0x02
+options nvidia NVreg_DynamicPowerManagement=0x01
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/SUSEPrime-0.7.10/README.md 
new/SUSEPrime-0.7.14/README.md
--- old/SUSEPrime-0.7.10/README.md  2020-04-10 14:12:22.0 +0200
+++ new/SUSEPrime-0.7.14/README.md  2020-07-17 12:03:23.0 +0200
@@ -15,7 +15,7 @@
using the NVIDIA card. To switch back to te Intel card run `sudo 
prime-select intel` (modesetting driver) or 
`sudo prime-select intel2` (Intel Open Source driver, requires 
xf86-video-intel package).
 2. To check which video card you're currently using run 
`/usr/sbin/prime-select get-current`.
-3. On intel configurations, powering off the NVIDIA card with bbswitch (since 
390.xxx driver) or DynamicPowerManagement option (since 435.xx driver and 
Turing GPU or later) to save power and decrease temperature is supported but 
requires additional manual setup. Refer to instructions below.
+3. In intel-only mode, powering off the NVIDIA card with bbswitch (since 
390.xxx driver) or using DynamicPowerManagement option in nvidia/intel mode  
(since 435.xx driver and Turing GPU or later) to save power and decrease 
temperature is supported but requires additional manual setup. Refer to 
instructions below.
 4. Since 435.xx driver you can make use of NVIDIA's PRIME Render Offload 
feature in intel configurations (Xserver of Leap 15.2 or later needed!). 
`Option "AllowNVIDIAGPUScreens"` is already taken care of by intel X configs. 
You only need to set the __NV* environment variables. Check 

 for more details.
 
 Contact
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/SUSEPrime-0.7.10/prime-select.sh 
new/SUSEPrime-0.7.14/prime-select.sh
--- old/SUSEPrime-0.7.10/prime-select.sh2020-04-10 14:12:22.0 
+0200
+++ new/SUSEPrime-0.7.14/prime-select.sh2020-07-17 12:03:23.0 
+0200
@@ -278,9 +278,14 @@
 cat $conf | sed -e 

commit suse-prime for openSUSE:Factory

2020-04-10 Thread root
Hello community,

here is the log from the commit of package suse-prime for openSUSE:Factory 
checked in at 2020-04-10 23:53:17

Comparing /work/SRC/openSUSE:Factory/suse-prime (Old)
 and  /work/SRC/openSUSE:Factory/.suse-prime.new.3248 (New)


Package is "suse-prime"

Fri Apr 10 23:53:17 2020 rev:22 rq:792950 version:0.7.10

Changes:

--- /work/SRC/openSUSE:Factory/suse-prime/suse-prime.changes2020-03-30 
23:04:37.580218317 +0200
+++ /work/SRC/openSUSE:Factory/.suse-prime.new.3248/suse-prime.changes  
2020-04-10 23:53:49.272723803 +0200
@@ -1,0 +2,18 @@
+Fri Apr 10 12:17:13 UTC 2020 - Stefan Dirsch 
+
+- Update to version 0.7.10
+  * README.md: Improved documentation about the requirements for
+NVIDIA's PRIME render offload support; it needs Xserver of
+Leap 15.2 or later
+
+---
+Thu Apr  9 19:08:44 UTC 2020 - Stefan Dirsch 
+
+- Update to version 0.7.9
+  * Improved documentation
++ fixed OS requirements (Leap 15.1 instead of Tumbleweed)
++ fixed requirements for DynamicPowerManagement to power off
+  NVIDIA GPU (Turing GPU or later is needed!)
+  * Fix: use full path in invoking prime-select
+
+---

Old:

  SUSEPrime-0.7.8.tar.gz

New:

  SUSEPrime-0.7.10.tar.gz



Other differences:
--
++ suse-prime.spec ++
--- /var/tmp/diff_new_pack.iXDAmw/_old  2020-04-10 23:53:50.120724424 +0200
+++ /var/tmp/diff_new_pack.iXDAmw/_new  2020-04-10 23:53:50.124724427 +0200
@@ -17,7 +17,7 @@
 
 
 Name:   suse-prime
-Version:0.7.8
+Version:0.7.10
 Release:0
 Summary:GPU (nvidia/intel) selection for NVIDIA optimus laptops
 License:SUSE-Public-Domain

++ SUSEPrime-0.7.8.tar.gz -> SUSEPrime-0.7.10.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/SUSEPrime-0.7.8/README.md 
new/SUSEPrime-0.7.10/README.md
--- old/SUSEPrime-0.7.8/README.md   2020-03-30 11:56:20.0 +0200
+++ new/SUSEPrime-0.7.10/README.md  2020-04-10 14:12:22.0 +0200
@@ -4,7 +4,7 @@
 Assumptions
 ---
 
-* You are running openSUSE Tumbleweed
+* You are running openSUSE Leap 15.1 or later (Xserver of Leap 15.2 or later 
for NVIDIA's PRIME render offload support)
 * You don't have bumblebee installed
 * You installed NVIDIA drivers using http://opensuse-community.org/nvidia.ymp
 
@@ -15,8 +15,8 @@
using the NVIDIA card. To switch back to te Intel card run `sudo 
prime-select intel` (modesetting driver) or 
`sudo prime-select intel2` (Intel Open Source driver, requires 
xf86-video-intel package).
 2. To check which video card you're currently using run 
`/usr/sbin/prime-select get-current`.
-3. On intel configurations, powering off the NVIDIA card with bbswitch (legacy 
390.xxx driver) or DynamicPowerManagement option (435.xx driver and later) to 
save power and decrease temperature is supported but requires additional manual 
setup. Refer to instructions below.
-4. With current 435.xx driver and later you can make use of NVIDIA's PRIME 
Render Offload feature in intel configurations. `Option 
"AllowNVIDIAGPUScreens"` is already taken care of by intel X configs. You only 
need to set the __NV* environment variables. Check 

 for more details.
+3. On intel configurations, powering off the NVIDIA card with bbswitch (since 
390.xxx driver) or DynamicPowerManagement option (since 435.xx driver and 
Turing GPU or later) to save power and decrease temperature is supported but 
requires additional manual setup. Refer to instructions below.
+4. Since 435.xx driver you can make use of NVIDIA's PRIME Render Offload 
feature in intel configurations (Xserver of Leap 15.2 or later needed!). 
`Option "AllowNVIDIAGPUScreens"` is already taken care of by intel X configs. 
You only need to set the __NV* environment variables. Check 

 for more details.
 
 Contact
 ---
@@ -29,8 +29,10 @@
 
 * SUSEPrimeQT  Provides a simple GUI 
for SUSEPrime
 
-NVIDIA power off support with 435.xxx driver and later (=G05 driver packages)
--
+NVIDIA power off support since 435.xxx driver with Turing GPU and later (G05 
driver packages)
+--
+
+For detailed requirements of this feature see chapter "PCI-Express Runtime D3 
(RTD3) Power Management", section "SUPPORTED 

commit suse-prime for openSUSE:Factory

2020-03-30 Thread root
Hello community,

here is the log from the commit of package suse-prime for openSUSE:Factory 
checked in at 2020-03-30 23:04:24

Comparing /work/SRC/openSUSE:Factory/suse-prime (Old)
 and  /work/SRC/openSUSE:Factory/.suse-prime.new.3160 (New)


Package is "suse-prime"

Mon Mar 30 23:04:24 2020 rev:21 rq:789702 version:0.7.8

Changes:

--- /work/SRC/openSUSE:Factory/suse-prime/suse-prime.changes2020-02-06 
13:09:49.644388448 +0100
+++ /work/SRC/openSUSE:Factory/.suse-prime.new.3160/suse-prime.changes  
2020-03-30 23:04:37.580218317 +0200
@@ -1,0 +2,18 @@
+Mon Mar 30 10:08:43 UTC 2020 - Stefan Dirsch 
+
+- Update to version 0.7.8
+  * README.md: fixed syntax in command
+  * Blacklist ipmi_msghandler, ipmi_devintf kernel modules (issue#50)
+Make sure these kernel modules are not loaded. Otherwise it may
+not be possible to turn off NVIDIA GPU.
+
+---
+Tue Mar 10 14:37:04 UTC 2020 - Stefan Dirsch 
+
+- Update to version 0.7.7
+  * Fix unset option (issue#48)
+- only disable service with bbswitch version
+- reset also to X.Org's glx module as with "intel" option
+  * make use of $service_test variable where possible
+
+---

Old:

  SUSEPrime-0.7.6.tar.gz

New:

  SUSEPrime-0.7.8.tar.gz



Other differences:
--
++ suse-prime.spec ++
--- /var/tmp/diff_new_pack.8vJDmN/_old  2020-03-30 23:04:39.020219138 +0200
+++ /var/tmp/diff_new_pack.8vJDmN/_new  2020-03-30 23:04:39.024219139 +0200
@@ -17,7 +17,7 @@
 
 
 Name:   suse-prime
-Version:0.7.6
+Version:0.7.8
 Release:0
 Summary:GPU (nvidia/intel) selection for NVIDIA optimus laptops
 License:SUSE-Public-Domain

++ SUSEPrime-0.7.6.tar.gz -> SUSEPrime-0.7.8.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/SUSEPrime-0.7.6/09-nvidia-modprobe-bbswitch-G04.conf 
new/SUSEPrime-0.7.8/09-nvidia-modprobe-bbswitch-G04.conf
--- old/SUSEPrime-0.7.6/09-nvidia-modprobe-bbswitch-G04.conf2020-01-29 
16:31:44.0 +0100
+++ new/SUSEPrime-0.7.8/09-nvidia-modprobe-bbswitch-G04.conf2020-03-30 
11:56:20.0 +0200
@@ -2,4 +2,6 @@
 blacklist nvidia-drm
 blacklist nvidia-modeset
 blacklist nouveau
+blacklist ipmi_msghandler
+blacklist ipmi_devintf
 options nvidia-drm modeset=1
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/SUSEPrime-0.7.6/README.md 
new/SUSEPrime-0.7.8/README.md
--- old/SUSEPrime-0.7.6/README.md   2020-01-29 16:31:44.0 +0100
+++ new/SUSEPrime-0.7.8/README.md   2020-03-30 11:56:20.0 +0200
@@ -66,7 +66,7 @@
 This is easily done with:
 
 ```
-if [ ! test -s /etc/modprobe.d/09-nvidia-modprobe-bbswitch-G04.conf ]; then
+if [ ! -s /etc/modprobe.d/09-nvidia-modprobe-bbswitch-G04.conf ]; then
   cp 09-nvidia-modprobe-bbswitch-G04.conf /etc/modprobe.d && dracut -f
 fi
 ```
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/SUSEPrime-0.7.6/prime-select.sh 
new/SUSEPrime-0.7.8/prime-select.sh
--- old/SUSEPrime-0.7.6/prime-select.sh 2020-01-29 16:31:44.0 +0100
+++ new/SUSEPrime-0.7.8/prime-select.sh 2020-03-30 11:56:20.0 +0200
@@ -15,7 +15,7 @@
 xorg_intel_conf_intel2="/etc/prime/xorg-intel-intel.conf"
 
xorg_nvidia_prime_render_offload="/etc/prime/xorg-nvidia-prime-render-offload.conf"
 prime_logfile="/var/log/prime-select.log"
-nvidia_modules="nvidia_drm nvidia_modeset nvidia_uvm nvidia"
+nvidia_modules="ipmi_devintf nvidia_drm nvidia_modeset nvidia_uvm nvidia 
ipmi_msghandler"
 driver_choices="nvidia|intel|intel2"
 lspci_intel_line="VGA compatible controller: Intel"
 lspci_nvidia_vga_line="VGA compatible controller: NVIDIA"
@@ -588,8 +588,12 @@
 unset)
 
check_root
-   $0 service disable
+   if (( service_test == 0 )); then
+   $0 service disable
+   fi
clean_xorg_conf_d
+   libglx_xorg=$(update-alternatives --list libglx.so | grep 
xorg-libglx.so)
+   update-alternatives --set libglx.so $libglx_xorg > /dev/null
rm /etc/prime/current_type &> /dev/null
rm /etc/prime/boot_state &> /dev/null
rm /etc/prime/boot &> /dev/null
@@ -610,7 +614,7 @@

check)

-if [ -f 
/etc/systemd/system/multi-user.target.wants/prime-select.service ]; then
+if (( service_test == 0 )); then
echo "prime-select: service is set correctly"
exit
 fi




commit suse-prime for openSUSE:Factory

2020-02-06 Thread root
Hello community,

here is the log from the commit of package suse-prime for openSUSE:Factory 
checked in at 2020-02-06 13:09:39

Comparing /work/SRC/openSUSE:Factory/suse-prime (Old)
 and  /work/SRC/openSUSE:Factory/.suse-prime.new.26092 (New)


Package is "suse-prime"

Thu Feb  6 13:09:39 2020 rev:20 rq:770518 version:0.7.6

Changes:

--- /work/SRC/openSUSE:Factory/suse-prime/suse-prime.changes2020-02-04 
19:54:34.733364490 +0100
+++ /work/SRC/openSUSE:Factory/.suse-prime.new.26092/suse-prime.changes 
2020-02-06 13:09:49.644388448 +0100
@@ -1,0 +2,5 @@
+Thu Feb  6 11:01:01 UTC 2020 - Stefan Dirsch 
+
+- changed copyright to SUSE LLC in specfile 
+
+---



Other differences:
--
++ suse-prime.spec ++
--- /var/tmp/diff_new_pack.uWQXMd/_old  2020-02-06 13:09:51.004389188 +0100
+++ /var/tmp/diff_new_pack.uWQXMd/_new  2020-02-06 13:09:51.008389191 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package suse-prime
 #
-# Copyright (c) 2020 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2020 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed




commit suse-prime for openSUSE:Factory

2020-02-04 Thread root
Hello community,

here is the log from the commit of package suse-prime for openSUSE:Factory 
checked in at 2020-02-04 19:54:32

Comparing /work/SRC/openSUSE:Factory/suse-prime (Old)
 and  /work/SRC/openSUSE:Factory/.suse-prime.new.26092 (New)


Package is "suse-prime"

Tue Feb  4 19:54:32 2020 rev:19 rq:769981 version:0.7.6

Changes:

--- /work/SRC/openSUSE:Factory/suse-prime/suse-prime.changes2020-01-15 
16:52:22.193403101 +0100
+++ /work/SRC/openSUSE:Factory/.suse-prime.new.26092/suse-prime.changes 
2020-02-04 19:54:34.733364490 +0100
@@ -1,0 +2,19 @@
+Tue Feb  4 12:46:46 UTC 2020 - Stefan Dirsch 
+
+- Update to version 0.7.6
+  * README.md: Updated documentation (issue#46)
++ Removing dracut config file of nvidia's packages is no longer
+  needed. These packages have been updated since.
++ Made config file installation more generic, so nobody tries
+  to install config files, which are already at the right
+  location when using suse-prime packages.
++ DynamicPowerManagement specifics apply to 435.xxx and later, 
+  not only 435.xx. Made this clear ...
+
+---
+Mon Feb  3 16:33:02 UTC 2020 - Dominique Leuenberger 
+
+- BuildRequire pkgconfig(systemd) instead of systemd: allow OBS to
+  shortcut through the -mini flavors.
+
+---

Old:

  SUSEPrime-0.7.5.tar.gz

New:

  SUSEPrime-0.7.6.tar.gz



Other differences:
--
++ suse-prime.spec ++
--- /var/tmp/diff_new_pack.57SIs6/_old  2020-02-04 19:54:35.305364824 +0100
+++ /var/tmp/diff_new_pack.57SIs6/_new  2020-02-04 19:54:35.313364829 +0100
@@ -17,12 +17,12 @@
 
 
 Name:   suse-prime
-Version:0.7.5
+Version:0.7.6
 Release:0
 Summary:GPU (nvidia/intel) selection for NVIDIA optimus laptops
 License:SUSE-Public-Domain
 Group:  System/X11/Utilities
-Url:https://github.com/openSUSE/SUSEPrime
+URL:https://github.com/openSUSE/SUSEPrime
 Source0:
https://github.com/openSUSE/SUSEPrime/archive/%{version}.tar.gz#/SUSEPrime-%{version}.tar.gz
 Recommends: nvidia_driver
 Supplements:modalias(nvidia_driver:pci:v8086d*sv*sd*bc03sc*i*)
@@ -38,12 +38,12 @@
 %package bbswitch
 Summary:GPU (nvidia/intel) selection for NVIDIA optimus laptops with 
bbswitch support
 Group:  System/X11/Utilities
-BuildRequires:  systemd
+BuildRequires:  pkgconfig(systemd)
 Requires:   bbswitch
 Conflicts:  suse-prime
 Conflicts:  suse-prime-alt
 BuildArch:  noarch
-%{?systemd_requires}
+%{?systemd_ordering}
 
 %description bbswitch
 A collection of shell scripts that makes it possible to use the

++ SUSEPrime-0.7.5.tar.gz -> SUSEPrime-0.7.6.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/SUSEPrime-0.7.5/README.md 
new/SUSEPrime-0.7.6/README.md
--- old/SUSEPrime-0.7.5/README.md   2020-01-15 11:47:11.0 +0100
+++ new/SUSEPrime-0.7.6/README.md   2020-01-29 16:31:44.0 +0100
@@ -15,8 +15,8 @@
using the NVIDIA card. To switch back to te Intel card run `sudo 
prime-select intel` (modesetting driver) or 
`sudo prime-select intel2` (Intel Open Source driver, requires 
xf86-video-intel package).
 2. To check which video card you're currently using run 
`/usr/sbin/prime-select get-current`.
-3. On intel configurations, powering off the NVIDIA card with bbswitch (legacy 
390.xxx driver) or DynamicPowerManagement option (current 435.xx driver) to 
save power and decrease temperature is supported but requires additional manual 
setup. Refer to instructions below.
-4. With current 435.xx driver you can make use of NVIDIA's PRIME Render 
Offload feature in intel configurations. `Option "AllowNVIDIAGPUScreens"` is 
already taken care of by intel X configs. You only need to set the __NV* 
environment variables. Check 

 for more details.
+3. On intel configurations, powering off the NVIDIA card with bbswitch (legacy 
390.xxx driver) or DynamicPowerManagement option (435.xx driver and later) to 
save power and decrease temperature is supported but requires additional manual 
setup. Refer to instructions below.
+4. With current 435.xx driver and later you can make use of NVIDIA's PRIME 
Render Offload feature in intel configurations. `Option 
"AllowNVIDIAGPUScreens"` is already taken care of by intel X configs. You only 
need to set the __NV* environment variables. Check 

 for more details.
 
 Contact
 

commit suse-prime for openSUSE:Factory

2020-01-15 Thread root
Hello community,

here is the log from the commit of package suse-prime for openSUSE:Factory 
checked in at 2020-01-15 16:18:05

Comparing /work/SRC/openSUSE:Factory/suse-prime (Old)
 and  /work/SRC/openSUSE:Factory/.suse-prime.new.30080 (New)


Package is "suse-prime"

Wed Jan 15 16:18:05 2020 rev:18 rq:764618 version:0.7.5

Changes:

--- /work/SRC/openSUSE:Factory/suse-prime/suse-prime.changes2019-11-30 
10:40:15.780151422 +0100
+++ /work/SRC/openSUSE:Factory/.suse-prime.new.30080/suse-prime.changes 
2020-01-15 16:52:22.193403101 +0100
@@ -1,0 +2,13 @@
+Wed Jan 15 10:51:06 UTC 2020 - Stefan Dirsch 
+
+- Update to version 0.7.5
+  * Runlevel switch not needed anymore
++ Service only starts/stops display-manager service
+  - Faster switch operation
+  - No conflicts with services that run in runlev. 3
+  - Consistence
++ Removed references of target/runlevel switch
++ Removed a duplicate of "systemctl stop display-manager" in
+  "user_logout_waiter" section
+
+---

Old:

  SUSEPrime-0.7.4.tar.gz

New:

  SUSEPrime-0.7.5.tar.gz



Other differences:
--
++ suse-prime.spec ++
--- /var/tmp/diff_new_pack.8K4uXj/_old  2020-01-15 16:52:22.653403317 +0100
+++ /var/tmp/diff_new_pack.8K4uXj/_new  2020-01-15 16:52:22.657403319 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package suse-prime
 #
-# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2020 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:   suse-prime
-Version:0.7.4
+Version:0.7.5
 Release:0
 Summary:GPU (nvidia/intel) selection for NVIDIA optimus laptops
 License:SUSE-Public-Domain

++ SUSEPrime-0.7.4.tar.gz -> SUSEPrime-0.7.5.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/SUSEPrime-0.7.4/prime-select.sh 
new/SUSEPrime-0.7.5/prime-select.sh
--- old/SUSEPrime-0.7.4/prime-select.sh 2019-11-28 22:14:22.0 +0100
+++ new/SUSEPrime-0.7.5/prime-select.sh 2020-01-15 11:47:11.0 +0100
@@ -73,8 +73,7 @@
echo "boot:select default card at boot or set last used"
echo "next-boot:   select card ONLY for next boot, it not touches your 
boot preference. abort: restores next boot to default"
echo "get-boot:display default card at boot"
-echo "service: disable, check or restore prime-select service. Could 
be useful disabling service"
-   echo " before isolating multi-user.target to prevent 
service execution."
+echo "service: disable, check or restore prime-select service."
 fi
 
 #if (( service_test == 0)); then
@@ -199,17 +198,20 @@
 function set_nvidia {
 
 if (( service_test == 0)); then
-   
+
if [ -f /proc/acpi/bbswitch ]; then
 tee /proc/acpi/bbswitch > /dev/null < /dev/null ]; do echo; done
 
 fi
 
@@ -276,8 +278,10 @@
 cat $conf | sed -e 's/PCI:X:X:X/'${intel_busid}'/' > 
/etc/X11/xorg.conf.d/90-intel.conf
 
 if (( service_test == 0)); then
-
-modprobe -r $nvidia_modules
+
+while [ "$(lsmod | grep nvidia)" > /dev/null ]; do
+modprobe -r $nvidia_modules
+done
 
 if [ -f /proc/acpi/bbswitch ]; then
 tee /proc/acpi/bbswitch > /dev/null < /etc/prime/boot
-fi
+fi 
 
 if [ -f /etc/prime/forced_boot ]; then
 echo "$(cat /etc/prime/forced_boot)" > /etc/prime/current_type
@@ -381,8 +385,8 @@
 function logout_switch {
 apply_current
 echo "N" > /etc/prime/boot_state
-logging "HotSwitch: Reaching graphical.target [ boot_state > N ]"
-systemctl isolate graphical.target &
+logging "HotSwitch: starting Display Manager [ boot_state > N ]"
+systemctl start display-manager &
 systemctl stop prime-select
 }
 
@@ -679,7 +683,8 @@
done
logging "user_logout_waiter: X restart detected, preparing 
switch to $2 [ boot_state > S ]"
#stopping display-manager before runlev.3 seems work faster
-   systemctl stop display-manager
+   #systemctl stop display-manager
+   
;;
 
 #manually_started_X_case
@@ -698,8 +703,8 @@
 echo $2 > /etc/prime/current_type
set_user $4
  
-logging "HotSwitch: Reaching multi-user.target"
-systemctl isolate multi-user.target &
+systemctl stop display-manager
+systemctl start 

commit suse-prime for openSUSE:Factory

2019-11-30 Thread root
Hello community,

here is the log from the commit of package suse-prime for openSUSE:Factory 
checked in at 2019-11-30 10:38:14

Comparing /work/SRC/openSUSE:Factory/suse-prime (Old)
 and  /work/SRC/openSUSE:Factory/.suse-prime.new.26869 (New)


Package is "suse-prime"

Sat Nov 30 10:38:14 2019 rev:17 rq:751712 version:0.7.4

Changes:

--- /work/SRC/openSUSE:Factory/suse-prime/suse-prime.changes2019-11-20 
10:27:46.510568714 +0100
+++ /work/SRC/openSUSE:Factory/.suse-prime.new.26869/suse-prime.changes 
2019-11-30 10:40:15.780151422 +0100
@@ -1,0 +2,6 @@
+Thu Nov 28 21:44:21 UTC 2019 - Stefan Dirsch 
+
+- Update to version 0.7.4
+  * Fixed broken formatting in 90-nvidia-udev-pm-G05.rules (issue #40) 
+
+---

Old:

  SUSEPrime-0.7.3.tar.gz

New:

  SUSEPrime-0.7.4.tar.gz



Other differences:
--
++ suse-prime.spec ++
--- /var/tmp/diff_new_pack.Ts68om/_old  2019-11-30 10:40:16.156151376 +0100
+++ /var/tmp/diff_new_pack.Ts68om/_new  2019-11-30 10:40:16.156151376 +0100
@@ -17,7 +17,7 @@
 
 
 Name:   suse-prime
-Version:0.7.3
+Version:0.7.4
 Release:0
 Summary:GPU (nvidia/intel) selection for NVIDIA optimus laptops
 License:SUSE-Public-Domain

++ SUSEPrime-0.7.3.tar.gz -> SUSEPrime-0.7.4.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/SUSEPrime-0.7.3/90-nvidia-udev-pm-G05.rules 
new/SUSEPrime-0.7.4/90-nvidia-udev-pm-G05.rules
--- old/SUSEPrime-0.7.3/90-nvidia-udev-pm-G05.rules 2019-10-23 
03:09:18.0 +0200
+++ new/SUSEPrime-0.7.4/90-nvidia-udev-pm-G05.rules 2019-11-28 
22:14:22.0 +0100
@@ -1,23 +1,16 @@
 # Remove NVIDIA USB xHCI Host Controller devices, if present
-ACTION=="add", SUBSYSTEM=="pci", ATTR{vendor}=="0x10de", ATTR{class}==
-"0x0c0330", ATTR{remove}="1"
+ACTION=="add", SUBSYSTEM=="pci", ATTR{vendor}=="0x10de", 
ATTR{class}=="0x0c0330", ATTR{remove}="1"
 
 # Remove NVIDIA USB Type-C UCSI devices, if present
-ACTION=="add", SUBSYSTEM=="pci", ATTR{vendor}=="0x10de", ATTR{class}==
-"0x0c8000", ATTR{remove}="1"
+ACTION=="add", SUBSYSTEM=="pci", ATTR{vendor}=="0x10de", 
ATTR{class}=="0x0c8000", ATTR{remove}="1"
 
 # Remove NVIDIA Audio devices, if present
-ACTION=="add", SUBSYSTEM=="pci", ATTR{vendor}=="0x10de", ATTR{class}==
-"0x040300", ATTR{remove}="1"
+ACTION=="add", SUBSYSTEM=="pci", ATTR{vendor}=="0x10de", 
ATTR{class}=="0x040300", ATTR{remove}="1"
 
 # Enable runtime PM for NVIDIA VGA/3D controller devices on driver bind
-ACTION=="bind", SUBSYSTEM=="pci", ATTR{vendor}=="0x10de", ATTR{class}==
-"0x03", TEST=="power/control", ATTR{power/control}="auto"
-ACTION=="bind", SUBSYSTEM=="pci", ATTR{vendor}=="0x10de", ATTR{class}==
-"0x030200", TEST=="power/control", ATTR{power/control}="auto"
+ACTION=="bind", SUBSYSTEM=="pci", ATTR{vendor}=="0x10de", 
ATTR{class}=="0x03", TEST=="power/control", ATTR{power/control}="auto"
+ACTION=="bind", SUBSYSTEM=="pci", ATTR{vendor}=="0x10de", 
ATTR{class}=="0x030200", TEST=="power/control", ATTR{power/control}="auto"
 
 # Disable runtime PM for NVIDIA VGA/3D controller devices on driver unbind
-ACTION=="unbind", SUBSYSTEM=="pci", ATTR{vendor}=="0x10de", ATTR{class}==
-"0x03", TEST=="power/control", ATTR{power/control}="on"
-ACTION=="unbind", SUBSYSTEM=="pci", ATTR{vendor}=="0x10de", ATTR{class}==
-"0x030200", TEST=="power/control", ATTR{power/control}="on"
+ACTION=="unbind", SUBSYSTEM=="pci", ATTR{vendor}=="0x10de", 
ATTR{class}=="0x03", TEST=="power/control", ATTR{power/control}="on"
+ACTION=="unbind", SUBSYSTEM=="pci", ATTR{vendor}=="0x10de", 
ATTR{class}=="0x030200", TEST=="power/control", ATTR{power/control}="on"




commit suse-prime for openSUSE:Factory

2019-11-20 Thread root
Hello community,

here is the log from the commit of package suse-prime for openSUSE:Factory 
checked in at 2019-11-20 10:27:45

Comparing /work/SRC/openSUSE:Factory/suse-prime (Old)
 and  /work/SRC/openSUSE:Factory/.suse-prime.new.26869 (New)


Package is "suse-prime"

Wed Nov 20 10:27:45 2019 rev:16 rq:749522 version:0.7.3

Changes:

--- /work/SRC/openSUSE:Factory/suse-prime/suse-prime.changes2019-11-18 
20:12:43.861520414 +0100
+++ /work/SRC/openSUSE:Factory/.suse-prime.new.26869/suse-prime.changes 
2019-11-20 10:27:46.510568714 +0100
@@ -1,0 +2,6 @@
+Tue Nov 19 12:49:23 UTC 2019 - Stefan Dirsch 
+
+- only package suse-prime-bbswitch on openSUSE, since bbswitch
+  kernel module package is not available on sle
+
+---



Other differences:
--
++ suse-prime.spec ++
--- /var/tmp/diff_new_pack.7VIr1z/_old  2019-11-20 10:27:46.962568804 +0100
+++ /var/tmp/diff_new_pack.7VIr1z/_new  2019-11-20 10:27:46.962568804 +0100
@@ -98,6 +98,7 @@
 rm -f /etc/dracut.conf.d/50-nvidia-default.conf
 %{?regenerate_initrd_post}
 
+%if 0%{?is_opensuse}
 %pre bbswitch
 %service_add_pre prime-select.service
 
@@ -121,6 +122,7 @@
 
 %posttrans bbswitch
 %{?regenerate_initrd_posttrans}
+%endif
 
 %files
 %defattr(-,root,root)
@@ -138,6 +140,7 @@
 /usr/lib/dracut/dracut.conf.d/90-nvidia-dracut-G05.conf
 /usr/lib/udev/rules.d/90-nvidia-udev-pm-G05.rules
 
+%if 0%{?is_opensuse}
 %files bbswitch
 %doc README.md
 %{_sysconfdir}/prime
@@ -150,5 +153,10 @@
 %{_sbindir}/rcprime-select
 %config %{_sysconfdir}/modprobe.d/09-nvidia-modprobe-bbswitch-G04.conf
 %{_unitdir}/prime-select.service
+%else
+%exclude %config %{_sysconfdir}/modprobe.d/09-nvidia-modprobe-bbswitch-G04.conf
+%exclude %{_unitdir}/prime-select.service
+%exclude %{_sbindir}/rcprime-select
+%endif
 
 %changelog




commit suse-prime for openSUSE:Factory

2019-11-18 Thread root
Hello community,

here is the log from the commit of package suse-prime for openSUSE:Factory 
checked in at 2019-11-18 20:12:12

Comparing /work/SRC/openSUSE:Factory/suse-prime (Old)
 and  /work/SRC/openSUSE:Factory/.suse-prime.new.26869 (New)


Package is "suse-prime"

Mon Nov 18 20:12:12 2019 rev:15 rq:749323 version:0.7.3

Changes:

--- /work/SRC/openSUSE:Factory/suse-prime/suse-prime.changes2019-10-08 
19:59:58.427832054 +0200
+++ /work/SRC/openSUSE:Factory/.suse-prime.new.26869/suse-prime.changes 
2019-11-18 20:12:43.861520414 +0100
@@ -1,0 +2,13 @@
+Mon Nov 18 14:42:07 UTC 2019 - Stefan Dirsch 
+
+- this release also includes support for NVIDIA's PRIME render
+  offloading (jsc#SLE-9068)
+
+---
+Wed Oct 23 01:31:45 UTC 2019 - Stefan Dirsch 
+
+- Update to version 0.7.3
+  * Restore previous configuration if nvidia reconfiguration fails
+  * Set the right panel variables for LVDS displays (issue#26)
+
+---

Old:

  SUSEPrime-0.7.2.tar.gz

New:

  SUSEPrime-0.7.3.tar.gz



Other differences:
--
++ suse-prime.spec ++
--- /var/tmp/diff_new_pack.2BHoVD/_old  2019-11-18 20:12:45.417519620 +0100
+++ /var/tmp/diff_new_pack.2BHoVD/_new  2019-11-18 20:12:45.433519612 +0100
@@ -17,7 +17,7 @@
 
 
 Name:   suse-prime
-Version:0.7.2
+Version:0.7.3
 Release:0
 Summary:GPU (nvidia/intel) selection for NVIDIA optimus laptops
 License:SUSE-Public-Domain

++ SUSEPrime-0.7.2.tar.gz -> SUSEPrime-0.7.3.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/SUSEPrime-0.7.2/prime-select.sh 
new/SUSEPrime-0.7.3/prime-select.sh
--- old/SUSEPrime-0.7.2/prime-select.sh 2019-10-08 12:18:31.0 +0200
+++ new/SUSEPrime-0.7.3/prime-select.sh 2019-10-23 03:09:18.0 +0200
@@ -22,9 +22,16 @@
 lspci_nvidia_3d_line="3D controller: NVIDIA"
 
 # name of the laptop panel output as returned by 'xrandr -q'. Driver 
dependent, because why not
-panel_nvidia=eDP-1-1
-panel_intel=eDP-1
-panel_intel2=eDP1
+ls /sys/class/drm/ | grep -q LVDS
+if [ $? -eq 0 ]; then
+panel_nvidia=LVDS-1-1
+panel_intel=LVDS-1
+panel_intel2=LVDS1
+else
+panel_nvidia=eDP-1-1
+panel_intel=eDP-1
+panel_intel2=eDP1
+fi
 
 # Check if prime-select service is enabled. Some users may want to use nvidia 
prime offloading sometimes so they can disable service temporarily.
 # SusePRIME bbswitch will work as non-bbswitch one
@@ -162,6 +169,33 @@
 fi
 }
 
+function restore_old_state {
+if [ -f /etc/prime/current_type.old ]; then
+echo "Reconfiguration failed"
+logging "Reconfiguration failed"
+mv -f /etc/prime/current_type.old /etc/prime/current_type
+config=$(cat /etc/prime/current_type)
+echo "Restoring previous configuration: $config"
+logging "Restoring previous configuration: $config"
+else
+echo "Configuration failed"
+logging "Configuration failed"
+rm /etc/prime/current_type
+fi
+}
+
+function save_old_state {
+if [ -f /etc/prime/current_type ]; then
+cp -f /etc/prime/current_type /etc/prime/current_type.old
+fi
+}
+
+function remove_old_state {
+if [ -f /etc/prime/current_type.old ]; then
+rm /etc/prime/current_type.old
+fi
+}
+
 function set_nvidia {
 
 if (( service_test == 0)); then
@@ -183,6 +217,7 @@
 # This may easily fail, if no NVIDIA kernel module is available or alike
 if [ $? -ne 0 ]; then
 logging "PCI BusID of NVIDIA card could not be detected!"
+restore_old_state
 exit 1
 fi
 
@@ -442,15 +477,19 @@
 logging "user_logout_waiter: started"
 # from console without Xorg running
 else
+save_old_state
 echo $type > /etc/prime/current_type
 apply_current
+remove_old_state
 exit 
 fi
 
 else  # no service used
 
+save_old_state
 echo $type > /etc/prime/current_type
 apply_current
+remove_old_state
 
 fi





commit suse-prime for openSUSE:Factory

2019-10-08 Thread root
Hello community,

here is the log from the commit of package suse-prime for openSUSE:Factory 
checked in at 2019-10-08 19:59:56

Comparing /work/SRC/openSUSE:Factory/suse-prime (Old)
 and  /work/SRC/openSUSE:Factory/.suse-prime.new.2352 (New)


Package is "suse-prime"

Tue Oct  8 19:59:56 2019 rev:14 rq:736082 version:0.7.2

Changes:

--- /work/SRC/openSUSE:Factory/suse-prime/suse-prime.changes2019-10-07 
14:13:55.822920393 +0200
+++ /work/SRC/openSUSE:Factory/.suse-prime.new.2352/suse-prime.changes  
2019-10-08 19:59:58.427832054 +0200
@@ -1,0 +2,59 @@
+Tue Oct  8 11:51:23 UTC 2019 - Stefan Dirsch 
+
+- Update to version 0.7.2 with various improvements and fixes
+  * Full support to nvidia prime offloading without service or
+with bbswitch with service disabled
+  * Distinction between "service disabled" (bbswitch package)
+and "service not installed"
+  * Fixed bug with bbswitch and service enabled that returns i
+"PCI BusID of NVIDIA card could not be detected"
+  * Now when NVIDIA is OFF, intel xorg config file has ai
+commented "nvidia prime offloading" section
+  * Mention that offloading needs service disabled
+  * Corrected intentation in some sections
+- supersedes the following patches:
+  * 0001-Removed-exit-1-error-from-common-set-intel-because-d.patch
+  * 0002-Various-improvements-and-fixes.patch
+  * 0003-Merged-commit-https-github.com-openSUSE-SUSEPrime-pu.patch
+
+---
+Tue Oct  8 10:23:37 UTC 2019 - Stefan Dirsch 
+
+- 0001-Removed-exit-1-error-from-common-set-intel-because-d.patch,
+  * Removed "exit 1" error from "common set intel" because during
+boot and nvidia card off by default in bbswitch (load_state=0)
+crashes service
+- 0002-Various-improvements-and-fixes.patch
+  * Various improvements and fixes
++ Full support to nvidia prime offloading without service or with
+  bbswitch with service disabled
++ Distinction between "service disabled" (bbswitch package) and
+  "service not installed"
++ Fixed bug with bbswitch and service enabled that returns
+  "PCI BusID of NVIDIA card could not be detected"
++ Now when NVIDIA is OFF, intel xorg config file has a commented
+  "nvidia prime offloading" section
++ Mention that offloading needs service disabled
++ Corrected intentation in some sections
+- 0003-Merged-commit-https-github.com-openSUSE-SUSEPrime-pu.patch
+  * supersedes 0001-Fix-intel-configs-if-no-NVIDIA-kernel-module-is-avai.patch
+
+---
+Mon Oct  7 19:40:15 UTC 2019 - Stefan Dirsch 
+
+- fix build on distributions, where %{?regenerate_initrd_post}
+  doesn't exist yet
+- %preun: 'prime-select unset' is supposed to fail during 
+  package installation test during build, therefore don't
+  let it fail via adding "|| true" to the command
+
+---
+Mon Oct  7 13:52:34 UTC 2019 - Stefan Dirsch 
+
+- 0001-Fix-intel-configs-if-no-NVIDIA-kernel-module-is-avai.patch
+  * Move additional nvidia X device section needed for NVIDIA's Prime
+Render Offload mode to an extra xorg.conf.d snippet. Add this only
+to intel X configs, if NVIDIA's PCI BusId can be detected.
+- add xorg-nvidia-prime-render-offload.conf X snippet to /etc/prime
+
+---

Old:

  SUSEPrime-0.7.1.tar.gz

New:

  SUSEPrime-0.7.2.tar.gz



Other differences:
--
++ suse-prime.spec ++
--- /var/tmp/diff_new_pack.NiZu8r/_old  2019-10-08 19:59:59.663828835 +0200
+++ /var/tmp/diff_new_pack.NiZu8r/_new  2019-10-08 19:59:59.719828690 +0200
@@ -17,7 +17,7 @@
 
 
 Name:   suse-prime
-Version:0.7.1
+Version:0.7.2
 Release:0
 Summary:GPU (nvidia/intel) selection for NVIDIA optimus laptops
 License:SUSE-Public-Domain
@@ -62,6 +62,7 @@
 install -m 0644 xorg-intel.conf  %{buildroot}%{_sysconfdir}/prime/
 install -m 0644 xorg-intel-intel.conf  %{buildroot}%{_sysconfdir}/prime/
 install -m 0644 xorg-nvidia.conf %{buildroot}%{_sysconfdir}/prime/
+install -m 0644 xorg-nvidia-prime-render-offload.conf 
%{buildroot}%{_sysconfdir}/prime/
 mkdir -p %{buildroot}%{_sysconfdir}/modprobe.d
 install -m 0644 09-nvidia-modprobe-bbswitch-G04.conf 
%{buildroot}%{_sysconfdir}/modprobe.d/
 install -m 0644 09-nvidia-modprobe-pm-G05.conf 
%{buildroot}%{_sysconfdir}/modprobe.d/
@@ -80,11 +81,12 @@
 if [ "$1" -eq 0 ]; then
# cleanup before uninstalling the package completely
export PATH=$PATH:/usr/sbin
-   %{_sbindir}/prime-select unset
+   %{_sbindir}/prime-select unset || true
 fi
 
 %postun
 if [ "$1" -eq 0 ]; then
+   true
 

commit suse-prime for openSUSE:Factory

2019-10-07 Thread root
Hello community,

here is the log from the commit of package suse-prime for openSUSE:Factory 
checked in at 2019-10-07 13:46:08

Comparing /work/SRC/openSUSE:Factory/suse-prime (Old)
 and  /work/SRC/openSUSE:Factory/.suse-prime.new.2352 (New)


Package is "suse-prime"

Mon Oct  7 13:46:08 2019 rev:13 rq:735308 version:0.7.1

Changes:

--- /work/SRC/openSUSE:Factory/suse-prime/suse-prime.changes2019-10-04 
16:07:02.648655217 +0200
+++ /work/SRC/openSUSE:Factory/.suse-prime.new.2352/suse-prime.changes  
2019-10-07 14:13:55.822920393 +0200
@@ -1,0 +2,6 @@
+Fri Oct  4 10:41:54 UTC 2019 - Jan Engelhardt 
+
+- Use more of the posttrans rather than on-demand mkinitrd
+  regeneration approach.
+
+---



Other differences:
--
++ suse-prime.spec ++
--- /var/tmp/diff_new_pack.5rTQk4/_old  2019-10-07 14:13:56.126919558 +0200
+++ /var/tmp/diff_new_pack.5rTQk4/_new  2019-10-07 14:13:56.126919558 +0200
@@ -82,30 +82,27 @@
export PATH=$PATH:/usr/sbin
%{_sbindir}/prime-select unset
 fi
-exit 0
 
 %postun
 if [ "$1" -eq 0 ]; then
-   # regenerate initrd without any suse-prime modprobe config files
-   %regenerate_initrd_posttrans
+   %{?regenerate_initrd_post}
 fi
-exit 0
+
+%posttrans
+%{?regenerate_initrd_posttrans}
 
 %triggerin -- nvidia-gfxG05-kmp-default
 # get rid of nvidia kernel modules in initrd
 rm -f /etc/dracut.conf.d/50-nvidia-default.conf
-%regenerate_initrd_posttrans
-exit 0
+%{?regenerate_initrd_post}
 
 %pre bbswitch
 %service_add_pre prime-select.service
-exit 0
 
 %post bbswitch
 %{?regenerate_initrd_post}
 %service_add_post prime-select.service
 systemctl enable prime-select.service
-exit 0
 
 %preun bbswitch
 %service_del_preun prime-select.service
@@ -119,11 +116,9 @@
 %postun bbswitch
 %{?regenerate_initrd_post}
 %service_del_postun prime-select.service
-exit 0
 
 %posttrans bbswitch
 %{?regenerate_initrd_posttrans}
-exit 0
 
 %files
 %defattr(-,root,root)




commit suse-prime for openSUSE:Factory

2019-10-04 Thread root
Hello community,

here is the log from the commit of package suse-prime for openSUSE:Factory 
checked in at 2019-10-04 16:07:00

Comparing /work/SRC/openSUSE:Factory/suse-prime (Old)
 and  /work/SRC/openSUSE:Factory/.suse-prime.new.2352 (New)


Package is "suse-prime"

Fri Oct  4 16:07:00 2019 rev:12 rq:734949 version:0.7.1

Changes:

--- /work/SRC/openSUSE:Factory/suse-prime/suse-prime.changes2019-10-04 
11:22:38.460910793 +0200
+++ /work/SRC/openSUSE:Factory/.suse-prime.new.2352/suse-prime.changes  
2019-10-04 16:07:02.648655217 +0200
@@ -1,0 +2,5 @@
+Fri Oct  4 09:37:38 UTC 2019 - Stefan Dirsch 
+
+- replace /sbin/mkinitrd with %regenerate_initrd_posttrans
+
+---



Other differences:
--
++ suse-prime.spec ++
--- /var/tmp/diff_new_pack.PM0jOg/_old  2019-10-04 16:07:03.316653634 +0200
+++ /var/tmp/diff_new_pack.PM0jOg/_new  2019-10-04 16:07:03.316653634 +0200
@@ -87,14 +87,14 @@
 %postun
 if [ "$1" -eq 0 ]; then
# regenerate initrd without any suse-prime modprobe config files
-   test -x /sbin/mkinitrd && /sbin/mkinitrd
+   %regenerate_initrd_posttrans
 fi
 exit 0
 
 %triggerin -- nvidia-gfxG05-kmp-default
 # get rid of nvidia kernel modules in initrd
 rm -f /etc/dracut.conf.d/50-nvidia-default.conf
-test -x /sbin/mkinitrd && /sbin/mkinitrd
+%regenerate_initrd_posttrans
 exit 0
 
 %pre bbswitch




commit suse-prime for openSUSE:Factory

2019-10-04 Thread root
Hello community,

here is the log from the commit of package suse-prime for openSUSE:Factory 
checked in at 2019-10-04 11:22:00

Comparing /work/SRC/openSUSE:Factory/suse-prime (Old)
 and  /work/SRC/openSUSE:Factory/.suse-prime.new.2352 (New)


Package is "suse-prime"

Fri Oct  4 11:22:00 2019 rev:11 rq:734793 version:0.7.1

Changes:

--- /work/SRC/openSUSE:Factory/suse-prime/suse-prime.changes2019-10-03 
14:10:25.551951152 +0200
+++ /work/SRC/openSUSE:Factory/.suse-prime.new.2352/suse-prime.changes  
2019-10-04 11:22:38.460910793 +0200
@@ -1,0 +2,7 @@
+Thu Oct  3 12:13:08 UTC 2019 - Stefan Dirsch 
+
+- Update to version 0.7.1
+  * xorg-nvidia.conf: Added option AllowExternalGpus to allow
+eGPUs by default
+
+---

Old:

  SUSEPrime-0.7.tar.gz

New:

  SUSEPrime-0.7.1.tar.gz



Other differences:
--
++ suse-prime.spec ++
--- /var/tmp/diff_new_pack.7acj4w/_old  2019-10-04 11:22:38.836909813 +0200
+++ /var/tmp/diff_new_pack.7acj4w/_new  2019-10-04 11:22:38.836909813 +0200
@@ -17,7 +17,7 @@
 
 
 Name:   suse-prime
-Version:0.7
+Version:0.7.1
 Release:0
 Summary:GPU (nvidia/intel) selection for NVIDIA optimus laptops
 License:SUSE-Public-Domain

++ SUSEPrime-0.7.tar.gz -> SUSEPrime-0.7.1.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/SUSEPrime-0.7/xorg-nvidia.conf 
new/SUSEPrime-0.7.1/xorg-nvidia.conf
--- old/SUSEPrime-0.7/xorg-nvidia.conf  2019-10-02 17:22:32.0 +0200
+++ new/SUSEPrime-0.7.1/xorg-nvidia.conf2019-10-03 13:48:59.0 
+0200
@@ -36,4 +36,5 @@
 BusID "PCI:X:X:X"
 Option "DPI" "96 x 96"
 Option "AllowEmptyInitialConfiguration"
+Option "AllowExternalGpus"
 EndSection




commit suse-prime for openSUSE:Factory

2019-10-03 Thread root
Hello community,

here is the log from the commit of package suse-prime for openSUSE:Factory 
checked in at 2019-10-03 14:10:23

Comparing /work/SRC/openSUSE:Factory/suse-prime (Old)
 and  /work/SRC/openSUSE:Factory/.suse-prime.new.2352 (New)


Package is "suse-prime"

Thu Oct  3 14:10:23 2019 rev:10 rq:734774 version:0.7

Changes:

--- /work/SRC/openSUSE:Factory/suse-prime/suse-prime.changes2019-05-22 
15:41:23.478427228 +0200
+++ /work/SRC/openSUSE:Factory/.suse-prime.new.2352/suse-prime.changes  
2019-10-03 14:10:25.551951152 +0200
@@ -1,0 +2,178 @@
+Wed Oct  2 15:29:37 UTC 2019 - Stefan Dirsch 
+
+- Update to version 0.7.0
+  * no changes to 0.6.14 and the patches on top of that we had
+before ...
+- supersedes patches:
+  * 0001-Implement-and-document-PRIME-Render-Offload-and-Dyna.patch
+  * 0002-Fix-NVIDIA-PRIME-Render-Offload.patch
+  * 0003-prime-select.sh-mention-PRIME-Render-Offload-in-usag.patch
+
+---
+Wed Oct  2 13:13:43 UTC 2019 - Stefan Dirsch 
+
+- 0001-Implement-and-document-PRIME-Render-Offload-and-Dyna.patch
+  0002-Fix-NVIDIA-PRIME-Render-Offload.patch
+- 0003-prime-select.sh-mention-PRIME-Render-Offload-in-usag.patch 
+  * adds support for NVIDIA PRIME Render Offload of 435.xx/G05 driver
+- add new config files (modprobe.d/dracut.d/udev.d) to package;
+  regenerate initrd during installation and also during update of
+  nvidia G05 KMP
+
+---
+Wed Jun 26 13:41:03 UTC 2019 - Stefan Dirsch 
+
+- Update to version 0.6.14
+  * changes since 0.6.11
++ fix Plasma scaling for laptop panel when changing driver; 
+  see comment in function update_kdeglobals for details
++ fixed issues when switching with Xorg started with
+  startx/xinit (multi-user.target)
++ fixed issues when switching from console
++ replaced usage of runlevel command by use of systemctl to
+  determine current target. runlevel did not always
++ returns a defined runlevel and caused a bash error (on first
+  script run)
++ made grepping for xinit process more strict
++ fixed issue where 'prime-select user_logout_waiter'
+  execution would not exit for a while after switching
++ Fix check for existing NVIDIA GPU
+
+---
+Wed May 22 08:47:20 UTC 2019 - Stefan Dirsch 
+
+- renamed package to suse-prime-beta 
+
+---
+Tue Apr 23 13:02:27 UTC 2019 - Stefan Dirsch 
+
+- exit successfully from pre/post/preun/postun scripts in order to
+  prevent build fails ...
+
+---
+Mon Apr  8 12:39:13 UTC 2019 - Stefan Dirsch 
+
+- Update to version 0.6.11
+  * Allow to work without service
++ work without bbswitch if prime-select.service is not installed (for
+  suse-prime package)
++ cleaned up script usage, only displays relevant commands
++ service, boot and next-boot commands are not available if running without
+  service
++ handle the case when booting with nvidia config but no nvidia card is 
available
+  (disabled in BIOS) by forcing intel. Only works if service is running
++ replaced shell commands using backquotes with more modern $() for 
consistency
++ when appropriate, changed nvidia => NVIDIA for consistency
++ reindented script with emacs for consistency
++ minor updates to README
+  * Add 30s timeout to service to make sure system boots if service doesnt 
work. 
+
+---
+Wed Apr  3 09:42:22 UTC 2019 - Stefan Dirsch 
+
+- Update to version 0.6.9
+  * Resolved issue with plymouth (it hangs during boot)
+  * Updated readme 
+
+---
+Mon Apr  1 18:11:12 UTC 2019 - Mykola Krachkovsky 
+
+- Repair broken suse-prime-bbswitch package
+
+---
+Mon Apr  1 14:03:36 UTC 2019 - Stefan Dirsch 
+
+- Update to version 0.6.8
+  * Big Update (changes in systemd services)
++ prime-boot-selector service deprecated, all features are
+  now handled with one only service.
++ used journalctl to check if system is booting or if
+  "logout-switch" is needed
++ no more multiple service enable/disable needed during
+  switch, prime-select service is enabled everytime
++ removed all "prime-boot-selector" references in logging
+  and help command
++ boot_status file has now only two states (S > wait for
+  switching, N > not waiting)
++ changed systemd call from "prime-select apply_current"
+  to "prime-select systemd_call"
++ updated README
+

commit suse-prime for openSUSE:Factory

2019-05-22 Thread root
Hello community,

here is the log from the commit of package suse-prime for openSUSE:Factory 
checked in at 2019-05-22 15:40:48

Comparing /work/SRC/openSUSE:Factory/suse-prime (Old)
 and  /work/SRC/openSUSE:Factory/.suse-prime.new.5148 (New)


Package is "suse-prime"

Wed May 22 15:40:48 2019 rev:9 rq:704686 version:0.5

Changes:

--- /work/SRC/openSUSE:Factory/suse-prime/suse-prime.changes2019-04-08 
20:54:15.082599858 +0200
+++ /work/SRC/openSUSE:Factory/.suse-prime.new.5148/suse-prime.changes  
2019-05-22 15:41:23.478427228 +0200
@@ -1,0 +2,6 @@
+Mon Apr  1 13:49:26 UTC 2019 - Stefan Dirsch 
+
+- U_Corrected-DPI-value-in-xorg-nvidia.conf.patch
+  * Corrected DPI value in xorg-nvidia.conf (boo#1130723)
+
+---

New:

  U_Corrected-DPI-value-in-xorg-nvidia.conf.patch



Other differences:
--
++ suse-prime.spec ++
--- /var/tmp/diff_new_pack.WRKrbd/_old  2019-05-22 15:41:32.194427190 +0200
+++ /var/tmp/diff_new_pack.WRKrbd/_new  2019-05-22 15:41:32.206427190 +0200
@@ -24,6 +24,7 @@
 Group:  System/X11/Utilities
 Url:https://github.com/openSUSE/SUSEPrime
 Source0:
https://github.com/openSUSE/SUSEPrime/archive/%{version}.tar.gz#/SUSEPrime-%{version}.tar.gz
+Patch0: U_Corrected-DPI-value-in-xorg-nvidia.conf.patch
 Recommends: nvidia_driver
 Supplements:modalias(nvidia_driver:pci:v8086d*sv*sd*bc03sc*i*)
 Conflicts:  suse-prime-alt
@@ -36,6 +37,7 @@
 
 %prep
 %setup -n SUSEPrime-%{version}
+%patch0 -p1
 
 %build
 :

++ U_Corrected-DPI-value-in-xorg-nvidia.conf.patch ++
>From 7c50a32840e54c2129fce583a6c808bcbe5d7b5f Mon Sep 17 00:00:00 2001
From: simopil 
Date: Fri, 29 Mar 2019 15:02:36 +0100
Subject: [PATCH] Corrected DPI value in xorg-nvidia.conf

---
 xorg-nvidia.conf | 1 +
 1 file changed, 1 insertion(+)

diff --git a/xorg-nvidia.conf b/xorg-nvidia.conf
index 26b5ea2..e37ccca 100644
--- a/xorg-nvidia.conf
+++ b/xorg-nvidia.conf
@@ -34,5 +34,6 @@ Section "Device"
 Identifier "nvidia"
 Driver "nvidia"
 BusID "PCI:X:X:X"
+Option "DPI" "96 x 96"
 Option "AllowEmptyInitialConfiguration"
 EndSection
-- 
2.16.4




commit suse-prime for openSUSE:Factory

2019-04-08 Thread root
Hello community,

here is the log from the commit of package suse-prime for openSUSE:Factory 
checked in at 2019-04-08 20:54:07

Comparing /work/SRC/openSUSE:Factory/suse-prime (Old)
 and  /work/SRC/openSUSE:Factory/.suse-prime.new.3908 (New)


Package is "suse-prime"

Mon Apr  8 20:54:07 2019 rev:8 rq:692307 version:0.5

Changes:

--- /work/SRC/openSUSE:Factory/suse-prime/suse-prime.changes2019-04-03 
09:27:54.743812337 +0200
+++ /work/SRC/openSUSE:Factory/.suse-prime.new.3908/suse-prime.changes  
2019-04-08 20:54:15.082599858 +0200
@@ -2,100 +1,0 @@
-Mon Apr  1 18:11:12 UTC 2019 - Mykola Krachkovsky 
-
-- Repair broken suse-prime-bbswitch package
-

-Mon Apr  1 14:03:36 UTC 2019 - Stefan Dirsch 
-
-- Update to version 0.6.8
-  * Big Update (changes in systemd services)
-+ prime-boot-selector service deprecated, all features are
-  now handled with one only service.
-+ used journalctl to check if system is booting or if
-  "logout-switch" is needed
-+ no more multiple service enable/disable needed during
-  switch, prime-select service is enabled everytime
-+ removed all "prime-boot-selector" references in logging
-  and help command
-+ boot_status file has now only two states (S > wait for
-  switching, N > not waiting)
-+ changed systemd call from "prime-select apply_current"
-  to "prime-select systemd_call"
-+ updated README
-

-Fri Mar 29 14:13:29 UTC 2019 - Stefan Dirsch 
-
-- Update to version 0.6.7
-  * Corrected DPI value in xorg-nvidia.conf (boo#1130723)
-

-Mon Mar 25 13:30:18 UTC 2019 - Stefan Dirsch 
-
-- Update to version 0.6.6
-  * Add logging to journal as well 
-

-Sun Mar 24 21:40:17 UTC 2019 - Mykola Krachkovsky 
-
-- Split power support into separate package suse-prime-bbswitch
-  which don't need manual work
-

-Tue Mar 19 14:42:56 UTC 2019 - Stefan Dirsch 
-
-- Update to version 0.6.5
-  * augmented README
-  * do not mention "intel" driver issue with kwin since it is obsolete
-  * improved "intel" xorg config to work properly with compositors
-

-Mon Feb 25 11:05:54 UTC 2019 - sndir...@suse.com
-
-- Update to version 0.6.4
-  * added support for xdm and kdm
-  * removed useless "sudo" in journalctl calls
-

-Fri Feb 22 09:48:49 UTC 2019 - sndir...@suse.com
-
-- Update to version 0.6.3
-  * Best DM support (lightdm added) 
-

-Thu Feb 21 09:54:47 UTC 2019 - sndir...@suse.com
-
-- Update to version 0.6.2
-  - fixes all known issues with GDM, runlevel 3 and manually-started
-x sessions
-* Xorg logfile comparision no longer necessary, let's use
-  journalctl to check user logout
-* other DM(s) than sddm/gdm will be implemented in the future
-

-Fri Feb  8 14:40:50 UTC 2019 - sndir...@suse.com
-
-- Update to version 0.6.1
-  * mainly bugfixes
-- supersedes 0001-Resolved-multiple-unexistent-file-error.patch
-

-Wed Jan 30 11:56:58 UTC 2019 - sndir...@suse.com
-
-- Update to version 0.6
-  * new systemd service file prime-boot-selector in addition to prime-select
-+ Service prime-select chooses with whatever driver was previously set by 
user.
-+ Service prime-boot-selector sets all things during boot [MUST BE ENABLED]
-  * new prime-select command options
-+ prime-select boot intel|intel2|nvidia|last
-+ prime-select next-boot intel|intel2|nvidia|abort
-+ prime-select service check|disable|restore
-- 0001-Resolved-multiple-unexistent-file-error.patch (post 0.6)
-  * Resolved multiple unexistent file errors
-  * Resolved a big issue in switch command if prime_logfile doesn't exist,
-file check added
-  * Added non existent file handling in various parts of script (next-boot,
-log-view, unset, current_check) Those issues manifested themselves
-after a fresh installation, because some config files still were not
-present
-


Old:

  SUSEPrime-0.6.8.tar.gz

New:

  SUSEPrime-0.5.tar.gz



Other differences:
--
++ suse-prime.spec ++
--- /var/tmp/diff_new_pack.h4gM3v/_old  2019-04-08 

commit suse-prime for openSUSE:Factory

2019-04-03 Thread root
Hello community,

here is the log from the commit of package suse-prime for openSUSE:Factory 
checked in at 2019-04-03 09:27:52

Comparing /work/SRC/openSUSE:Factory/suse-prime (Old)
 and  /work/SRC/openSUSE:Factory/.suse-prime.new.25356 (New)


Package is "suse-prime"

Wed Apr  3 09:27:52 2019 rev:7 rq:690570 version:0.6.8

Changes:

--- /work/SRC/openSUSE:Factory/suse-prime/suse-prime.changes2019-03-26 
22:33:32.925689475 +0100
+++ /work/SRC/openSUSE:Factory/.suse-prime.new.25356/suse-prime.changes 
2019-04-03 09:27:54.743812337 +0200
@@ -1,0 +2,36 @@
+Mon Apr  1 18:11:12 UTC 2019 - Mykola Krachkovsky 
+
+- Repair broken suse-prime-bbswitch package
+
+---
+Mon Apr  1 14:03:36 UTC 2019 - Stefan Dirsch 
+
+- Update to version 0.6.8
+  * Big Update (changes in systemd services)
++ prime-boot-selector service deprecated, all features are
+  now handled with one only service.
++ used journalctl to check if system is booting or if
+  "logout-switch" is needed
++ no more multiple service enable/disable needed during
+  switch, prime-select service is enabled everytime
++ removed all "prime-boot-selector" references in logging
+  and help command
++ boot_status file has now only two states (S > wait for
+  switching, N > not waiting)
++ changed systemd call from "prime-select apply_current"
+  to "prime-select systemd_call"
++ updated README
+
+---
+Fri Mar 29 14:13:29 UTC 2019 - Stefan Dirsch 
+
+- Update to version 0.6.7
+  * Corrected DPI value in xorg-nvidia.conf (boo#1130723)
+
+---
+Mon Mar 25 13:30:18 UTC 2019 - Stefan Dirsch 
+
+- Update to version 0.6.6
+  * Add logging to journal as well 
+
+---

Old:

  SUSEPrime-0.6.5.tar.gz

New:

  SUSEPrime-0.6.8.tar.gz



Other differences:
--
++ suse-prime.spec ++
--- /var/tmp/diff_new_pack.6LV3FN/_old  2019-04-03 09:27:55.279812590 +0200
+++ /var/tmp/diff_new_pack.6LV3FN/_new  2019-04-03 09:27:55.283812592 +0200
@@ -17,7 +17,7 @@
 
 
 Name:   suse-prime
-Version:0.6.5
+Version:0.6.8
 Release:0
 Summary:GPU (nvidia/intel) selection for NVIDIA optimus laptops
 License:SUSE-Public-Domain
@@ -66,7 +66,6 @@
 install -m 0644 09-nvidia-blacklist.conf %{buildroot}%{_sysconfdir}/modprobe.d/
 mkdir -p %{buildroot}%{_unitdir}
 install -m 0644 prime-select.service %{buildroot}%{_unitdir}/
-install -m 0644 prime-boot-selector.service %{buildroot}%{_unitdir}/
 echo   "undefined" > %{buildroot}%{_sysconfdir}/prime/current_type
 install -D -m 0755 prime-select.sh %{buildroot}%{_sbindir}/prime-select
 
@@ -78,15 +77,15 @@
 fi
 
 %pre bbswitch
-%service_add_pre prime-boot-selector.service
+%service_add_pre prime-select.service
 
 %post bbswitch
 %{?regenerate_initrd_post}
-%service_add_post prime-boot-selector.service
-systemctl enable prime-boot-selector.service
+%service_add_post prime-select.service
+systemctl enable prime-select.service
 
 %preun bbswitch
-%service_del_preun prime-boot-selector.service
+%service_del_preun prime-select.service
 if [ "$1" -eq 0 ]; then
# cleanup before uninstalling the package completely
export PATH=$PATH:/usr/sbin
@@ -95,7 +94,7 @@
 
 %postun bbswitch
 %{?regenerate_initrd_post}
-%service_del_postun prime-boot-selector.service
+%service_del_postun prime-select.service
 
 %posttrans bbswitch
 %{?regenerate_initrd_posttrans}
@@ -120,6 +119,5 @@
 %{_sbindir}/prime-select
 %config %{_sysconfdir}/modprobe.d/09-nvidia-blacklist.conf
 %{_unitdir}/prime-select.service
-%{_unitdir}/prime-boot-selector.service
 
 %changelog

++ SUSEPrime-0.6.5.tar.gz -> SUSEPrime-0.6.8.tar.gz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/SUSEPrime-0.6.5/prime-boot-selector.service 
new/SUSEPrime-0.6.8/prime-boot-selector.service
--- old/SUSEPrime-0.6.5/prime-boot-selector.service 2019-03-19 
15:38:44.0 +0100
+++ new/SUSEPrime-0.6.8/prime-boot-selector.service 1970-01-01 
01:00:00.0 +0100
@@ -1,11 +0,0 @@
-[Unit]
-Description=Prime Select Service (Boot Selector)
-After=multi-user.target
-Before=display-manager.service
-
-[Service]
-Type=oneshot
-ExecStart=prime-select prime_booting
-
-[Install]
-WantedBy=multi-user.target
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/SUSEPrime-0.6.5/prime-select.service 
new/SUSEPrime-0.6.8/prime-select.service
--- old/SUSEPrime-0.6.5/prime-select.service2019-03-19 

commit suse-prime for openSUSE:Factory

2019-03-26 Thread root
Hello community,

here is the log from the commit of package suse-prime for openSUSE:Factory 
checked in at 2019-03-26 22:33:03

Comparing /work/SRC/openSUSE:Factory/suse-prime (Old)
 and  /work/SRC/openSUSE:Factory/.suse-prime.new.25356 (New)


Package is "suse-prime"

Tue Mar 26 22:33:03 2019 rev:6 rq:688196 version:0.6.5

Changes:

--- /work/SRC/openSUSE:Factory/suse-prime/suse-prime.changes2019-01-26 
22:25:13.618719348 +0100
+++ /work/SRC/openSUSE:Factory/.suse-prime.new.25356/suse-prime.changes 
2019-03-26 22:33:32.925689475 +0100
@@ -1,0 +2,64 @@
+Sun Mar 24 21:40:17 UTC 2019 - Mykola Krachkovsky 
+
+- Split power support into separate package suse-prime-bbswitch
+  which don't need manual work
+
+---
+Tue Mar 19 14:42:56 UTC 2019 - Stefan Dirsch 
+
+- Update to version 0.6.5
+  * augmented README
+  * do not mention "intel" driver issue with kwin since it is obsolete
+  * improved "intel" xorg config to work properly with compositors
+
+---
+Mon Feb 25 11:05:54 UTC 2019 - sndir...@suse.com
+
+- Update to version 0.6.4
+  * added support for xdm and kdm
+  * removed useless "sudo" in journalctl calls
+
+---
+Fri Feb 22 09:48:49 UTC 2019 - sndir...@suse.com
+
+- Update to version 0.6.3
+  * Best DM support (lightdm added) 
+
+---
+Thu Feb 21 09:54:47 UTC 2019 - sndir...@suse.com
+
+- Update to version 0.6.2
+  - fixes all known issues with GDM, runlevel 3 and manually-started
+x sessions
+* Xorg logfile comparision no longer necessary, let's use
+  journalctl to check user logout
+* other DM(s) than sddm/gdm will be implemented in the future
+
+---
+Fri Feb  8 14:40:50 UTC 2019 - sndir...@suse.com
+
+- Update to version 0.6.1
+  * mainly bugfixes
+- supersedes 0001-Resolved-multiple-unexistent-file-error.patch
+
+---
+Wed Jan 30 11:56:58 UTC 2019 - sndir...@suse.com
+
+- Update to version 0.6
+  * new systemd service file prime-boot-selector in addition to prime-select
++ Service prime-select chooses with whatever driver was previously set by 
user.
++ Service prime-boot-selector sets all things during boot [MUST BE ENABLED]
+  * new prime-select command options
++ prime-select boot intel|intel2|nvidia|last
++ prime-select next-boot intel|intel2|nvidia|abort
++ prime-select service check|disable|restore
+- 0001-Resolved-multiple-unexistent-file-error.patch (post 0.6)
+  * Resolved multiple unexistent file errors
+  * Resolved a big issue in switch command if prime_logfile doesn't exist,
+file check added
+  * Added non existent file handling in various parts of script (next-boot,
+log-view, unset, current_check) Those issues manifested themselves
+after a fresh installation, because some config files still were not
+present
+
+---

Old:

  SUSEPrime-0.5.tar.gz

New:

  SUSEPrime-0.6.5.tar.gz



Other differences:
--
++ suse-prime.spec ++
--- /var/tmp/diff_new_pack.5ajxJ3/_old  2019-03-26 22:33:33.457689346 +0100
+++ /var/tmp/diff_new_pack.5ajxJ3/_new  2019-03-26 22:33:33.461689345 +0100
@@ -12,12 +12,12 @@
 # license that conforms to the Open Source Definition (Version 1.9)
 # published by the Open Source Initiative.
 
-# Please submit bugfixes or comments via http://bugs.opensuse.org/
+# Please submit bugfixes or comments via https://bugs.opensuse.org/
 #
 
 
 Name:   suse-prime
-Version:0.5
+Version:0.6.5
 Release:0
 Summary:GPU (nvidia/intel) selection for NVIDIA optimus laptops
 License:SUSE-Public-Domain
@@ -27,6 +27,7 @@
 Recommends: nvidia_driver
 Supplements:modalias(nvidia_driver:pci:v8086d*sv*sd*bc03sc*i*)
 Conflicts:  suse-prime-alt
+Conflicts:  suse-prime-bbswitch
 BuildArch:  noarch
 
 %description
@@ -34,6 +35,22 @@
 NVIDIA GPU on a Optimus Laptop. The switching is similar to
 the feature provided by the nvidia-prime package in Ubuntu.
 
+%package bbswitch
+Summary:GPU (nvidia/intel) selection for NVIDIA optimus laptops with 
bbswitch support
+Group:  System/X11/Utilities
+BuildRequires:  systemd
+Requires:   bbswitch
+Conflicts:  suse-prime-alt
+Conflicts:  suse-prime
+BuildArch:  noarch
+%{?systemd_requires}
+
+%description bbswitch
+A collection of shell scripts that makes it possible to use the
+NVIDIA GPU on a Optimus Laptop. The 

commit suse-prime for openSUSE:Factory

2019-01-26 Thread root
Hello community,

here is the log from the commit of package suse-prime for openSUSE:Factory 
checked in at 2019-01-26 22:25:09

Comparing /work/SRC/openSUSE:Factory/suse-prime (Old)
 and  /work/SRC/openSUSE:Factory/.suse-prime.new.28833 (New)


Package is "suse-prime"

Sat Jan 26 22:25:09 2019 rev:5 rq:668820 version:0.5

Changes:

--- /work/SRC/openSUSE:Factory/suse-prime/suse-prime.changes2019-01-15 
09:16:48.758211087 +0100
+++ /work/SRC/openSUSE:Factory/.suse-prime.new.28833/suse-prime.changes 
2019-01-26 22:25:13.618719348 +0100
@@ -1,0 +2,70 @@
+Sat Jan 26 15:13:17 UTC 2019 - sndir...@suse.com
+
+- fixed URLs in specfile (project location changed on github) 
+
+---
+Sat Jan 26 12:18:34 UTC 2019 - sndir...@suse.com
+
+- Update to release 0.5
+  * Add various improvements to the original script (by @bubbleguuum)
+
+1. add bbswitch support to power off NVIDIA card if not in use.
+This is important to save battery when running on Intel and
+to decrease cpu temperature significantly.
+This support is optional, it requires user to make some
+manual modifications to his system using detailed documentation.
+
+2. add Intel Open Source driver support (xf86-video-intel)
+via new intel2 command-line option.
+This driver has some additional features that users may want.
+
+3. add the proper BusID for Intel in xorg configuration.
+Without this, Xorg fails to start on some laptops.
+
+4. fix (via modified xorg-nvidia.conf) for external monitor
+not enumerated by xrandr with the nvidia config.
+On Optimus laptop, the dGPU is usually responsible of managing
+external video ports, including connections via Thunderbolt 3.
+
+  * get-current option for prime-select script
+Show valid options for prime-select script, if driver has not
+ been configured yet
+
+- supersedes the following patches
+  * 0002-fix-README.patch
+  * U_prime-select.sh-bail-out-if-nvidia-xconfig-fails-use.patch
+  * 0004-xorg-nvidia.conf-refix-config.patch
+  * 0003-prime-select-Show-valid-options-if-driver-has-not-be.patch
+  * 0001-Add-various-improvements-to-the-original-script.patch
+
+- %preun: cleanup before uninstalling the package completely by
+  using prime-select's 'unset' option
+
+---
+Fri Jan 25 17:37:11 UTC 2019 - sndir...@suse.com
+
+- 0001-Add-various-improvements-to-the-original-script.patch
+  * Add various improvements to the original script
+1. add bbswitch support to power off NVIDIA card if not in use.
+   This is important to save battery when running on Intel and
+   to decrease cpu temperature significantly.
+   This support is optional, it requires user to make some
+   manual modifications to his system using detailed documentation.
+2. add Intel Open Source driver support (xf86-video-intel)
+   via new intel2 command-line option.
+   This driver has some additional features that users may want.
+3. add the proper BusID for Intel in xorg configuration.
+   Without this, Xorg fails to start on some laptops.
+4. fix (via modified xorg-nvidia.conf) for external monitor
+   not enumerated by xrandr with the nvidia config.
+   On Optimus laptop, the dGPU is usually responsible of managing
+   external video ports, including connections via Thunderbolt 3.
+- 0002-fix-README.patch
+  * fix README
+- 0003-prime-select-Show-valid-options-if-driver-has-not-be.patch
+  * prime-select: Show valid options, if driver has not been
+configured yet.
+- 0004-xorg-nvidia.conf-refix-config.patch
+  * xorg-nvidia.conf: refix config
+
+---

Old:

  SUSEPrime-0.3.tar.gz
  U_prime-select.sh-bail-out-if-nvidia-xconfig-fails-use.patch

New:

  SUSEPrime-0.5.tar.gz



Other differences:
--
++ suse-prime.spec ++
--- /var/tmp/diff_new_pack.Np18i8/_old  2019-01-26 22:25:14.014719028 +0100
+++ /var/tmp/diff_new_pack.Np18i8/_new  2019-01-26 22:25:14.018719025 +0100
@@ -17,14 +17,13 @@
 
 
 Name:   suse-prime
-Version:0.3
+Version:0.5
 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_prime-select.sh-bail-out-if-nvidia-xconfig-fails-use.patch
+Url:https://github.com/openSUSE/SUSEPrime
+Source0:

commit suse-prime for openSUSE:Factory

2019-01-15 Thread root
Hello community,

here is the log from the commit of package suse-prime for openSUSE:Factory 
checked in at 2019-01-15 09:16:47

Comparing /work/SRC/openSUSE:Factory/suse-prime (Old)
 and  /work/SRC/openSUSE:Factory/.suse-prime.new.28833 (New)


Package is "suse-prime"

Tue Jan 15 09:16:47 2019 rev:4 rq:664721 version:0.3

Changes:

--- /work/SRC/openSUSE:Factory/suse-prime/suse-prime.changes2019-01-11 
14:06:42.947725990 +0100
+++ /work/SRC/openSUSE:Factory/.suse-prime.new.28833/suse-prime.changes 
2019-01-15 09:16:48.758211087 +0100
@@ -1,0 +2,10 @@
+Fri Jan 11 16:45:45 UTC 2019 - sndir...@suse.com
+
+- U_prime-select.sh-bail-out-if-nvidia-xconfig-fails-use.patch 
+  * 'nvidia-xconfig --query-gpu-info' may easily fail due to missing
+NVIDIA kernel modules or alike. Therefore bail out in this case
+with exit 1.
+  * There could be more than one NVIDIA card/GPU in the system. Use
+the first detected one for X configuration in that case.
+
+---

New:

  U_prime-select.sh-bail-out-if-nvidia-xconfig-fails-use.patch



Other differences:
--
++ suse-prime.spec ++
--- /var/tmp/diff_new_pack.PJkbIt/_old  2019-01-15 09:16:49.190210686 +0100
+++ /var/tmp/diff_new_pack.PJkbIt/_new  2019-01-15 09:16:49.190210686 +0100
@@ -24,6 +24,7 @@
 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_prime-select.sh-bail-out-if-nvidia-xconfig-fails-use.patch
 Recommends: nvidia_driver
 Supplements:modalias(nvidia_driver:pci:v8086d*sv*sd*bc03sc*i*)
 Conflicts:  suse-prime-alt
@@ -36,6 +37,7 @@
 
 %prep
 %setup -n SUSEPrime-%{version}
+%patch0 -p1
 
 %build
 :

++ U_prime-select.sh-bail-out-if-nvidia-xconfig-fails-use.patch ++
>From 8be917026263539230b470e2c05cc46955e618c4 Mon Sep 17 00:00:00 2001
From: Stefan Dirsch 
Date: Fri, 11 Jan 2019 17:35:35 +0100
Subject: [PATCH] prime-select.sh: bail out if nvidia-xconfig fails; use PCI
 BusID of first NVIDIA GPU/card

'nvidia-xconfig --query-gpu-info' may easily fail due to missing NVIDIA
kernel modules or alike. Therefore bail out in this case with exit 1.

There could be more than one NVIDIA card/GPU in the system. Use the
first detected one for X configuration in that case.
---
 prime-select.sh | 8 +++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/prime-select.sh b/prime-select.sh
index de51c2b..6613328 100755
--- a/prime-select.sh
+++ b/prime-select.sh
@@ -27,7 +27,13 @@ case $type in
   clean_files 
 
   gpu_info=`nvidia-xconfig --query-gpu-info`
-  nvidia_busid=`echo "$gpu_info" |grep -i "PCI BusID"|sed 's/PCI BusID 
://'|sed 's/ //g'`
+  # This may easily fail, if no NVIDIA kernel module is available or alike
+  if [ $? -ne 0 ]; then
+ echo "PCI BusID of NVIDIA card could not be detected!"
+ exit 1
+  fi
+  # There could be more than on NVIDIA card/GPU; use the first one in that 
case
+  nvidia_busid=`echo "$gpu_info" |grep -i "PCI BusID"|head -n 1|sed 's/PCI 
BusID ://'|sed 's/ //g'`
   libglx_nvidia=`update-alternatives --list libglx.so|grep 
nvidia-libglx.so`
 
   update-alternatives --set libglx.so $libglx_nvidia
-- 
2.16.4




commit suse-prime for openSUSE:Factory

2019-01-11 Thread root
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.changes2019-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 - sndir...@suse.com
+
+- 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:v8086d*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.0 +0200
+++ new/SUSEPrime-0.3/README.md 2019-01-09 16:24:24.0 +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.0 +0200
+++ new/SUSEPrime-0.3/prime-select.sh   2019-01-09 16:24:24.0 +0100
@@ -5,6 +5,7 @@
 
 # Public domain by Bo Simonsen 
 # Adapted for OpenSUSE Tumbleweed by Michal Srb 
+# Extended for TUXEDO Computers by Vinzenz Vietzke 
 
 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' 

commit suse-prime for openSUSE:Factory

2019-01-10 Thread root
Hello community,

here is the log from the commit of package suse-prime for openSUSE:Factory 
checked in at 2019-01-10 15:23:30

Comparing /work/SRC/openSUSE:Factory/suse-prime (Old)
 and  /work/SRC/openSUSE:Factory/.suse-prime.new.28833 (New)


Package is "suse-prime"

Thu Jan 10 15:23:30 2019 rev:2 rq:664115 version:0.2

Changes:

--- /work/SRC/openSUSE:Factory/suse-prime/suse-prime.changes2018-11-13 
18:26:49.377154291 +0100
+++ /work/SRC/openSUSE:Factory/.suse-prime.new.28833/suse-prime.changes 
2019-01-10 15:23:30.674319895 +0100
@@ -1,0 +2,14 @@
+Wed Jan  9 15:20:02 UTC 2019 - sndir...@suse.com
+
+- U_Fixed-syntax-error-and-handled-not-yet-existing-conf.patch
+  * Fixed syntax error and handled not yet existing configurations
+
+---
+Wed Jan  9 14:41:24 UTC 2019 - sndir...@suse.com
+
+- U_adding-query-switch.patch
+  * adding "query" switch (boo#1121246)
+  * removing line from xorg-nvidia.conf, which is not needed
+anymore and prevents use of external displays
+
+---

New:

  U_Fixed-syntax-error-and-handled-not-yet-existing-conf.patch
  U_adding-query-switch.patch



Other differences:
--
++ suse-prime.spec ++
--- /var/tmp/diff_new_pack.2HVGRD/_old  2019-01-10 15:23:31.502319039 +0100
+++ /var/tmp/diff_new_pack.2HVGRD/_new  2019-01-10 15:23:31.502319039 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package suse-prime
 #
-# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2019 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
@@ -20,10 +20,12 @@
 Version:0.2
 Release:0
 Summary:GPU (nvidia/intel) selection for NVIDIA optimus laptops
-Group:  System/X11/Utilities
 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:v8086d*sv*sd*bc03sc*i*)
 Conflicts:  suse-prime-alt
@@ -36,6 +38,8 @@
 
 %prep
 %setup -n SUSEPrime-%{version}
+%patch0 -p1
+%patch1 -p1
 
 %build
 :
@@ -44,6 +48,7 @@
 mkdir -p %{buildroot}%{_sysconfdir}/prime
 install -m 0644 xorg-intel.conf %{buildroot}%{_sysconfdir}/prime/
 install -m 0644 xorg-nvidia.conf %{buildroot}%{_sysconfdir}/prime/
+echo   "undefined" > %{buildroot}%{_sysconfdir}/prime/current_type
 install -D -m 0755 prime-select.sh %{buildroot}%{_sbindir}/prime-select
 
 %files
@@ -52,6 +57,7 @@
 %{_sysconfdir}/prime
 %config %{_sysconfdir}/prime/xorg-intel.conf
 %config %{_sysconfdir}/prime/xorg-nvidia.conf
+%config(noreplace) %{_sysconfdir}/prime/current_type
 %{_sbindir}/prime-select
 
 %changelog

++ U_Fixed-syntax-error-and-handled-not-yet-existing-conf.patch ++
>From dc294b55184b4591e0b20e70d17d5ab6595a68d8 Mon Sep 17 00:00:00 2001
From: Stefan Dirsch 
Date: Wed, 9 Jan 2019 16:12:32 +0100
Subject: [PATCH] Fixed syntax error and handled not yet existing
 configurations

---
 prime-select.sh | 9 -
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/prime-select.sh b/prime-select.sh
index fe74b3c..de51c2b 100755
--- a/prime-select.sh
+++ b/prime-select.sh
@@ -51,7 +51,14 @@ case $type in
   echo "intel" > /etc/prime/current_type
   ;;
   query)
-  echo "Currently running: " && cat /etc/prime/current_type
+  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 "Usage: prime-select nvidia|intel|query"
   exit
-- 
2.16.4

++ U_adding-query-switch.patch ++
>From 32aeb7bba068b0247d56ac4281fb5c567e5da39f Mon Sep 17 00:00:00 2001
From: Vinzenz Vietzke 
Date: Wed, 28 Nov 2018 22:03:27 +0100
Subject: [PATCH] * adding "query" switch * removing line from xorg-nvidia.conf
 which is not needed anymore and prevents use of external displays

---
 README.md|  1 +
 prime-select.sh  | 17 -
 xorg-nvidia.conf |  1 -
 3 files changed, 17 insertions(+), 2 deletions(-)

diff --git a/README.md b/README.md
index 304a76c..004cc96 100644
--- a/README.md
+++ b/README.md
@@ -14,6 +14,7 @@ Installation/usage
 1. Run "prime-select