Cannot set primary Display. Asus N56JN ( Intel + nVidia)

Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
carnauser

Cannot set primary Display. Asus N56JN ( Intel + nVidia)

Post by carnauser »

Hi
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

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
I think the problem is here.
lspci | grep -i vga
00:02.0 VGA compatible controller: Intel Corporation 4th Gen Core Processor Integrated Graphics Controller (rev 06)
Thank you in advance
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
nomko

Re: Cannot set primary Display. Asus N56JN ( Intel + nVidia)

Post by nomko »

In most cases when you have an onboard GPU device, you have to turn off that onboard GPU device in your BIOS. Is it possible for you to access your system BIOS and disable your onboard Intel GPU?
carnauser

Re: Cannot set primary Display. Asus N56JN ( Intel + nVidia)

Post by carnauser »

I've UEFI not a Bios .... I don't think I'll find that option.
But I've found This :

http://ubuntuforums.org/showthread.php?t=2147607

This solved the problem of the primary dispaly, but I think that there are still some problem in my configuration.
Infact if I plug in the cable when the computer is off, I cinnamon will enter in safe mode.
If I plug in the cable after login, only one screen will turn on.
If I plug in the cable 1 minute after the login the screen is used correctly.

This is very bad.

How can I disable the intel ?
nomko

Re: Cannot set primary Display. Asus N56JN ( Intel + nVidia)

Post by nomko »

carnauser wrote:I've UEFI not a Bios
It must be possible to boot into UEFI modus of your system. UEFI is the successor of good old BIOS.

Did you tried that? And all onboard hardware must be listed in BIOS or UEFI.

Here's something to read about booting into UEFI:
https://www.happyassassin.net/2014/01/2 ... work-then/
carnauser

Re: Cannot set primary Display. Asus N56JN ( Intel + nVidia)

Post by carnauser »

Yes, for sure.
It is easy to access to UEFI, the problem is that there is not this option.
I still have problem connecting the second monitor, expecially I can't set the frequency.
PatH57

Re: Cannot set primary Display. Asus N56JN ( Intel + nVidia)

Post by PatH57 »

Hi,

the "intel graphic" is integrated into the cpu so the default bios has no way to disable it (you could write your own but that may take some time)
So the function is left to the OS to use it at low graphical usage to the integrated and switch on demand to the other card (discrete graphic card) when needed.
HDMI is handled by the nvidia card in your case for the moment as Ubuntu 14.04 and Mint17 are pretty new, drivers have to follow and may still have some glitches.
In linux also a lot of drivers are included in the kernel and the driver project for nvidia support is called "nouveau"
http://nouveau.freedesktop.org/wiki/

So you could try a new kernel or the nvidia driver or wait a little bit
carnauser

Re: Cannot set primary Display. Asus N56JN ( Intel + nVidia)

Post by carnauser »

I'll try your solution or... I'll wait, in any case thanks a lot!
Locked

Return to “Graphics Cards & Monitors”