Bug 1403967

Summary: gnome wayland session dont work with a enabled discrete graphics card
Product: [Fedora] Fedora Reporter: Doaxan <dxzlabs>
Component: waylandAssignee: Adam Jackson <ajax>
Status: CLOSED EOL QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 25CC: ajax, carwyn
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-12-12 10:42:54 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
jounalctl -b
none
dmesg none

Description Doaxan 2016-12-12 18:16:10 UTC
Created attachment 1230876 [details]
jounalctl -b

Description of problem:
With enabled switchable graphics in bios - gnome wayland session dont work. If i disable discrete video card - gnome wayland session works good. 
I have laptop with active Intel hd4000 and discrete nvidia gtx660m(nouveau). Intel card working all time. 

How reproducible:
With intel + nvidia videocards and enabled "Switchable Graphics" in bios.

Steps to Reproduce:
1. Enable discrete videocard (Switchable Graphics option) in bios.
2. Try to login into Gnome (wayland default) session.
3. Check wayland work:
[doaxan@localhost ~]$ loginctl 
   SESSION        UID USER             SEAT            
         3       1000 doaxan           seat0           
        c2         42 gdm              seat0           

2 sessions listed.
[doaxan@localhost ~]$ loginctl show-session c2 -p Type
Type=x11
[doaxan@localhost ~]$ loginctl show-session 3 -p Type
Type=x11

Actual results:
Gnome logins into x11 session.

Expected results:
Gnome should login into wayland session. 
With option "UMA graphics" in bios(intel card only) - gnome wayland session works good. But nvidia graphics card should not affect the work, because it is not used.
Additional info:

[doaxan@localhost ~]$ uname -a
Linux localhost.localdomain 4.8.12-300.fc25.x86_64 #1 SMP Fri Dec 2 17:52:11 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

[doaxan@localhost ~]$  inxi -F
System:    Host: localhost.localdomain Kernel: 4.8.12-300.fc25.x86_64 x86_64 (64 bit)
           Desktop: Gnome 3.22.2 Distro: Fedora release 25 (Twenty Five)
Machine:   Device: laptop System: LENOVO product: Lenovo IdeaPad Y580 v: Lenovo IdeaPad Y580
           Mobo: LENOVO model: Product Name v: Mainboard version
           UEFI: LENOVO v: 5DCN40WW(V2.07) date: 10/10/2012
Battery    BAT1: charge: 3.6 Wh 59.7% condition: 6.0/6.3 Wh (96%)
CPU:       Quad core Intel Core i7-3610QM (-HT-MCP-) cache: 6144 KB 
           clock speeds: max: 3300 MHz 1: 1885 MHz 2: 1591 MHz 3: 2580 MHz
           4: 3037 MHz 5: 1587 MHz 6: 1921 MHz 7: 1565 MHz 8: 2217 MHz
Graphics:  Card-1: Intel 3rd Gen Core processor Graphics Controller
           Card-2: NVIDIA GK107M [GeForce GTX 660M]
           Display Server: Fedora X.org 119 driver: intel
           Resolution: 1920x1080
           GLX Renderer: Mesa DRI Intel Ivybridge Mobile
           GLX Version: 3.0 Mesa 13.0.2
Audio:     Card Intel 7 Series/C216 Family High Definition Audio Controller
           driver: snd_hda_intel
           Sound: ALSA v: k4.8.12-300.fc25.x86_64
Network:   Card-1: Qualcomm Atheros AR8161 Gigabit Ethernet driver: alx
           IF: enp2s0 state: up speed: 100 Mbps duplex: full
           mac: dc:0e:a1:f7:b2:59
           Card-2: Intel Centrino Wireless-N 2200 driver: iwlwifi
           IF: wlp3s0 state: down mac: 42:5a:1b:5d:f8:89
Drives:    HDD Total Size: 1014.1GB (10.9% used)
           ID-1: /dev/sda model: Samsung_SSD_850 size: 256.1GB
           ID-2: /dev/sdb model: ST750LM022_HN size: 750.2GB
           ID-3: USB /dev/sdc model: STORE_N_GO size: 7.9GB
Partition: ID-1: / size: 56G used: 19G (36%) fs: ext4 dev: /dev/sda5
           ID-2: swap-1 size: 8.36GB used: 0.00GB (0%) fs: swap dev: /dev/sda4
RAID:      No RAID devices: /proc/mdstat, md_mod kernel module present
Sensors:   System Temperatures: cpu: 48.0C mobo: N/A gpu: 33.0
           Fan Speeds (in rpm): cpu: N/A
Info:      Processes: 282 Uptime: 24 min Memory: 2374.5/15946.7MB
           Client: Shell (bash) inxi: 2.3.4

Comment 1 Doaxan 2016-12-12 18:18:37 UTC
Created attachment 1230877 [details]
dmesg

Comment 2 Carwyn Edwards 2017-01-02 22:11:19 UTC
Seems to be the same problem as bug #1403512

Comment 3 Fedora End Of Life 2017-11-16 19:00:27 UTC
This message is a reminder that Fedora 25 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 25. 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 Fedora  'version'
of '25'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version'
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not
able to fix it before Fedora 25 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, you are encouraged  change the 'version' to a later Fedora
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's
lifetime, sometimes those efforts are overtaken by events. Often a
more recent Fedora release includes newer upstream software that fixes
bugs or makes them obsolete.

Comment 4 Fedora End Of Life 2017-12-12 10:42:54 UTC
Fedora 25 changed to end-of-life (EOL) status on 2017-12-12. Fedora 25 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 please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
bug.

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