Bug 369319 - Black screen in Plasma Wayland session
Summary: Black screen in Plasma Wayland session
Status: RESOLVED UPSTREAM
Alias: None
Product: plasma-integration
Classification: Plasma
Component: general (other bugs)
Version First Reported In: 5.7.5
Platform: Neon Linux
: NOR normal
Target Milestone: ---
Assignee: Martin Flöser
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-09-25 11:28 UTC by Daniel
Modified: 2016-10-04 05:32 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments
File .wayland-errors (24.40 KB, text/plain)
2016-09-25 11:28 UTC, Daniel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel 2016-09-25 11:28:34 UTC
Created attachment 101278 [details]
File .wayland-errors

Unsure if it is a plasma-integration or a kwin issue, so forgive me if I am mistaken.

I'm running KDE Neon up to date, my graphic card is an old nVidia GeForce 7100. I had to setup nouveau.noaccel=1 at grub, because otherwise Plasma/Kwin freezes and must do a hard reset (in every LiveDVD I have tried: KaOS, KDE Neon, Gecko Linux, Manjaro...)

 When I try to start a Plasma Wayland session, all I can see is a black screen with just the mouse pointer (which I can move). Alt+F2 does not work (either). When changing to a tty (Ctrl+Alt+F2, i.e.), it seems that for fraction of a second I can see the desktop, but when going back to Ctrl+Alt+F7 everything is black with just the mouse pointer. 

Below some information I think can be useful (there is no crash, so I can't attach a crash-report):

daniel@pc-medion:~$ lspci | grep VGA
00:10.0 VGA compatible controller: NVIDIA Corporation C73 [GeForce 7100 / nForce 630i] (rev a2)

daniel@pc-medion:~$ kwin --version
kwin 5.7.5

daniel@pc-medion:~$ kwin_wayland --version
kwin 5.7.5

daniel@pc-medion:~$ glxinfo | grep GLX
    GLX_ARB_create_context, GLX_ARB_create_context_profile, 
    GLX_ARB_fbconfig_float, GLX_ARB_framebuffer_sRGB, GLX_ARB_multisample, 
    GLX_EXT_create_context_es2_profile, GLX_EXT_create_context_es_profile, 
    GLX_EXT_fbconfig_packed_float, GLX_EXT_framebuffer_sRGB, 
    GLX_EXT_import_context, GLX_EXT_texture_from_pixmap, GLX_EXT_visual_info, 
    GLX_EXT_visual_rating, GLX_MESA_copy_sub_buffer, GLX_OML_swap_method, 
    GLX_SGIS_multisample, GLX_SGIX_fbconfig, GLX_SGIX_pbuffer, 
    GLX_SGIX_visual_select_group, GLX_SGI_make_current_read
    GLX_ARB_create_context, GLX_ARB_create_context_profile, 
    GLX_ARB_create_context_robustness, GLX_ARB_fbconfig_float, 
    GLX_ARB_framebuffer_sRGB, GLX_ARB_get_proc_address, GLX_ARB_multisample, 
    GLX_EXT_buffer_age, GLX_EXT_create_context_es2_profile, 
    GLX_EXT_create_context_es_profile, GLX_EXT_fbconfig_packed_float, 
    GLX_EXT_framebuffer_sRGB, GLX_EXT_import_context, 
    GLX_EXT_texture_from_pixmap, GLX_EXT_visual_info, GLX_EXT_visual_rating, 
    GLX_INTEL_swap_event, GLX_MESA_copy_sub_buffer, 
    GLX_MESA_multithread_makecurrent, GLX_MESA_query_renderer, 
    GLX_MESA_swap_control, GLX_OML_swap_method, GLX_OML_sync_control, 
    GLX_SGIS_multisample, GLX_SGIX_fbconfig, GLX_SGIX_pbuffer, 
    GLX_SGIX_visual_select_group, GLX_SGI_make_current_read, 
    GLX_SGI_swap_control, GLX_SGI_video_sync
GLX version: 1.4
GLX extensions:
    GLX_ARB_create_context, GLX_ARB_create_context_profile, 
    GLX_ARB_fbconfig_float, GLX_ARB_framebuffer_sRGB, 
    GLX_ARB_get_proc_address, GLX_ARB_multisample, 
    GLX_EXT_create_context_es2_profile, GLX_EXT_create_context_es_profile, 
    GLX_EXT_fbconfig_packed_float, GLX_EXT_framebuffer_sRGB, 
    GLX_EXT_import_context, GLX_EXT_texture_from_pixmap, GLX_EXT_visual_info, 
    GLX_EXT_visual_rating, GLX_MESA_copy_sub_buffer, 
    GLX_MESA_multithread_makecurrent, GLX_MESA_query_renderer, 
    GLX_OML_swap_method, GLX_SGIS_multisample, GLX_SGIX_fbconfig, 
    GLX_SGIX_pbuffer, GLX_SGIX_visual_select_group, GLX_SGI_make_current_read
Extended renderer info (GLX_MESA_query_renderer):
240 GLX Visuals
300 GLXFBConfigs:

daniel@pc-medion:~$ modinfo nouveau
filename:       /lib/modules/4.4.0-38-generic/kernel/drivers/gpu/drm/nouveau/nouveau.ko
license:        GPL and additional rights
description:    nVidia Riva/TNT/GeForce/Quadro/Tesla
author:         Nouveau Project
srcversion:     F12E920A89ED6A8476981A9
alias:          pci:v000012D2d*sv*sd*bc03sc*i*
alias:          pci:v000010DEd*sv*sd*bc03sc*i*
depends:        drm,drm_kms_helper,ttm,mxm-wmi,wmi,video,i2c-algo-bit
intree:         Y
vermagic:       4.4.0-38-generic SMP mod_unload modversions 
parm:           tv_norm:Default TV norm.
                Supported: PAL, PAL-M, PAL-N, PAL-Nc, NTSC-M, NTSC-J,
                        hd480i, hd480p, hd576i, hd576p, hd720p, hd1080i.
                Default: PAL
                *NOTE* Ignored for cards with external TV encoders. (charp)
parm:           vram_pushbuf:Create DMA push buffers in VRAM (int)
parm:           nofbaccel:Disable fbcon acceleration (int)
parm:           tv_disable:Disable TV-out detection (int)
parm:           ignorelid:Ignore ACPI lid status (int)
parm:           duallink:Allow dual-link TMDS (default: enabled) (int)
parm:           pstate:enable sysfs pstate file, which will be moved in the future (int)
parm:           config:option string to pass to driver core (charp)
parm:           debug:debug string to pass to driver core (charp)
parm:           noaccel:disable kernel/abi16 acceleration (int)
parm:           modeset:enable driver (default: auto, 0 = disabled, 1 = enabled, 2 = headless) (int)
parm:           runpm:disable (0), force enable (1), optimus only default (-1) (int)

// glxgears with compositor enabled (OpenGL 2)
daniel@pc-medion:~$ glxgears
724 frames in 5.0 seconds = 144.641 FPS
800 frames in 5.0 seconds = 159.944 FPS
756 frames in 5.0 seconds = 151.156 FPS
786 frames in 5.0 seconds = 156.979 FPS
798 frames in 5.0 seconds = 159.577 FPS
XIO:  fatal IO error 11 (Resource temporarily unavailable) on X server ":0"
      after 19767 requests (19765 known processed) with 0 events remaining.

// glxgears without compositor (XRender)
daniel@pc-medion:~$ glxgears
1408 frames in 5.0 seconds = 281.593 FPS
1514 frames in 5.0 seconds = 302.682 FPS
1514 frames in 5.0 seconds = 302.714 FPS
1493 frames in 5.0 seconds = 298.483 FPS
XIO:  fatal IO error 11 (Resource temporarily unavailable) on X server ":0"
      after 18951 requests (18949 known processed) with 0 events remaining.

Many thanks for your work. I started to use KDE 3.5 with Debian Lenny in 2008, and since then KDE has been my DE of choice.
Comment 1 Tony 2016-09-27 19:50:13 UTC
I have a gtx 760 i've tried "nouveau.noaccel=1" due to "hangs" i was getting on wayland as well,  the black screen happens due it. Don't boot with it.

 Sadly i dont know a "workaround", in my case i just don't dare to click on anything on the "panel" when i am on wayland else my pc hangs.
Comment 2 Daniel 2016-09-28 11:23:23 UTC
(In reply to Tony from comment #1)
> I have a gtx 760 i've tried "nouveau.noaccel=1" due to "hangs" i was getting
> on wayland as well,  the black screen happens due it. Don't boot with it.
> 
>  Sadly i dont know a "workaround", in my case i just don't dare to click on
> anything on the "panel" when i am on wayland else my pc hangs.

Thanks for your answer. Unfortunately, as I said in the bug report, if I try without "nouveau.noaccel=1" the whole desktop hangs even in a X11 session (nothing works:nor keyboard to change to a tty, nor mouse), and I am forced to do a hard power reset.

I will try with a LiveDVD of Mint with Cinnamon to see if this issue happens with other compositors, or it is just kwin. I think that LXQt with OpenBox has no troubles, but I'm not sure of this.

On the other hand, ¿will be a video taken from my smartphone a valid proof?
Comment 3 Martin Flöser 2016-10-04 05:32:03 UTC
as you select noaccel I assume you don't have actual opengl which would explain the behavior. Try using KWIN_COMPOSE=Q or force llvmpipe using LIBGL_ALWAYS_SOFTWARE=1.

Overall I doubt you will have any fun on the Wayland session on nouveau or in general NVIDIA hardware.

Setting to UPSTREAM as it's a driver/hardware problem.