You are not logged in.

#1 2019-06-23 17:44:19

Amaury
Member
Registered: 2019-02-12
Posts: 14

[SOLVED] Screen stays black when using integrated graphics

I'm using a laptop that has Intel integrated graphics, and nvidia (quadro K2000M) discrete graphics.
Until now, I was only using the integrated graphics without even knowing it using Nouveau drivers (which came automatically with X or mesa I think ?).
All was fine except I had poor performance when running a game, so I decided to try installing my nvidia drivers.
I followed the nvidia optimus / nvidia-xrun wiki pages, and I can now run nvidia-xrun from a tty to start Xfce4 with the Nvidia graphics (nice !)

But now any "normal" X session is just a black screen. That is the default LightDM session (on boot when systemctl set-default is graphics.target), and when I run xinit from a tty.
But behind the black screen, I can tell there's actually Xfce running because I could hear a sound play when blindly opening VLC.

Here's the stderr of  xinit (run from a tty), which I manually killed from the tty. I tried to remove all useless information, and I translated some things from french.
I don't really know if there's a better way to find clues.

X.Org X Server 1.20.5
X Protocol Version 11, Revision 0
Build Operating System: Linux Arch Linux
Current Operating System: Linux icespark 5.1.12-arch1-1-ARCH #1 SMP PREEMPT Wed Jun 19 09:16:00 UTC 2019 x86_64
Kernel command line: BOOT_IMAGE=/vmlinuz-linux root=UUID=830a3ce9-89b8-4c58-97b9-79d3bac07009 rw quiet
Build Date: 30 May 2019  06:44:40PM
 
Current version of pixman: 0.38.4
	Before reporting problems, check http://wiki.x.org
	to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
	(++) from command line, (!!) notice, (II) informational,
	(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.0.log", Time: Sun Jun 23 19:21:16 2019
(==) Using config directory: "/etc/X11/xorg.conf.d"
(==) Using system config directory "/usr/share/X11/xorg.conf.d"
(II) modeset(G0): Initializing kms color map for depth 24, 8 bpc.

gpg-agent[24509]: Warning : « --write-env-file » is an obsolete option - ignored
gpg-agent: an instance of gpg-agent is already running —
no starting of a new instance

(xfce4-session:24503): xfce4-session-WARNING **: 19:21:17.999: gpg-agent returned no PID in the variables

(xfsettingsd:24514): xfsettingsd-CRITICAL **: 19:21:18.147: Stored Xfconf properties disable all outputs, aborting.


[ 23/06/2019 19:21:18.395 parse_config_libconfig WARN ] vsync option will take a boolean from now on. "opengl" is interpreted as "true" for compatibility, but this will stop working soon
[ 23/06/2019 19:21:18.395 parse_config_libconfig WARN ] glx-swap-method has been deprecated since v6, your setting "undefined" should be removed.
The XKEYBOARD keymap compiler (xkbcomp) reports:
> Warning:          Unsupported high keycode 372 for name <I372> ignored
>                   X11 cannot support keycodes above 255.
>                   This warning only shows for the first high keycode.
> Internal error:   Could not resolve keysym XF86MonBrightnessCycle
> Internal error:   Could not resolve keysym XF86RotationLockToggle
Errors from xkbcomp are not fatal to the X server
unexpected type for property '290'
Traceback (most recent call last):
  File "/usr/lib/blueberry/blueberry-obex-agent.py", line 35, in <module>
    if not os.path.exists(SHARED_PATH):
  File "/usr/lib/python3.7/genericpath.py", line 19, in exists
    os.stat(path)
TypeError: stat: path should be string, bytes, os.PathLike or integer, not NoneType

(blueberry-tray.py:24570): Gtk-WARNING **: 19:21:18.466: Failed to register client: GDBus.Error:org.freedesktop.DBus.Error.UnknownMethod: Method "RegisterClient" with signature "ss" on interface "org.xfce.Session.Manager" doesn't exist

xfce4-panel: No window manager registered on screen 0. To start the panel without this check, run with --disable-wm-check.


(wrapper-2.0:24919): Gtk-WARNING **: 19:21:23.341: gtk_widget_size_allocate(): attempt to allocate widget with width -1 and height 23

(wrapper-2.0:24913): Gtk-WARNING **: 19:21:23.356: Negative content width -1 (allocation 1, extents 1x1) while allocating gadget (node button, owner GtkToggleButton)
[24877:0623/192132.274175:ERROR:buffer_manager.cc(491)] [.RendererMainThread-0x3aad2e97e000]GL ERROR :GL_INVALID_FRAMEBUFFER_OPERATION : glBufferData: <- error from previous GL command
xinit: connection to X server lost



waiting for X server to shut down xfsettingsd: Fatal IO error 11 (Resource temporarly unavailable) on X server :0.0.
(EE) 
(EE) Backtrace:
(EE) 0: /usr/lib/Xorg (xorg_backtrace+0x4d) [0x55fccddcb0cd]
(EE) 1: /usr/lib/Xorg (0x55fccdd1a000+0xb1209) [0x55fccddcb209]
(EE) 2: /usr/lib/libc.so.6 (0x7f006d627000+0x3a7e0) [0x7f006d6617e0]
(EE) 3: /usr/lib/Xorg (AttendClient+0x18) [0x55fccddc69e8]
(EE) 4: /usr/lib/Xorg (0x55fccdd1a000+0x1190c5) [0x55fccde330c5]
(EE) 5: /usr/lib/Xorg (miSyncDestroyFence+0x59) [0x55fccde18689]
(EE) 6: /usr/lib/Xorg (0x55fccdd1a000+0x116809) [0x55fccde30809]
(EE) 7: /usr/lib/Xorg (0x55fccdd1a000+0x15ceee) [0x55fccde76eee]
(EE) 8: /usr/lib/Xorg (FreeClientResources+0x7c) [0x55fccde77fcc]
(EE) 9: /usr/lib/Xorg (CloseDownClient+0x39d) [0x55fccde9b62d]
(EE) 10: /usr/lib/Xorg (0x55fccdd1a000+0x378fd) [0x55fccdd518fd]
(EE) 11: /usr/lib/libc.so.6 (__libc_start_main+0xf3) [0x7f006d64dee3]
(EE) 12: /usr/lib/Xorg (_start+0x2e) [0x55fccdd5230e]
(EE) 
(EE) Segmentation fault at address 0x28
(EE) 
Fatal server error:
(EE) Caught signal 11 (Segmentation fault). Server aborting
(EE) 
(EE) 
Please consult the The X.Org Foundation support 
	 at http://wiki.x.org
 for help. 
(EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
(EE) 
XIO:  fatal IO error 11 (Ressource temporairement non disponible) on X server ":0.0"
      after 5536 requests (5524 known processed) with 0 events remaining.
XIO:  fatal IO error 11 (Ressource temporairement non disponible) on X server ":0.0"
      after 5536 requests (5524 known processed) with 0 events remaining.
(EE) Server terminated with error (1). Closing log file.

xinit: unexpected signal 15

Has anyone an idea on how I could fix this ?
Thank you very much in advance.

Last edited by Amaury (2019-07-17 16:50:21)

Offline

#2 2019-06-23 21:23:29

d_fajardo
Member
Registered: 2017-07-28
Posts: 1,568

Re: [SOLVED] Screen stays black when using integrated graphics

According to the NVIDIA Wiki, the K series should be using the nvidia package and not the optimus nor nvidia-xrun as you did. Have a look at that wiki.
And check that you are using the discreet graphics in the BIOS.

Last edited by d_fajardo (2019-06-23 21:34:48)

Offline

#3 2019-07-17 02:32:39

Amaury
Member
Registered: 2019-02-12
Posts: 14

Re: [SOLVED] Screen stays black when using integrated graphics

Thank you for your help.
I made sure I was using the nvidia (and nvidia-utils) package and having discrete graphics in the BIOS.
Unfortunately the computer freezes on the message "Starting Arch Linux" (printed from the Grub command I think)

So I went back to Integrated Graphics, and ran nvidia-xconfig (seen in the wiki).

Not only did nothing change on Discrete Graphics (freeze) but now Integrated Graphics never starts LightDM like it used to. It stops after printing Reached target Graphical Interface

I think I could fix one of these from the grub command, but I don't know at all what to do there.
Also I don't know if I can at least go back to multiuser.target to access a command line. Because right now the computer is completely unusable.

Offline

#4 2019-07-17 02:35:50

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: [SOLVED] Screen stays black when using integrated graphics

Amaury wrote:

So I went back to Integrated Graphics, and ran nvidia-xconfig (seen in the wiki)

That almost always only makes things worse. The few other times it has no effect at all.

Amaury wrote:

Also I don't know if I can at least go back to multiuser.target to access a command line. Because right now the computer is completely unusable.

https://wiki.archlinux.org/index.php/Sy … _boot_into


Moving to NC...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#5 2019-07-17 14:17:39

Amaury
Member
Registered: 2019-02-12
Posts: 14

Re: [SOLVED] Screen stays black when using integrated graphics

Thank you now I can access a tty.

When the BIOS display setting is Discrete Graphics it freezes on the "Starting Arch Linux" print, no matter the target (multi-user or graphics).

When the display setting is Integrated Graphics I can access a tty with multi-user.target. From there xinit fails with the error "no screen found" (even when an external monitor is connected).
nvidia-xrun works, and starts Xfce. The integrated graphics are used (not the nvidia GPU), and the external monitor is never recognized.

When the setting is Nvidia Optimus I can also access the tty.
With graphics.target, LightDM starts normally only on an external monitor. My laptops screen is not recognized at all, but is used for the tty if I press Ctrl+Alt+F2. The Nvidia GPU is used.
When I run xinit from the tty (with multi-user.target), no error is shown but the X server stops immediately.
When I run nvidia-xrun from the tty, Xfce starts and works with dual monitor. But for example notifications don't work.

What I would like is graphics.target (so LightDM) to work on any screen (most importantly my laptop screen).

Last edited by Amaury (2019-07-17 14:52:11)

Offline

#6 2019-07-17 14:47:30

seth
Member
Registered: 2012-09-03
Posts: 51,143

Re: [SOLVED] Screen stays black when using integrated graphics

Is the static xorg conf still there?
Xorg logs?

Offline

#7 2019-07-17 15:13:45

Amaury
Member
Registered: 2019-02-12
Posts: 14

Re: [SOLVED] Screen stays black when using integrated graphics

When starting graphics.target in Optimus mode, I have Xorg.0.log and Xorg.1.log

At some point it says that it can't access nvidia-xorg.conf but it does exist in /etc/X11/

Here is xorg.conf and nvidia-xorg.conf (they are the same) :

# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig:  version 430.26


Section "ServerLayout"
    Identifier     "Layout0"
    Screen      0  "Screen0" 0 0
    InputDevice    "Keyboard0" "CoreKeyboard"
    InputDevice    "Mouse0" "CorePointer"
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 "Monitor"
    Identifier     "Monitor0"
    VendorName     "Unknown"
    ModelName      "Unknown"
    Option         "DPMS"
EndSection

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
EndSection

Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection

Offline

#8 2019-07-17 15:29:40

seth
Member
Registered: 2012-09-03
Posts: 51,143

Re: [SOLVED] Screen stays black when using integrated graphics

Using config file: "/etc/X11/xorg.conf"

Remove that, it's gonna impede any approach to use the nvidia chip as a secondary device and causes the failures w/ the "Integrated Graphics" configuration.

The log "complains" about a missing "nvidia-xorg.conf.d" - which is irrelevant.

Xinit will most likely fail because you didn't configure xinitrc nor have twm nor xterm installed?
https://wiki.archlinux.org/index.php/Xinit#xinitrc

Lightdm will probably have configured the external output previously, https://wiki.archlinux.org/index.php/Li … ng_monitor

Offline

#9 2019-07-17 16:49:54

Amaury
Member
Registered: 2019-02-12
Posts: 14

Re: [SOLVED] Screen stays black when using integrated graphics

I removed xorg.conf
Now "Integrated Graphics" works only with the laptop screen.
And "Optimus" works with laptop and external monitor.

So everything is fine and works as expected now.
I thank you very much for your help smile

Offline

Board footer

Powered by FluxBB