ewagner12 / all-ways-egpu

Configure eGPU as primary under Linux Wayland desktops
MIT License
204 stars 12 forks source link

Goes to login screen but cannot complete re-login #1

Open Lennox84 opened 3 years ago

Lennox84 commented 3 years ago

Thank you soo much for creating this script, hopefully, we can solve this together.

System: Linux fedora 5.13.6-200.fc34.x86_64 #1 SMP Wed Jul 28 15:31:21 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux eGPU: AMD 5700xt Mantiz Saturn Pro II Fedora KDE spin Lenovo C940 Compositor: OpenGL 3.1 Scale method: Smooth

Installed and set up trying to only disable iGPU and AMD HDMI audio, disable only iGPU, disable all iGPU, AMD 5700XT & AMD HMDI audio.

The screen goes to the login screen on the laptop monitor only. entered password and then loads KDE logo (Theme Breeze Dark) on both screens with loading circle swirling Logo disappears, and the swirling circle continues. Mouse movements on both screens are lagless, but the screen remains blank. Cannot CTL-ALT-DEL. The power button does not respond Cannot go into TTY Need to press and hold PWR to turn off. Upon reboot quite a few kernel issues come up, I restart immediately and then reboots with no issues and no kernel issues. System is back to normal

Let me know what else I can test or run to give you more data to go from. Looking forward to your response

B.

ewagner12 commented 3 years ago

Ok thanks for testing. First can you try setting up to disable the iGPU but nothing else (n to all other prompts). Also can you send the output of these two commands:

cat /usr/share/all-ways-egpu/usr-bus-ids
lspci -k
ewagner12 commented 3 years ago

Actually hang on, I installed fedora KDE to test it out and it looks like I overlooked some things that SDDM does, so I'll issue a patch and then you can try it out

Lennox84 commented 3 years ago

Hey mate!

So just to confirm I had already tried disabling iGPU only, described in the 1st post.

The below was done after running setup and making sure only iGPU is disabled, but your command cat /usr/share/all-ways-egpu/usr-bus-ids comes up with nothing because the file that exists is cat /usr/share/all-ways-egpu/user-bus-ids --- OUTPUT: [bruno@fedora ~]$ cat /usr/share/all-ways-egpu/user-bus-ids 00:02.0 i915

I hope this helps.

[bruno@fedora ~]$ cat /usr/share/all-ways-egpu/usr-bus-ids cat: /usr/share/all-ways-egpu/usr-bus-ids: No such file or directory

[bruno@fedora ~]$ lspci -k 00:00.0 Host bridge: Intel Corporation Ice Lake-LP Processor Host Bridge/DRAM Registers (rev 03) Subsystem: Lenovo Device 3801 Kernel driver in use: icl_uncore 00:02.0 VGA compatible controller: Intel Corporation Iris Plus Graphics G7 (rev 07) Subsystem: Lenovo Device 3801 Kernel driver in use: i915 Kernel modules: i915 00:04.0 Signal processing controller: Intel Corporation Device 8a03 (rev 03) Subsystem: Lenovo Device 3802 Kernel driver in use: proc_thermal Kernel modules: processor_thermal_device 00:07.0 PCI bridge: Intel Corporation Ice Lake Thunderbolt 3 PCI Express Root Port #0 (rev 03) Kernel driver in use: pcieport 00:07.1 PCI bridge: Intel Corporation Ice Lake Thunderbolt 3 PCI Express Root Port #1 (rev 03) Kernel driver in use: pcieport 00:0d.0 USB controller: Intel Corporation Ice Lake Thunderbolt 3 USB Controller (rev 03) Subsystem: Lenovo Device 380a Kernel driver in use: xhci_hcd 00:0d.2 System peripheral: Intel Corporation Ice Lake Thunderbolt 3 NHI #0 (rev 03) Kernel driver in use: thunderbolt Kernel modules: thunderbolt 00:12.0 Serial controller: Intel Corporation Ice Lake-LP Integrated Sensor Solution (rev 30) Subsystem: Lenovo Device 384d Kernel driver in use: intel_ish_ipc Kernel modules: intel_ish_ipc 00:14.0 USB controller: Intel Corporation Ice Lake-LP USB 3.1 xHCI Host Controller (rev 30) Subsystem: Lenovo Device 3844 Kernel driver in use: xhci_hcd 00:14.2 RAM memory: Intel Corporation Ice Lake-LP DRAM Controller (rev 30) Subsystem: Lenovo Device 3846 00:14.3 Network controller: Intel Corporation Ice Lake-LP PCH CNVi WiFi (rev 30) Subsystem: Intel Corporation Wi-Fi 6 AX201 Kernel driver in use: iwlwifi Kernel modules: iwlwifi 00:15.0 Serial bus controller [0c80]: Intel Corporation Ice Lake-LP Serial IO I2C Controller #0 (rev 30) Subsystem: Lenovo Device 3840 Kernel driver in use: intel-lpss 00:15.1 Serial bus controller [0c80]: Intel Corporation Ice Lake-LP Serial IO I2C Controller #1 (rev 30) Subsystem: Lenovo Device 3841 Kernel driver in use: intel-lpss 00:15.2 Serial bus controller [0c80]: Intel Corporation Ice Lake-LP Serial IO I2C Controller #2 (rev 30) Subsystem: Lenovo Device 3842 Kernel driver in use: intel-lpss 00:16.0 Communication controller: Intel Corporation Ice Lake-LP Management Engine (rev 30) Subsystem: Lenovo Device 383a Kernel driver in use: mei_me Kernel modules: mei_me 00:1d.0 PCI bridge: Intel Corporation Ice Lake-LP PCI Express Root Port #9 (rev 30) Kernel driver in use: pcieport 00:1f.0 ISA bridge: Intel Corporation Ice Lake-LP LPC Controller (rev 30) Subsystem: Lenovo Device 380e 00:1f.3 Multimedia audio controller: Intel Corporation Ice Lake-LP Smart Sound Technology Audio Controller (rev 30) Subsystem: Lenovo Device 382e Kernel driver in use: sof-audio-pci-intel-icl Kernel modules: snd_hda_intel, snd_sof_pci_intel_icl 00:1f.4 SMBus: Intel Corporation Ice Lake-LP SMBus Controller (rev 30) Subsystem: Lenovo Device 3811 Kernel driver in use: i801_smbus Kernel modules: i2c_i801 00:1f.5 Serial bus controller [0c80]: Intel Corporation Ice Lake-LP SPI Controller (rev 30) Subsystem: Lenovo Device 3812 01:00.0 PCI bridge: Intel Corporation JHL6540 Thunderbolt 3 Bridge (C step) [Alpine Ridge 4C 2016] (rev 02) Kernel driver in use: pcieport 02:01.0 PCI bridge: Intel Corporation JHL6540 Thunderbolt 3 Bridge (C step) [Alpine Ridge 4C 2016] (rev 02) Kernel driver in use: pcieport 02:04.0 PCI bridge: Intel Corporation JHL6540 Thunderbolt 3 Bridge (C step) [Alpine Ridge 4C 2016] (rev 02) Kernel driver in use: pcieport 03:00.0 PCI bridge: Advanced Micro Devices, Inc. [AMD/ATI] Navi 10 XL Upstream Port of PCI Express Switch (rev c1) Kernel driver in use: pcieport 04:00.0 PCI bridge: Advanced Micro Devices, Inc. [AMD/ATI] Navi 10 XL Downstream Port of PCI Express Switch Kernel driver in use: pcieport 05:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Navi 10 [Radeon RX 5600 OEM/5600 XT / 5700/5700 XT] (rev c1) Subsystem: Gigabyte Technology Co., Ltd Radeon RX 5700 XT Gaming OC Kernel driver in use: amdgpu Kernel modules: amdgpu 05:00.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Navi 10 HDMI Audio Subsystem: Advanced Micro Devices, Inc. [AMD/ATI] Navi 10 HDMI Audio Kernel driver in use: snd_hda_intel Kernel modules: snd_hda_intel 06:00.0 PCI bridge: Intel Corporation JHL6240 Thunderbolt 3 Bridge (Low Power) [Alpine Ridge LP 2016] (rev 01) Kernel driver in use: pcieport 07:00.0 PCI bridge: Intel Corporation JHL6240 Thunderbolt 3 Bridge (Low Power) [Alpine Ridge LP 2016] (rev 01) Kernel driver in use: pcieport 07:01.0 PCI bridge: Intel Corporation JHL6240 Thunderbolt 3 Bridge (Low Power) [Alpine Ridge LP 2016] (rev 01) Kernel driver in use: pcieport 07:02.0 PCI bridge: Intel Corporation JHL6240 Thunderbolt 3 Bridge (Low Power) [Alpine Ridge LP 2016] (rev 01) Kernel driver in use: pcieport 08:00.0 USB controller: Fresco Logic FL1100 USB 3.0 Host Controller (rev 10) Subsystem: Fresco Logic FL1100 USB 3.0 Host Controller Kernel driver in use: xhci_hcd 09:00.0 USB controller: Fresco Logic FL1100 USB 3.0 Host Controller (rev 10) Subsystem: Fresco Logic FL1100 USB 3.0 Host Controller Kernel driver in use: xhci_hcd 0a:00.0 USB controller: Intel Corporation JHL6240 Thunderbolt 3 USB 3.1 Controller (Low Power) [Alpine Ridge LP 2016] (rev 01) Subsystem: Tul Corporation / PowerColor Device 501e Kernel driver in use: xhci_hcd 5b:00.0 Non-Volatile memory controller: Micron Technology Inc Device 5405 Subsystem: Micron Technology Inc Device 0100 Kernel driver in use: nvme Kernel modules: nvme

ewagner12 commented 3 years ago

Yeah that configuration all looks good. When you get a chance, try out installing LightDM or GDM3 instead of SDDM. It looks to me like SDDM + Plasma Wayland currently has an issue with restarting the display-manager, which has to be done when switching like this. Hopefully when SDDM moves to wayland that will be fixed, but for now I'd use LightDM and see if the issue goes away or changes.

Lennox84 commented 3 years ago

Legend! Thanks, will try it in the next hour or so and let you know. 💪

Lennox84 commented 3 years ago

OK so I'm not sure if it's working or not.

Tried to use lightDM but everytime I rebooted it wouldn't load the login screen so I had to drop down to TTY and reverse it. I then installed GDM... unfortunately it installed complete gnome lol (I'll fix that later) But I did load into GDM and was successful in running the script and booting back into my system which looks like it's running off the eGPU but I don't know how to tell if it's the primary display being used? Any commands I could run. The Laptop fans are definitely running lower which leads me to believe the script is working because the load is elswhere

Performance tho... It a little better than running extended mode and mirrored but not by much, there's still decent lag on the screen from typing and mouse use. (Don't get me wrong I'm not complaining but I'm happy to continue to experiment and guinea pig any idea we have of improving performance if possible.)

Let me know what I can do.

Lennox84 commented 3 years ago

Oops sorry didn't mean to close. Github n00bie