Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
NVIDIA GPU (not Optimus) with LightDM and Wayland
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
Fitzcarraldo
Veteran
Veteran


Joined: 30 Aug 2008
Posts: 1813
Location: United Kingdom

PostPosted: Sun Aug 25, 2019 2:33 am    Post subject: NVIDIA GPU (not Optimus) with LightDM and Wayland Reply with quote

Do any of you happen to have a machine with an NVIDIA GPU (not Optimus) using the closed-source NVIDIA driver and the LightDM display manager? If so, can you launch a Wayland session from LightDM?

The reason I ask is the following:

One of my laptops has NVIDIA Optimus hardware. I don't use Bumblebee with it; I use either the Intel video driver alone or the closed-source NVIDIA driver alone (I have a couple of scripts to select which of the drivers I want to use, and I logout and login again to switch). I use the LightDM display manager to login to the KDE Plasma Desktop (because I could not get SDDM to work).

When using the Intel video driver, I can select a Wayland session in LightDM and login successfully to a KDE Plasma Desktop. LightDM itself is in an X11 session, but Plasma is launched in a Wayland session (XDG_SESSION_TYPE is "wayland").

When using the NVIDIA driver and LightDM is not running, I can use a couple of commands in a VT (TTY1 or whatever) to launch a Wayland session running KDE Plasma (XDG_SESSION_TYPE is "wayland").

When using the NVIDIA driver, it is not possible to launch a Wayland session from LightDM. I enter the password to login but nothing happens. I assume -- but am not sure -- this is because, in the case of Optimus hardware, in order to display the LightDM greeter when the NVIDIA closed-source driver is used, LightDM needs a display setup script:

Code:
$ grep display-setup-script /etc/lightdm/lightdm.conf
display-setup-script=/etc/X11/Sessions/plasma
$ cat /etc/X11/Sessions/plasma
#!/bin/bash
GPU=`eselect opengl list | grep \* | awk '{ print $2 }'`
if [ "$GPU" = "nvidia" ]; then
    xrandr --setprovideroutputsource modesetting NVIDIA-0
    xrandr --auto
fi


Am I missing something? Is it really impossible to use LightDM to launch a Wayland session when using the NVIDIA closed-source driver with Optimus hardware?
_________________
Clevo W230SS: amd64 nvidia-drivers & xf86-video-intel.
Compal NBLB2: ~amd64 xf86-video-ati. Dual boot Win 7 Pro 64-bit.
OpenRC eudev elogind & KDE on both.

Fitzcarraldo's blog
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum