Setting X11 Driver

I recently installed ClearLinux on my laptop from the installer to a USB. Inserted the USB, booted, but no screen. The kernel boots and the system is running (remove the USB and watch the error messages) but X refuses to start. This is a very new laptop with Intel and a discreet nVidia 3d controller (Optimus). Looks to me like X isn’t using the right driver, though I’m kind of quessing based on behavior.

As a non-user of systemd I have no idea how to find the logs written to the USB from an exernal system about what might be going on. How can I configure it to use a the vesa driver to help be debug it?

My biggest issue with Clear Linux is that it any standards developed over the last 60 years regarding file locations are gone. Hey, that can be a good thing for users who don’t know anything but the GUI, but horrible for those of us that have using Unix for 40 years.

Yeah call me old.

When boot on USB CL try to change to a TTY by pressing ALT + F2, there you can log in an see the /var/log/Xorg.0.log

Also /var/log/Xorg.0.log can be read from your USB from other distro.

Got it. Found it.

The problem is it finds the nVidia discrete GPU which is not connected to the video output without using the mux. The X log says it can’t laod the “intel” module as it is not found. It loads nouveau, fbdev, and vesa and then choose the nouveau and unloads the others. Using that configuration the modesetting driver would need to be loaded (it is), and then the following issued:
xrandr --setprovideroutputsource modesetting NVIDIA-0
xrandr --auto

That would cause the output to be forced to be rendered using the nVidia. That would work but it needs to ran by the display manager, and in the user’s xinitrc (or other .xsession) to switch the output tothe nVidia.

I either need the intel driver to be used. Normally I might blacklist the nouvuea module (DRM) to make sure it isn’t loaded. Where can I do that? It might then use the vesa of the fb dev.

[ 122.716] (–) Log file renamed from “/var/log/Xorg.pid-870.log” to “/var/log/Xorg.0.log”
[ 122.716]
X.Org X Server 1.20.4
X Protocol Version 11, Revision 0
[ 122.716] Build Operating System: Linux 5.0.10-743.native x86_64
[ 122.716] Current Operating System: Linux clr-9df2c510fe3041aea2a0a4c095584471 5.1.5-770.native #1 SMP Mon May 27 16:02:28 UTC 2019 x86_64
[ 122.716] Kernel command line: root=PARTUUID=c76eecd2-83f9-46d2-bfee-9c451eca4e2e quiet console=tty0 console=ttyS0,115200n8 init=/usr/bin/initra-desktop initcall_debug tsc=reliable no_timer_check noreplace-smp kvm-intel.nested=1 rootfstype=ext4,btrfs,xfs intel_iommu=igfx_off cryptomgr.notests rcupdate.rcu_expedited=1 rcu_nocbs=0-64 rw
[ 122.716] Build Date: 29 March 2019 02:54:35PM
[ 122.716]
[ 122.716] Current version of pixman: 0.38.4
[ 122.716] Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
[ 122.716] Markers: (–) probed, () from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[ 122.717] (==) Log file: “/var/log/Xorg.0.log”, Time: Thu Jun 6 12:32:55 2019
[ 122.727] (==) Using system config directory “/usr/share/X11/xorg.conf.d”
[ 124.174] (==) No Layout section. Using the first Screen section.
[ 124.174] (==) No screen section available. Using defaults.
[ 124.174] (
) |–>Screen “Default Screen Section” (0)
[ 124.174] (**) | |–>Monitor “”
[ 124.174] (==) No monitor specified for screen “Default Screen Section”.
Using a default monitor configuration.
[ 124.174] (==) Automatically adding devices
[ 124.174] (==) Automatically enabling devices
[ 124.174] (==) Automatically adding GPU devices
[ 124.174] (==) Max clients allowed: 256, resource mask: 0x1fffff
[ 124.174] (==) FontPath set to:
/usr/share/fonts/X11/misc/,
/usr/share/fonts/X11/TTF/,
/usr/share/fonts/X11/OTF/,
/usr/share/fonts/X11/Type1/,
/usr/share/fonts/X11/100dpi/,
/usr/share/fonts/X11/75dpi/
[ 124.174] (==) ModulePath set to “/usr/lib64/xorg/modules”
[ 124.174] (II) The server relies on udev to provide the list of input devices.
If no devices become available, reconfigure udev or disable AutoAddDevices.
[ 124.174] (II) Loader magic: 0x55c546a0b020
[ 124.174] (II) Module ABI versions:
[ 124.174] X.Org ANSI C Emulation: 0.4
[ 124.174] X.Org Video Driver: 24.0
[ 124.174] X.Org XInput driver : 24.1
[ 124.174] X.Org Server Extension : 10.0
[ 124.175] (++) using VT number 2

[ 124.177] (II) systemd-logind: took control of session /org/freedesktop/login1/session/_32
[ 124.177] (II) xfree86: Adding drm device (/dev/dri/card0)
[ 124.177] (II) systemd-logind: got fd for /dev/dri/card0 226:0 fd 13 paused 0
[ 124.178] (II) xfree86: Adding drm device (/dev/dri/card1)
[ 126.183] (II) systemd-logind: got fd for /dev/dri/card1 226:1 fd 14 paused 0
[ 126.185] (–) PCI:*(0@0:2:0) 8086:3ea0:1043:1481 rev 0, Mem @ 0xb2000000/16777216, 0x90000000/268435456, I/O @ 0x00004000/64, BIOS @ 0x???/131072
[ 126.185] (–) PCI: (2@0:0:0) 10de:1c8d:1043:1b5e rev 161, Mem @ 0xb3000000/16777216, 0xa0000000/268435456, 0xb0000000/33554432, I/O @ 0x00003000/128, BIOS @ 0x???/524288
[ 126.185] (WW) Open ACPI failed (/var/run/acpid.socket) (No such file or directory)
[ 126.185] (II) LoadModule: “glx”
[ 129.905] (II) Loading /usr/lib64/xorg/modules/extensions/libglx.so
[ 130.080] (II) Module glx: vendor=“X.Org Foundation”
[ 130.080] compiled for 1.20.4, module version = 1.0.0
[ 130.080] ABI class: X.Org Server Extension, version 10.0
[ 130.080] (==) Matched intel as autoconfigured driver 0
[ 130.080] (==) Matched nouveau as autoconfigured driver 1
[ 130.080] (==) Matched nv as autoconfigured driver 2
[ 130.080] (==) Matched modesetting as autoconfigured driver 3
[ 130.080] (==) Matched fbdev as autoconfigured driver 4
[ 130.080] (==) Matched vesa as autoconfigured driver 5
[ 130.080] (==) Assigned the driver to the xf86ConfigLayout
[ 130.080] (II) LoadModule: “intel”
[ 131.619] (WW) Warning, couldn’t open module intel
[ 131.619] (EE) Failed to load module “intel” (module does not exist, 0)
[ 131.619] (II) LoadModule: “nouveau”
[ 131.621] (II) Loading /usr/lib64/xorg/modules/drivers/nouveau_drv.so
[ 131.729] (II) Module nouveau: vendor=“X.Org Foundation”
[ 131.729] compiled for 1.20.4, module version = 1.0.16
[ 131.729] Module class: X.Org Video Driver
[ 131.729] ABI class: X.Org Video Driver, version 24.0
[ 131.729] (II) LoadModule: “nv”
[ 131.730] (WW) Warning, couldn’t open module nv
[ 131.730] (EE) Failed to load module “nv” (module does not exist, 0)
[ 131.730] (II) LoadModule: “modesetting”
[ 131.730] (II) Loading /usr/lib64/xorg/modules/drivers/modesetting_drv.so
[ 131.878] (II) Module modesetting: vendor=“X.Org Foundation”
[ 131.878] compiled for 1.20.4, module version = 1.20.4
[ 131.878] Module class: X.Org Video Driver
[ 131.878] ABI class: X.Org Video Driver, version 24.0
[ 131.878] (II) LoadModule: “fbdev”
[ 131.878] (II) Loading /usr/lib64/xorg/modules/drivers/fbdev_drv.so
[ 132.006] (II) Module fbdev: vendor=“X.Org Foundation”
[ 132.006] compiled for 1.20.4, module version = 0.5.0
[ 132.006] Module class: X.Org Video Driver
[ 132.006] ABI class: X.Org Video Driver, version 24.0
[ 132.006] (II) LoadModule: “vesa”
[ 132.006] (II) Loading /usr/lib64/xorg/modules/drivers/vesa_drv.so
[ 133.422] (II) Module vesa: vendor=“X.Org Foundation”
[ 133.422] compiled for 1.20.4, module version = 2.4.0
[ 133.422] Module class: X.Org Video Driver
[ 133.422] ABI class: X.Org Video Driver, version 24.0
[ 133.422] (II) NOUVEAU driver
[ 133.422] (II) NOUVEAU driver for NVIDIA chipset families :
[ 133.422] RIVA TNT (NV04)
[ 133.422] RIVA TNT2 (NV05)
[ 133.422] GeForce 256 (NV10)
[ 133.422] GeForce 2 (NV11, NV15)
[ 133.422] GeForce 4MX (NV17, NV18)
[ 133.422] GeForce 3 (NV20)
[ 133.422] GeForce 4Ti (NV25, NV28)
[ 133.422] GeForce FX (NV3x)
[ 133.422] GeForce 6 (NV4x)
[ 133.422] GeForce 7 (G7x)
[ 133.422] GeForce 8 (G8x)
[ 133.422] GeForce 9 (G9x)
[ 133.422] GeForce GTX 2xx/3xx (GT2xx)
[ 133.422] GeForce GTX 4xx/5xx (GFxxx)
[ 133.422] GeForce GTX 6xx/7xx (GKxxx)
[ 133.422] GeForce GTX 9xx (GMxxx)
[ 133.422] GeForce GTX 10xx (GPxxx)
[ 133.422] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
[ 133.422] (II) FBDEV: driver for framebuffer: fbdev
[ 133.422] (II) VESA: driver for VESA chipsets: vesa
[ 133.422] (II) modeset(0): using drv /dev/dri/card0
[ 133.422] (WW) Falling back to old probe method for fbdev
[ 133.422] (II) Loading sub module “fbdevhw”
[ 133.422] (II) LoadModule: “fbdevhw”
[ 133.422] (II) Loading /usr/lib64/xorg/modules/libfbdevhw.so
[ 134.869] (II) Module fbdevhw: vendor=“X.Org Foundation”
[ 134.869] compiled for 1.20.4, module version = 0.0.2
[ 134.869] ABI class: X.Org Video Driver, version 24.0
[ 134.869] (II) [drm] nouveau interface version: 1.3.1
[ 134.869] (II) modeset(0): Creating default Display subsection in Screen section
“Default Screen Section” for depth/fbbpp 24/32
[ 134.869] (==) modeset(0): Depth 24, (==) framebuffer bpp 32
[ 134.869] (==) modeset(0): RGB weight 888
[ 134.869] (==) modeset(0): Default visual is TrueColor
[ 134.869] (II) Loading sub module “glamoregl”
[ 134.869] (II) LoadModule: “glamoregl”
[ 134.869] (II) Loading /usr/lib64/xorg/modules/libglamoregl.so
[ 137.736] (II) Module glamoregl: vendor=“X.Org Foundation”
[ 137.736] compiled for 1.20.4, module version = 1.0.1
[ 137.736] ABI class: X.Org ANSI C Emulation, version 0.4
[ 137.742] (II) modeset(0): glamor X acceleration enabled on Mesa DRI Intel® HD Graphics (Whiskey Lake 3x8 GT2)
[ 137.742] (II) modeset(0): glamor initialized
[ 137.746] (II) modeset(0): Output eDP-1 has no monitor section
[ 137.756] (II) modeset(0): Output HDMI-1 has no monitor section
[ 139.208] (II) modeset(0): EDID for output eDP-1
[ 139.208] (II) modeset(0): Manufacturer: BOE Model: 7d9 Serial#: 0
[ 139.208] (II) modeset(0): Year: 2018 Week: 18
[ 139.208] (II) modeset(0): EDID Version: 1.4
[ 139.208] (II) modeset(0): Digital Display Input
[ 139.208] (II) modeset(0): 8 bits per channel
[ 139.208] (II) modeset(0): Digital interface is DisplayPort
[ 139.208] (II) modeset(0): Max Image Size [cm]: horiz.: 34 vert.: 19
[ 139.208] (II) modeset(0): Gamma: 2.20
[ 139.208] (II) modeset(0): No DPMS capabilities specified
[ 139.208] (II) modeset(0): Supported color encodings: RGB 4:4:4
[ 139.208] (II) modeset(0): First detailed timing is preferred mode
[ 139.208] (II) modeset(0): Preferred mode is native pixel format and refresh rate
[ 139.208] (II) modeset(0): redX: 0.644 redY: 0.336 greenX: 0.300 greenY: 0.611
[ 139.208] (II) modeset(0): blueX: 0.150 blueY: 0.068 whiteX: 0.312 whiteY: 0.328
[ 139.208] (II) modeset(0): Manufacturer’s mask: 0
[ 139.208] (II) modeset(0): Supported detailed timing:
[ 139.208] (II) modeset(0): clock: 533.3 MHz Image Size: 344 x 194 mm
[ 139.208] (II) modeset(0): h_active: 3840 h_sync: 3888 h_sync_end 3920 h_blank_end 4000 h_border: 0
[ 139.208] (II) modeset(0): v_active: 2160 v_sync: 2163 v_sync_end 2168 v_blanking: 2222 v_border: 0
[ 139.208] (II) modeset(0): BOE HF
[ 139.208] (II) modeset(0): NE156QUM-N64
[ 139.208] (II) modeset(0): EDID (in hex):
[ 139.208] (II) modeset(0): 00ffffffffffff0009e5d90700000000
[ 139.208] (II) modeset(0): 121c0104a522137802cea0a4564c9c26
[ 139.208] (II) modeset(0): 11505400000001010101010101010101
[ 139.208] (II) modeset(0): 01010101010152d000a0f0703e803020
[ 139.208] (II) modeset(0): 350058c21000001a0000000000000000
[ 139.208] (II) modeset(0): 00000000000000000000000000fe0042
[ 139.208] (II) modeset(0): 4f452048460a202020202020000000fe
[ 139.208] (II) modeset(0): 004e4531353651554d2d4e36340a0072
[ 139.208] (II) modeset(0): Printing probed modes for output eDP-1
[ 139.208] (II) modeset(0): Modeline "3840x2160"x60.0 533.30 3840 3888 3920 4000 2160 2163 2168 2222 +hsync -vsync (133.3 kHz eP)
[ 139.208] (II) modeset(0): Modeline "3840x2160"x60.0 712.75 3840 4160 4576 5312 2160 2163 2168 2237 -hsync +vsync (134.2 kHz d)
[ 139.208] (II) modeset(0): Modeline "3840x2160"x60.0 533.00 3840 3888 3920 4000 2160 2163 2168 2222 +hsync -vsync (133.2 kHz d)
[ 139.208] (II) modeset(0): Modeline "3200x1800"x60.0 492.00 3200 3456 3800 4400 1800 1803 1808 1865 -hsync +vsync (111.8 kHz d)
[ 139.208] (II) modeset(0): Modeline "3200x1800"x59.9 373.00 3200 3248 3280 3360 1800 1803 1808 1852 +hsync -vsync (111.0 kHz d)
[ 139.208] (II) modeset(0): Modeline "2880x1620"x60.0 396.25 2880 3096 3408 3936 1620 1623 1628 1679 -hsync +vsync (100.7 kHz d)
[ 139.208] (II) modeset(0): Modeline "2880x1620"x60.0 303.75 2880 2928 2960 3040 1620 1623 1628 1666 +hsync -vsync (99.9 kHz d)
[ 139.208] (II) modeset(0): Modeline "2560x1600"x60.0 348.50 2560 2760 3032 3504 1600 1603 1609 1658 -hsync +vsync (99.5 kHz d)
[ 139.208] (II) modeset(0): Modeline "2560x1600"x60.0 268.50 2560 2608 2640 2720 1600 1603 1609 1646 +hsync -vsync (98.7 kHz d)
[ 139.208] (II) modeset(0): Modeline "2560x1440"x120.0 638.25 2560 2780 3064 3568 1440 1441 1444 1491 doublescan -hsync +vsync (178.9 kHz d)
[ 139.208] (II) modeset(0): Modeline "2560x1440"x120.0 469.12 2560 2584 2600 2640 1440 1441 1444 1481 doublescan +hsync -vsync (177.7 kHz d)
[ 139.208] (II) modeset(0): Modeline "2560x1440"x60.0 312.25 2560 2752 3024 3488 1440 1443 1448 1493 -hsync +vsync (89.5 kHz d)
[ 139.208] (II) modeset(0): Modeline "2560x1440"x60.0 241.50 2560 2608 2640 2720 1440 1443 1448 1481 +hsync -vsync (88.8 kHz d)
[ 139.208] (II) modeset(0): Modeline "2048x1536"x60.0 266.95 2048 2200 2424 2800 1536 1537 1540 1589 -hsync +vsync (95.3 kHz d)
[ 139.208] (II) modeset(0): Modeline "1920x1440"x60.0 234.00 1920 2048 2256 2600 1440 1441 1444 1500 -hsync +vsync (90.0 kHz d)
[ 139.208] (II) modeset(0): Modeline "1856x1392"x60.0 218.30 1856 1952 2176 2528 1392 1393 1396 1439 -hsync +vsync (86.4 kHz d)
[ 139.208] (II) modeset(0): Modeline "1792x1344"x60.0 204.80 1792 1920 2120 2448 1344 1345 1348 1394 -hsync +vsync (83.7 kHz d)
[ 139.208] (II) modeset(0): Modeline "2048x1152"x120.0 406.50 2048 2220 2444 2840 1152 1153 1156 1193 doublescan -hsync +vsync (143.1 kHz d)
[ 139.208] (II) modeset(0): Modeline "2048x1152"x120.0 302.50 2048 2072 2088 2128 1152 1153 1156 1185 doublescan +hsync -vsync (142.2 kHz d)
[ 139.208] (II) modeset(0): Modeline "2048x1152"x59.9 197.00 2048 2184 2400 2752 1152 1155 1160 1195 -hsync +vsync (71.6 kHz d)
[ 139.208] (II) modeset(0): Modeline "2048x1152"x59.9 156.75 2048 2096 2128 2208 1152 1155 1160 1185 +hsync -vsync (71.0 kHz d)
[ 139.208] (II) modeset(0): Modeline "1920x1200"x59.9 193.25 1920 2056 2256 2592 1200 1203 1209 1245 -hsync +vsync (74.6 kHz d)
[ 139.208] (II) modeset(0): Modeline "1920x1200"x60.0 154.00 1920 1968 2000 2080 1200 1203 1209 1235 +hsync -vsync (74.0 kHz d)
[ 139.208] (II) modeset(0): Modeline "1920x1080"x120.0 356.38 1920 2080 2288 2656 1080 1081 1084 1118 doublescan -hsync +vsync (134.2 kHz d)
[ 139.208] (II) modeset(0): Modeline "1920x1080"x119.9 266.50 1920 1944 1960 2000 1080 1081 1084 1111 doublescan +hsync -vsync (133.2 kHz d)
[ 139.208] (II) modeset(0): Modeline "1920x1080"x60.0 173.00 1920 2048 2248 2576 1080 1083 1088 1120 -hsync +vsync (67.2 kHz d)
[ 139.208] (II) modeset(0): Modeline "1920x1080"x59.9 138.50 1920 1968 2000 2080 1080 1083 1088 1111 +hsync -vsync (66.6 kHz d)
[ 139.208] (II) modeset(0): Modeline "1600x1200"x60.0 162.00 1600 1664 1856 2160 1200 1201 1204 1250 +hsync +vsync (75.0 kHz d)
[ 139.208] (II) modeset(0): Modeline "1680x1050"x60.0 146.25 1680 1784 1960 2240 1050 1053 1059 1089 -hsync +vsync (65.3 kHz d)
[ 139.208] (II) modeset(0): Modeline "1680x1050"x59.9 119.00 1680 1728 1760 1840 1050 1053 1059 1080 +hsync -vsync (64.7 kHz d)
[ 139.208] (II) modeset(0): Modeline "1400x1050"x60.0 122.00 1400 1488 1640 1880 1050 1052 1064 1082 +hsync +vsync (64.9 kHz d)
[ 139.208] (II) modeset(0): Modeline "1600x900"x120.0 246.00 1600 1728 1900 2200 900 901 904 932 doublescan -hsync +vsync (111.8 kHz d)
[ 139.208] (II) modeset(0): Modeline "1600x900"x119.9 186.50 1600 1624 1640 1680 900 901 904 926 doublescan +hsync -vsync (111.0 kHz d)
[ 139.208] (II) modeset(0): Modeline "1600x900"x59.9 118.25 1600 1696 1856 2112 900 903 908 934 -hsync +vsync (56.0 kHz d)
[ 139.208] (II) modeset(0): Modeline "1600x900"x59.8 97.50 1600 1648 1680 1760 900 903 908 926 +hsync -vsync (55.4 kHz d)
[ 139.208] (II) modeset(0): Modeline "1280x1024"x60.0 108.00 1280 1328 1440 1688 1024 1025 1028 1066 +hsync +vsync (64.0 kHz d)
[ 139.208] (II) modeset(0): Modeline "1400x900"x60.0 103.50 1400 1480 1624 1848 900 903 913 934 -hsync +vsync (56.0 kHz d)
[ 139.208] (II) modeset(0): Modeline "1400x900"x59.9 86.50 1400 1448 1480 1560 900 903 913 926 +hsync -vsync (55.4 kHz d)
[ 139.208] (II) modeset(0): Modeline "1280x960"x60.0 108.00 1280 1376 1488 1800 960 961 964 1000 +hsync +vsync (60.0 kHz d)
[ 139.208] (II) modeset(0): Modeline "1440x810"x120.0 198.12 1440 1548 1704 1968 810 811 814 839 doublescan -hsync +vsync (100.7 kHz d)
[ 139.208] (II) modeset(0): Modeline "1440x810"x119.9 151.88 1440 1464 1480 1520 810 811 814 833 doublescan +hsync -vsync (99.9 kHz d)
[ 139.208] (II) modeset(0): Modeline "1368x768"x59.9 85.25 1368 1440 1576 1784 768 771 781 798 -hsync +vsync (47.8 kHz d)
[ 139.208] (II) modeset(0): Modeline "1368x768"x59.9 72.25 1368 1416 1448 1528 768 771 781 790 +hsync -vsync (47.3 kHz d)
[ 139.208] (II) modeset(0): Modeline "1280x800"x120.0 174.25 1280 1380 1516 1752 800 801 804 829 doublescan -hsync +vsync (99.5 kHz d)
[ 139.208] (II) modeset(0): Modeline "1280x800"x119.9 134.25 1280 1304 1320 1360 800 801 804 823 doublescan +hsync -vsync (98.7 kHz d)
[ 139.208] (II) modeset(0): Modeline "1280x800"x59.8 83.50 1280 1352 1480 1680 800 803 809 831 -hsync +vsync (49.7 kHz d)
[ 139.208] (II) modeset(0): Modeline "1280x800"x59.9 71.00 1280 1328 1360 1440 800 803 809 823 +hsync -vsync (49.3 kHz d)
[ 139.208] (II) modeset(0): Modeline "1280x720"x120.0 156.12 1280 1376 1512 1744 720 721 724 746 doublescan -hsync +vsync (89.5 kHz d)
[ 139.208] (II) modeset(0): Modeline "1280x720"x120.0 120.75 1280 1304 1320 1360 720 721 724 740 doublescan +hsync -vsync (88.8 kHz d)
[ 139.208] (II) modeset(0): Modeline "1280x720"x59.9 74.50 1280 1344 1472 1664 720 723 728 748 -hsync +vsync (44.8 kHz d)
[ 139.208] (II) modeset(0): Modeline "1280x720"x59.7 63.75 1280 1328 1360 1440 720 723 728 741 +hsync -vsync (44.3 kHz d)
[ 139.208] (II) modeset(0): Modeline "1024x768"x120.1 133.47 1024 1100 1212 1400 768 768 770 794 doublescan -hsync +vsync (95.3 kHz d)
[ 139.208] (II) modeset(0): Modeline "1024x768"x60.0 65.00 1024 1048 1184 1344 768 771 777 806 -hsync -vsync (48.4 kHz d)
[ 139.208] (II) modeset(0): Modeline "960x720"x120.0 117.00 960 1024 1128 1300 720 720 722 750 doublescan -hsync +vsync (90.0 kHz d)
[ 139.208] (II) modeset(0): Modeline "928x696"x120.1 109.15 928 976 1088 1264 696 696 698 719 doublescan -hsync +vsync (86.4 kHz d)
[ 139.208] (II) modeset(0): Modeline "896x672"x120.0 102.40 896 960 1060 1224 672 672 674 697 doublescan -hsync +vsync (83.7 kHz d)
[ 139.208] (II) modeset(0): Modeline "1024x576"x119.9 98.50 1024 1092 1200 1376 576 577 580 597 doublescan -hsync +vsync (71.6 kHz d)
[ 139.208] (II) modeset(0): Modeline "1024x576"x119.9 78.38 1024 1048 1064 1104 576 577 580 592 doublescan +hsync -vsync (71.0 kHz d)
[ 139.208] (II) modeset(0): Modeline "1024x576"x59.9 46.50 1024 1064 1160 1296 576 579 584 599 -hsync +vsync (35.9 kHz d)
[ 139.208] (II) modeset(0): Modeline "1024x576"x59.8 42.00 1024 1072 1104 1184 576 579 584 593 +hsync -vsync (35.5 kHz d)
[ 139.208] (II) modeset(0): Modeline "960x600"x119.9 96.62 960 1028 1128 1296 600 601 604 622 doublescan -hsync +vsync (74.6 kHz d)
[ 139.208] (II) modeset(0): Modeline "960x600"x120.0 77.00 960 984 1000 1040 600 601 604 617 doublescan +hsync -vsync (74.0 kHz d)
[ 139.208] (II) modeset(0): Modeline "960x540"x119.9 86.50 960 1024 1124 1288 540 541 544 560 doublescan -hsync +vsync (67.2 kHz d)
[ 139.208] (II) modeset(0): Modeline "960x540"x120.0 69.25 960 984 1000 1040 540 541 544 555 doublescan +hsync -vsync (66.6 kHz d)
[ 139.208] (II) modeset(0): Modeline "960x540"x59.6 40.75 960 992 1088 1216 540 543 548 562 -hsync +vsync (33.5 kHz d)
[ 139.208] (II) modeset(0): Modeline "960x540"x59.8 37.25 960 1008 1040 1120 540 543 548 556 +hsync -vsync (33.3 kHz d)
[ 139.208] (II) modeset(0): Modeline "800x600"x120.0 81.00 800 832 928 1080 600 600 602 625 doublescan +hsync +vsync (75.0 kHz d)
[ 139.208] (II) modeset(0): Modeline "800x600"x60.3 40.00 800 840 968 1056 600 601 605 628 +hsync +vsync (37.9 kHz d)
[ 139.208] (II) modeset(0): Modeline "800x600"x56.2 36.00 800 824 896 1024 600 601 603 625 +hsync +vsync (35.2 kHz d)
[ 139.208] (II) modeset(0): Modeline "840x525"x120.0 73.12 840 892 980 1120 525 526 529 544 doublescan -hsync +vsync (65.3 kHz d)
[ 139.208] (II) modeset(0): Modeline "840x525"x119.8 59.50 840 864 880 920 525 526 529 540 doublescan +hsync -vsync (64.7 kHz d)
[ 139.208] (II) modeset(0): Modeline "864x486"x59.9 32.50 864 888 968 1072 486 489 494 506 -hsync +vsync (30.3 kHz d)
[ 139.208] (II) modeset(0): Modeline "864x486"x59.6 30.50 864 912 944 1024 486 489 494 500 +hsync -vsync (29.8 kHz d)
[ 139.208] (II) modeset(0): Modeline "700x525"x120.0 61.00 700 744 820 940 525 526 532 541 doublescan +hsync +vsync (64.9 kHz d)
[ 139.208] (II) modeset(0): Modeline "800x450"x119.9 59.12 800 848 928 1056 450 451 454 467 doublescan -hsync +vsync (56.0 kHz d)
[ 139.208] (II) modeset(0): Modeline "800x450"x119.6 48.75 800 824 840 880 450 451 454 463 doublescan +hsync -vsync (55.4 kHz d)
[ 139.208] (II) modeset(0): Modeline "640x512"x120.0 54.00 640 664 720 844 512 512 514 533 doublescan +hsync +vsync (64.0 kHz d)
[ 139.208] (II) modeset(0): Modeline "700x450"x119.9 51.75 700 740 812 924 450 451 456 467 doublescan -hsync +vsync (56.0 kHz d)
[ 139.208] (II) modeset(0): Modeline "700x450"x119.8 43.25 700 724 740 780 450 451 456 463 doublescan +hsync -vsync (55.4 kHz d)
[ 139.208] (II) modeset(0): Modeline "640x480"x120.0 54.00 640 688 744 900 480 480 482 500 doublescan +hsync +vsync (60.0 kHz d)
[ 139.208] (II) modeset(0): Modeline "640x480"x59.9 25.18 640 656 752 800 480 490 492 525 -hsync -vsync (31.5 kHz d)
[ 139.208] (II) modeset(0): Modeline "720x405"x59.5 22.50 720 744 808 896 405 408 413 422 -hsync +vsync (25.1 kHz d)
[ 139.208] (II) modeset(0): Modeline "720x405"x59.0 21.75 720 768 800 880 405 408 413 419 +hsync -vsync (24.7 kHz d)
[ 139.208] (II) modeset(0): Modeline "684x384"x119.8 42.62 684 720 788 892 384 385 390 399 doublescan -hsync +vsync (47.8 kHz d)
[ 139.208] (II) modeset(0): Modeline "684x384"x119.7 36.12 684 708 724 764 384 385 390 395 doublescan +hsync -vsync (47.3 kHz d)
[ 139.208] (II) modeset(0): Modeline "640x400"x119.8 41.75 640 676 740 840 400 401 404 415 doublescan -hsync +vsync (49.7 kHz d)
[ 139.208] (II) modeset(0): Modeline "640x400"x120.0 35.50 640 664 680 720 400 401 404 411 doublescan +hsync -vsync (49.3 kHz d)
[ 139.208] (II) modeset(0): Modeline "640x360"x119.7 37.25 640 672 736 832 360 361 364 374 doublescan -hsync +vsync (44.8 kHz d)
[ 139.208] (II) modeset(0): Modeline "640x360"x119.7 31.88 640 664 680 720 360 361 364 370 doublescan +hsync -vsync (44.3 kHz d)
[ 139.208] (II) modeset(0): Modeline "640x360"x59.8 18.00 640 664 720 800 360 363 368 376 -hsync +vsync (22.5 kHz d)
[ 139.208] (II) modeset(0): Modeline "640x360"x59.3 17.75 640 688 720 800 360 363 368 374 +hsync -vsync (22.2 kHz d)
[ 139.208] (II) modeset(0): Modeline "512x384"x120.0 32.50 512 524 592 672 384 385 388 403 doublescan -hsync -vsync (48.4 kHz d)
[ 139.208] (II) modeset(0): Modeline "512x288"x120.0 23.25 512 532 580 648 288 289 292 299 doublescan -hsync +vsync (35.9 kHz d)
[ 139.208] (II) modeset(0): Modeline "512x288"x119.8 21.00 512 536 552 592 288 289 292 296 doublescan +hsync -vsync (35.5 kHz d)
[ 139.208] (II) modeset(0): Modeline "480x270"x119.3 20.38 480 496 544 608 270 271 274 281 doublescan -hsync +vsync (33.5 kHz d)
[ 139.208] (II) modeset(0): Modeline "480x270"x119.6 18.62 480 504 520 560 270 271 274 278 doublescan +hsync -vsync (33.3 kHz d)
[ 139.208] (II) modeset(0): Modeline "400x300"x120.6 20.00 400 420 484 528 300 300 302 314 doublescan +hsync +vsync (37.9 kHz d)
[ 139.208] (II) modeset(0): Modeline "400x300"x112.7 18.00 400 412 448 512 300 300 301 312 doublescan +hsync +vsync (35.2 kHz d)
[ 139.208] (II) modeset(0): Modeline "432x243"x119.8 16.25 432 444 484 536 243 244 247 253 doublescan -hsync +vsync (30.3 kHz d)
[ 139.208] (II) modeset(0): Modeline "432x243"x119.1 15.25 432 456 472 512 243 244 247 250 doublescan +hsync -vsync (29.8 kHz d)
[ 139.208] (II) modeset(0): Modeline "320x240"x120.1 12.59 320 328 376 400 240 245 246 262 doublescan -hsync -vsync (31.5 kHz d)
[ 139.208] (II) modeset(0): Modeline "360x202"x119.0 11.25 360 372 404 448 202 204 206 211 doublescan -hsync +vsync (25.1 kHz d)
[ 139.208] (II) modeset(0): Modeline "360x202"x118.3 10.88 360 384 400 440 202 204 206 209 doublescan +hsync -vsync (24.7 kHz d)
[ 139.208] (II) modeset(0): Modeline "320x180"x119.7 9.00 320 332 360 400 180 181 184 188 doublescan -hsync +vsync (22.5 kHz d)
[ 139.208] (II) modeset(0): Modeline "320x180"x118.6 8.88 320 344 360 400 180 181 184 187 doublescan +hsync -vsync (22.2 kHz d)
[ 139.218] (II) modeset(0): EDID for output HDMI-1
[ 139.218] (II) modeset(0): Output eDP-1 connected
[ 139.218] (II) modeset(0): Output HDMI-1 disconnected
[ 139.218] (II) modeset(0): Using exact sizes for initial modes
[ 139.218] (II) modeset(0): Output eDP-1 using initial mode 3840x2160 +0+0
[ 139.218] (==) modeset(0): Using gamma correction (1.0, 1.0, 1.0)
[ 139.218] (==) modeset(0): DPI set to (96, 96)
[ 139.218] (II) Loading sub module “fb”
[ 139.218] (II) LoadModule: “fb”
[ 139.218] (II) Loading /usr/lib64/xorg/modules/libfb.so
[ 139.284] (II) Module fb: vendor=“X.Org Foundation”
[ 139.284] compiled for 1.20.4, module version = 1.0.0
[ 139.284] ABI class: X.Org ANSI C Emulation, version 0.4
[ 139.284] (II) Loading sub module “dri2”
[ 139.284] (II) LoadModule: “dri2”
[ 139.284] (II) Module “dri2” already built-in
[ 139.284] (–) NOUVEAU(G0): Chipset: “NVIDIA NV137”
[ 139.284] (==) NOUVEAU(G0): Depth 24, (–) framebuffer bpp 32
[ 139.284] (==) NOUVEAU(G0): RGB weight 888
[ 139.284] (==) NOUVEAU(G0): Default visual is TrueColor
[ 139.284] (==) NOUVEAU(G0): Using HW cursor
[ 139.284] (==) NOUVEAU(G0): Allowed maximum DRI level 2.
[ 139.284] (==) NOUVEAU(G0): GLX sync to VBlank enabled.
[ 139.284] (==) NOUVEAU(G0): Page flipping enabled
[ 139.284] (==) NOUVEAU(G0): Swap limit set to 1 [Max allowed 2]
[ 139.284] (==) NOUVEAU(G0): Page flipping synced to vblank by kernel.
[ 139.284] (==) NOUVEAU(G0): Using gamma correction (1.0, 1.0, 1.0)
[ 139.284] (II) NOUVEAU(G0): Virtual size is 1024x768 (pitch 0)
[ 139.284] () NOUVEAU(G0): Mode “3840x2160”: 712.8 MHz (scaled from 0.0 MHz), 134.2 kHz, 60.0 Hz
[ 139.284] (II) NOUVEAU(G0): Modeline "3840x2160"x60.0 712.75 3840 4160 4576 5312 2160 2163 2168 2237 -hsync +vsync (134.2 kHz)
[ 139.284] (==) NOUVEAU(G0): DPI set to (96, 96)
[ 139.284] (II) Loading sub module “fb”
[ 139.284] (II) LoadModule: “fb”
[ 139.284] (II) Loading /usr/lib64/xorg/modules/libfb.so
[ 139.284] (II) Module fb: vendor=“X.Org Foundation”
[ 139.284] compiled for 1.20.4, module version = 1.0.0
[ 139.284] ABI class: X.Org ANSI C Emulation, version 0.4
[ 139.284] (II) Loading sub module “shadowfb”
[ 139.284] (II) LoadModule: “shadowfb”
[ 139.284] (II) Loading /usr/lib64/xorg/modules/libshadowfb.so
[ 140.694] (II) Module shadowfb: vendor=“X.Org Foundation”
[ 140.694] compiled for 1.20.4, module version = 1.0.0
[ 140.694] ABI class: X.Org ANSI C Emulation, version 0.4
[ 140.694] (II) UnloadModule: “fbdev”
[ 140.694] (II) Unloading fbdev
[ 140.694] (II) UnloadSubModule: “fbdevhw”
[ 140.694] (II) Unloading fbdevhw
[ 140.694] (II) UnloadModule: “vesa”
[ 140.694] (II) Unloading vesa
[ 158.721] (EE) NOUVEAU(G0): Failed to initialise context object: 2D_NVC0 (0)
[ 158.721] (EE) NOUVEAU(G0): Error initialising acceleration. Falling back to NoAccel
[ 158.721] (
) NOUVEAU(G0): [COPY] acceleration disabled
[ 160.724] (II) NOUVEAU(G0): Hardware support for Present enabled
[ 160.724] (==) NOUVEAU(G0): Backing store enabled
[ 160.724] (==) NOUVEAU(G0): Silken mouse enabled
[ 160.724] (==) NOUVEAU(G0): DPMS enabled
[ 160.761] (==) modeset(0): Backing store enabled
[ 160.761] (==) modeset(0): Silken mouse enabled
[ 160.816] (II) modeset(0): Initializing kms color map for depth 24, 8 bpc.
[ 160.816] (==) modeset(0): DPMS enabled
[ 160.816] (II) modeset(0): [DRI2] Setup complete
[ 160.816] (II) modeset(0): [DRI2] DRI driver: i965
[ 160.816] (II) modeset(0): [DRI2] VDPAU driver: i965

in the same way you do in others distros:

sudo mkdir /etc/modprobe.d

printf "blacklist nouveau \noptions nouveau modeset=0 \n" | sudo tee --append /etc/modprobe.d/disable-nouveau.conf

Thanks. I’ll give that a try. I think disabling nouveau will force it to use the modesetting driver.

Installing the nVidia drivers won’t make any difference in this case since we are talking about Optimus (an nVidia technology). Optimus is great because with the nVidia GPU turned off (when I’m not using it) my laptop can run about 6 hours. If I use the nVidia GPU to rendering everything then the battery only lasts about an hour and half.

The nVidia drivers would still need the xrandr module to set the output sink to the nVidia device (discrete) and not the Intel. The nice thing about the Intel + Nouveua, is yu can use either of them for GL work depending on the DRI_PRIME sets (0 = intel , 1 = nVidia). With the nVidia driver you have to use Bumblebee and optirun which is much more complex.

The true answer is to support the GLVND library (Mesa 19 and X.org 1.20.4) that handles this all automatically. So far, not a single distro but Gentoo allows this and, of course, building your system from scratch.

I’ll let you know what happens with this.

Thanks again. I assumed modprobe.d was handled some other way since the directory wasn’t present.