Advertisement
Lekensteyn

test vga_switcheroo patch for nouveau

Dec 17th, 2011
233
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.80 KB | None | 0 0
  1. **Instructions for testing the patch**
  2. Apply the patch against the sources of the current kernel version:
  3.  
  4. apt-get source linux-image-$(uname -r)
  5. cd linux-*
  6. cp /usr/src/linux-headers-$(uname -r)/Module.symvers .
  7. make oldconfig && make prepare && make scripts
  8. wget http://lekensteyn.nl/files/nouveau-switcheroo-optimus.patch
  9. patch -p1 < nouveau-switcheroo-optimus.patch
  10. make M=drivers/gpu/drm/nouveau
  11.  
  12. Load module dependencies, unload old, load new:
  13. sudo modprobe -v nouveau
  14. sudo rmmod nouveau
  15. sudo insmod drivers/gpu/drm/nouveau/nouveau.ko
  16.  
  17. Make the module work across reboots:
  18. sudo cp drivers/gpu/drm/nouveau/nouveau.ko /lib/modules/$(uname -r)/kernel/drivers/gpu/drm/nouveau/
  19. sudo update-initramfs -u
  20.  
  21. This won't persist between kernel upgrades, for that use DKMS
  22. (or re-apply these instructions)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement