Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
NVIDIA PRIME - can't get Intel set as default GPU
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
BaltazarGabka
n00b
n00b


Joined: 07 Dec 2021
Posts: 13
Location: Poland

PostPosted: Mon May 06, 2024 9:01 pm    Post subject: NVIDIA PRIME - can't get Intel set as default GPU Reply with quote

Hello,

I've tried to set up NVIDIA PRIME to be able to use my Intel GPU (HD 4000) as a default one, and my NVIDIA GPU (GeForce GT 720M) when needed. These are the steps I've made to get NVIDIA working:

  • I've added these two parameters to kernel command line:
    Code:
    GRUB_CMDLINE_LINUX_DEFAULT="nvidia-drm.modeset=1 drm_kms_helper.edid_firmware=edid/monitor.bin

  • I've created /etc/X11/xorg.conf file:
    Code:
    Section "ServerLayout"
        Identifier "layout"
        Screen 0 "intel"
        Inactive "nvidia"
        Option "AllowNVIDIAGPUScreens"
    EndSection

    Section "Device"
        Identifier "nvidia"
        Driver "nvidia"
        BusID "PCI:1@0:0:0"
        Option "ConnectedMonitor" "LVDS-1"
        Option "CustomEDID" "LVDS-1:/lib/firmware/edid/monitor.bin"
        Option "UseEDID" "True"
    EndSection

    Section "Screen"
        Identifier "nvidia"
        Device "nvidia"
        Option "AllowEmptyInitialConfiguration"
    EndSection

    Section "Device"
        Identifier "intel"
        Driver "modesetting"
        BusID "PCI:0@0:2:0"
        Option "CustomEDID" "LVDS-1:/lib/firmware/edid/monitor.bin"
    EndSection

    Section "Screen"
        Identifier "intel"
        Device "intel"
    EndSection

  • I've also created /etc/X11/xorg.conf.d/30-nvidia-offload.conf
    Code:
    Section "ServerLayout"
        Identifier "layout"
        Option "AllowNVIDIAGPUScreens"
    EndSection

  • and I've created another file /etc/sddm/scripts/Xsetup
    Code:
    #!/bin/sh
    xrandr --setprovideroutputsource modesetting NVIDIA-0
    xrandr --auto


After these steps my xrandr --listproviders look like this:
Code:
Providers: number : 2
Provider 0: id: 0x278 cap: 0x1, Source Output crtcs: 0 outputs: 0 associated providers: 1 name:NVIDIA-0
Provider 1: id: 0x29e cap: 0xf, Source Output, Sink Output, Source Offload, Sink Offload crtcs: 3 outputs: 4 associated providers: 1 name:modesetting


I don't know why, but NVIDIA is the first one on the list...

And this is my Xorg.0.log:
Code:
[    11.949] (--) Log file renamed from "/var/log/Xorg.pid-2613.log" to "/var/log/Xorg.0.log"
[    11.951]
X.Org X Server 1.21.1.13
X Protocol Version 11, Revision 0
[    11.951] Current Operating System: Linux x550cc 6.1.87-gentoo-dist #1 SMP PREEMPT_DYNAMIC Thu Apr 18 13:55:29 -00 2024 x86_64
[    11.951] Kernel command line: BOOT_IMAGE=/vmlinuz-6.1.87-gentoo-dist root=UUID=3bddf1f8-0db1-4f9b-aa19-d04771134405 ro quiet splash modprobe.blacklist=nvidia,nouveau nvidia-drm.modeset=1 drm_kms_helper.edid_firmware=edid/monitor.bin
[    11.951] 
[    11.951] Current version of pixman: 0.43.4
[    11.951]    Before reporting problems, check http://wiki.x.org
   to make sure that you have the latest version.
[    11.951] Markers: (--) probed, (**) from config file, (==) default setting,
   (++) from command line, (!!) notice, (II) informational,
   (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[    11.951] (==) Log file: "/var/log/Xorg.0.log", Time: Mon May  6 21:05:58 2024
[    11.955] (==) Using config file: "/etc/X11/xorg.conf"
[    11.955] (==) Using config directory: "/etc/X11/xorg.conf.d"
[    11.955] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[    11.957] (==) ServerLayout "layout"
[    11.957] (**) |-->Screen "nvidia" (0)
[    11.957] (**) |   |-->Monitor "<default monitor>"
[    11.957] (**) |   |-->Device "nvidia"
[    11.957] (**) |   |-->GPUDevice "intel"
[    11.957] (==) No monitor specified for screen "nvidia".
   Using a default monitor configuration.
[    11.957] (**) Allowing byte-swapped clients
[    11.957] (==) Automatically adding devices
[    11.957] (==) Automatically enabling devices
[    11.957] (==) Automatically adding GPU devices
[    11.957] (==) Automatically binding GPU devices
[    11.957] (==) Max clients allowed: 256, resource mask: 0x1fffff
[    11.957] (WW) The directory "/usr/share/fonts/misc" does not exist.
[    11.957]    Entry deleted from font path.
[    11.957] (WW) The directory "/usr/share/fonts/TTF" does not exist.
[    11.957]    Entry deleted from font path.
[    11.957] (WW) The directory "/usr/share/fonts/OTF" does not exist.
[    11.957]    Entry deleted from font path.
[    11.957] (WW) The directory "/usr/share/fonts/Type1" does not exist.
[    11.957]    Entry deleted from font path.
[    11.957] (WW) The directory "/usr/share/fonts/100dpi" does not exist.
[    11.957]    Entry deleted from font path.
[    11.957] (WW) The directory "/usr/share/fonts/75dpi" does not exist.
[    11.957]    Entry deleted from font path.
[    11.957] (==) FontPath set to:
   
[    11.957] (==) ModulePath set to "/usr/lib64/xorg/modules"
[    11.957] (II) The server relies on udev to provide the list of input devices.
   If no devices become available, reconfigure udev or disable AutoAddDevices.
[    11.958] (II) Module ABI versions:
[    11.958]    X.Org ANSI C Emulation: 0.4
[    11.958]    X.Org Video Driver: 25.2
[    11.958]    X.Org XInput driver : 24.4
[    11.958]    X.Org Server Extension : 10.0
[    11.959] (++) using VT number 2

[    11.959] (II) systemd-logind: logind integration requires -keeptty and -keeptty was not provided, disabling logind integration
[    11.961] (II) xfree86: Adding drm device (/dev/dri/card1)
[    11.961] (II) Platform probe for /sys/devices/pci0000:00/0000:00:01.0/0000:01:00.0/drm/card1
[    11.961] (II) xfree86: Adding drm device (/dev/dri/card0)
[    11.961] (II) Platform probe for /sys/devices/pci0000:00/0000:00:02.0/drm/card0
[    11.963] (**) OutputClass "nvidia" ModulePath extended to "/usr/lib64/extensions/nvidia,/usr/lib64/xorg/modules"
[    11.965] (--) PCI:*(0@0:2:0) 8086:0166:1043:124d rev 9, Mem @ 0xf7400000/4194304, 0xd0000000/268435456, I/O @ 0x0000f000/64, BIOS @ 0x????????/131072
[    11.965] (--) PCI: (1@0:0:0) 10de:1298:1043:124d rev 161, Mem @ 0xf6000000/16777216, 0xe0000000/268435456, 0xf0000000/33554432, I/O @ 0x0000e000/128, BIOS @ 0x????????/524288
[    11.965] (II) LoadModule: "glx"
[    11.967] (II) Loading /usr/lib64/extensions/nvidia/libglx.so
[    12.028] (II) Module glx: vendor="NVIDIA Corporation"
[    12.028]    compiled for 4.0.2, module version = 1.0.0
[    12.028]    Module class: X.Org Server Extension
[    12.028] (II) NVIDIA GLX Module  390.157  Wed Oct 12 09:19:15 UTC 2022
[    12.029] (II) LoadModule: "nvidia"
[    12.031] (II) Loading /usr/lib64/xorg/modules/drivers/nvidia_drv.so
[    12.037] (II) Module nvidia: vendor="NVIDIA Corporation"
[    12.037]    compiled for 4.0.2, module version = 1.0.0
[    12.037]    Module class: X.Org Video Driver
[    12.038] (II) LoadModule: "modesetting"
[    12.038] (II) Loading /usr/lib64/xorg/modules/drivers/modesetting_drv.so
[    12.042] (II) Module modesetting: vendor="X.Org Foundation"
[    12.042]    compiled for 1.21.1.13, module version = 1.21.1
[    12.042]    Module class: X.Org Video Driver
[    12.042]    ABI class: X.Org Video Driver, version 25.2
[    12.043] (II) NVIDIA dlloader X Driver  390.157  Wed Oct 12 09:21:41 UTC 2022
[    12.043] (II) NVIDIA Unified Driver for all Supported NVIDIA GPUs
[    12.044] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
[    12.062] (II) Loading sub module "fb"
[    12.062] (II) LoadModule: "fb"
[    12.062] (II) Module "fb" already built-in
[    12.062] (II) Loading sub module "wfb"
[    12.062] (II) LoadModule: "wfb"
[    12.062] (II) Loading /usr/lib64/xorg/modules/libwfb.so
[    12.063] (II) Module wfb: vendor="X.Org Foundation"
[    12.063]    compiled for 1.21.1.13, module version = 1.0.0
[    12.063]    ABI class: X.Org ANSI C Emulation, version 0.4
[    12.063] (II) Loading sub module "ramdac"
[    12.063] (II) LoadModule: "ramdac"
[    12.063] (II) Module "ramdac" already built-in
[    12.065] (II) modeset(G0): using drv /dev/dri/card0
[    12.065] (II) NVIDIA(0): Creating default Display subsection in Screen section
   "nvidia" for depth/fbbpp 24/32
[    12.065] (==) NVIDIA(0): Depth 24, (==) framebuffer bpp 32
[    12.065] (==) NVIDIA(0): RGB weight 888
[    12.065] (==) NVIDIA(0): Default visual is TrueColor
[    12.065] (==) NVIDIA(0): Using gamma correction (1.0, 1.0, 1.0)
[    12.065] (II) Applying OutputClass "nvidia" options to /dev/dri/card1
[    12.065] (**) NVIDIA(0): Option "AllowEmptyInitialConfiguration"
[    12.065] (**) NVIDIA(0): Option "UseEDID" "True"
[    12.065] (**) NVIDIA(0): Option "ConnectedMonitor" "LVDS-1"
[    12.066] (**) NVIDIA(0): Option "CustomEDID" "LVDS-1:/lib/firmware/edid/monitor.bin"
[    12.066] (**) NVIDIA(0): Enabling 2D acceleration
[    12.066] (**) NVIDIA(0): ConnectedMonitor string: "LVDS-1"
[    12.071] (II) NVIDIA(0): NVIDIA GPU GeForce GT 720M (GK208) at PCI:1:0:0 (GPU-0)
[    12.071] (--) NVIDIA(0): Memory: 2097152 kBytes
[    12.071] (--) NVIDIA(0): VideoBIOS: 80.28.49.00.0c
[    12.071] (II) NVIDIA(0): Detected PCI Express Link width: 8X
[    12.071] (II) NVIDIA(0): Validated MetaModes:
[    12.071] (II) NVIDIA(0):     "NULL"
[    12.071] (II) NVIDIA(0): Virtual screen size determined to be 640 x 480
[    12.071] (WW) NVIDIA(0): Unable to get display device for DPI computation.
[    12.071] (==) NVIDIA(0): DPI set to (75, 75); computed from built-in default
[    12.071] (==) modeset(G0): Depth 24, (==) framebuffer bpp 32
[    12.071] (==) modeset(G0): RGB weight 888
[    12.071] (==) modeset(G0): Default visual is TrueColor
[    12.071] (II) Loading sub module "glamoregl"
[    12.071] (II) LoadModule: "glamoregl"
[    12.071] (II) Loading /usr/lib64/xorg/modules/libglamoregl.so
[    12.081] (II) Module glamoregl: vendor="X.Org Foundation"
[    12.081]    compiled for 1.21.1.13, module version = 1.0.1
[    12.081]    ABI class: X.Org ANSI C Emulation, version 0.4
[    12.340] (II) modeset(G0): glamor X acceleration enabled on Mesa Intel(R) HD Graphics 4000 (IVB GT2)
[    12.340] (II) modeset(G0): glamor initialized
[    12.340] (II) modeset(G0): Output LVDS-1-1 has no monitor section
[    12.342] (II) modeset(G0): Output VGA-1-1 has no monitor section
[    12.343] (II) modeset(G0): Output HDMI-1-1 has no monitor section
[    12.343] (II) modeset(G0): Output DP-1-1 has no monitor section
[    12.344] (II) modeset(G0): EDID for output LVDS-1-1
[    12.344] (II) modeset(G0): Manufacturer: LGD  Model: 3db  Serial#: 0
[    12.344] (II) modeset(G0): Year: 2012  Week: 0
[    12.344] (II) modeset(G0): EDID Version: 1.3
[    12.344] (II) modeset(G0): Digital Display Input
[    12.344] (II) modeset(G0): Max Image Size [cm]: horiz.: 35  vert.: 19
[    12.344] (II) modeset(G0): Gamma: 2.20
[    12.344] (II) modeset(G0): No DPMS capabilities specified
[    12.344] (II) modeset(G0): Supported color encodings: RGB 4:4:4 YCrCb 4:4:4
[    12.344] (II) modeset(G0): First detailed timing is preferred mode
[    12.344] (II) modeset(G0): redX: 0.578 redY: 0.344   greenX: 0.337 greenY: 0.571
[    12.344] (II) modeset(G0): blueX: 0.159 blueY: 0.120   whiteX: 0.313 whiteY: 0.329
[    12.344] (II) modeset(G0): Manufacturer's mask: 0
[    12.344] (II) modeset(G0): Supported detailed timing:
[    12.344] (II) modeset(G0): clock: 76.8 MHz   Image Size:  345 x 194 mm
[    12.344] (II) modeset(G0): h_active: 1366  h_sync: 1414  h_sync_end 1446 h_blank_end 1618 h_border: 0
[    12.344] (II) modeset(G0): v_active: 768  v_sync: 771  v_sync_end 776 v_blanking: 790 v_border: 0
[    12.344] (II) modeset(G0):  LG Display
[    12.344] (II) modeset(G0):  LP156WH3-TLT1
[    12.344] (II) modeset(G0): EDID (in hex):
[    12.344] (II) modeset(G0):    00ffffffffffff0030e4db0300000000
[    12.344] (II) modeset(G0):    00160103802313780a05f59458569228
[    12.344] (II) modeset(G0):    1e505400000001010101010101010101
[    12.344] (II) modeset(G0):    010101010101fb1d56fc500016303020
[    12.344] (II) modeset(G0):    350059c2100000190000000000000000
[    12.344] (II) modeset(G0):    00000000000000000000000000fe004c
[    12.344] (II) modeset(G0):    4720446973706c61790a2020000000fe
[    12.344] (II) modeset(G0):    004c503135365748332d544c54310006
[    12.344] (II) modeset(G0): Printing probed modes for output LVDS-1-1
[    12.344] (II) modeset(G0): Modeline "1366x768"x60.0   76.75  1366 1414 1446 1618  768 771 776 790 -hsync -vsync (47.4 kHz eP)
[    12.344] (II) modeset(G0): Modeline "1280x720"x120.0  156.12  1280 1376 1512 1744  720 721 724 746 doublescan -hsync +vsync (89.5 kHz d)
[    12.344] (II) modeset(G0): Modeline "1280x720"x120.0  120.75  1280 1304 1320 1360  720 721 724 740 doublescan +hsync -vsync (88.8 kHz d)
[    12.344] (II) modeset(G0): Modeline "1280x720"x59.9   74.50  1280 1344 1472 1664  720 723 728 748 -hsync +vsync (44.8 kHz d)
[    12.344] (II) modeset(G0): Modeline "1280x720"x59.7   63.75  1280 1328 1360 1440  720 723 728 741 +hsync -vsync (44.3 kHz d)
[    12.344] (II) modeset(G0): Modeline "1024x768"x120.1  133.47  1024 1100 1212 1400  768 768 770 794 doublescan -hsync +vsync (95.3 kHz d)
[    12.344] (II) modeset(G0): Modeline "1024x768"x60.0   65.00  1024 1048 1184 1344  768 771 777 806 -hsync -vsync (48.4 kHz d)
[    12.344] (II) modeset(G0): Modeline "960x720"x120.0  117.00  960 1024 1128 1300  720 720 722 750 doublescan -hsync +vsync (90.0 kHz d)
[    12.344] (II) modeset(G0): Modeline "928x696"x120.1  109.15  928 976 1088 1264  696 696 698 719 doublescan -hsync +vsync (86.4 kHz d)
[    12.344] (II) modeset(G0): Modeline "896x672"x120.0  102.40  896 960 1060 1224  672 672 674 697 doublescan -hsync +vsync (83.7 kHz d)
[    12.344] (II) modeset(G0): Modeline "1024x576"x119.9   98.50  1024 1092 1200 1376  576 577 580 597 doublescan -hsync +vsync (71.6 kHz d)
[    12.344] (II) modeset(G0): Modeline "1024x576"x119.9   78.38  1024 1048 1064 1104  576 577 580 592 doublescan +hsync -vsync (71.0 kHz d)
[    12.344] (II) modeset(G0): Modeline "1024x576"x59.9   46.50  1024 1064 1160 1296  576 579 584 599 -hsync +vsync (35.9 kHz d)
[    12.344] (II) modeset(G0): Modeline "1024x576"x59.8   42.00  1024 1072 1104 1184  576 579 584 593 +hsync -vsync (35.5 kHz d)
[    12.344] (II) modeset(G0): Modeline "960x600"x119.9   96.62  960 1028 1128 1296  600 601 604 622 doublescan -hsync +vsync (74.6 kHz d)
[    12.344] (II) modeset(G0): Modeline "960x600"x120.0   77.00  960 984 1000 1040  600 601 604 617 doublescan +hsync -vsync (74.0 kHz d)
[    12.344] (II) modeset(G0): Modeline "960x540"x119.9   86.50  960 1024 1124 1288  540 541 544 560 doublescan -hsync +vsync (67.2 kHz d)
[    12.344] (II) modeset(G0): Modeline "960x540"x120.0   69.25  960 984 1000 1040  540 541 544 555 doublescan +hsync -vsync (66.6 kHz d)
[    12.345] (II) modeset(G0): Modeline "960x540"x59.6   40.75  960 992 1088 1216  540 543 548 562 -hsync +vsync (33.5 kHz d)
[    12.345] (II) modeset(G0): Modeline "960x540"x59.8   37.25  960 1008 1040 1120  540 543 548 556 +hsync -vsync (33.3 kHz d)
[    12.345] (II) modeset(G0): Modeline "800x600"x120.0   81.00  800 832 928 1080  600 600 602 625 doublescan +hsync +vsync (75.0 kHz d)
[    12.345] (II) modeset(G0): Modeline "800x600"x60.3   40.00  800 840 968 1056  600 601 605 628 +hsync +vsync (37.9 kHz d)
[    12.345] (II) modeset(G0): Modeline "800x600"x56.2   36.00  800 824 896 1024  600 601 603 625 +hsync +vsync (35.2 kHz d)
[    12.345] (II) modeset(G0): Modeline "840x525"x120.0   73.12  840 892 980 1120  525 526 529 544 doublescan -hsync +vsync (65.3 kHz d)
[    12.345] (II) modeset(G0): Modeline "840x525"x119.8   59.50  840 864 880 920  525 526 529 540 doublescan +hsync -vsync (64.7 kHz d)
[    12.345] (II) modeset(G0): Modeline "864x486"x59.9   32.50  864 888 968 1072  486 489 494 506 -hsync +vsync (30.3 kHz d)
[    12.345] (II) modeset(G0): Modeline "864x486"x59.6   30.50  864 912 944 1024  486 489 494 500 +hsync -vsync (29.8 kHz d)
[    12.345] (II) modeset(G0): Modeline "700x525"x120.0   61.00  700 744 820 940  525 526 532 541 doublescan +hsync +vsync (64.9 kHz d)
[    12.345] (II) modeset(G0): Modeline "800x450"x119.9   59.12  800 848 928 1056  450 451 454 467 doublescan -hsync +vsync (56.0 kHz d)
[    12.345] (II) modeset(G0): Modeline "800x450"x119.6   48.75  800 824 840 880  450 451 454 463 doublescan +hsync -vsync (55.4 kHz d)
[    12.345] (II) modeset(G0): Modeline "640x512"x120.0   54.00  640 664 720 844  512 512 514 533 doublescan +hsync +vsync (64.0 kHz d)
[    12.345] (II) modeset(G0): Modeline "700x450"x119.9   51.75  700 740 812 924  450 451 456 467 doublescan -hsync +vsync (56.0 kHz d)
[    12.345] (II) modeset(G0): Modeline "700x450"x119.8   43.25  700 724 740 780  450 451 456 463 doublescan +hsync -vsync (55.4 kHz d)
[    12.345] (II) modeset(G0): Modeline "640x480"x120.0   54.00  640 688 744 900  480 480 482 500 doublescan +hsync +vsync (60.0 kHz d)
[    12.345] (II) modeset(G0): Modeline "640x480"x59.9   25.18  640 656 752 800  480 490 492 525 -hsync -vsync (31.5 kHz d)
[    12.345] (II) modeset(G0): Modeline "720x405"x59.5   22.50  720 744 808 896  405 408 413 422 -hsync +vsync (25.1 kHz d)
[    12.345] (II) modeset(G0): Modeline "720x405"x59.0   21.75  720 768 800 880  405 408 413 419 +hsync -vsync (24.7 kHz d)
[    12.345] (II) modeset(G0): Modeline "684x384"x119.8   42.62  684 720 788 892  384 385 390 399 doublescan -hsync +vsync (47.8 kHz d)
[    12.345] (II) modeset(G0): Modeline "684x384"x119.7   36.12  684 708 724 764  384 385 390 395 doublescan +hsync -vsync (47.3 kHz d)
[    12.345] (II) modeset(G0): Modeline "640x400"x119.8   41.75  640 676 740 840  400 401 404 415 doublescan -hsync +vsync (49.7 kHz d)
[    12.345] (II) modeset(G0): Modeline "640x400"x120.0   35.50  640 664 680 720  400 401 404 411 doublescan +hsync -vsync (49.3 kHz d)
[    12.345] (II) modeset(G0): Modeline "640x360"x119.7   37.25  640 672 736 832  360 361 364 374 doublescan -hsync +vsync (44.8 kHz d)
[    12.345] (II) modeset(G0): Modeline "640x360"x119.7   31.88  640 664 680 720  360 361 364 370 doublescan +hsync -vsync (44.3 kHz d)
[    12.345] (II) modeset(G0): Modeline "640x360"x59.8   18.00  640 664 720 800  360 363 368 376 -hsync +vsync (22.5 kHz d)
[    12.345] (II) modeset(G0): Modeline "640x360"x59.3   17.75  640 688 720 800  360 363 368 374 +hsync -vsync (22.2 kHz d)
[    12.345] (II) modeset(G0): Modeline "512x384"x120.0   32.50  512 524 592 672  384 385 388 403 doublescan -hsync -vsync (48.4 kHz d)
[    12.345] (II) modeset(G0): Modeline "512x288"x120.0   23.25  512 532 580 648  288 289 292 299 doublescan -hsync +vsync (35.9 kHz d)
[    12.345] (II) modeset(G0): Modeline "512x288"x119.8   21.00  512 536 552 592  288 289 292 296 doublescan +hsync -vsync (35.5 kHz d)
[    12.345] (II) modeset(G0): Modeline "480x270"x119.3   20.38  480 496 544 608  270 271 274 281 doublescan -hsync +vsync (33.5 kHz d)
[    12.345] (II) modeset(G0): Modeline "480x270"x119.6   18.62  480 504 520 560  270 271 274 278 doublescan +hsync -vsync (33.3 kHz d)
[    12.345] (II) modeset(G0): Modeline "400x300"x120.6   20.00  400 420 484 528  300 300 302 314 doublescan +hsync +vsync (37.9 kHz d)
[    12.345] (II) modeset(G0): Modeline "400x300"x112.7   18.00  400 412 448 512  300 300 301 312 doublescan +hsync +vsync (35.2 kHz d)
[    12.345] (II) modeset(G0): Modeline "432x243"x119.8   16.25  432 444 484 536  243 244 247 253 doublescan -hsync +vsync (30.3 kHz d)
[    12.345] (II) modeset(G0): Modeline "432x243"x119.1   15.25  432 456 472 512  243 244 247 250 doublescan +hsync -vsync (29.8 kHz d)
[    12.345] (II) modeset(G0): Modeline "320x240"x120.1   12.59  320 328 376 400  240 245 246 262 doublescan -hsync -vsync (31.5 kHz d)
[    12.345] (II) modeset(G0): Modeline "360x202"x119.0   11.25  360 372 404 448  202 204 206 211 doublescan -hsync +vsync (25.1 kHz d)
[    12.345] (II) modeset(G0): Modeline "360x202"x118.3   10.88  360 384 400 440  202 204 206 209 doublescan +hsync -vsync (24.7 kHz d)
[    12.345] (II) modeset(G0): Modeline "320x180"x119.7    9.00  320 332 360 400  180 181 184 188 doublescan -hsync +vsync (22.5 kHz d)
[    12.345] (II) modeset(G0): Modeline "320x180"x118.6    8.88  320 344 360 400  180 181 184 187 doublescan +hsync -vsync (22.2 kHz d)
[    12.346] (II) modeset(G0): EDID for output VGA-1-1
[    12.347] (II) modeset(G0): EDID for output HDMI-1-1
[    12.348] (II) modeset(G0): EDID for output DP-1-1
[    12.348] (==) modeset(G0): Using gamma correction (1.0, 1.0, 1.0)
[    12.348] (==) modeset(G0): DPI set to (96, 96)
[    12.348] (II) Loading sub module "fb"
[    12.348] (II) LoadModule: "fb"
[    12.348] (II) Module "fb" already built-in
[    12.348] (II) NVIDIA: Using 6144.00 MB of virtual memory for indirect memory
[    12.348] (II) NVIDIA:     access.
[    12.353] (II) NVIDIA(0): ACPI: failed to connect to the ACPI event daemon; the daemon
[    12.353] (II) NVIDIA(0):     may not be running or the "AcpidSocketPath" X
[    12.353] (II) NVIDIA(0):     configuration option may not be set correctly.  When the
[    12.353] (II) NVIDIA(0):     ACPI event daemon is available, the NVIDIA X driver will
[    12.353] (II) NVIDIA(0):     try to use it to receive ACPI event notifications.  For
[    12.353] (II) NVIDIA(0):     details, please see the "ConnectToAcpid" and
[    12.353] (II) NVIDIA(0):     "AcpidSocketPath" X configuration options in Appendix B: X
[    12.353] (II) NVIDIA(0):     Config Options in the README.
[    12.391] (II) NVIDIA(0): Setting mode "NULL"
[    12.398] (==) NVIDIA(0): Disabling shared memory pixmaps
[    12.398] (==) NVIDIA(0): Backing store enabled
[    12.398] (==) NVIDIA(0): Silken mouse enabled
[    12.398] (==) NVIDIA(0): DPMS enabled
[    12.399] (II) Loading sub module "dri2"
[    12.399] (II) LoadModule: "dri2"
[    12.399] (II) Module "dri2" already built-in
[    12.399] (II) NVIDIA(0): [DRI2] Setup complete
[    12.399] (II) NVIDIA(0): [DRI2]   VDPAU driver: nvidia
[    12.448] (==) modeset(G0): Backing store enabled
[    12.449] (==) modeset(G0): Silken mouse enabled
[    12.474] (II) modeset(G0): Initializing kms color map for depth 24, 8 bpc.
[    12.474] (==) modeset(G0): DPMS enabled
[    12.474] (WW) modeset(G0): Option "CustomEDID" is not used
[    12.475] (WW) modeset(G0): Option "AllowEmptyInitialConfiguration" is not used
[    12.475] (II) modeset(G0): [DRI2] Setup complete
[    12.475] (II) modeset(G0): [DRI2]   DRI driver: crocus
[    12.475] (II) modeset(G0): [DRI2]   VDPAU driver: va_gl
[    12.475] (II) modeset(G0): Disable reverse prime offload mode for i915.
[    12.475] (II) Initializing extension Generic Event Extension
[    12.475] (II) Initializing extension SHAPE
[    12.475] (II) Initializing extension MIT-SHM
[    12.475] (II) Initializing extension XInputExtension
[    12.475] (II) Initializing extension XTEST
[    12.475] (II) Initializing extension BIG-REQUESTS
[    12.475] (II) Initializing extension SYNC
[    12.475] (II) Initializing extension XKEYBOARD
[    12.475] (II) Initializing extension XC-MISC
[    12.475] (II) Initializing extension XFIXES
[    12.475] (II) Initializing extension RENDER
[    12.475] (II) Initializing extension RANDR
[    12.475] (II) Initializing extension COMPOSITE
[    12.475] (II) Initializing extension DAMAGE
[    12.475] (II) Initializing extension MIT-SCREEN-SAVER
[    12.475] (II) Initializing extension DOUBLE-BUFFER
[    12.475] (II) Initializing extension RECORD
[    12.475] (II) Initializing extension DPMS
[    12.475] (II) Initializing extension Present
[    12.475] (II) Initializing extension DRI3
[    12.475] (II) Initializing extension X-Resource
[    12.475] (II) Initializing extension XVideo
[    12.475] (II) Initializing extension XVideo-MotionCompensation
[    12.475] (II) Initializing extension XFree86-VidModeExtension
[    12.475] (II) Initializing extension XFree86-DGA
[    12.475] (II) Initializing extension XFree86-DRI
[    12.475] (II) Initializing extension DRI2
[    12.475] (II) Initializing extension GLX
[    12.475] (II) Initializing extension GLX
[    12.476] (II) Indirect GLX disabled.
[    12.476] (II) Initializing extension NV-GLX
[    12.476] (II) Initializing extension NV-CONTROL
[    12.809] (II) modeset(G0): Damage tracking initialized
...


I can't get Intel to work, it's either NVIDIA working or nothing at all, when i mess up xorg.conf for example I get one provider (modesetting) but no acceleration at all... :roll: Can anybody point out what am I doing wrong? And why in this configuration NVIDIA is the default GPU? All these steps were found on Gentoo Wiki, on this forum or somwhere else. Usually people can't get two providers to work, I can't get Intel to work properly not mentioning to switch between the two...
Back to top
View user's profile Send private message
BaltazarGabka
n00b
n00b


Joined: 07 Dec 2021
Posts: 13
Location: Poland

PostPosted: Sun Jun 02, 2024 7:33 am    Post subject: Reply with quote

Nobody? :roll:

When I change order in xorg.conf, so Intel is the first GPU, desktop environment boots up but I get error in Xorg.0.log, there's no acceleration and only one provider in xrandr...

Here's how xorg.conf looks after modification:

Code:
Section "ServerLayout"
    Identifier "layout"
    Screen 0 "intel"
    Inactive "nvidia"
    Option "AllowNVIDIAGPUScreens"
EndSection

Section "Device"
    Identifier "intel"
    Driver "modesetting"
    BusID "PCI:0@0:2:0"
    Option "CustomEDID" "LVDS-1:/lib/firmware/edid/monitor.bin"
EndSection

Section "Screen"
    Identifier "intel"
    Device "intel"
EndSection

Section "Device"
    Identifier "nvidia"
    Driver "nvidia"
    BusID "PCI:1@0:0:0"
    Option "ConnectedMonitor" "LVDS-1"
    Option "CustomEDID" "LVDS-1:/lib/firmware/edid/monitor.bin"
    Option "UseEDID" "True"
EndSection

Section "Screen"
    Identifier "nvidia"
    Device "nvidia"
    Option "AllowEmptyInitialConfiguration"
EndSection


And Xorg.0.log:

Code:
[    12.206] (--) Log file renamed from "/var/log/Xorg.pid-2602.log" to "/var/log/Xorg.0.log"
[    12.208]
X.Org X Server 1.21.1.13
X Protocol Version 11, Revision 0
[    12.208] Current Operating System: Linux x550cc 6.1.87-gentoo-dist #1 SMP PREEMPT_DYNAMIC Thu Apr 18 13:55:29 -00 2024 x86_64
[    12.208] Kernel command line: BOOT_IMAGE=/vmlinuz-6.1.87-gentoo-dist root=UUID=3bddf1f8-0db1-4f9b-aa19-d04771134405 ro quiet splash modprobe.blacklist=nvidia,nouveau nvidia-drm.modeset=1 drm_kms_helper.edid_firmware=edid/monitor.bin
[    12.208] 
[    12.208] Current version of pixman: 0.43.4
[    12.208]    Before reporting problems, check http://wiki.x.org
   to make sure that you have the latest version.
[    12.208] Markers: (--) probed, (**) from config file, (==) default setting,
   (++) from command line, (!!) notice, (II) informational,
   (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
[    12.208] (==) Log file: "/var/log/Xorg.0.log", Time: Sun Jun  2 09:14:11 2024
[    12.213] (==) Using config file: "/etc/X11/xorg.conf"
[    12.213] (==) Using config directory: "/etc/X11/xorg.conf.d"
[    12.213] (==) Using system config directory "/usr/share/X11/xorg.conf.d"
[    12.214] (==) ServerLayout "layout"
[    12.214] (**) |-->Screen "intel" (0)
[    12.214] (**) |   |-->Monitor "<default monitor>"
[    12.214] (**) |   |-->Device "intel"
[    12.214] (**) |   |-->GPUDevice "nvidia"
[    12.214] (==) No monitor specified for screen "intel".
   Using a default monitor configuration.
[    12.214] (**) Allowing byte-swapped clients
[    12.214] (==) Automatically adding devices
[    12.214] (==) Automatically enabling devices
[    12.214] (==) Automatically adding GPU devices
[    12.214] (==) Automatically binding GPU devices
[    12.214] (==) Max clients allowed: 256, resource mask: 0x1fffff
[    12.214] (WW) The directory "/usr/share/fonts/misc" does not exist.
[    12.214]    Entry deleted from font path.
[    12.214] (WW) The directory "/usr/share/fonts/TTF" does not exist.
[    12.214]    Entry deleted from font path.
[    12.214] (WW) The directory "/usr/share/fonts/OTF" does not exist.
[    12.214]    Entry deleted from font path.
[    12.215] (WW) The directory "/usr/share/fonts/Type1" does not exist.
[    12.215]    Entry deleted from font path.
[    12.215] (WW) The directory "/usr/share/fonts/100dpi" does not exist.
[    12.215]    Entry deleted from font path.
[    12.215] (WW) The directory "/usr/share/fonts/75dpi" does not exist.
[    12.215]    Entry deleted from font path.
[    12.215] (==) FontPath set to:
   
[    12.215] (==) ModulePath set to "/usr/lib64/xorg/modules"
[    12.215] (II) The server relies on udev to provide the list of input devices.
   If no devices become available, reconfigure udev or disable AutoAddDevices.
[    12.215] (II) Module ABI versions:
[    12.215]    X.Org ANSI C Emulation: 0.4
[    12.215]    X.Org Video Driver: 25.2
[    12.215]    X.Org XInput driver : 24.4
[    12.215]    X.Org Server Extension : 10.0
[    12.216] (++) using VT number 2

[    12.216] (II) systemd-logind: logind integration requires -keeptty and -keeptty was not provided, disabling logind integration
[    12.218] (II) xfree86: Adding drm device (/dev/dri/card1)
[    12.219] (II) Platform probe for /sys/devices/pci0000:00/0000:00:01.0/0000:01:00.0/drm/card1
[    12.219] (II) xfree86: Adding drm device (/dev/dri/card0)
[    12.219] (II) Platform probe for /sys/devices/pci0000:00/0000:00:02.0/drm/card0
[    12.221] (**) OutputClass "nvidia" ModulePath extended to "/usr/lib64/extensions/nvidia,/usr/lib64/xorg/modules"
[    12.223] (--) PCI:*(0@0:2:0) 8086:0166:1043:124d rev 9, Mem @ 0xf7400000/4194304, 0xd0000000/268435456, I/O @ 0x0000f000/64, BIOS @ 0x????????/131072
[    12.223] (--) PCI: (1@0:0:0) 10de:1298:1043:124d rev 161, Mem @ 0xf6000000/16777216, 0xe0000000/268435456, 0xf0000000/33554432, I/O @ 0x0000e000/128, BIOS @ 0x????????/524288
[    12.223] (II) LoadModule: "glx"
[    12.224] (II) Loading /usr/lib64/extensions/nvidia/libglx.so
[    12.285] (II) Module glx: vendor="NVIDIA Corporation"
[    12.285]    compiled for 4.0.2, module version = 1.0.0
[    12.285]    Module class: X.Org Server Extension
[    12.285] (II) NVIDIA GLX Module  390.157  Wed Oct 12 09:19:15 UTC 2022
[    12.286] (II) LoadModule: "modesetting"
[    12.287] (II) Loading /usr/lib64/xorg/modules/drivers/modesetting_drv.so
[    12.291] (II) Module modesetting: vendor="X.Org Foundation"
[    12.291]    compiled for 1.21.1.13, module version = 1.21.1
[    12.291]    Module class: X.Org Video Driver
[    12.291]    ABI class: X.Org Video Driver, version 25.2
[    12.291] (II) LoadModule: "nvidia"
[    12.292] (II) Loading /usr/lib64/xorg/modules/drivers/nvidia_drv.so
[    12.298] (II) Module nvidia: vendor="NVIDIA Corporation"
[    12.298]    compiled for 4.0.2, module version = 1.0.0
[    12.298]    Module class: X.Org Video Driver
[    12.299] (II) modesetting: Driver for Modesetting Kernel Drivers: kms
[    12.299] (II) NVIDIA dlloader X Driver  390.157  Wed Oct 12 09:21:41 UTC 2022
[    12.299] (II) NVIDIA Unified Driver for all Supported NVIDIA GPUs
[    12.308] (II) modeset(0): using drv /dev/dri/card0
[    12.309] (II) Loading sub module "fb"
[    12.309] (II) LoadModule: "fb"
[    12.309] (II) Module "fb" already built-in
[    12.309] (II) Loading sub module "wfb"
[    12.309] (II) LoadModule: "wfb"
[    12.309] (II) Loading /usr/lib64/xorg/modules/libwfb.so
[    12.310] (II) Module wfb: vendor="X.Org Foundation"
[    12.310]    compiled for 1.21.1.13, module version = 1.0.0
[    12.310]    ABI class: X.Org ANSI C Emulation, version 0.4
[    12.310] (II) Loading sub module "ramdac"
[    12.310] (II) LoadModule: "ramdac"
[    12.310] (II) Module "ramdac" already built-in
[    12.312] (EE) Screen 1 deleted because of no matching config section.
[    12.312] (II) UnloadModule: "nvidia"
[    12.312] (II) UnloadSubModule: "wfb"
[    12.312] (II) modeset(0): Creating default Display subsection in Screen section
   "intel" for depth/fbbpp 24/32
[    12.312] (==) modeset(0): Depth 24, (==) framebuffer bpp 32
[    12.312] (==) modeset(0): RGB weight 888
[    12.312] (==) modeset(0): Default visual is TrueColor
[    12.312] (II) Loading sub module "glamoregl"
[    12.312] (II) LoadModule: "glamoregl"
[    12.313] (II) Loading /usr/lib64/xorg/modules/libglamoregl.so
[    12.324] (II) Module glamoregl: vendor="X.Org Foundation"
[    12.324]    compiled for 1.21.1.13, module version = 1.0.1
[    12.324]    ABI class: X.Org ANSI C Emulation, version 0.4
[    12.604] (II) modeset(0): glamor X acceleration enabled on Mesa Intel(R) HD Graphics 4000 (IVB GT2)
[    12.604] (II) modeset(0): glamor initialized
[    12.604] (==) modeset(0): VariableRefresh: disabled
[    12.604] (==) modeset(0): AsyncFlipSecondaries: disabled
[    12.604] (II) modeset(0): Output LVDS-1 has no monitor section
[    12.605] (II) modeset(0): Output VGA-1 has no monitor section
[    12.607] (II) modeset(0): Output HDMI-1 has no monitor section
[    12.607] (II) modeset(0): Output DP-1 has no monitor section
[    12.607] (II) modeset(0): EDID for output LVDS-1
[    12.607] (II) modeset(0): Manufacturer: LGD  Model: 3db  Serial#: 0
[    12.607] (II) modeset(0): Year: 2012  Week: 0
[    12.607] (II) modeset(0): EDID Version: 1.3
[    12.607] (II) modeset(0): Digital Display Input
[    12.607] (II) modeset(0): Max Image Size [cm]: horiz.: 35  vert.: 19
[    12.607] (II) modeset(0): Gamma: 2.20
[    12.607] (II) modeset(0): No DPMS capabilities specified
[    12.607] (II) modeset(0): Supported color encodings: RGB 4:4:4 YCrCb 4:4:4
[    12.607] (II) modeset(0): First detailed timing is preferred mode
[    12.607] (II) modeset(0): redX: 0.578 redY: 0.344   greenX: 0.337 greenY: 0.571
[    12.607] (II) modeset(0): blueX: 0.159 blueY: 0.120   whiteX: 0.313 whiteY: 0.329
[    12.607] (II) modeset(0): Manufacturer's mask: 0
[    12.607] (II) modeset(0): Supported detailed timing:
[    12.607] (II) modeset(0): clock: 76.8 MHz   Image Size:  345 x 194 mm
[    12.607] (II) modeset(0): h_active: 1366  h_sync: 1414  h_sync_end 1446 h_blank_end 1618 h_border: 0
[    12.607] (II) modeset(0): v_active: 768  v_sync: 771  v_sync_end 776 v_blanking: 790 v_border: 0
[    12.607] (II) modeset(0):  LG Display
[    12.608] (II) modeset(0):  LP156WH3-TLT1
[    12.608] (II) modeset(0): EDID (in hex):
[    12.608] (II) modeset(0):    00ffffffffffff0030e4db0300000000
[    12.608] (II) modeset(0):    00160103802313780a05f59458569228
[    12.608] (II) modeset(0):    1e505400000001010101010101010101
[    12.608] (II) modeset(0):    010101010101fb1d56fc500016303020
[    12.608] (II) modeset(0):    350059c2100000190000000000000000
[    12.608] (II) modeset(0):    00000000000000000000000000fe004c
[    12.608] (II) modeset(0):    4720446973706c61790a2020000000fe
[    12.608] (II) modeset(0):    004c503135365748332d544c54310006
[    12.608] (II) modeset(0): Printing probed modes for output LVDS-1
[    12.608] (II) modeset(0): Modeline "1366x768"x60.0   76.75  1366 1414 1446 1618  768 771 776 790 -hsync -vsync (47.4 kHz eP)
[    12.608] (II) modeset(0): Modeline "1280x720"x120.0  156.12  1280 1376 1512 1744  720 721 724 746 doublescan -hsync +vsync (89.5 kHz d)
[    12.608] (II) modeset(0): Modeline "1280x720"x120.0  120.75  1280 1304 1320 1360  720 721 724 740 doublescan +hsync -vsync (88.8 kHz d)
[    12.608] (II) modeset(0): Modeline "1280x720"x59.9   74.50  1280 1344 1472 1664  720 723 728 748 -hsync +vsync (44.8 kHz d)
[    12.608] (II) modeset(0): Modeline "1280x720"x59.7   63.75  1280 1328 1360 1440  720 723 728 741 +hsync -vsync (44.3 kHz d)
[    12.608] (II) modeset(0): Modeline "1024x768"x120.1  133.47  1024 1100 1212 1400  768 768 770 794 doublescan -hsync +vsync (95.3 kHz d)
[    12.608] (II) modeset(0): Modeline "1024x768"x60.0   65.00  1024 1048 1184 1344  768 771 777 806 -hsync -vsync (48.4 kHz d)
[    12.608] (II) modeset(0): Modeline "960x720"x120.0  117.00  960 1024 1128 1300  720 720 722 750 doublescan -hsync +vsync (90.0 kHz d)
[    12.608] (II) modeset(0): Modeline "928x696"x120.1  109.15  928 976 1088 1264  696 696 698 719 doublescan -hsync +vsync (86.4 kHz d)
[    12.608] (II) modeset(0): Modeline "896x672"x120.0  102.40  896 960 1060 1224  672 672 674 697 doublescan -hsync +vsync (83.7 kHz d)
[    12.608] (II) modeset(0): Modeline "1024x576"x119.9   98.50  1024 1092 1200 1376  576 577 580 597 doublescan -hsync +vsync (71.6 kHz d)
[    12.608] (II) modeset(0): Modeline "1024x576"x119.9   78.38  1024 1048 1064 1104  576 577 580 592 doublescan +hsync -vsync (71.0 kHz d)
[    12.608] (II) modeset(0): Modeline "1024x576"x59.9   46.50  1024 1064 1160 1296  576 579 584 599 -hsync +vsync (35.9 kHz d)
[    12.608] (II) modeset(0): Modeline "1024x576"x59.8   42.00  1024 1072 1104 1184  576 579 584 593 +hsync -vsync (35.5 kHz d)
[    12.608] (II) modeset(0): Modeline "960x600"x119.9   96.62  960 1028 1128 1296  600 601 604 622 doublescan -hsync +vsync (74.6 kHz d)
[    12.608] (II) modeset(0): Modeline "960x600"x120.0   77.00  960 984 1000 1040  600 601 604 617 doublescan +hsync -vsync (74.0 kHz d)
[    12.608] (II) modeset(0): Modeline "960x540"x119.9   86.50  960 1024 1124 1288  540 541 544 560 doublescan -hsync +vsync (67.2 kHz d)
[    12.608] (II) modeset(0): Modeline "960x540"x120.0   69.25  960 984 1000 1040  540 541 544 555 doublescan +hsync -vsync (66.6 kHz d)
[    12.608] (II) modeset(0): Modeline "960x540"x59.6   40.75  960 992 1088 1216  540 543 548 562 -hsync +vsync (33.5 kHz d)
[    12.608] (II) modeset(0): Modeline "960x540"x59.8   37.25  960 1008 1040 1120  540 543 548 556 +hsync -vsync (33.3 kHz d)
[    12.608] (II) modeset(0): Modeline "800x600"x120.0   81.00  800 832 928 1080  600 600 602 625 doublescan +hsync +vsync (75.0 kHz d)
[    12.608] (II) modeset(0): Modeline "800x600"x60.3   40.00  800 840 968 1056  600 601 605 628 +hsync +vsync (37.9 kHz d)
[    12.608] (II) modeset(0): Modeline "800x600"x56.2   36.00  800 824 896 1024  600 601 603 625 +hsync +vsync (35.2 kHz d)
[    12.608] (II) modeset(0): Modeline "840x525"x120.0   73.12  840 892 980 1120  525 526 529 544 doublescan -hsync +vsync (65.3 kHz d)
[    12.608] (II) modeset(0): Modeline "840x525"x119.8   59.50  840 864 880 920  525 526 529 540 doublescan +hsync -vsync (64.7 kHz d)
[    12.608] (II) modeset(0): Modeline "864x486"x59.9   32.50  864 888 968 1072  486 489 494 506 -hsync +vsync (30.3 kHz d)
[    12.608] (II) modeset(0): Modeline "864x486"x59.6   30.50  864 912 944 1024  486 489 494 500 +hsync -vsync (29.8 kHz d)
[    12.608] (II) modeset(0): Modeline "700x525"x120.0   61.00  700 744 820 940  525 526 532 541 doublescan +hsync +vsync (64.9 kHz d)
[    12.608] (II) modeset(0): Modeline "800x450"x119.9   59.12  800 848 928 1056  450 451 454 467 doublescan -hsync +vsync (56.0 kHz d)
[    12.608] (II) modeset(0): Modeline "800x450"x119.6   48.75  800 824 840 880  450 451 454 463 doublescan +hsync -vsync (55.4 kHz d)
[    12.608] (II) modeset(0): Modeline "640x512"x120.0   54.00  640 664 720 844  512 512 514 533 doublescan +hsync +vsync (64.0 kHz d)
[    12.608] (II) modeset(0): Modeline "700x450"x119.9   51.75  700 740 812 924  450 451 456 467 doublescan -hsync +vsync (56.0 kHz d)
[    12.608] (II) modeset(0): Modeline "700x450"x119.8   43.25  700 724 740 780  450 451 456 463 doublescan +hsync -vsync (55.4 kHz d)
[    12.608] (II) modeset(0): Modeline "640x480"x120.0   54.00  640 688 744 900  480 480 482 500 doublescan +hsync +vsync (60.0 kHz d)
[    12.608] (II) modeset(0): Modeline "640x480"x59.9   25.18  640 656 752 800  480 490 492 525 -hsync -vsync (31.5 kHz d)
[    12.608] (II) modeset(0): Modeline "720x405"x59.5   22.50  720 744 808 896  405 408 413 422 -hsync +vsync (25.1 kHz d)
[    12.608] (II) modeset(0): Modeline "720x405"x59.0   21.75  720 768 800 880  405 408 413 419 +hsync -vsync (24.7 kHz d)
[    12.608] (II) modeset(0): Modeline "684x384"x119.8   42.62  684 720 788 892  384 385 390 399 doublescan -hsync +vsync (47.8 kHz d)
[    12.608] (II) modeset(0): Modeline "684x384"x119.7   36.12  684 708 724 764  384 385 390 395 doublescan +hsync -vsync (47.3 kHz d)
[    12.608] (II) modeset(0): Modeline "640x400"x119.8   41.75  640 676 740 840  400 401 404 415 doublescan -hsync +vsync (49.7 kHz d)
[    12.608] (II) modeset(0): Modeline "640x400"x120.0   35.50  640 664 680 720  400 401 404 411 doublescan +hsync -vsync (49.3 kHz d)
[    12.608] (II) modeset(0): Modeline "640x360"x119.7   37.25  640 672 736 832  360 361 364 374 doublescan -hsync +vsync (44.8 kHz d)
[    12.608] (II) modeset(0): Modeline "640x360"x119.7   31.88  640 664 680 720  360 361 364 370 doublescan +hsync -vsync (44.3 kHz d)
[    12.608] (II) modeset(0): Modeline "640x360"x59.8   18.00  640 664 720 800  360 363 368 376 -hsync +vsync (22.5 kHz d)
[    12.608] (II) modeset(0): Modeline "640x360"x59.3   17.75  640 688 720 800  360 363 368 374 +hsync -vsync (22.2 kHz d)
[    12.608] (II) modeset(0): Modeline "512x384"x120.0   32.50  512 524 592 672  384 385 388 403 doublescan -hsync -vsync (48.4 kHz d)
[    12.608] (II) modeset(0): Modeline "512x288"x120.0   23.25  512 532 580 648  288 289 292 299 doublescan -hsync +vsync (35.9 kHz d)
[    12.608] (II) modeset(0): Modeline "512x288"x119.8   21.00  512 536 552 592  288 289 292 296 doublescan +hsync -vsync (35.5 kHz d)
[    12.608] (II) modeset(0): Modeline "480x270"x119.3   20.38  480 496 544 608  270 271 274 281 doublescan -hsync +vsync (33.5 kHz d)
[    12.608] (II) modeset(0): Modeline "480x270"x119.6   18.62  480 504 520 560  270 271 274 278 doublescan +hsync -vsync (33.3 kHz d)
[    12.608] (II) modeset(0): Modeline "400x300"x120.6   20.00  400 420 484 528  300 300 302 314 doublescan +hsync +vsync (37.9 kHz d)
[    12.608] (II) modeset(0): Modeline "400x300"x112.7   18.00  400 412 448 512  300 300 301 312 doublescan +hsync +vsync (35.2 kHz d)
[    12.608] (II) modeset(0): Modeline "432x243"x119.8   16.25  432 444 484 536  243 244 247 253 doublescan -hsync +vsync (30.3 kHz d)
[    12.608] (II) modeset(0): Modeline "432x243"x119.1   15.25  432 456 472 512  243 244 247 250 doublescan +hsync -vsync (29.8 kHz d)
[    12.609] (II) modeset(0): Modeline "320x240"x120.1   12.59  320 328 376 400  240 245 246 262 doublescan -hsync -vsync (31.5 kHz d)
[    12.609] (II) modeset(0): Modeline "360x202"x119.0   11.25  360 372 404 448  202 204 206 211 doublescan -hsync +vsync (25.1 kHz d)
[    12.609] (II) modeset(0): Modeline "360x202"x118.3   10.88  360 384 400 440  202 204 206 209 doublescan +hsync -vsync (24.7 kHz d)
[    12.609] (II) modeset(0): Modeline "320x180"x119.7    9.00  320 332 360 400  180 181 184 188 doublescan -hsync +vsync (22.5 kHz d)
[    12.609] (II) modeset(0): Modeline "320x180"x118.6    8.88  320 344 360 400  180 181 184 187 doublescan +hsync -vsync (22.2 kHz d)
[    12.610] (II) modeset(0): EDID for output VGA-1
[    12.611] (II) modeset(0): EDID for output HDMI-1
[    12.611] (II) modeset(0): EDID for output DP-1
[    12.611] (II) modeset(0): Output LVDS-1 connected
[    12.611] (II) modeset(0): Output VGA-1 disconnected
[    12.611] (II) modeset(0): Output HDMI-1 disconnected
[    12.611] (II) modeset(0): Output DP-1 disconnected
[    12.611] (II) modeset(0): Using exact sizes for initial modes
[    12.611] (II) modeset(0): Output LVDS-1 using initial mode 1366x768 +0+0
[    12.611] (==) modeset(0): Using gamma correction (1.0, 1.0, 1.0)
[    12.611] (==) modeset(0): DPI set to (96, 96)
[    12.611] (II) Loading sub module "fb"
[    12.611] (II) LoadModule: "fb"
[    12.611] (II) Module "fb" already built-in
[    12.667] (==) modeset(0): Backing store enabled
[    12.667] (==) modeset(0): Silken mouse enabled
[    12.688] (II) modeset(0): Initializing kms color map for depth 24, 8 bpc.
[    12.688] (==) modeset(0): DPMS enabled
[    12.688] (WW) modeset(0): Option "CustomEDID" is not used
[    12.688] (II) modeset(0): [DRI2] Setup complete
[    12.688] (II) modeset(0): [DRI2]   DRI driver: crocus
[    12.688] (II) modeset(0): [DRI2]   VDPAU driver: va_gl
[    12.688] (II) Initializing extension Generic Event Extension
[    12.688] (II) Initializing extension SHAPE
[    12.688] (II) Initializing extension MIT-SHM
[    12.688] (II) Initializing extension XInputExtension
[    12.689] (II) Initializing extension XTEST
[    12.689] (II) Initializing extension BIG-REQUESTS
[    12.689] (II) Initializing extension SYNC
[    12.689] (II) Initializing extension XKEYBOARD
[    12.689] (II) Initializing extension XC-MISC
[    12.689] (II) Initializing extension XFIXES
[    12.689] (II) Initializing extension RENDER
[    12.689] (II) Initializing extension RANDR
[    12.689] (II) Initializing extension COMPOSITE
[    12.689] (II) Initializing extension DAMAGE
[    12.689] (II) Initializing extension MIT-SCREEN-SAVER
[    12.689] (II) Initializing extension DOUBLE-BUFFER
[    12.689] (II) Initializing extension RECORD
[    12.689] (II) Initializing extension DPMS
[    12.689] (II) Initializing extension Present
[    12.689] (II) Initializing extension DRI3
[    12.689] (II) Initializing extension X-Resource
[    12.689] (II) Initializing extension XVideo
[    12.689] (II) Initializing extension XVideo-MotionCompensation
[    12.689] (II) Initializing extension XFree86-VidModeExtension
[    12.689] (II) Initializing extension XFree86-DGA
[    12.689] (II) Initializing extension XFree86-DRI
[    12.689] (II) Initializing extension DRI2
[    12.689] (II) Initializing extension GLX
[    12.690] (EE) Failed to initialize GLX extension (Compatible NVIDIA X driver not found)
[    12.690] (II) modeset(0): Damage tracking initialized
[    12.690] (II) modeset(0): Setting screen physical size to 361 x 203
...
[    19.663] (II) modeset(0): EDID vendor "LGD", prod id 987
[    19.663] (II) modeset(0): Printing DDC gathered Modelines:
[    19.663] (II) modeset(0): Modeline "1366x768"x0.0   76.75  1366 1414 1446 1618  768 771 776 790 -hsync -vsync (47.4 kHz eP)
[    21.055] (II) modeset(0): EDID vendor "LGD", prod id 987
[    21.055] (II) modeset(0): Printing DDC gathered Modelines:
[    21.055] (II) modeset(0): Modeline "1366x768"x0.0   76.75  1366 1414 1446 1618  768 771 776 790 -hsync -vsync (47.4 kHz eP)


In this log above I get the following error: "(EE) Failed to initialize GLX extension (Compatible NVIDIA X driver not found)". As far as I understand it tries to load Nvidia GLX extension, but I dont' know why it doesn't try to load anything related to Intel...
Back to top
View user's profile Send private message
mrbassie
l33t
l33t


Joined: 31 May 2013
Posts: 821
Location: Go past the sign for cope, right at the sign for seethe. If you see the target you've missed it.

PostPosted: Sun Jun 02, 2024 3:55 pm    Post subject: Reply with quote

This is mine for comparison. I set this up years ago and the only thing I clearly remember is what a huge pain it was. Took ages. I use prime-run to invoke the nvidia chip. I don't have an equivalent to your /etc/X11/xorg.conf.d/30-nvidia-offload.conf

Code:
Section "Device"
    Identifier "intel"
    Driver "modesetting"
    Option "AccelMethod"        "glamor"
    Option "DRI"                "3"
    Option "Composite"          "Enable"
    Option "PageFlip"           "false"
EndSection

Section "Screen"
    Identifier "intel"
    Device "intel"
EndSection

Section "Module"
    Load "modesetting"
EndSection

Section "Device"
    Identifier "nvidia"
    Driver "nvidia"
    BusID "PCI:01:00.0"
    Option "AllowEmptyInitialConfiguration"
EndSection


EDIT: So when I looked at my xorg.conf I noticed I didn't have the busid for the intel gpu so I added it before I posted, didn't test it though because I'm retarded. That made it not work. I've removed it.
_________________
I spent a christmas in Vienna twenty something years ago. It was a beautiful city. Everyone was so friendly.
Back to top
View user's profile Send private message
BaltazarGabka
n00b
n00b


Joined: 07 Dec 2021
Posts: 13
Location: Poland

PostPosted: Mon Jun 03, 2024 3:42 pm    Post subject: Reply with quote

mrbassie wrote:
This is mine for comparison. I set this up years ago and the only thing I clearly remember is what a huge pain it was. Took ages. I use prime-run to invoke the nvidia chip. I don't have an equivalent to your /etc/X11/xorg.conf.d/30-nvidia-offload.conf


Without this file NVIDIA doesn't work, even though xorg.conf contains the same entry...

mrbassie wrote:
Code:
Section "Device"
    Identifier "intel"
    Driver "modesetting"
    Option "AccelMethod"        "glamor"
    Option "DRI"                "3"
    Option "Composite"          "Enable"
    Option "PageFlip"           "false"
EndSection

Section "Screen"
    Identifier "intel"
    Device "intel"
EndSection

Section "Module"
    Load "modesetting"
EndSection

Section "Device"
    Identifier "nvidia"
    Driver "nvidia"
    BusID "PCI:01:00.0"
    Option "AllowEmptyInitialConfiguration"
EndSection


EDIT: So when I looked at my xorg.conf I noticed I didn't have the busid for the intel gpu so I added it before I posted, didn't test it though because I'm retarded. That made it not work. I've removed it.


I tried to apply some of these setting, but without any luck... Anyway, thanks for your reply. :)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum