You are not logged in.

#1 2017-04-09 07:02:45

rogervn
Member
Registered: 2017-04-09
Posts: 21

Trouble with Wayland and Nvidia Optimus

Hello guys,

I'm a short time slackware user in the early 2000's, long time Ubuntu user ever since, so I have some knowledge yet I'm a little rusty in the recent news. Just trying Arch for the first time after some recommendations and liking a lot so far.

So, my problem is with Wayland, and my complete lack of knowledge about it. I have a Nvidia Optimus setup with an i7 3630qm and a GT 670m card in my laptop, so I've already become used to having problems to setup the nvidia proprietary driver and changing it along with the intel driver.

After all these years I've tried bumblebee and Primus in Ubuntu and, even after a lot of trouble, I was able to make it work properly with legacy X.org. Now I'm tryng to see if it works with wayland, as documentation seem quite low in this.

I've installed intel, nouveau and nvidia proprietary drivers right on the go, but as much as I'm ashamed to say, after hours of Gnome with wayland working, I can't  even tell which driver my system is running. The video card is on, because its fan is blowing. lspci shows drivers in use for both i915 and nvidia drivers:

$ lspci -nnk | grep -i vga -A3
00:02.0 VGA compatible controller [0300]: Intel Corporation 3rd Gen Core processor Graphics Controller [8086:0166] (rev 09)
	Subsystem: CLEVO/KAPOK Computer Device [1558:5105]
	Kernel driver in use: i915
	Kernel modules: i915
--
01:00.0 VGA compatible controller [0300]: NVIDIA Corporation GF114M [GeForce GTX 670M] [10de:1213] (rev a1)
	Subsystem: CLEVO/KAPOK Computer Device [1558:5105]
	Kernel driver in use: nvidia
	Kernel modules: nouveau, nvidia_drm, nvidia

How can I tell which driver is actually in use right now?
I've read a lot about weston being the compositor for wayland, but it doesn't seem to be installed by default, is it? Should I install it?

Thanks a lot!

Last edited by rogervn (2017-04-09 07:05:48)

Offline

#2 2017-04-09 07:05:10

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

Re: Trouble with Wayland and Nvidia Optimus

No idea about Optimus, but the wiki makes it clear that weston is a separate package:
https://wiki.archlinux.org/index.php/Wayland#Weston


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2017-04-09 07:06:44

rogervn
Member
Registered: 2017-04-09
Posts: 21

Re: Trouble with Wayland and Nvidia Optimus

jasonwryan wrote:

No idea about Optimus, but the wiki makes it clear that weston is a separate package:
https://wiki.archlinux.org/index.php/Wayland#Weston

Yes, it does, but them which is the default compositor running? Shouls I install weston for better management?

Offline

#4 2017-04-09 12:10:08

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 15,567

Re: Trouble with Wayland and Nvidia Optimus

rogervn,
you're using gnome default window manager mutter .
Gnome added wayland support to it, making it usable as X window manager AND wayland compositor .

gnome 3.24 (released not long ago, not in official repos yet) is supposed to improve hybrid graphics setups (like yours) under wayland a lot.


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#5 2017-04-09 15:01:49

rogervn
Member
Registered: 2017-04-09
Posts: 21

Re: Trouble with Wayland and Nvidia Optimus

Lone_Wolf wrote:

rogervn,
you're using gnome default window manager mutter .
Gnome added wayland support to it, making it usable as X window manager AND wayland compositor .

gnome 3.24 (released not long ago, not in official repos yet) is supposed to improve hybrid graphics setups (like yours) under wayland a lot.

Thanks! Can't wait for gnome 3.24 get into the official repos to try it.

But in the meantime, after installing mesa-utils glxinfo says that the vendor of the graphics card is intel. Is there any way to make it start with the nvidia card (there is no need to start each application individually as Gnome 3.24 should do). Or at least just power off the nvidia card to draw less power and stop the gpu fan?

Offline

#6 2017-04-10 10:03:56

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 15,567

Re: Trouble with Wayland and Nvidia Optimus

glxinfo only gives details about X environment, and if you're running gnome-on-wayland any X using apps will get a X-session running on wayland.
I know of no way (but am not  a gnome user) to find out which videocard is used by gnome-on-wayland .

Afaik wayland lacks tools like glxinfo , xrandr,  bumblebee or their equivalent .

Last edited by Lone_Wolf (2017-04-10 10:04:11)


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#7 2017-04-14 02:55:57

hedgepigdaniel
Member
Registered: 2014-01-07
Posts: 42

Re: Trouble with Wayland and Nvidia Optimus

try

echo $XDG_SESSION_TYPE

That should tell you what type of session you are in (x11/wayland)

EDIT: I see you mean the driver, not the display server. Not sure either.

You could try using bbswitch to turn it off? that way if it successfully turns off and gnome still works - I guess you're using the intel driver.

Last edited by hedgepigdaniel (2017-04-14 03:00:16)

Offline

Board footer

Powered by FluxBB