SHOW:
|
|
- or go back to the newest paste.
1 | **Instructions for testing the patch** | |
2 | ||
3 | Upgrade xorg/nouveau and the kernel from xorg-edgers: | |
4 | ||
5 | sudo add-apt-repository ppa:xorg-edgers/ppa | |
6 | sudo apt-get update && sudo apt-get dist-upgrade | |
7 | ||
8 | Install kernel 3.2. The current version is 3.2.0-5: | |
9 | ||
10 | - | sudo apt-get install linux-image-3.2.0-5-generic |
10 | + | sudo apt-get install linux-{image,headers}-3.2.0-5-generic |
11 | ||
12 | ||
13 | Reboot | |
14 | ||
15 | ||
16 | Apply the patch against the sources of the current kernel version: | |
17 | ||
18 | apt-get source linux-image-$(uname -r) | |
19 | cd linux-* | |
20 | cp /usr/src/linux-headers-$(uname -r)/Module.symvers . | |
21 | make oldconfig && make prepare && make scripts | |
22 | wget http://lekensteyn.nl/files/nouveau-switcheroo-optimus.patch | |
23 | patch -p1 < nouveau-switcheroo-optimus.patch | |
24 | make M=drivers/gpu/drm/nouveau | |
25 | ||
26 | ||
27 | ||
28 | Load module dependencies, unload old, load new: | |
29 | ||
30 | sudo modprobe -v nouveau | |
31 | sudo rmmod nouveau | |
32 | sudo insmod drivers/gpu/drm/nouveau/nouveau.ko | |
33 | ||
34 | Make the module work across reboots: | |
35 | ||
36 | sudo cp drivers/gpu/drm/nouveau/nouveau.ko /lib/modules/$(uname -r)/kernel/drivers/gpu/drm/nouveau/ | |
37 | ||
38 | sudo update-initramfs -u | |
39 | ||
40 | ||
41 | ||
42 | This won't persist between kernel upgrades, for that use DKMS | |
43 | ||
44 | (or re-apply these instructions) |