Differences

This shows you the differences between two versions of the page.

Link to this comparison view

ubuntu_11.04_on_asus_pro_36j [10.11.2011 23:49]
Pascal Suter created
ubuntu_11.04_on_asus_pro_36j [02.08.2013 18:16] (current)
Pascal Suter
Line 1: Line 1:
-====== ubuntu ​11.04 on asus pro 36j ====== +====== ubuntu on asus pro 36j ====== 
-**this is not yet completed**+
  
 ===== nvidia card ===== ===== nvidia card =====
Line 68: Line 68:
   sudo chmod 755 /​etc/​kernel/​postinst.d/​acpi-call   sudo chmod 755 /​etc/​kernel/​postinst.d/​acpi-call
  
-===== fix suspend =====+===== fix suspend ​(ubuntu < 12.04 only) ===== 
 +**This is only valid if you have an ubutu version older than 12.04 or if your 12.04 does not have the most recent updates. with the curren updates (August 1st 2013) the usb suspend fix is not working anymore and therefore breaks suspend once again. at least with 13.04 the usb ports suspend correctly without any further modifications,​ so you can skip this and only do the suspend fix for the nvidia card (see "​ubuntu >= 12.04"​)**
 the other annoying thing is that suspend is not working correctly.. luckily the same article as above provides a fix for that too:  the other annoying thing is that suspend is not working correctly.. luckily the same article as above provides a fix for that too: 
 create a script that will disable the usb ports and re-enable the nvidia card prior to suspending the computer.. the nvidia card needs to be re-enabled because otherwhise it will become impossible to switch it off again after two resumes.. ​ create a script that will disable the usb ports and re-enable the nvidia card prior to suspending the computer.. the nvidia card needs to be re-enabled because otherwhise it will become impossible to switch it off again after two resumes.. ​
Line 85: Line 86:
             echo -n $bus | tee /​sys/​bus/​pci/​drivers/​ehci_hcd/​unbind             echo -n $bus | tee /​sys/​bus/​pci/​drivers/​ehci_hcd/​unbind
         done         done
 +        # switch off USB 3 bus
 +        # comment out if usb3 is not working yet with your ubuntu version
 +        echo -n "​0000:​07:​00.0"​ | tee /​sys/​bus/​pci/​drivers/​xhci_hcd/​unbind
         # Switch nvidia card on before going to sleep, avoids the "​constant on"         # Switch nvidia card on before going to sleep, avoids the "​constant on"
         # bug that occurs after 2 suspend/​resume cycles (thanks kos888)         # bug that occurs after 2 suspend/​resume cycles (thanks kos888)
Line 94: Line 98:
             echo -n $bus | tee /​sys/​bus/​pci/​drivers/​ehci_hcd/​bind             echo -n $bus | tee /​sys/​bus/​pci/​drivers/​ehci_hcd/​bind
         done         done
 +        # switch that usb3 port back on:
 +        # comment out if usb3 is not working yet with your ubuntu version ​
 +        echo -n "​0000:​07:​00.0"​ | tee /​sys/​bus/​pci/​drivers/​xhci_hcd/​bind
         echo '​\_SB.PCI0.PEG1.GFX0._OFF'​ > /​proc/​acpi/​call         echo '​\_SB.PCI0.PEG1.GFX0._OFF'​ > /​proc/​acpi/​call
         ;;         ;;
 esac esac
 </​code>​ </​code>​
-**NOTE** right now it is not necessary to disable the USB 3.0 Port too because it is not working anyways.. but maybe in the future it might be necessary to add it to the busses too:  
-  BUSES="​0000:​00:​1a.0 0000:​00:​1d.0 0000:​07:​00.0"​ 
 now make the file executable: ​ now make the file executable: ​
   sudo chmod 755 /​etc/​pm/​sleep.d/​20_custom-asus-pro36jc   sudo chmod 755 /​etc/​pm/​sleep.d/​20_custom-asus-pro36jc
 +===== fix suspend ubuntu >= 12.04 =====
 +haven'​t tested this with the current updated version of 12.04 or 12.10 but with 13.04 usb suspend works out of the box. so the only thing that's needed to do now is to turn the nvidia card on before supsend and turn it off after supsend in order not to run into any problems on resuming.. maybe that's not even necessary anymore, but i did it anyway :) 
 +so the above /​etc/​pm/​sleep.d/​20_custom-asus-pro36jc file should only contain this script: ​
 +<​code>​
 +#!/bin/sh
 +case "​${1}"​ in
 +    hibernate|suspend)
 +        # Switch nvidia card on before going to sleep, avoids the "​constant on"
 +        # bug that occurs after 2 suspend/​resume cycles (thanks kos888)
 +        echo '​\_SB.PCI0.PEG1.GFX0._ON'​ > /​proc/​acpi/​call
 +        ;;
 +    resume|thaw)
 +        echo '​\_SB.PCI0.PEG1.GFX0._OFF'​ > /​proc/​acpi/​call
 +        ;;
 +esac
 +</​code>​
 +make it executable as described above and you are good to go..