Advertisement
Mythek

Ubuntu Lenovo y500(580) Youtube vid Coding

Sep 26th, 2012
1,730
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Youtube Video URL
  2. Part 1: http://youtu.be/Hh3JNYBygUQ
  3. Part 2: http://youtu.be/cHCh-b5L1xw
  4.  
  5. I am not liable for any damages to you or your computer if you follow these instructions
  6. if you need help send an email to "XsoundXhoundX@gmail.com" with the subject line "Help"
  7. I DID NOT make any of this and DO NOT take credit for it
  8. ----------------------------------------------------------------------------------------------
  9.  
  10. Ethernet Fix
  11. http://ubuntuforums.org/showthread.php?t=2050126 -Source Website
  12.  
  13. Terminal Code (copy to Terminal)
  14. ----------------------------------------------------------------------------------------------
  15.  
  16. sudo apt-get install linux-headers-generic build-essential
  17. wget http://www.orbit-lab.org/kernel/compat-wireless-3-stable/v3.5/compat-wireless-3.5.1-1-snpc.tar.bz2
  18. tar -xf compat-wireless-3.5.1-1-snpc.tar.bz2
  19. cd compat-wireless-3.5.1-1-snpc
  20. ./scripts/driver-select alx
  21. make
  22. sudo make install
  23. sudo modprobe alx
  24.  
  25. ----------------------------------------------------------------------------------------------
  26.  
  27. Ethernet Clean Up (make a new text file)
  28.  
  29. ----------------------------------------------------------------------------------------------
  30. cd Desktop
  31. tar -xf compat-wireless-3.5.1-1-snpc.tar.bz2
  32. cd compat-wireless-3.5.1-1-snpc
  33. ./scripts/driver-select alx
  34. make
  35. sudo make install
  36. sudo modprobe alx
  37. ----------------------------------------------------------------------------------------------
  38.  
  39. Hibernate Fix
  40. http://askubuntu.com/questions/94754/how-to-enable-hibernation-in-12-04 -Source Website
  41.  
  42. ----------------------------------------------------------------------------------------------
  43.  
  44. gksudo gedit etc/polkit-1/localauthority/50-local.d/com.ubuntu.enable-hibernate.pkla
  45.  
  46. -------------->paste:
  47.  
  48. [Re-enable hibernate by default]
  49. Identity=unix-user:*
  50. Action=org.freedesktop.upower.hibernate
  51. ResultActive=yes
  52. -------------->SAVE!!!
  53.  
  54. --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
  55.  
  56. Enable OpenGL Part 1
  57. http://eternalvoid.net/tutorials/linux-optimus-gt650m/ -Source Website
  58.  
  59. ----------------------------------------------------------------------------------------------
  60.  
  61. First, add some unofficial Ubuntu repositories:
  62.  
  63. ----------------------------------------------------------------------------------------------
  64.  
  65. sudo add-apt-repository ppa:bumblebee/stable
  66. sudo add-apt-repository ppa:ubuntu-x-swat/x-updates
  67.  
  68. ----------------------------------------------------------------------------------------------
  69.  
  70. Update your system:
  71.  
  72. ----------------------------------------------------------------------------------------------
  73.  
  74. sudo apt-get update
  75. sudo apt-get upgrade
  76.  
  77. ----------------------------------------------------------------------------------------------
  78.  
  79. Install some software:
  80.  
  81. ----------------------------------------------------------------------------------------------
  82.  
  83. sudo apt-get install build-essential ia32-libs git automake autoconf libtool virtualgl virtualgl-libs virtualgl-libs-ia32 bbswitch-dkms
  84. sudo apt-get build-dep bumblebee bumblebee-nvidia
  85.  
  86. ----------------------------------------------------------------------------------------------
  87.  
  88. Download a specific version of the NVidia official Linux proprietary driver (version 304.22b or newer). Get the 64-bit driver here:
  89. http://www.nvidia.com/object/linux-display-amd64-304.22-driver.html
  90. or get the 32-bit driver here:
  91. http://www.nvidia.com/object/linux-display-ia32-304.22-driver.html
  92. If you don't know whether you need a 64-bit or 32-bit driver, you should probably learn a lot of things about computers before proceeding any further with these instructions.
  93. ---
  94.  
  95. Check if the nouveau kernel module is loaded:
  96.  
  97. ----------------------------------------------------------------------------------------------
  98. lsmod | grep nouveau
  99. ----------------------------------------------------------------------------------------------
  100.  
  101. If you see any output from that command, blacklist the nouveau module, otherwise skip the next two lines:
  102.  
  103. ----------------------------------------------------------------------------------------------
  104. sudo su -
  105. echo "blacklist nouveau" >> /etc/modprobe.d/blacklist.conf
  106. ----------------------------------------------------------------------------------------------
  107.  
  108. Also blacklist the nvidia module because we don't want it starting automatically:
  109.  
  110. ----------------------------------------------------------------------------------------------
  111. echo "blacklist nvidia" >> /etc/modprobe.d/blacklist.conf
  112. ----------------------------------------------------------------------------------------------
  113.  
  114. If you had to blacklist nouveau, reboot to make sure nouveau doesn't get loaded on startup:
  115. reboot
  116. ---
  117.  
  118. Once you're back on, check if the module was successfully blacklisted:
  119.  
  120. ----------------------------------------------------------------------------------------------
  121. lsmod | grep nouveau
  122. ----------------------------------------------------------------------------------------------
  123.  
  124. If the last command outputs nothing, you're good to continue. If instead you see some references to nouveau, then you haven't blacklisted the module properly and the method for doing so may be different on your system. Please make sure you've blacklisted nouveau before continuing past this point.
  125. ---
  126.  
  127. Give the NVidia driver installer the execute permission:
  128.  
  129. ----------------------------------------------------------------------------------------------
  130. chmod 755 ~/Downloads/NVIDIA-Linux-x86_64-304.22.run
  131. ----------------------------------------------------------------------------------------------
  132.  
  133. Now start the NVidia driver installer with some special command line arguments. ----->The arguments are super-important, and if you do this part wrong you'll break your existing OpenGL install, possibly not fixable without reinstalling your operating system<--------!!:
  134.  
  135. ----------------------------------------------------------------------------------------------
  136. sudo ~/Downloads/./NVIDIA-Linux-x86_64-304.22.run --no-recursion --no-rpms --no-distro-scripts --no-x-check --dkms --x-prefix=/usr/nvidia --x-module-path=/usr/lib/xorg/nvidia/modules --x-library-path=/usr/nvidia/lib --opengl-prefix=/usr/nvidia --utility-prefix=/usr/nvidia --documentation-prefix=/usr/nvidia -e -q
  137. ----------------------------------------------------------------------------------------------
  138.  
  139. During the install some errors may be reported, but this should be okay, and so long as the install completes successfully there's nothing to worry about.
  140. ---
  141.  
  142. Copy the 32-bit libraries into the right place (this only applies to 64-bit installations):
  143.  
  144. ----------------------------------------------------------------------------------------------
  145. sudo mkdir -p /usr/nvidia/lib32
  146. sudo cp -a /usr/lib32/* /usr/nvidia/lib32
  147. ----------------------------------------------------------------------------------------------
  148.  
  149. Reboot:
  150.  
  151. ----------------------------------------------------------------------------------------------
  152. sudo reboot
  153. ----------------------------------------------------------------------------------------------
  154.  
  155. Get the bumblebee git repository (because for the GT650M you need Bumblebee version 3.0.1 or newer):
  156.  
  157. ----------------------------------------------------------------------------------------------
  158. mkdir -p ~/src
  159. cd src
  160. git clone https://github.com/Bumblebee-Project/Bumblebee.git
  161. ----------------------------------------------------------------------------------------------
  162.  
  163. Configure, compile, install, and set up Bumblebee:
  164.  
  165. ----------------------------------------------------------------------------------------------
  166. cd Bumblebee
  167. git checkout v3.0.1
  168. autoreconf -fi
  169. ./configure --prefix=/usr --sysconfdir=/etc CONF_DRIVER=nvidia CONF_DRIVER_MODULE_NVIDIA=nvidia CONF_LDPATH_NVIDIA=/usr/nvidia/lib:/usr/nvidia/lib32:/usr/lib/xorg/nvidia/modules/drivers:/usr/lib/xorg/nvidia/modules/extensions:/usr/lib/xorg/nvidia/modules:/usr/lib/xorg/modules:/usr/lib/xorg/modules/drivers:/usr/lib/xorg/modules/extensions CONF_MODPATH_NVIDIA=/usr/lib/xorg/nvidia/modules/drivers,/usr/lib/xorg/nvidia/modules,/usr/lib/xorg/modules
  170. make
  171. sudo make install
  172. sudo groupadd bumblebee
  173. sudo addgroup _your_username_here_ bumblebee
  174. ----------------------------------------------------------------------------------------------
  175.  
  176. ---------------------------------->Make sure you change _your_username_here_ above to your actual Linux regular user account name.<--------------------------------------------------
  177. ---
  178.  
  179. Configure your system to start bumblebeed during bootup. This procedure may need to be different on non-Debian-based Linux distributions:
  180.  
  181. ----------------------------------------------------------------------------------------------
  182. sudo cp -a scripts/sysvinit/bumblebeed /etc/init.d
  183. sudo chmod 755 /etc/init.d/bumblebeed
  184. cd /etc/rc2.d
  185. sudo ln -s ../init.d/bumblebeed S20bumblebeed
  186. ----------------------------------------------------------------------------------------------
  187.  
  188. Rename an NVidia X server module to keep it from being loaded through bumblebee, because X really needs to load the stock version instead to work properly:
  189.  
  190. ----------------------------------------------------------------------------------------------
  191. sudo mv /usr/lib/xorg/nvidia/modules/libwfb.so /usr/lib/xorg/nvidia/modules/libwfb.so.bak
  192. ----------------------------------------------------------------------------------------------
  193.  
  194. Reboot:
  195.  
  196. ----------------------------------------------------------------------------------------------
  197. sudo reboot
  198. ----------------------------------------------------------------------------------------------
  199.  
  200. You should try changing a setting in your xorg.conf.nvidia like this:
  201.  
  202. ----------------------------------------------------------------------------------------------
  203. sudo gedit /etc/bumblebee/xorg.conf.nvidia
  204. ----------------------------------------------------------------------------------------------
  205.  
  206. Change:
  207. Option "ConnectedMonitor" "DFP"
  208. to
  209. Option "ConnectedMonitor" "CRT"
  210. ----------------------------------------------------------------------------------------------
  211. ----------------------------------------------------------------------------------------------
  212.  
  213. Enable OpenGL part 2
  214. https://github.com/Bumblebee-Project/bbswitch/tree/hack-lenovo -Source Website
  215.  
  216. ----------------------------------------------------------------------------------------------
  217.  
  218. Until this kernel bug is fixed, you need to apply an ugly hack on these laptops to make bbswitch and the driver (both nouveau and nvidia) work. For now I have decided not to put the hack in the bbswitch module since it is a very ugly hack that is comparable to writing a maximum allowable speed of 130 km/h on a traffic sign for a road where 120 km/h is allowed just because the radar gun does not work properly.
  219. ---
  220.  
  221. The module has been tested on a Lenovo IdeaPad Y570 running an up-to-date version of Ubuntu 11.10 Oneiric (64-bit) with Bumblebee 3.0 (3.0-1~oneiricppa2) installed using the nvidia driver.
  222. ---
  223.  
  224. To make use of it, use the hack-lenovo branch. An example using DKMS:
  225.  
  226. ----------------------------------------------------------------------------------------------
  227. git clone git://github.com/Bumblebee-Project/bbswitch.git -b hack-lenovo
  228. cd bbswitch
  229. sudo mkdir /usr/src/acpi-handle-hack-0.0.1
  230. sudo cp Makefile acpi-handle-hack.c /usr/src/acpi-handle-hack-0.0.1
  231. sudo cp dkms/acpi-handle-hack.conf /usr/src/acpi-handle-hack-0.0.1/dkms.conf
  232. sudo dkms add acpi-handle-hack/0.0.1
  233. sudo dkms build acpi-handle-hack/0.0.1
  234. sudo dkms install acpi-handle-hack/0.0.1
  235. ----------------------------------------------------------------------------------------------
  236.  
  237. If everything goes well, you now need to get the hack loaded on boot. On Ubuntu and Debian, this can be done with:
  238.  
  239. ----------------------------------------------------------------------------------------------
  240. echo acpi-handle-hack | sudo tee -a /etc/modules
  241. sudo update-initramfs -u
  242. ----------------------------------------------------------------------------------------------
  243.  
  244. Reboot:
  245.  
  246. ----------------------------------------------------------------------------------------------
  247. sudo reboot
  248. ----------------------------------------------------------------------------------------------
  249. ----------------------------------------------------------------------------------------------
  250.  
  251. OpenGL Usage
  252. https://github.com/Bumblebee-Project/bbswitch/tree/hack-lenovo -Source Website
  253.  
  254. ----------------------------------------------------------------------------------------------
  255.  
  256. Commands:
  257.  
  258. ----------------------------------------------------------------------------------------------
  259. ----------------------------------------------------------------------------------------------
  260.  
  261. Check :
  262.  
  263. ----------------------------------------------------------------------------------------------
  264. sudo cat /proc/acpi/bbswitch
  265. ----------------------------------------------------------------------------------------------
  266.  
  267. Turn OpenGL Hack On:
  268.  
  269. ----------------------------------------------------------------------------------------------
  270. sudo tee /proc/acpi/bbswitch <<<ON
  271. ----------------------------------------------------------------------------------------------
  272.  
  273. Turn OpenGL Hack Off
  274.  
  275. ----------------------------------------------------------------------------------------------
  276. sudo tee /proc/acpi/bbswitch <<<OFF
  277. ----------------------------------------------------------------------------------------------
  278. ----------------------------------------------------------------------------------------------
  279. ----------------------------------------------------------------------------------------------
  280.  
  281. Open GL Files To Make <Optional>
  282.  
  283. ----------------------------------------------------------------------------------------------
  284. sudo cat /proc/acpi/bbswitch
  285.  
  286. optirun glxspheres <optional>
  287. ----------------------------------------------------------------------------------------------
  288. ----------------------------------------------------------------------------------------------
  289.  
  290. Open GL add commands to terminal
  291. ---
  292.  
  293. Go to your Home folder and git Control+H double click on .bashrc open with gedit and add
  294.  
  295. ----------------------------------------------------------------------------------------------
  296. alias openglcheck='sudo cat /proc/acpi/bbswitch'
  297. alias openglon='sudo tee /proc/acpi/bbswitch <<<ON'
  298. alias opengloff='sudo tee /proc/acpi/bbswitch <<<OFF'
  299. ----------------------------------------------------------------------------------------------
  300.  
  301. ----------> TO THE TOP!!!<---------
  302. ---
  303.  
  304. Terminal commands are
  305. ---
  306.  
  307. openglcheck (check to see if hack is on)
  308. openglon (turn hack on)
  309. opengloff (turn hack off)
  310.  
  311. ----------------------------------------------------------------------------------------------
  312. ----------------------------------------------------------------------------------------------
  313. ||||||||\\\\ ////||||||||||||||||||||||||||||||| |||||| //////
  314. ||||||||\\\\\ /////||||||||||||||||||||||||||||||| |||||| //////
  315. ||||||||\\\\\\ //////||||||| ||||||| |||||| |||||| //////
  316. |||||||| \\\\\\ ////// ||||||| ||||||| |||||| |||||| //////
  317. |||||||| \\\\\////// ||||||| ||||||| |||||| |||| ||||||//////
  318. |||||||| \\\//// ||||||| ||||||| |||||| |||||||| |||||||||||||||||||\\\\\\
  319. |||||||| \\\\\\\ ||||||| ////// ||||||| |||||||||||||||| ||||||||||||||||||| \\\\\\
  320. |||||||| \\\\\\\ |||||||////// ||||||| ||||||||||||||||| |||| |||||| \\\\\\
  321. |||||||| \\\\\\\||||||////// ||||||| ||||||| ||||||| |||| |||||| \\\\\\
  322. \\\\\\\ ////// ||||||| |||||| ||||||||||||||||
  323. \\\\\\\ ////// ||||||||
  324. \\\\\\\////// ||||
  325. \\\\/////// ||||
  326. \\/////// ||||||||||||||
  327. /////// |||||||||||||||
  328. ///////
  329. ///////
  330. ///////
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement