Bug 2074167 - Fedora 36beta on a Lenovo P1 with nvidia and intel gpus under wayland, only laptop screen works not external monitors, under xorg only external monitor(s) no laptop screen
Summary: Fedora 36beta on a Lenovo P1 with nvidia and intel gpus under wayland, only l...
Keywords:
Status: CLOSED EOL
Alias: None
Product: Fedora
Classification: Fedora
Component: xorg-x11
Version: 36
Hardware: x86_64
OS: Linux
high
high
Target Milestone: ---
Assignee: X/OpenGL Maintenance List
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2022-04-11 16:55 UTC by Harish Pillay
Modified: 2023-05-25 19:14 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-05-25 19:14:27 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Harish Pillay 2022-04-11 16:55:12 UTC
Description of problem:
Lenovo P1 with nvidia and intel gpus when logged in via wayland, only laptop screen works, external monitor does not work while logging in via xorg, external monitor works, not laptop screen.

Version-Release number of selected component (if applicable):
Fedora 36 beta

# lsmod |grep -i nvidia
nvidia_drm             69632  28
nvidia_modeset       1163264  30 nvidia_drm
nvidia_uvm           1204224  0
nvidia              39145472  1431 nvidia_uvm,nvidia_modeset
# cat /etc/modprobe.d/blacklist.conf 
blacklist nouveau
options nouveau modeset=0

Steps to Reproduce:
1. Fedora 36 beta on Lenovo P1 with both intel and nvidia gpus
2. logging in under wayland, only laptop screen works.
3. logging in under xorg, only external monitor works - laptop screen is off

Additional info:
I had Fedora 35 working with both the laptop and external monitor(s) working fine. Unfortunately, I don't recall if it was under wayland or xorg. I did install the tools from Nvidia to manage the nvidia gpu as well as drivers from rpmfusion. 

I can't figure out how to make both laptop screen and external monitor(s) work at the same time.

Comment 1 Harish Pillay 2022-04-11 16:57:46 UTC
I ran both neofetch and screenfetch and get slightly different reporting of the gpu.

$ neofetch 
             .',;::::;,'.                harish@guille 
         .';:cccccccccccc:;,.            ------------- 
      .;cccccccccccccccccccccc;.         OS: Fedora release 36 (Thirty Six) x86_64 
    .:cccccccccccccccccccccccccc:.       Host: 20TJS6KS00 ThinkPad P1 Gen 3 
  .;ccccccccccccc;.:dddl:.;ccccccc;.     Kernel: 5.17.2-300.fc36.x86_64 
 .:ccccccccccccc;OWMKOOXMWd;ccccccc:.    Uptime: 1 hour, 9 mins 
.:ccccccccccccc;KMMc;cc;xMMc:ccccccc:.   Packages: 3483 (rpm), 39 (flatpak) 
,cccccccccccccc;MMM.;cc;;WW::cccccccc,   Shell: bash 5.1.16 
:cccccccccccccc;MMM.;cccccccccccccccc:   Resolution: 1920x1080, 1080x1920 
:ccccccc;oxOOOo;MMM0OOk.;cccccccccccc:   DE: GNOME 42.0 
cccccc:0MMKxdd:;MMMkddc.;cccccccccccc;   WM: Mutter 
ccccc:XM0';cccc;MMM.;cccccccccccccccc'   WM Theme: Adwaita 
ccccc;MMo;ccccc;MMW.;ccccccccccccccc;    Theme: Adwaita [GTK2/3] 
ccccc;0MNc.ccc.xMMd:ccccccccccccccc;     Icons: Adwaita [GTK2/3] 
cccccc;dNMWXXXWM0::cccccccccccccc:,      Terminal: tilix 
cccccccc;.:odl:.;cccccccccccccc:,.       CPU: Intel i9-10885H (16) @ 5.300GHz 
:cccccccccccccccccccccccccccc:'.         GPU: Intel CometLake-H GT2 [UHD Graphics] 
.:cccccccccccccccccccccc:;,..            GPU: NVIDIA Quadro T2000 Mobile / Max-Q 
  '::cccccccccccccc::;,.                 Memory: 6770MiB / 64062MiB 

$ screenfetch
           /:-------------:\          harish@guille
        :-------------------::        OS: Fedora 36 ThirtySix
      :-----------/shhOHbmp---:\      Kernel: x86_64 Linux 5.17.2-300.fc36.x86_64
    /-----------omMMMNNNMMD  ---:     Uptime: 1h 9m
   :-----------sMMMMNMNMP.    ---:    Packages: 3483
  :-----------:MMMdP-------    ---\   Shell: bash 5.1.16
 ,------------:MMMd--------    ---:   Resolution: 3000x1920
 :------------:MMMd-------    .---:   DE: GNOME 42.0
 :----    oNMMMMMMMMMNho     .----:   WM: Mutter
 :--     .+shhhMMMmhhy++   .------/   WM Theme: 
 :-    -------:MMMd--------------:    GTK Theme: Adwaita [GTK2/3]
 :-   --------/MMMd-------------;     Icon Theme: Adwaita
 :-    ------/hMMMy------------:      Font: Cantarell 11
 :-- :dMNdhhdNMMNo------------;       Disk: 465G / 3.8T (13%)
 :---:sdNMMMMNds:------------:        CPU: Intel Core i9-10885H @ 16x 5.3GHz [53.0°C]
 :------:://:-------------::          GPU: Quadro T2000 with Max-Q Design
 :---------------------://            RAM: 7485MiB / 64062MiB

Comment 2 Jeff 2022-04-30 21:15:41 UTC
I would add additional information to this.
I have an asus laptop with intel and nvidia (1660) GPU.
I have a fully updated fedora 36 running, upgraded from fedora 35.  

With fedora 35 I had no problem with internal and external monitors working.  I have the laptop configured with the nvidia gpu as primary using the /etc/X11/xorg.conf.d/nvidia.conf file that contains

$ cat /etc/X11/xorg.conf.d/nvidia.conf 
#This file is provided by xorg-x11-drv-nvidia
#Do not edit

Section "OutputClass"
	Identifier "nvidia"
	MatchDriver "nvidia-drm"
	Driver "nvidia"
	Option "AllowEmptyInitialConfiguration"
	Option "SLI" "Auto"
	Option "BaseMosaic" "on"
	Option "Primary" "yes"
EndSection

Section "ServerLayout"
	Identifier "layout"
	Option "AllowNVIDIAGPUScreens"
	Option "Primary" "yes"
EndSection


I also have the latest nvidia driver from rpmfusion-nonfree-updates-testing 

$ dnf list installed akmod-nvidia
Installed Packages
akmod-nvidia.x86_64                              3:510.68.02-1.fc36                               @rpmfusion-nonfree-updates-testing

$ screenfetch
           /:-------------:\          jvian.domain
        :-------------------::        OS: Fedora 
      :-----------/shhOHbmp---:\      Kernel: x86_64 Linux 5.17.4-300.fc36.x86_64
    /-----------omMMMNNNMMD  ---:     Uptime: 21h 12m
   :-----------sMMMMNMNMP.    ---:    Packages: 3206
  :-----------:MMMdP-------    ---\   Shell: bash 5.1.16
 ,------------:MMMd--------    ---:   Disk: 93G / 197G (50%)
 :------------:MMMd-------    .---:   CPU: Intel Core i7-9750H @ 12x 4.5GHz [74.0°C]
 :----    oNMMMMMMMMMNho     .----:   GPU: NVIDIA GeForce GTX 1660 Ti
 :--     .+shhhMMMmhhy++   .------/   RAM: 1969MiB / 15844MiB
 :-    -------:MMMd--------------:   
 :-   --------/MMMd-------------;    
 :-    ------/hMMMy------------:     
 :-- :dMNdhhdNMMNo------------;      
 :---:sdNMMMMNds:------------:       
 :------:://:-------------::         
 :---------------------://           


The issue I see is this.
When using xorg both monitors work fine. Gnome settings is able to select and organize the displays as I wish.

When using wayland the external monitor will not even turn on even though gnome settings shows it under displays.  
The laptop screen is active but gnome settings shows the external display as primary even though it is not active.  It is also not possible to use gnome settings to select the laptop screen as primary.  The display in gnome settings actually shows the switch, then after a few seconds reverts back.

This same condition existed with the nvidia 510.60.02 driver before it was updated from the testing repo.

Comment 3 Ben Cotton 2023-04-25 17:00:24 UTC
This message is a reminder that Fedora Linux 36 is nearing its end of life.
Fedora will stop maintaining and issuing updates for Fedora Linux 36 on 2023-05-16.
It is Fedora's policy to close all bug reports from releases that are no longer
maintained. At that time this bug will be closed as EOL if it remains open with a
'version' of '36'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, change the 'version' 
to a later Fedora Linux version. Note that the version field may be hidden.
Click the "Show advanced fields" button if you do not see it.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora Linux 36 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora Linux, you are encouraged to change the 'version' to a later version
prior to this bug being closed.

Comment 4 Ludek Smid 2023-05-25 19:14:27 UTC
Fedora Linux 36 entered end-of-life (EOL) status on 2023-05-16.

Fedora Linux 36 is no longer maintained, which means that it
will not receive any further security or bug fix updates. As a result we
are closing this bug.

If you can reproduce this bug against a currently maintained version of Fedora Linux
please feel free to reopen this bug against that version. Note that the version
field may be hidden. Click the "Show advanced fields" button if you do not see
the version field.

If you are unable to reopen this bug, please file a new report against an
active release.

Thank you for reporting this bug and we are sorry it could not be fixed.


Note You need to log in before you can comment on or make changes to this bug.