You are not logged in.

#1 2019-11-03 17:43:44

grochu112
Member
Registered: 2019-11-03
Posts: 4

ASUS ZenBook Pro UX550G - Boot modsetting issue and bbswitch issue

I have a few issues with my new setup.


1. The issues:

a). I have encountered a problem with modsetting happening randomly at boot.
The process is stuck indefinitely at message:

fb: switching to inteldrmfb from EFI VGA

I have tried ACPI settings like:'
acpi_osi=
acpi_osi=!
acpi_osi=! acpi_osi=Linux
acpi_osi=! acpi_osi='Windows 2009'
acpi_osi=! acpi_osi='Windows 2015'
acpi_osi=! acpi_osi='Windows 2018'
acpi_osi=! acpi_osi='!Windows 2009'

The last one seams to be most stable.
It might be a placeboo but I believe that it makes the problem less frequent.
Althouth it still happens like 1 in 6~7 times.

b). There is also an issue with powering down my discrete GPU.

I have performed a GPU driver installation according to:
https://wiki.archlinux.org/index.php/Bumblebee


Installed packages:

xf86-video-intel
nvidia
bumblebee
mesa


Scenarios:

- At this point I am able to login and start GUI session. Also glxspheres64 runs perfectly with and without optirun. But notice that bbswitch is not yet installed!
- If I install bbswitch, reboot and try to start GUI session I will face a kernel hung.
- Another option: install bbswitch, reboot, go to vtty2, power up NVIDIA GPU with

tee /proc/acpi/bbswitch <<< ON

. Then I can safely start GUI session but I'm unable to power down discrete GPU. Error:

bbswitch: device 0000:01:00.0 is in use by driver 'nvidia', refusing OFF

- If I repeat all the steps from previous scenario but also blacklist 'nvidia' (with kernel parameter 'module_blacklist=nvidia'), then I can powerdown discrete GPU. However as a result optirun does not work. Error:

Cannot access secondary GPU - error: Could not load GPU driver


2. The specs:

uname -a

Linux zen-book-pro 5.3.8-arch1-1 #1 SMP PREEMPT @1572357769 x86_64 GNU/Linux

cat /proc/cmdline

(Encryption and resume related params ommited.)
loglevel=7 acpi_osi=! "acpi_osi=!Windows 2009" acpi_backlight=native random.trust_cpu=on net.ipv4.tcp_ecn=0 usbcore.autosuspend=-1

lspci

00:00.0 Host bridge: Intel Corporation 8th Gen Core Processor Host Bridge/DRAM Registers (rev 07)
00:01.0 PCI bridge: Intel Corporation Xeon E3-1200 v5/E3-1500 v5/6th Gen Core Processor PCIe Controller (x16) (rev 07)
00:02.0 VGA compatible controller: Intel Corporation UHD Graphics 630 (Mobile)
00:04.0 Signal processing controller: Intel Corporation Xeon E3-1200 v5/E3-1500 v5/6th Gen Core Processor Thermal Subsystem (rev 07)
00:08.0 System peripheral: Intel Corporation Xeon E3-1200 v5/v6 / E3-1500 v5 / 6th/7th Gen Core Processor Gaussian Mixture Model
00:12.0 Signal processing controller: Intel Corporation Cannon Lake PCH Thermal Controller (rev 10)
00:14.0 USB controller: Intel Corporation Cannon Lake PCH USB 3.1 xHCI Host Controller (rev 10)
00:14.2 RAM memory: Intel Corporation Cannon Lake PCH Shared SRAM (rev 10)
00:14.3 Network controller: Intel Corporation Wireless-AC 9560 [Jefferson Peak] (rev 10)
00:14.5 SD Host controller: Intel Corporation Device a375 (rev 10)
00:15.0 Serial bus controller [0c80]: Intel Corporation Cannon Lake PCH Serial IO I2C Controller #0 (rev 10)
00:15.1 Serial bus controller [0c80]: Intel Corporation Cannon Lake PCH Serial IO I2C Controller #1 (rev 10)
00:16.0 Communication controller: Intel Corporation Cannon Lake PCH HECI Controller (rev 10)
00:1b.0 PCI bridge: Intel Corporation Cannon Lake PCH PCI Express Root Port #17 (rev f0)
00:1b.4 PCI bridge: Intel Corporation Cannon Lake PCH PCI Express Root Port #21 (rev f0)
00:1d.0 PCI bridge: Intel Corporation Cannon Lake PCH PCI Express Root Port #9 (rev f0)
00:1e.0 Communication controller: Intel Corporation Device a328 (rev 10)
00:1e.2 Serial bus controller [0c80]: Intel Corporation Device a32a (rev 10)
00:1f.0 ISA bridge: Intel Corporation Device a30d (rev 10)
00:1f.3 Audio device: Intel Corporation Cannon Lake PCH cAVS (rev 10)
00:1f.4 SMBus: Intel Corporation Cannon Lake PCH SMBus Controller (rev 10)
00:1f.5 Serial bus controller [0c80]: Intel Corporation Cannon Lake PCH SPI Controller (rev 10)
01:00.0 3D controller: NVIDIA Corporation GP107M [GeForce GTX 1050 Ti Mobile] (rev a1)
01:00.1 Audio device: NVIDIA Corporation GP107GL High Definition Audio Controller (rev a1)
6e:00.0 Non-Volatile memory controller: Samsung Electronics Co Ltd NVMe SSD Controller SM981/PM981/PM983


3. Similar problems and solutions:

(Which obviously didn't work for me.)

https://wiki.archlinux.org/index.php/AS … _Pro_UX501
https://bbs.archlinux.org/viewtopic.php?id=249482
https://bbs.archlinux.org/viewtopic.php?id=209554

There was much, much more, but these seamed most similar based on device vendor.

Offline

#2 2020-02-18 16:34:21

jlg
Member
Registered: 2020-02-18
Posts: 7

Re: ASUS ZenBook Pro UX550G - Boot modsetting issue and bbswitch issue

I got the same laptop in Nov 2019,  was a b... to get running clean ... 
this is what I have in my default/grub:    i915.enable_execlists=0 acpi_osi=Linux acpi_backlight=vendor 

I blacklisted nouveau in modprode.d 

if I want to run on intel only:
  I blacklist nvidia , nvidia_drm and nvidia_modeset 
  remove the file /etc/X11/xorg.conf.d/10-nvidia-drm-outputclass.conf  ( this file is added by me when I want to run on nvidia.)

if I want to run on nvidia I remove the nvidia blacklist file and copy 10-nvidia-drm-outputclass.conf to /etc/X11/xorg.conf.d/

$ cat 10-nvidia-drm-outputclass.conf
Section "OutputClass"
    Identifier "intel"
    MatchDriver "i915"
    Driver "modesetting"
EndSection

Section "OutputClass"
    Identifier "nvidia"
    MatchDriver "nvidia-drm"
    Driver "nvidia"
    Option "AllowEmptyInitialConfiguration"
    Option "PrimaryGPU" "yes"
    ModulePath "/usr/lib/nvidia/xorg"
    ModulePath "/usr/lib/xorg/modules"
EndSection

Offline

Board footer

Powered by FluxBB