Running ubuntu 12.10 on a dell XPS15. To disable the second GPU on my laptop i used this code in my rc.local file (/etc/rc.local):
OFF > /sys/kernel/debug/vgaswitcheroo/switch
This code is doing its job just fine, but when i shutdown or reboot the pc (both with terminal commands and with the buttons in the top right) the GUI disappears and i am stuck with just the wallpaper and my laptop does not power down.
Does anyone know how to fix the this?