~ubuntu-branches/ubuntu/wily/sddm/wily

« back to all changes in this revision

Viewing changes to debian/patches/kubuntu_nvidia-prime.diff

  • Committer: Package Import Robot
  • Author(s): Jonathan Riddell
  • Date: 2015-04-02 16:07:55 UTC
  • Revision ID: package-import@ubuntu.com-20150402160755-carqoc22tzmyckuq
Tags: 0.11.0-0ubuntu7
Add kubuntu_nvidia-prime.diff to run nvidia-prime setup script at
login

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
Description: run nvidia-prime setup on login
 
2
Author: Jonathan Riddell <jriddell@ubuntu.com>
 
3
Origin: me
 
4
Bug: https://bugs.launchpad.net/ubuntu/+source/nvidia-prime/+bug/1428328
 
5
Bug-SDDM: https://github.com/sddm/sddm/issues/393
 
6
Forwarded: yes, although it's not very elegant so may not be accepted
 
7
Last-Update: 2015-04-02
 
8
---
 
9
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
 
10
Index: sddm-0.11.0/data/scripts/Xsetup
 
11
===================================================================
 
12
--- sddm-0.11.0.orig/data/scripts/Xsetup
 
13
+++ sddm-0.11.0/data/scripts/Xsetup
 
14
@@ -1,3 +1,7 @@
 
15
 #!/bin/sh
 
16
 # Xsetup - run as root before the login dialog appears
 
17
 
 
18
+if [ -e /sbin/prime-offload ]; then
 
19
+    echo running NVIDIA Prime setup /sbin/prime-offload, you will need to manually run /sbin/prime-switch to shut down
 
20
+    /sbin/prime-offload
 
21
+fi