[vgaswitcheroo] Problem with card Intel/ATI
(Sorry for my english.)
I have buy a laptop (HP Pavilion dv7-6090ef) with 2 graphics cards
The result of the command "cat /sys/kernel/debug/vgaswitcheroo/switch" is
If i use the command "echo OFF > /sys/kernel/debug/vgaswitcheroo/switch", the result is :
If i use the command "echo DIS > /sys/kernel/debug/vgaswitcheroo/switch", the laptop freeze. The /var/log/messages :
kernel: [ 51.431992] fbcon: Remapping primary device, fb0, to tty 1-63
kernel: [ 51.432259] i915: switched off
kernel: [ 65.405216] SysRq : Emergency Sync
The kernel : 2.6.38-gentoo-r6 and 2.6.39-gentoo.
I don't understand why the laptop frozen.
Well, there's your problem
Well, there's your problem. DIS tells the kernel to immediately switch the card in use, so the display is still pointing at the other one. Instead of DIS, use DDIS (Delayed DIScrete), which will wait until the X server is restarted to switch the card in use. At present, it is impossible to seamlessly switch between the cards in linux. To restart the X server, either simply logout (if you're using gdm), restart your display manager, or hit Ctrl + Alt + Delete (if that shortcut is enabled)
Originally Posted by Ackak