ASUS STRIX III - G731GV - Graphic Driver questions

Hello.

Intel® Core™ i7-9750H - NVIDIA® GeForce RTX™ 2060 with 6GB GDDR6 VRAM - 17.3-inch Full HD (1920x1080) IPS-level panel, 144Hz, 3ms, 100% sRGB

This is a second hand laptop not very old ( August 2019 ). that I bought in December 2019.
I immediately installed leap 15.1 aside windows 10 ( dual boot ).

This week when I decide to replace nouveau by installing the proprietary driver (ver 435.17) the hard way as I use to do on all my previous Asus laptop (Including one using bumblebee).
I remove the proprietary driver which failed to run, then I install the opensuse driver ( G05 ver 440.82) which has installed also suse-prime.
That runs without problem.

Question 1 : Discovering graphical hardware properties from command line

This question is not relative to /var/log/Xorg.0.log

The following files ( FILE_A and FILE_B ) show results of the same commands.
One file has been build when running suse-prime select the Intel® UHD Graphics 630 driver.
The other has been build when running suse-prime select nvidia driver.
Comparing the two file, some of the commands seems to me that you could not tell which graphic card is in used.
I am interesting in how these two files must be understood.
FILE_A : https://paste.opensuse.org/22413536

FILE_B : https://paste.opensuse.org/18812839

Question 2 : Reading /var/log/Xorg.0.log

FILE_C : is /var/log/Xorg.0.log using Intel® UHD Graphics 630 driver.
https://paste.opensuse.org/94542716

FILE_D : is /var/log/Xorg.0.log using NVIDIA driver.
https://paste.opensuse.org/20336703

FILE_E : is /etc/X11/xorg.conf.d/90-intel.conf when running suse-prime select the Intel® UHD Graphics 630 driver.
https://paste.opensuse.org/91993873

FILE_F : is /etc/X11/xorg.conf.d/90-nvidia.conf when running suse-prime select nvidia driver.
https://paste.opensuse.org/17551461

Reading throught Xorg.0.log for both driver :

1°) both driver ==>

     xx.yyyy] (==) No monitor specified for screen ("intel" |  "nvidia").
   Using a default monitor configuration.

Where that default monitor configuration is defined ? There is nothing in /etc/X11/xorg.conf.d/90-(“intel” | “nvidia”).conf

2°)

    14.568] (II) modeset(0): using drv /dev/dri/card0
    14.568] (II) modeset(0): Creating default Display subsection in Screen section
    "intel" for depth/fbbpp 24/32
    14.568] (==) modeset(0): Depth 24, (==) framebuffer bpp 32
    14.568] (==) modeset(0): RGB weight 888
    14.568] (==) modeset(0): Default visual is TrueColor

    15.108] (II) modeset(G0): using drv /dev/dri/card0
    15.108] (II) NVIDIA(0): Creating default Display subsection in Screen section
    "nvidia" for depth/fbbpp 24/32
    15.108] (==) NVIDIA(0): Depth 24, (==) framebuffer bpp 32
    15.108] (==) NVIDIA(0): RGB weight 888
    15.108] (==) NVIDIA(0): Default visual is TrueColor

**Where that configuration is defined ? **There is nothing in /etc/X11/xorg.conf.d/90-(“intel” | “nvidia”).conf

3°)I try to run read-edid programm with no success :

:~> sudo get-edid
[sudo] password for root: 
This is read-edid version 3.0.2. Prepare for some fun.
Attempting to use i2c interface
Looks like no busses have an EDID. Sorry!
Attempting to use the classical VBE interface
Illegal instruction

How xorg program succeded :

    14.611] (II) modeset(0): Output eDP-1 has no monitor section
    14.612] (II) modeset(0): EDID for output eDP-1
    14.612] (II) modeset(0): Manufacturer: AUO  Model: 409d  Serial#: 0
    14.612] (II) modeset(0): Year: 2018  Week: 16
    14.612] (II) modeset(0): EDID Version: 1.4
    14.612] (II) modeset(0): Digital Display Input
    14.612] (II) modeset(0): 8 bits per channel
------------------
    14.612] (II) modeset(0):  AUO
    14.612] (II) modeset(0):  B173HAN04.0
    14.612] (II) modeset(0): EDID (in hex):
    14.612] (II) modeset(0):     00ffffffffffff0006af9d4000000000
    14.612] (II) modeset(0):     101c0104a5261678029675a356529c27
    14.612] (II) modeset(0):     0c505400000001010101010101010101
    14.612] (II) modeset(0):     010101010101ce8f80b6703888403020
    14.612] (II) modeset(0):     a5007ed710000018ce8f80b670382e47
    14.612] (II) modeset(0):     3020a5007ed710000018000000fe0041
    14.612] (II) modeset(0):     554f0a202020202020202020000000fe
    14.612] (II) modeset(0):     004231373348414e30342e30200a00cd
    14.613] (II) modeset(0): Printing probed modes for output eDP-1
    14.613] (II) modeset(0): Modeline "1920x1080"x144.0  368.14  1920 1968 2000 2102  1080 1090 1095 1216 -hsync -vsync (175.1 kHz eP)
...............................
............
    14.613] (II) modeset(0): Output eDP-1 connected
    14.613] (II) modeset(0): Using exact sizes for initial modes
    14.613] (II) modeset(0): Output eDP-1 using initial mode 1920x1080 +0+0
    14.613] (==) modeset(0): Using gamma correction (1.0, 1.0, 1.0)
    14.613] (==) modeset(0): DPI set to (96, 96)
............................
...........

    15.878] (II) modeset(G0): glamor X acceleration enabled on Mesa DRI Intel(R) UHD Graphics 630 (Coffeelake 3x8 GT2) 
    15.878] (II) modeset(G0): glamor initialized
    15.879] (II) modeset(G0): Output eDP-1-1 has no monitor section
    15.880] (II) modeset(G0): EDID for output eDP-1-1
    15.880] (II) modeset(G0): Manufacturer: AUO  Model: 409d  Serial#: 0
    15.880] (II) modeset(G0): Year: 2018  Week: 16
    15.880] (II) modeset(G0): EDID Version: 1.4
    15.880] (II) modeset(G0): Digital Display Input
    15.880] (II) modeset(G0): 8 bits per channel
...............
    15.880] (II) modeset(G0):  AUO
    15.880] (II) modeset(G0):  B173HAN04.0
    15.880] (II) modeset(G0): EDID (in hex):
    15.880] (II) modeset(G0):     00ffffffffffff0006af9d4000000000
    15.880] (II) modeset(G0):     101c0104a5261678029675a356529c27
    15.880] (II) modeset(G0):     0c505400000001010101010101010101
    15.880] (II) modeset(G0):     010101010101ce8f80b6703888403020
    15.880] (II) modeset(G0):     a5007ed710000018ce8f80b670382e47
    15.880] (II) modeset(G0):     3020a5007ed710000018000000fe0041
    15.880] (II) modeset(G0):     554f0a202020202020202020000000fe
    15.880] (II) modeset(G0):     004231373348414e30342e30200a00cd
    15.880] (II) modeset(G0): Printing probed modes for output eDP-1-1
    15.881] (II) modeset(G0): Modeline "1920x1080"x144.0  368.14  1920 1968 2000 2102  1080 1090 1095 1216 -hsync -vsync (175.1 kHz eP)
.......................................
..................

Any comments are welcome.

Hi
Have a read here about using prime offloading as bumblebee is on the way out, read towards the end of the thread…

https://lists.opensuse.org/opensuse-factory/2020-04/msg00091.html

Basically you need a later kernel which will be in Leap 15.2 for things to work…

Thank you for your quick answer.
But my question is more about operating system commands and Xorg configuration.

Question 1 :
If you discard /var/log/Xorg.0.log, while reading FILE_A and FILE_B, for most command it seems difficult to tell which graphic card is in use : integrated intel or nvidia card.I would like to understand the command results.

Question 2 :
Now reading /var/log/Xorg.0.log in the two situations ( intel integrated or nvidia card )

  • The system was able to find information that I was not able to get : EDID data for example.
  • The system is ‘Using a default monitor configuration’. Where is that configuration stored
  • The system is ‘Creating default Display subsection in Screen section’. Where is that configuration stored.

If you look at FILE_E and FILE_F there is nothing special.
How does it work ?

Thank you.

Hi
Because it just switches in the dGPU (nvidia) card on and becomes ‘Provider 0’ by the looks on your hardware…

All configurations are down in /etc/X11/xorg.conf.d, for the monitor it probes the system to determine settings, configuration these days is to just override defaults if it can’t determine from the hardware…

If your on a Desktop Environment, then the ‘userspace’ tools should be used for any configuration changes, EDID information etc.

If you add the suse-prime appindicator tool then it shows what is active…

lshw -c video
 *-display                 
       description: VGA compatible controller
       product: TU106M [GeForce RTX 2060 Mobile]
       vendor: NVIDIA Corporation
       physical id: 0
       bus info: pci@0000:01:00.0
       version: a1
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress vga_controller bus_master cap_list rom
       configuration: driver=nouveau latency=0
       resources: irq:493 memory:a4000000-a4ffffff memory:90000000-9fffffff memory:a0000000-a1ffffff ioport:4000(size=128) memory:a5000000-a507ffff
  *-display
       description: VGA compatible controller
       product: UHD Graphics 630 (Mobile)
       vendor: Intel Corporation
       physical id: 2
       bus info: pci@0000:00:02.0
       version: 00
       width: 64 bits
       clock: 33MHz
       capabilities: pciexpress msi pm vga_controller bus_master cap_list rom
       configuration: driver=i915 latency=0
       resources: irq:494 memory:a3000000-a3ffffff memory:80000000-8fffffff ioport:5000(size=64) memory:c0000-dffff

The two drivers are in use ?

ASUS-G731GV-JC:~ # get-edid
This is read-edid version 3.0.2. Prepare for some fun.
Attempting to use i2c interface
Looks like no busses have an EDID. Sorry!
Attempting to use the classical VBE interface
Illegal instruction (core dumped)

From where does the edid data found in /var/log/Xorg.0.log come from ?

    15.861] (II) [drm] nouveau interface version: 1.3.1
    15.861] (EE) Unknown chipset: NV166
    15.861] (II) modeset(G0): using drv /dev/dri/card1
    15.861] (II) modeset(0): **Creating default Display subsection in Screen section
    "Default Screen Section" for depth/fbbpp 24/32**
    15.861] (==) modeset(0): Depth 24, (==) framebuffer bpp 32
    15.861] (==) modeset(0): RGB weight 888
    15.861] (==) modeset(0): Default visual is TrueColor

Where is that file ?

There is no X11 configuration files : no /etc/X11/Xorg.conf and all contents are commented out in /etc/X11/xorg.conf.d/{50-device,50-monitor,50-screen}
Does it mean that the system is trying to determine the right configuiration during startup ?

It seems that the nvidia driver choose when to use intel graphic card and when to use the nvidia card on turing gpu ( which is my case ).
So I suppose that nouveau do the same.

http://developer.download.nvidia.com/devzone/devcenter/gamegraphics/files/OptimusRenderingPolicies.pdf