Bug 356409 - Plasma fails to start when using old video driver
Summary: Plasma fails to start when using old video driver
Status: CLOSED INTENTIONAL
Alias: None
Product: plasmashell
Classification: Plasma
Component: general (show other bugs)
Version: 5.4.2
Platform: Kubuntu Linux
: NOR normal
Target Milestone: 1.0
Assignee: David Edmundson
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-12-09 05:34 UTC by Sasha Unspecified
Modified: 2015-12-09 16:39 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sasha Unspecified 2015-12-09 05:34:37 UTC
Plasma fails to start when using old video driver (e.g. vesa).
The same happens when X server is using dummy driver (e.g. I want to allow PC be properly booted even when no monitor is attached, to make it accessible with VNC).

On start plasma displays the following message:
"Plasma is unable to start as it couldn't correctly use OpenGL 2.
Please check that your graphic drivers are set up correctly."

The biggest disappointment is that plasma displays this message in nice graphic window. I could understand if that message would appear in stderr/log file -- that would mean that the driver is really unusable.

Desktop effects are turned off, of course.

Reproducible: Always

Steps to Reproduce:
There are to proposed ways to reproduce that:
A -- by downgrading your graphics driver to vesa. Determine which graphics drivers are currently in use, and then disable them (either by blacklisting or by uninstalling correspondent packages). For example, I reach this state when I uninstall the persistently hanging xserver-xorg-video-nouveau package (but binary NVIDIA packages aren't yet installed).
B -- by forcing your X server to run without monitor and then connecting with VNC:
1. Install and turn on the dummy driver on server (as per http://ubuntuforums.org/showthread.php?t=1452600&page=7&p=11419677#post11419677).
2. Connect with SSH to the server, install x11vnc package and launch x11vnc.
3. Connect to the server with xtightvncviewer.

Actual Results:  
The "Plasma is unable to start as it couldn't correctly use OpenGL 2.
Please check that your graphic drivers are set up correctly." message in the graphic window.

Expected Results:  
I expect plasma to be working. Maybe slowly, maybe with glitches. But somehow working.
Is kwin is able to display windows, then plasma should be able to display widgets.
Comment 1 David Edmundson 2015-12-09 13:13:33 UTC
Well, that window isn't using openGL, plasma does. 

You can try running with QT_XCB_FORCE_SOFTWARE_OPENGL set.
Comment 2 Sasha Unspecified 2015-12-09 16:02:53 UTC
1. Well... Could you please tell me what QT_XCB_FORCE_SOFTWARE_OPENGL is? I mean: is it environment variable, or value in some config file, or what?

2. Shouldn't be this a default behavior? I mean, if not OpenGL support available, then use simpler graphics API/software emulation. Cause a user who've installed new (buggy) video driver/uses old graphic card/connects with VNC to monitor-less server/whatsoever will certainly prefer to see his plasma running, then displaying such useless message at start-up. Graphic wow-effects on desktop are not so important to prevent the whole X-server be started in case when video-driver configuration is not ideal.
Comment 3 David Edmundson 2015-12-09 16:17:57 UTC
>1. Well... Could you please tell me what QT_XCB_FORCE_SOFTWARE_OPENGL is? I mean: is it environment variable, or value in some config file, or what?

sorry, it's an environment variable.
Comment 4 Sasha Unspecified 2015-12-09 16:39:50 UTC
Sorry for my rude speech in the last comment, it was inappropriate.