You are not logged in.

#1 2016-12-27 05:06:17

Tofu_Bone
Member
Registered: 2016-12-26
Posts: 43

[SOLVED] Cannot use nvidia-libgl

Hi, I just install arch linux few days ago and things are going great. but i can't get nvidia-libgl working.

I want to have better preformance in games, so i would like to use nvidia-libgl instead of mesa-libgl,

but if i install nvidia-libgl, kde won't start, with following message in journalctl:

sddm-greeter: QXcbIntegration: Cannot create platform OpenGL context, neither GLX nor EGL are enabled

sddm-greeter: Failed to create OpenGL context for format QSurfaceFormat(version 2.0 options QFlags(), .......

if i replace nvidia-libgl with mesa-libgl, there is no problem in starting kde.

What can i do to make nvidia-libgl work?

Edit: the work around would be using bumblebee if you have a optimus system. And don't use xorg.conf with bumblebee.

Last edited by Tofu_Bone (2016-12-29 01:43:58)

Offline

#2 2016-12-27 05:08:52

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,729

Re: [SOLVED] Cannot use nvidia-libgl

Is this an optimus system? If so, check out bumblebee.

Online

#3 2016-12-27 06:06:07

Tofu_Bone
Member
Registered: 2016-12-26
Posts: 43

Re: [SOLVED] Cannot use nvidia-libgl

Thanks for the help.

After i just tried out bumblebee, my performance improved.

But i planned on playing games with vulkan support (dota2) ,so i guesss i have to stuck with bumblebee for now.

Will bumblebee have vulkan support?

Offline

#4 2016-12-27 07:12:57

infinarchy
Banned
Registered: 2016-09-19
Posts: 73

Re: [SOLVED] Cannot use nvidia-libgl

empty

Last edited by infinarchy (2017-11-04 21:41:19)

Offline

#5 2016-12-28 04:20:40

Tofu_Bone
Member
Registered: 2016-12-26
Posts: 43

Re: [SOLVED] Cannot use nvidia-libgl

infinarchy wrote:

Will you use Google?


What should i google?

I checked to arch wiki and can't find anything similar.

Offline

#6 2016-12-28 05:00:52

x33a
Forum Fellow
Registered: 2009-08-15
Posts: 4,587

Re: [SOLVED] Cannot use nvidia-libgl

http://lmgtfy.com/?q=Will+bumblebee+hav … support%3F

The first search result should have your answer.

Offline

#7 2016-12-28 05:05:18

bleach
Member
Registered: 2013-07-26
Posts: 264

Re: [SOLVED] Cannot use nvidia-libgl

google! (yes)  search arch wiki bumblebee (yes sir/mam)

Bumblebee - ArchWiki

NVIDIA Optimus - ArchWiki

PRIME - ArchWiki

Offline

#8 2016-12-28 05:17:51

Tofu_Bone
Member
Registered: 2016-12-26
Posts: 43

Re: [SOLVED] Cannot use nvidia-libgl

I am sorry if you guys misunderstand, my english in not perfect.

I mean i can't find anything on google about enable nvidia-libgl without disrupting the kde session.

Yes , i know about bumble and vulkan now, thanks.

Offline

#9 2016-12-28 05:28:11

infinarchy
Banned
Registered: 2016-09-19
Posts: 73

Re: [SOLVED] Cannot use nvidia-libgl

empty

Last edited by infinarchy (2017-11-04 21:41:03)

Offline

#10 2016-12-28 05:38:43

Tofu_Bone
Member
Registered: 2016-12-26
Posts: 43

Re: [SOLVED] Cannot use nvidia-libgl

my GPU is :   3D controller: NVIDIA Corporation GM108M [GeForce 840M] (rev ff)

with i5 core

Do i need to post the whole journalctl ?

my native language is chinese smile

Last edited by Tofu_Bone (2016-12-28 05:40:06)

Offline

#11 2016-12-28 05:54:34

infinarchy
Banned
Registered: 2016-09-19
Posts: 73

Re: [SOLVED] Cannot use nvidia-libgl

empty

Last edited by infinarchy (2017-11-04 21:40:59)

Offline

#12 2016-12-28 09:01:15

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,452

Re: [SOLVED] Cannot use nvidia-libgl

WTF no... don't follow infinarch's advice, NEVER run nvidia-xconfig and especially not on an Optimus system you will break your graphical session guaranteed.

@Tofu_Bone
There is one way to enable native use of nvidia's libgl (at the cost of not being able to dynamically switch between intel and nvidia and therefore having increased power consumption). It has been hinted at multiple times in this thread, but I'm just going to be more explicit this once to prevent further damage (sorry infinarch, nothing against you, this is simply not a good suggestion): Follow https://wiki.archlinux.org/index.php/NV … ing_nvidia (make sure to read the instructions carefully, there's a lot of additional information in there that might not be necessary on fully updated systems) If you run into any problems with these, detail the steps you took, post the configuration files you created and any logs that are relevant.

Offline

#13 2016-12-28 10:01:40

HiImTye
Member
From: Halifax, NS, Canada
Registered: 2012-05-09
Posts: 1,072

Re: [SOLVED] Cannot use nvidia-libgl

V1del wrote:

WTF no... don't follow infinarch's advice, NEVER run nvidia-xconfig and especially not on an Optimus system you will break your graphical session guaranteed.

you should add a warning to the wiki if you should never run nvidia-xconfig
https://wiki.archlinux.org/index.php/NV … figuration

Offline

#14 2016-12-28 10:59:11

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,452

Re: [SOLVED] Cannot use nvidia-libgl

There already is one (scroll up to the whole configuration section), and never might be a bit strong,  there are no benefits to having it run and using it as is (on systems where nvidia is the main driving card, which isn't the case here), while it does break autodetection of e.g. future monitors. It can be useful if you have to edit xorg configuration and want to use it as a skeleton for your own configuration. E.g. you want the metamodes generated so you can add the composition pipeline config.

And from what I gather from the general wiki structure Optimus and standalone nvidia config should be kept seperate, which is why the first sentence on the Nvidia article redirects you to the Optimus page. The real issue here is that people often don't know that they have an Optimus system and therefore should be following another article from the Nvidia one.

Offline

#15 2016-12-28 16:26:39

infinarchy
Banned
Registered: 2016-09-19
Posts: 73

Re: [SOLVED] Cannot use nvidia-libgl

empty

Last edited by infinarchy (2017-11-04 21:40:49)

Offline

#16 2016-12-28 20:19:07

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,729

Re: [SOLVED] Cannot use nvidia-libgl

infinarchy wrote:

I knew that someone would freak out about my suggestion. ^^

If you knew it was bad advice, why did you give it?

Online

#17 2016-12-28 21:01:28

infinarchy
Banned
Registered: 2016-09-19
Posts: 73

Re: [SOLVED] Cannot use nvidia-libgl

empty

Last edited by infinarchy (2017-11-04 21:40:45)

Offline

#18 2016-12-28 23:48:02

Tofu_Bone
Member
Registered: 2016-12-26
Posts: 43

Re: [SOLVED] Cannot use nvidia-libgl

I finally get the system working, after the nvidia-xconfig command ,kde won't start.

i just delete the xorg.conf file, and i can login in kde.

I have no problem running the system with no xorg.conf file, should i make a new one?

Offline

#19 2016-12-28 23:55:31

loqs
Member
Registered: 2014-03-06
Posts: 19,184

Re: [SOLVED] Cannot use nvidia-libgl

Did you follow the wiki guide for optimus or bumblebee or set the nvidia card to be the primary card in the firmware or just install mesa-libgl and delete the xorg.conf?
It is unclear what the current situation of the system is making it impossible to answer your question.
Edit:
grammar missing is

Last edited by loqs (2016-12-28 23:56:11)

Offline

#20 2016-12-29 00:38:49

Tofu_Bone
Member
Registered: 2016-12-26
Posts: 43

Re: [SOLVED] Cannot use nvidia-libgl

I can't install nvidia-libgl, because it disrupt kde, so i install mesa-libgl

I followed to bumblebee guide and get bumblebee working.

And i realize bumblebee provide nvidia-libgl, so i guess the nvidia-libgl problem is solved.

i ran the command nvidia-xconfig, which is not suggest to use, and broke my system.

i delete the xorg.conf file, and the system is working fine now.

shoould i make a new xorg.conf ?

Offline

#21 2016-12-29 01:38:57

loqs
Member
Registered: 2014-03-06
Posts: 19,184

Re: [SOLVED] Cannot use nvidia-libgl

Bumblebee#Installation

If integrated graphics had previously been disabled and discrete graphics drivers installed, be sure to remove /etc/X11/xorg.conf or the conf file in /etc/X11/xorg.conf.d related to the discrete graphics card.

As bumble conflict with nvidia-304xx-libgl, nvidia-340xx-libgl, nvidia-libgl it would have been removed when you installed nvidia-libgl, I assume you installed it again and that should have pulled in mesa-libgl as a dependancy.
If that is the case then you are using bumblebee and the advice about not using xorg.conf from the wiki should be clear.
If you have mesa-libgl installed without bumblebee then only the integrated gpu will be in use and you should start over following the wiki pages for the one of the solutions that has already been mentioned.
An xorg.log would remove much of the guess work from this situation.

Offline

#22 2016-12-29 01:42:15

Tofu_Bone
Member
Registered: 2016-12-26
Posts: 43

Re: [SOLVED] Cannot use nvidia-libgl

alright, Thanks guys, smile

Offline

Board footer

Powered by FluxBB