I' ve this problem.
I've an Asus N56JN with NVIDIA® GeForce® GT 840M 2GB/4GB DDR3 and also an intel 4000 integrated.
I've Linux Mint 17 cinnamon.
I've installed the nVidia Driver, and the X Server Settings.
When I plug in the hdmi cable, the problems start.
I need to plug in it 3 o more times to show images in both monitors.
The cable is perfect, it works fine on windows and the same notebook.
But when I try to set the external monitor as a primary display to move the cinnamon panel something goes wrong.
How to disable the intel cpu ?
Some information to help you
sudo xrandr --output HDMI-1-0 --primary
X Error of failed request: BadMatch (invalid parameter attributes)
Major opcode of failed request: 140 (RANDR)
Minor opcode of failed request: 30 (RRSetOutputPrimary)
Serial number of failed request: 33
Current serial number in output stream: 35
GNU nano 2.2.6 File: /etc/X11/xorg.conf
# nvidia-settings: X configuration file generated by nvidia-settings
# nvidia-settings: version 340.24 (buildd@wani05) Wed Jul 9 05:48:13 UTC 2014
Section "ServerLayout"
Identifier "Layout0"
Screen 0 "Screen0" 0 0
InputDevice "Keyboard0" "CoreKeyboard"
InputDevice "Mouse0" "CorePointer"
Option "Xinerama" "0"
EndSection
Section "Files"
EndSection
Section "InputDevice"
# generated from default
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "auto"
Option "Device" "/dev/psaux"
Option "Emulate3Buttons" "no"
Option "ZAxisMapping" "4 5"
EndSection
Section "InputDevice"
# generated from default
Identifier "Keyboard0"
Driver "kbd"
EndSection
Section "Device"
Identifier "Device0"
Driver "nvidia"
VendorName "NVIDIA Corporation"
BoardName "GeForce 840M"
EndSection
Section "Screen"
Identifier "Screen0"
Device "Device0"
DefaultDepth 24
Option "UseDisplayDevice" "none"
SubSection "Display"
Virtual 3840 1107
Depth 24
EndSubSection
EndSection
I think the problem is here.xrandr --query
Screen 0: minimum 8 x 8, current 3840 x 1107, maximum 16384 x 16384
eDP-1-0 connected 1920x1080+1920+0 344mm x 194mm
1920x1080 60.1*+ 59.9
1680x1050 60.0 59.9
1600x1024 60.2
1400x1050 60.0
1280x1024 60.0
1440x900 59.9
1280x960 60.0
1360x768 59.8 60.0
1152x864 60.0
1024x768 60.0 60.0
960x720 60.0
928x696 60.1
896x672 60.0
960x600 60.0
960x540 60.0
800x600 60.0 60.3 56.2
840x525 60.0 59.9
800x512 60.2
700x525 60.0
640x512 60.0
720x450 59.9
640x480 60.0 59.9
680x384 59.8 60.0
576x432 60.1
512x384 60.0
400x300 60.3 56.3
320x240 60.1
VGA-1-0 disconnected
HDMI-1-0 connected 1920x1080+0+27 510mm x 287mm
1920x1080 60.0*+ 50.0 59.9
1920x1080i 60.1 50.0 60.0
1600x1200 60.0
1680x1050 59.9
1280x1024 60.0
1440x900 59.9
1280x960 60.0
1280x720 60.0 50.0 59.9
1440x576i 50.1
1024x768 60.0
1440x480i 60.1 60.1
800x600 60.3
720x576 50.0
720x480 60.0 59.9
640x480 60.0 59.9
720x400 70.1
Thank you in advancelspci | grep -i vga
00:02.0 VGA compatible controller: Intel Corporation 4th Gen Core Processor Integrated Graphics Controller (rev 06)