Able to set back to integrated mode, But get black screen when I try to login under integrated mode
Describe the bug
Able to set back to integrated mode, but get black screen when I try to login under integrated mode. Referring to FAQ section in the Wiki, I tryed with both modesetting and intel driver, but neither worked.
I'm not familiar with xorg or python, but I noticed the auto-genrated xorg.conf file ( /etc/X11/xorg.conf.d/10-optimus-manager.conf ) after switching to integrated mode only contains "Device" section, while the xorg.conf under nvidia mode contains many sections. And the xorg.0.log told me "no screen found"(I shall put those conf files and logs below). So I yanked the "screen" section from nvidia one to integrated one, then I restarted sddm. Luckily, I was able to login with integrated mode. As the problem seemed to be solved, I touched /etc/X11/xorg.conf.d/20-Force-Screen.conf and put the screen section in it.
I remeber at the begining days the optimus manager was able to set to integrated mode perfectly, but it went wrong somehow someday, So I wonder if my solution is right and if the problem was caused by myself or some other factors.
Thanks for this helpful program, my Linux journey became more interesting and elegent with it.
System info
OS: Arch Linux x86_64
Host: 80WW Lenovo R720-15IKBN
Kernel: 5.11.12-arch1-1
DE: Plasma 5.21.4
WM: KWin
Terminal: konsole
CPU: Intel i5-7300HQ (4) @ 3.500GHz
GPU: NVIDIA GeForce GTX 1050 Ti Mobile (PCI: 01:00.0 )
GPU: Intel HD Graphics 630 (PCI: 00:02.0 )
Optimus-Manager Version: Optimus Manager (Client) version 1.4. ( I'm sure it is the latest stable release
# My /etc/optimus-manager/optimus-manager.conf
[optimus]
switching=bbswitch
pci_power_control=no
pci_remove=no
pci_reset=no
startup_mode=auto
startup_auto_battery_mode=integrated
startup_auto_extpower_mode=nvidia
Logs
- xorg.0.log
[ 850.014] (--) Log file renamed from "/var/log/Xorg.pid-1725.log" to "/var/log/Xorg.0.log"
[ 850.014]
X.Org X Server 1.20.10
X Protocol Version 11, Revision 0
[ 850.014] Build Operating System: Linux Arch Linux
[ 850.014] Current Operating System: Linux Laptop-Of-RZ 5.11.12-arch1-1 #1 SMP PREEMPT Wed, 07 Apr 2021 21:48:28 +0000 x86_64
[ 850.014] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-linux root=UUID=dae070ed-00b7-4fee-a014-5605e2710dfd rw loglevel=3
[ 850.014] Build Date: 14 December 2020 12:10:29PM
[ 850.014]
[ 850.014] Current version of pixman: 0.40.0
[ 850.014] Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
[ 850.014] Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[ 850.014] (==) Log file: "/var/log/Xorg.0.log", Time: Sat Apr 10 21:25:09 2021
[ 850.014] (==) Using config directory: "/etc/X11/xorg.conf.d"
[ 850.014] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[ 850.014] (==) No Layout section. Using the first Screen section.
[ 850.014] (==) No screen section available. Using defaults.
[ 850.014] (**) |-->Screen "Default Screen Section" (0)
[ 850.014] (**) | |-->Monitor "<default monitor>"
[ 850.014] (==) No device specified for screen "Default Screen Section".
Using the first device section listed.
[ 850.014] (**) | |-->Device "MyGPU"
[ 850.014] (**) | |-->GPUDevice "integrated"
[ 850.014] (==) No monitor specified for screen "Default Screen Section".
Using a default monitor configuration.
[ 850.014] (==) Automatically adding devices
[ 850.014] (==) Automatically enabling devices
[ 850.014] (==) Automatically adding GPU devices
[ 850.014] (==) Automatically binding GPU devices
[ 850.014] (==) Max clients allowed: 256, resource mask: 0x1fffff
[ 850.014] (WW) The directory "/usr/share/fonts/misc" does not exist.
[ 850.014] Entry deleted from font path.
[ 850.014] (WW) The directory "/usr/share/fonts/OTF" does not exist.
[ 850.014] Entry deleted from font path.
[ 850.014] (WW) The directory "/usr/share/fonts/Type1" does not exist.
[ 850.014] Entry deleted from font path.
[ 850.014] (==) FontPath set to:
/usr/share/fonts/TTF,
/usr/share/fonts/100dpi,
/usr/share/fonts/75dpi
[ 850.014] (==) ModulePath set to "/usr/lib/xorg/modules"
[ 850.014] (II) The server relies on udev to provide the list of input devices.
If no devices become available, reconfigure udev or disable AutoAddDevices.
[ 850.014] (II) Module ABI versions:
[ 850.014] X.Org ANSI C Emulation: 0.4
[ 850.014] X.Org Video Driver: 24.1
[ 850.014] X.Org XInput driver : 24.1
[ 850.014] X.Org Server Extension : 10.0
[ 850.015] (++) using VT number 1
[ 850.015] (II) systemd-logind: logind integration requires -keeptty and -keeptty was not provided, disabling logind integration
[ 850.016] (II) xfree86: Adding drm device (/dev/dri/card0)
[ 850.028] (--) PCI:*(0@0:2:0) 8086:591b:17aa:39d1 rev 4, Mem @ 0xa2000000/16777216, 0xb0000000/268435456, I/O @ 0x00006000/64, BIOS @ 0x????????/131072
[ 850.028] (--) PCI: (1@0:0:0) 10de:1c8c:17aa:39d0 rev 161, Mem @ 0xa3000000/16777216, 0x90000000/268435456, 0xa0000000/33554432, I/O @ 0x00005000/128
[ 850.028] (WW) Open ACPI failed (/var/run/acpid.socket) (No such file or directory)
[ 850.028] (II) LoadModule: "glx"
[ 850.029] (II) Loading /usr/lib/xorg/modules/extensions/libglx.so
[ 850.029] (II) Module glx: vendor="X.Org Foundation"
[ 850.030] compiled for 1.20.10, module version = 1.0.0
[ 850.030] ABI class: X.Org Server Extension, version 10.0
[ 850.030] (II) LoadModule: "nvidia"
[ 850.030] (II) Loading /usr/lib/xorg/modules/drivers/nvidia_drv.so
[ 850.030] (II) Module nvidia: vendor="NVIDIA Corporation"
[ 850.030] compiled for 1.6.99.901, module version = 1.0.0
[ 850.030] Module class: X.Org Video Driver
[ 850.030] (II) LoadModule: "modesetting"
[ 850.030] (II) Loading /usr/lib/xorg/modules/drivers/modesetting_drv.so
[ 850.030] (II) Module modesetting: vendor="X.Org Foundation"
[ 850.030] compiled for 1.20.10, module version = 1.20.10
[ 850.030] Module class: X.Org Video Driver
[ 850.030] ABI class: X.Org Video Driver, version 24.1
[ 850.030] (II) NVIDIA dlloader X Driver 460.67 Thu Mar 11 00:09:07 UTC 2021
[ 850.030] (II) NVIDIA Unified Driver for all Supported NVIDIA GPUs
[ 850.030] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
[ 850.044] (II) modeset(G0): using drv /dev/dri/card0
[ 850.044] (WW) Falling back to old probe method for modesetting
[ 850.044] (EE) No devices detected.
[ 850.044] (EE)
Fatal server error:
[ 850.044] (EE) no screens found(EE)
[ 850.044] (EE)
Please consult the The X.Org Foundation support
at http://wiki.x.org
for help.
[ 850.044] (EE) Please also check the log file at "/var/log/Xorg.0.log" for additional information.
[ 850.044] (EE)
[ 850.096] (EE) Server terminated with error (1). Closing log file.
- xorg.conf under integrated mode
# the /etc/X11/xorg.conf.d/10-optimus-manager.conf under integrated mode
Section "Device"
Identifier "integrated"
Driver "modesetting"
BusID "PCI:0:2:0"
Option "DRI" "3"
EndSection
- xorg.conf under nvidia mode
# the /etc/X11/xorg.conf.d/10-optimus-manager.conf under nvidia mode
Section "Files"
ModulePath "/usr/lib/nvidia"
ModulePath "/usr/lib32/nvidia"
ModulePath "/usr/lib32/nvidia/xorg/modules"
ModulePath "/usr/lib32/xorg/modules"
ModulePath "/usr/lib64/nvidia/xorg/modules"
ModulePath "/usr/lib64/nvidia/xorg"
ModulePath "/usr/lib64/xorg/modules"
EndSection
Section "ServerLayout"
Identifier "layout"
Screen 0 "nvidia"
Inactive "integrated"
EndSection
Section "Device"
Identifier "nvidia"
Driver "nvidia"
BusID "PCI:1:0:0"
Option "Coolbits" "28"
EndSection
Section "Screen"
Identifier "nvidia"
Device "nvidia"
Option "AllowEmptyInitialConfiguration"
EndSection
Section "Device"
Identifier "integrated"
Driver "modesetting"
BusID "PCI:0:2:0"
EndSection
Section "Screen"
Identifier "integrated"
Device "integrated"
EndSection