i am still working on my dell 7520 and the hybrid graphic system, ubuntu seems to have trouble with. my laptop freezes on resume from suspend when my integrated card is runnung.with the discrete card it works fine. as described here https://help.ubuntu.com//community/HybridGraphics i made that hook file in the /etc/pm/sleep.d. but it doesnt work for me. ubuntu throws me back to the login screen. i have to switch on the discrete manually everytime i want to suspend the system. how can i fix that? any help? the var/log says the following:
/etc/pm/sleep.d/10_unattended-upgrades-hibernate suspend suspend: success. Running hook /etc/pm/sleep.d/11_switcheroo_suspend suspend suspend: /etc/pm/sleep.d/11_switcheroo_suspend: 7: /etc/pm/sleep.d/11_switcheroo_suspend: [[: >not found
/etc/pm/sleep.d/11_switcheroo_suspend suspend suspend: Returned exit code 1.