Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- **Instructions for testing the patch**
- Upgrade xorg/nouveau and the kernel from xorg-edgers:
- sudo add-apt-repository ppa:xorg-edgers/ppa
- sudo apt-get update && sudo apt-get dist-upgrade
- Install kernel 3.2. The current version is 3.2.0-5:
- sudo apt-get install linux-{image,headers}-3.2.0-5-generic
- Reboot
- Apply the patch against the sources of the current kernel version:
- apt-get source linux-image-$(uname -r)
- cd linux-*
- cp /usr/src/linux-headers-$(uname -r)/Module.symvers .
- make oldconfig && make prepare && make scripts
- wget http://lekensteyn.nl/files/nouveau-switcheroo-optimus.patch
- patch -p1 < nouveau-switcheroo-optimus.patch
- make M=drivers/gpu/drm/nouveau
- Load module dependencies, unload old, load new:
- sudo modprobe -v nouveau
- sudo rmmod nouveau
- sudo insmod drivers/gpu/drm/nouveau/nouveau.ko
- Make the module work across reboots:
- sudo cp drivers/gpu/drm/nouveau/nouveau.ko /lib/modules/$(uname -r)/kernel/drivers/gpu/drm/nouveau/
- sudo update-initramfs -u
- This won't persist between kernel upgrades, for that use DKMS
- (or re-apply these instructions)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement