Primary external monitor is blank after logging in, can only get it to work after reconnecting my HDMI cable.

Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Electronica__
Level 1
Level 1
Posts: 9
Joined: Sat Jan 28, 2023 2:05 pm

Primary external monitor is blank after logging in, can only get it to work after reconnecting my HDMI cable.

Post by Electronica__ »

I am facing this issue where my external monitor is blank after logging in. The strange thing is that even though I have selected "Join Displays" in the Display settings, in the login screen, the displays are mirrored for some reason. I am using a laptop and have connected to my external monitor via a HDMI port. The only way I am able to fix this issue is by disconnecting and reconnecting the HDMI cable, then my monitor works fine. Another thing I noticed is, all my colour settings (colour calibration in Nvidia Settings) are wiped out after a restart.

Code: Select all

inxi -Fxxxr
System:
  Host: sammy-Predator-H300 Kernel: 5.15.0-58-generic x86_64 bits: 64
    compiler: gcc v: 11.3.0 Desktop: Cinnamon 5.6.7 tk: GTK 3.24.33 wm: muffin
    vt: 7 dm: LightDM 1.30.0 Distro: Linux Mint 21.1 Vera
    base: Ubuntu 22.04 jammy
Machine:
  Type: Laptop System: Acer product: Predator PH315-53 v: V2.02
    serial: <superuser required>
  Mobo: CML model: QX50_CMS v: V2.02 serial: <superuser required>
    UEFI: Insyde v: 2.02 date: 03/23/2021
Battery:
  ID-1: BAT1 charge: 44.0 Wh (99.8%) condition: 44.1/58.8 Wh (75.1%)
    volts: 16.4 min: 15.4 model: SMP AP18E7M type: Li-ion serial: <filter>
    status: N/A
CPU:
  Info: 6-core model: Intel Core i7-10750H bits: 64 type: MT MCP smt: enabled
    arch: Comet Lake rev: 2 cache: L1: 384 KiB L2: 1.5 MiB L3: 12 MiB
  Speed (MHz): avg: 907 high: 1608 min/max: 800/5000 cores: 1: 1608 2: 900
    3: 900 4: 820 5: 800 6: 848 7: 823 8: 800 9: 800 10: 800 11: 893 12: 900
    bogomips: 62399
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
Graphics:
  Device-1: Intel CometLake-H GT2 [UHD Graphics]
    vendor: Acer Incorporated ALI driver: i915 v: kernel ports: active: eDP-1
    empty: HDMI-A-1 bus-ID: 00:02.0 chip-ID: 8086:9bc4 class-ID: 0300
  Device-2: NVIDIA TU106M [GeForce RTX 2060 Mobile]
    vendor: Acer Incorporated ALI driver: nvidia v: 525.78.01 pcie:
    speed: 2.5 GT/s lanes: 16 ports: active: none off: HDMI-A-2 empty: DP-1
    bus-ID: 01:00.0 chip-ID: 10de:1f15 class-ID: 0300
  Device-3: Quanta HD User Facing type: USB driver: uvcvideo bus-ID: 1-5:3
    chip-ID: 0408:a061 class-ID: 0e02
  Display: x11 server: X.Org v: 1.21.1.3 driver: X:
    loaded: modesetting,nvidia unloaded: fbdev,nouveau,vesa gpu: i915
    display-ID: :0 screens: 1
  Screen-1: 0 s-res: 3840x1080 s-dpi: 96 s-size: 1016x286mm (40.0x11.3")
    s-diag: 1055mm (41.6")
  Monitor-1: HDMI-1-0 pos: primary,right res: 1920x1080 hz: 60 dpi: 82
    size: 598x336mm (23.5x13.2") diag: 686mm (27")
  Monitor-2: eDP-1 pos: primary,left res: 1920x1080 hz: 144 dpi: 142
    size: 344x193mm (13.5x7.6") diag: 394mm (15.5")
  OpenGL: renderer: Mesa Intel UHD Graphics (CML GT2) v: 4.6 Mesa 22.0.5
    direct render: Yes
Audio:
  Device-1: Intel Comet Lake PCH cAVS vendor: Acer Incorporated ALI
    driver: snd_hda_intel v: kernel bus-ID: 00:1f.3 chip-ID: 8086:06c8
    class-ID: 0403
  Device-2: NVIDIA TU106 High Definition Audio
    vendor: Acer Incorporated ALI driver: snd_hda_intel v: kernel pcie:
    speed: 2.5 GT/s lanes: 16 bus-ID: 01:00.1 chip-ID: 10de:10f9
    class-ID: 0403
  Sound Server-1: ALSA v: k5.15.0-58-generic running: yes
  Sound Server-2: PulseAudio v: 15.99.1 running: yes
  Sound Server-3: PipeWire v: 0.3.48 running: yes
Network:
  Device-1: Intel Comet Lake PCH CNVi WiFi vendor: Rivet Networks
    driver: iwlwifi v: kernel bus-ID: 00:14.3 chip-ID: 8086:06f0 class-ID: 0280
  IF: wlp0s20f3 state: up mac: <filter>
  Device-2: Realtek vendor: Acer Incorporated ALI driver: r8169 v: kernel
    pcie: speed: 2.5 GT/s lanes: 1 port: 3000 bus-ID: 07:00.0
    chip-ID: 10ec:2600 class-ID: 0200
  IF: enp7s0 state: down mac: <filter>
Bluetooth:
  Device-1: Intel AX201 Bluetooth type: USB driver: btusb v: 0.8
    bus-ID: 1-14:5 chip-ID: 8087:0026 class-ID: e001
  Report: hciconfig ID: hci0 rfk-id: 1 state: up address: DC:1B:A1:F0:33:DA
    bt-v: 3.0 lmp-v: 5.2 sub-v: 237e hci-v: 5.2 rev: 237e
Drives:
  Local Storage: total: 2.96 TiB used: 670.29 GiB (22.1%)
  ID-1: /dev/nvme0n1 vendor: Western Digital
    model: PC SN730 SDBQNTY-256G-1014 size: 238.47 GiB speed: 31.6 Gb/s
    lanes: 4 type: SSD serial: <filter> rev: 11101100 temp: 24.9 C
    scheme: GPT
  ID-2: /dev/sda vendor: Seagate model: ST1000LM049-2GH172 size: 931.51 GiB
    speed: 6.0 Gb/s type: HDD rpm: 7200 serial: <filter> rev: ACM1 scheme: GPT
  ID-3: /dev/sdb type: USB vendor: Western Digital
    model: WD My Passport 260D size: 1.82 TiB type: N/A
    serial: <filter> rev: 2007 scheme: GPT
Partition:
  ID-1: / size: 23.86 GiB used: 12.44 GiB (52.1%) fs: ext4
    dev: /dev/nvme0n1p5
  ID-2: /boot/efi size: 196 MiB used: 55.3 MiB (28.2%) fs: vfat
    dev: /dev/nvme0n1p1
  ID-3: /home size: 28.67 GiB used: 216.2 MiB (0.7%) fs: ext4
    dev: /dev/sda3
Swap:
  ID-1: swap-1 type: file size: 1.13 GiB used: 0 KiB (0.0%) priority: -2
    file: /swapfile
Sensors:
  System Temperatures: cpu: 44.0 C pch: 58.0 C mobo: N/A
  Fan Speeds (RPM): N/A
Repos:
  Packages: apt: 2226
  No active apt repos in: /etc/apt/sources.list
  Active apt repos in: /etc/apt/sources.list.d/official-package-repositories.list
    1: deb https://mirrors.piconets.webwerks.in/linuxmint-mirror/packages vera main upstream import backport
    2: deb http://mirrors.piconets.webwerks.in/ubuntu-mirror/ubuntu jammy main restricted universe multiverse
    3: deb http://mirrors.piconets.webwerks.in/ubuntu-mirror/ubuntu jammy-updates main restricted universe multiverse
    4: deb http://mirrors.piconets.webwerks.in/ubuntu-mirror/ubuntu jammy-backports main restricted universe multiverse
    5: deb http://security.ubuntu.com/ubuntu/ jammy-security main restricted universe multiverse
Info:
  Processes: 317 Uptime: 3m wakeups: 1 Memory: 15.46 GiB
  used: 1.36 GiB (8.8%) Init: systemd v: 249 runlevel: 5 Compilers:
  gcc: 11.3.0 alt: 11 Shell: Bash v: 5.1.16 running-in: gnome-terminal
  inxi: 3.3.13

Code: Select all

xrandr
Screen 0: minimum 320 x 200, current 3840 x 1080, maximum 16384 x 16384
eDP-1 connected 1920x1080+0+0 (normal left inverted right x axis y axis) 344mm x 193mm
   1920x1080    144.00*+  60.00   144.00  
   1680x1050    144.00  
   1400x1050    144.00  
   1600x900     144.00  
   1280x1024    144.00  
   1400x900     144.00  
   1280x960     144.00  
   1440x810     144.00  
   1368x768     144.00  
   1280x800     144.00  
   1152x864     144.00  
   1280x720     144.00  
   1024x768     144.00  
   1024x768i    144.00  
   960x720      144.00  
   928x696      144.00  
   896x672      144.00  
   1024x576     144.00  
   960x600      144.00  
   832x624      144.00  
   960x540      144.00  
   800x600      144.00  
   840x525      144.00  
   864x486      144.00  
   700x525      144.00  
   800x450      144.00  
   640x512      144.00  
   700x450      144.00  
   640x480      144.00  
   720x405      144.00  
   720x400      144.00  
   684x384      144.00  
   640x400      144.00  
   576x432      144.00  
   640x360      144.00  
   640x350      144.00  
   512x384      144.00  
   512x384i     144.00  
   512x288      144.00  
   416x312      144.00  
   480x270      144.00  
   400x300      144.00  
   432x243      144.00  
   320x240      144.00  
   360x202      144.00  
   360x200      144.00  
   320x200      144.00  
   320x180      144.00  
   320x175      144.00  
HDMI-1 disconnected (normal left inverted right x axis y axis)
HDMI-1-0 connected primary 1920x1080+1920+0 (normal left inverted right x axis y axis) 598mm x 336mm
   1920x1080     60.00*+  59.94    50.00  
   1680x1050     59.95  
   1600x900      60.00  
   1280x1024     75.02    60.02  
   1280x800      59.81  
   1280x720      60.00    59.94    50.00  
   1024x768      75.03    60.00  
   800x600       75.00    60.32  
   720x576       50.00  
   720x480       59.94  
   640x480       75.00    59.94    59.93  
DP-1-0 disconnected (normal left inverted right x axis y axis)
DP-1-1 disconnected (normal left inverted right x axis y axis)
Last edited by LockBot on Fri Jul 28, 2023 10:00 pm, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
User avatar
SMG
Level 25
Level 25
Posts: 31971
Joined: Sun Jul 26, 2020 6:15 pm
Location: USA

Re: Primary external monitor is blank after logging in, can only get it to work after reconnecting my HDMI cable.

Post by SMG »

Electronica__ wrote: Wed Feb 01, 2023 9:57 am I am facing this issue where my external monitor is blank after logging in. The strange thing is that even though I have selected "Join Displays" in the Display settings, in the login screen, the displays are mirrored for some reason. I am using a laptop and have connected to my external monitor via a HDMI port.
Welcome to the forum, Electronica__ .

Do you know if your laptop has the most recent BIOS/UEFI installed? Updates can sometimes help with these types of issue.

Machine:
Type: Laptop System: Acer product: Predator PH315-53 v: V2.02
serial: <superuser required>
Mobo: CML model: QX50_CMS v: V2.02 serial: <superuser required>
UEFI: Insyde v: 2.02 date: 03/23/2021

In fact, a BIOS/UEFI update is what fixed the problem for the person in this topic [SOLVED] Laptop with ext Monitor - only works when hotpluging.

The fact your monitor and your laptop screen have different frequencies might be a factor in what you are noticing.

What is the output of

Code: Select all

cat /etc/X11/xorg.conf
Image
A woman typing on a laptop with LM20.3 Cinnamon.
Electronica__
Level 1
Level 1
Posts: 9
Joined: Sat Jan 28, 2023 2:05 pm

Re: Primary external monitor is blank after logging in, can only get it to work after reconnecting my HDMI cable.

Post by Electronica__ »

SMG wrote: Wed Feb 01, 2023 9:00 pm
Do you know if your laptop has the most recent BIOS/UEFI installed? Updates can sometimes help with these types of issue

The fact your monitor and your laptop screen have different frequencies might be a factor in what you are noticing.

What is the output of

Code: Select all

cat /etc/X11/xorg.conf
I checked for latest BIOS updates and I found out that the latest is v2.04 for my laptop. I installed it but I still have the same problem. I don't think that it's the frequency which is causing the issue as switching from Nvidia On-Demand to Nvidia Performance Mode seems to do the trick. If I switch back to Nvidia On-Demand, both the screens overlap (eDP and HDMI overlap on the top left part of my external monitor) and every operation except my mouse dragging across the screen seems to run at like 1 FPS.

Code: Select all

cat /etc/X11/xorg.conf
cat: /etc/X11/xorg.conf: No such file or directory
User avatar
SMG
Level 25
Level 25
Posts: 31971
Joined: Sun Jul 26, 2020 6:15 pm
Location: USA

Re: Primary external monitor is blank after logging in, can only get it to work after reconnecting my HDMI cable.

Post by SMG »

Electronica__ wrote: Wed Feb 01, 2023 9:57 amThe strange thing is that even though I have selected "Join Displays" in the Display settings, in the login screen, the displays are mirrored for some reason.
That is not strange at all. The Display settings do not take effect until after you log in.

If you want different settings for the login screen, go to the Login Window app and see what options are available there.
Electronica__ wrote: Fri Feb 03, 2023 1:55 amI don't think that it's the frequency which is causing the issue as switching from Nvidia On-Demand to Nvidia Performance Mode seems to do the trick. If I switch back to Nvidia On-Demand, both the screens overlap (eDP and HDMI overlap on the top left part of my external monitor) and every operation except my mouse dragging across the screen seems to run at like 1 FPS.
I do not know how Acer wired the two GPUs in your laptop. How they are wired will affect what capabilities the operating system has. Check to see if there are any options in BIOS/UEFI for graphics (there may not be).
Electronica__ wrote: Wed Feb 01, 2023 9:57 amAnother thing I noticed is, all my colour settings (colour calibration in Nvidia Settings) are wiped out after a restart.
If you save settings in Nvidia X Server Settings, an xorg.conf is created that assumes you are only using an Nvidia GPU. You have a dual-graphics laptop (Intel and Nvidia) and the laptop screen (eDP-1) appears to only be connected to Intel so I would not think you want to shut out Intel from working.

Device-1: Intel CometLake-H GT2 [UHD Graphics]
vendor: Acer Incorporated ALI driver: i915 v: kernel ports: active: eDP-1
empty: HDMI-A-1
bus-ID: 00:02.0 chip-ID: 8086:9bc4 class-ID: 0300
Device-2: NVIDIA TU106M [GeForce RTX 2060 Mobile]
vendor: Acer Incorporated ALI driver: nvidia v: 525.78.01 pcie:
speed: 2.5 GT/s lanes: 16 ports: active: none off: HDMI-A-2 empty: DP-1

The command I requested for checking if xorg.conf was there returned nothing (as it normally should be), but it was that way because apparently there is an issue in LM21.1 with saving that file. See this post for how to get the file to save, but keep in mind that may cause problems with your laptop screen (which displays using Intel even if it renders with Nvidia).

How do you have the settings in the Display app configured for the two screens? Are they both showing as active? (I'm wondering why the external port indicates the HDMI-A-2 is "off".)
Image
A woman typing on a laptop with LM20.3 Cinnamon.
Electronica__
Level 1
Level 1
Posts: 9
Joined: Sat Jan 28, 2023 2:05 pm

Re: Primary external monitor is blank after logging in, can only get it to work after reconnecting my HDMI cable.

Post by Electronica__ »

SMG wrote: Fri Feb 03, 2023 3:21 pm If you want different settings for the login screen, go to the Login Window app and see what options are available there.
Got it.
SMG wrote: Fri Feb 03, 2023 3:21 pm I do not know how Acer wired the two GPUs in your laptop. How they are wired will affect what capabilities the operating system has. Check to see if there are any options in BIOS/UEFI for graphics (there may not be).
It seems that once I connect an external monitor, Nvidia Optimus is essentially disabled as the dGPU directly connects to the monitor through HDMI. Can this be an issue?
SMG wrote: Fri Feb 03, 2023 3:21 pm The command I requested for checking if xorg.conf was there returned nothing (as it normally should be), but it was that way because apparently there is an issue in LM21.1 with saving that file. See this post for how to get the file to save, but keep in mind that may cause problems with your laptop screen (which displays using Intel even if it renders with Nvidia).
Again, this is not an issue if I switch to Nvidia Performance mode.
SMG wrote: Fri Feb 03, 2023 3:21 pm How do you have the settings in the Display app configured for the two screens? Are they both showing as active? (I'm wondering why the external port indicates the HDMI-A-2 is "off".)
Yes, both screens are active yet it shows HDMI-A-2 as "off".
User avatar
SMG
Level 25
Level 25
Posts: 31971
Joined: Sun Jul 26, 2020 6:15 pm
Location: USA

Re: Primary external monitor is blank after logging in, can only get it to work after reconnecting my HDMI cable.

Post by SMG »

Electronica__ wrote: Sat Feb 04, 2023 8:53 am It seems that once I connect an external monitor, Nvidia Optimus is essentially disabled as the dGPU directly connects to the monitor through HDMI. Can this be an issue?
I do not understand this. What criteria are you using to say, "Nvidia Optimus is essentially disabled"? If you put your system in Nvidia-Performance mode, there is no Optimus switching. On-demand mode is where the switching can be done.
Electronica__ wrote: Sat Feb 04, 2023 8:53 am
SMG wrote: Fri Feb 03, 2023 3:21 pm The command I requested for checking if xorg.conf was there returned nothing (as it normally should be), but it was that way because apparently there is an issue in LM21.1 with saving that file. See this post for how to get the file to save, but keep in mind that may cause problems with your laptop screen (which displays using Intel even if it renders with Nvidia).
Again, this is not an issue if I switch to Nvidia Performance mode.
What is not an issue?
Image
A woman typing on a laptop with LM20.3 Cinnamon.
Electronica__
Level 1
Level 1
Posts: 9
Joined: Sat Jan 28, 2023 2:05 pm

Re: Primary external monitor is blank after logging in, can only get it to work after reconnecting my HDMI cable.

Post by Electronica__ »

SMG wrote: Sat Feb 04, 2023 6:35 pmI do not understand this. What criteria are you using to say, "Nvidia Optimus is essentially disabled"? If you put your system in Nvidia-Performance mode, there is no Optimus switching. On-demand mode is where the switching can be done.
What I'm trying to say is that usually (on my laptop at least), whenever a graphic intensive application is run and I have not connected any external monitor, the graphic frames have to pass through Intel HD Graphics which adds unwanted overhead. But, when I connect an external monitor through HDMI, it actually bypasses the Intel HD Graphics completely and all the frames are sent directly from the Nvidia dGPU to the display, so I don't think Nvidia Optimus will be of any use here as it cannot switch to Intel as it's not even wired to the HDMI port physically.
SMG wrote: Fri Feb 03, 2023 3:21 pmWhat is not an issue?
My color settings are saved if I'm on Nvidia Performance mode.
User avatar
SMG
Level 25
Level 25
Posts: 31971
Joined: Sun Jul 26, 2020 6:15 pm
Location: USA

Re: Primary external monitor is blank after logging in, can only get it to work after reconnecting my HDMI cable.

Post by SMG »

Electronica__ wrote: Sun Feb 05, 2023 2:07 amWhat I'm trying to say is that usually (on my laptop at least), whenever a graphic intensive application is run and I have not connected any external monitor, the graphic frames have to pass through Intel HD Graphics which adds unwanted overhead. But, when I connect an external monitor through HDMI, it actually bypasses the Intel HD Graphics completely and all the frames are sent directly from the Nvidia dGPU to the display, so I don't think Nvidia Optimus will be of any use here as it cannot switch to Intel as it's not even wired to the HDMI port physically.
Your laptop screen is wired through Intel even though it likely can render with Nvidia even as it displays with Intel. The below output suggests the HDMI port is wired to both Intel and Nvidia and the mini-DP port is Nvidia only.

The inxi output indicates which ports are directly connected to each GPU.
Device-1: Intel CometLake-H GT2 [UHD Graphics]
vendor: Acer Incorporated ALI driver: i915 v: kernel ports: active: eDP-1
empty: HDMI-A-1
bus-ID: 00:02.0 chip-ID: 8086:9bc4 class-ID: 0300
Device-2: NVIDIA TU106M [GeForce RTX 2060 Mobile]
vendor: Acer Incorporated ALI driver: nvidia v: 525.78.01 pcie:
speed: 2.5 GT/s lanes: 16 ports: active: none off: HDMI-A-2 empty: DP-1

Sometimes, the functionality is not replicated the same way in Linux-based distros as it is in Windows. In addition to the hardware wiring and any settings in the BIOS/UEFI, there are software files which tell the system which GPU to use. I do not know all the specifics for your hardware.
Electronica__ wrote: Sun Feb 05, 2023 2:07 amMy color settings are saved if I'm on Nvidia Performance mode.
Even if you switch back to On-Demand mode? Maybe there is a bug somewhere that might need reported.
Image
A woman typing on a laptop with LM20.3 Cinnamon.
Electronica__
Level 1
Level 1
Posts: 9
Joined: Sat Jan 28, 2023 2:05 pm

Re: Primary external monitor is blank after logging in, can only get it to work after reconnecting my HDMI cable.

Post by Electronica__ »

SMG wrote: Sun Feb 05, 2023 3:25 pm Your laptop screen is wired through Intel even though it likely can render with Nvidia even as it displays with Intel. The below output suggests the HDMI port is wired to both Intel and Nvidia and the mini-DP port is Nvidia only.

The inxi output indicates which ports are directly connected to each GPU.
Device-1: Intel CometLake-H GT2 [UHD Graphics]
vendor: Acer Incorporated ALI driver: i915 v: kernel ports: active: eDP-1
empty: HDMI-A-1
bus-ID: 00:02.0 chip-ID: 8086:9bc4 class-ID: 0300
Device-2: NVIDIA TU106M [GeForce RTX 2060 Mobile]
vendor: Acer Incorporated ALI driver: nvidia v: 525.78.01 pcie:
speed: 2.5 GT/s lanes: 16 ports: active: none off: HDMI-A-2 empty: DP-1
Interesting. I didn't know this.
SMG wrote: Sun Feb 05, 2023 3:25 pm Sometimes, the functionality is not replicated the same way in Linux-based distros as it is in Windows. In addition to the hardware wiring and any settings in the BIOS/UEFI, there are software files which tell the system which GPU to use. I do not know all the specifics for your hardware.
I searched for the settings in the BIOS but couldn't find any.
SMG wrote: Sun Feb 05, 2023 3:25 pm Even if you switch back to On-Demand mode? Maybe there is a bug somewhere that might need reported.
No, when I switch back to On-Demand mode, the colour settings disappear again.

In addition to this, I found out that if I use On-Demand mode and run a graphic intensive application such as a benchmarking application, it does not use the dedicated gpu, it still resorts to Intel graphics. But when I do the same in the Performance Mode, it seems to work fine. Although I don't plan to game on Mint, I think that the only solution as of now seems to be to run in Performance Mode all the time.
User avatar
SMG
Level 25
Level 25
Posts: 31971
Joined: Sun Jul 26, 2020 6:15 pm
Location: USA

Re: Primary external monitor is blank after logging in, can only get it to work after reconnecting my HDMI cable.

Post by SMG »

Electronica__ wrote: Mon Feb 06, 2023 10:50 am
SMG wrote: Sun Feb 05, 2023 3:25 pm Sometimes, the functionality is not replicated the same way in Linux-based distros as it is in Windows. In addition to the hardware wiring and any settings in the BIOS/UEFI, there are software files which tell the system which GPU to use. I do not know all the specifics for your hardware.
I searched for the settings in the BIOS but couldn't find any.
It's likely there is not one. Computer manufacturers seem to be making changes such that you get what they give you and there is no option to change.
Electronica__ wrote: Mon Feb 06, 2023 10:50 am
SMG wrote: Sun Feb 05, 2023 3:25 pm Even if you switch back to On-Demand mode? Maybe there is a bug somewhere that might need reported.
No, when I switch back to On-Demand mode, the colour settings disappear again.
I am not sure what might be happening because I thought the settings were saved to the xorg.conf file. Unless somehow the file is being deleted when you switch modes? :?:
Electronica__ wrote: Mon Feb 06, 2023 10:50 amIn addition to this, I found out that if I use On-Demand mode and run a graphic intensive application such as a benchmarking application, it does not use the dedicated gpu, it still resorts to Intel graphics.
Did you tell the benchmarking app use the dedicated GPU?

When you are in On-Demand mode, both renderers are loaded and ready to go, but Intel is the primary and will be used unless you tell the system to use Nvidia. On-demand means you "demand" Nvidia be used and not that the operating system just randomly decides to use Nvidia.

How you "demand" Nvidia be used depends on the app on which you want to use it. Some apps require system settings be defined for Nvidia to be used while others can be activated using the right-click option in Cinnamon. The code in the app determines what is needed.
Electronica__ wrote: Mon Feb 06, 2023 10:50 amBut when I do the same in the Performance Mode, it seems to work fine.
When in Performance Mode, Nvidia is set as the primary renderer so it will be used.
Image
A woman typing on a laptop with LM20.3 Cinnamon.
User avatar
roblm
Level 15
Level 15
Posts: 5939
Joined: Sun Feb 24, 2013 2:41 pm

Re: Primary external monitor is blank after logging in, can only get it to work after reconnecting my HDMI cable.

Post by roblm »

Electronica__ wrote: ...I found out that if I use On-Demand mode and run a graphic intensive application such as a benchmarking application, it does not use the dedicated gpu,
Are you right clicking on the app in the menu and selecting Run with Nvidia GPU? I found out that the feature doesn't always work and you will need to use the command-line:
nvidia-optimus-offload-glx <app-name>

See this post for more info:
viewtopic.php?p=2086795#p2086795

Electronica__ wrote: Another thing I noticed is, all my colour settings (colour calibration in Nvidia Settings) are wiped out after a restart.

With On-Demand mode set, open the Nvidia Settings utility, make your color changes, close Nvidia Settings, and then post the output of xed ~/.nvidia-settings-rc

Also, what is the output of xrandr --verbose
Electronica__
Level 1
Level 1
Posts: 9
Joined: Sat Jan 28, 2023 2:05 pm

Re: Primary external monitor is blank after logging in, can only get it to work after reconnecting my HDMI cable.

Post by Electronica__ »

SMG wrote: Mon Feb 06, 2023 11:14 am Did you tell the benchmarking app use the dedicated GPU?

When you are in On-Demand mode, both renderers are loaded and ready to go, but Intel is the primary and will be used unless you tell the system to use Nvidia. On-demand means you "demand" Nvidia be used and not that the operating system just randomly decides to use Nvidia.

How you "demand" Nvidia be used depends on the app on which you want to use it. Some apps require system settings be defined for Nvidia to be used while others can be activated using the right-click option in Cinnamon. The code in the app determines what is needed.
roblm wrote: Mon Feb 06, 2023 12:21 pm
Electronica__ wrote: ...I found out that if I use On-Demand mode and run a graphic intensive application such as a benchmarking application, it does not use the dedicated gpu,
Are you right clicking on the app in the menu and selecting Run with Nvidia GPU? I found out that the feature doesn't always work and you will need to use the command-line:
nvidia-optimus-offload-glx <app-name>

See this post for more info:
viewtopic.php?p=2086795#p2086795
There is no option as Run with Nvidia GPU, but the application does run on the Nvidia GPU if I use nvidia-optimus-offload-glx <app-name>.
roblm wrote: Mon Feb 06, 2023 12:21 pm With On-Demand mode set, open the Nvidia Settings utility, make your color changes, close Nvidia Settings, and then post the output of xed ~/.nvidia-settings-rc
This is just some random color settings which I set to test it. And it does show up in nvidia-settings-rc

Code: Select all

#
# /home/sammy/.nvidia-settings-rc
#
# Configuration file for nvidia-settings - the NVIDIA Settings utility
# Generated on Tue Feb  7 18:34:10 2023
#

# ConfigProperties:

RcFileLocale = C
DisplayStatusBar = Yes
SliderTextEntries = Yes
IncludeDisplayNameInConfigFile = No
ShowQuitDialog = No
UpdateRulesOnProfileNameChange = Yes
Timer = PowerMizer_Monitor_(GPU_0),Yes,1000
Timer = Thermal_Monitor_(GPU_0),Yes,1000
Timer = Memory_Used_(GPU_0),Yes,3000

# Attributes:

[DPY:HDMI-1-0]/RedBrightness=-0.200000
[DPY:HDMI-1-0]/GreenBrightness=-0.200000
[DPY:HDMI-1-0]/BlueBrightness=-0.200000
[DPY:HDMI-1-0]/RedContrast=-0.300000
[DPY:HDMI-1-0]/GreenContrast=-0.300000
[DPY:HDMI-1-0]/BlueContrast=-0.300000
[DPY:HDMI-1-0]/RedGamma=0.900000
[DPY:HDMI-1-0]/GreenGamma=0.900000
[DPY:HDMI-1-0]/BlueGamma=0.900000
[DPY:HDMI-1-0]/Dithering=0
[DPY:HDMI-1-0]/DitheringMode=0
[DPY:HDMI-1-0]/DitheringDepth=0
[DPY:HDMI-1-0]/DigitalVibrance=0
[DPY:HDMI-1-0]/ColorSpace=0
[DPY:HDMI-1-0]/ColorRange=0
[DPY:HDMI-1-0]/SynchronousPaletteUpdates=0
roblm wrote: Mon Feb 06, 2023 12:21 pm Also, what is the output of xrandr --verbose

Code: Select all

Screen 0: minimum 320 x 200, current 3840 x 1080, maximum 16384 x 16384
eDP-1 connected 1920x1080+1920+0 (0x44) normal (normal left inverted right x axis y axis) 344mm x 193mm
	Identifier: 0x41
	Timestamp:  640661
	Subpixel:   unknown
	Gamma:      1.0:1.0:1.0
	Brightness: 1.0
	Clones:    
	CRTC:       1
	CRTCs:      1 2 3
	Transform:  1.000000 0.000000 0.000000
	            0.000000 1.000000 0.000000
	            0.000000 0.000000 1.000000
	           filter: 
	_MUTTER_PRESENTATION_OUTPUT: 0 
	EDID: 
		00ffffffffffff0009e5b30800000000
		011d0104a523137802de50a3544c9926
		0f505400000001010101010101010101
		0101010101019e8580a070383e406c30
		aa0058c11000001a9e8580a070387d46
		6c30aa0058c110000000000000fe0042
		4f452048460a202020202020000000fe
		004e5631353646484d2d4e344b0a007a
	scaling mode: Full aspect 
		supported: Full, Center, Full aspect
	Colorspace: Default 
		supported: Default, RGB_Wide_Gamut_Fixed_Point, RGB_Wide_Gamut_Floating_Point, opRGB, DCI-P3_RGB_D65, BT2020_RGB, BT601_YCC, BT709_YCC, XVYCC_601, XVYCC_709, SYCC_601, opYCC_601, BT2020_CYCC, BT2020_YCC
	max bpc: 12 
		range: (6, 12)
	Broadcast RGB: Automatic 
		supported: Automatic, Full, Limited 16:235
	panel orientation: Normal 
		supported: Normal, Upside Down, Left Side Up, Right Side Up
	link-status: Good 
		supported: Good, Bad
	CTM: 0 1 0 0 0 0 0 0 0 1 0 0 0 0 0 0 
		0 1 
	CONNECTOR_ID: 95 
		supported: 95
	non-desktop: 0 
		range: (0, 1)
  1920x1080 (0x44) 342.060MHz +HSync -VSync *current +preferred
        h: width  1920 start 2028 end 2076 total 2080 skew    0 clock 164.45KHz
        v: height 1080 start 1090 end 1100 total 1142           clock 144.00Hz
  1920x1080 (0x45) 342.060MHz -HSync -VSync
        h: width  1920 start 2028 end 2076 total 2080 skew    0 clock 164.45KHz
        v: height 1080 start 1090 end 1100 total 2741           clock  60.00Hz
  1920x1080 (0x46) 332.774MHz +HSync -VSync
        h: width  1920 start 1968 end 2000 total 2080 skew    0 clock 159.99KHz
        v: height 1080 start 1083 end 1088 total 1111           clock 144.00Hz
  1680x1050 (0x47) 286.163MHz +HSync -VSync
        h: width  1680 start 1728 end 1760 total 1840 skew    0 clock 155.52KHz
        v: height 1050 start 1053 end 1059 total 1080           clock 144.00Hz
  1400x1050 (0x48) 292.926MHz +HSync +VSync
        h: width  1400 start 1488 end 1640 total 1880 skew    0 clock 155.81KHz
        v: height 1050 start 1052 end 1064 total 1082           clock 144.00Hz
  1600x900 (0x49) 234.691MHz +HSync -VSync
        h: width  1600 start 1648 end 1680 total 1760 skew    0 clock 133.35KHz
        v: height  900 start  903 end  908 total  926           clock 144.00Hz
  1280x1024 (0x4a) 259.120MHz +HSync +VSync
        h: width  1280 start 1328 end 1440 total 1688 skew    0 clock 153.51KHz
        v: height 1024 start 1025 end 1028 total 1066           clock 144.00Hz
  1400x900 (0x4b) 208.021MHz +HSync -VSync
        h: width  1400 start 1448 end 1480 total 1560 skew    0 clock 133.35KHz
        v: height  900 start  903 end  913 total  926           clock 144.00Hz
  1280x960 (0x4c) 259.206MHz +HSync +VSync
        h: width  1280 start 1376 end 1488 total 1800 skew    0 clock 144.00KHz
        v: height  960 start  961 end  964 total 1000           clock 144.00Hz
  1440x810 (0x4d) 364.662MHz +HSync -VSync DoubleScan
        h: width  1440 start 1464 end 1480 total 1520 skew    0 clock 239.91KHz
        v: height  810 start  811 end  814 total  833           clock 144.00Hz
  1368x768 (0x4e) 173.829MHz +HSync -VSync
        h: width  1368 start 1416 end 1448 total 1528 skew    0 clock 113.76KHz
        v: height  768 start  771 end  781 total  790           clock 144.00Hz
  1280x800 (0x4f) 170.661MHz +HSync -VSync
        h: width  1280 start 1328 end 1360 total 1440 skew    0 clock 118.51KHz
        v: height  800 start  803 end  809 total  823           clock 144.00Hz
  1152x864 (0x50) 207.364MHz +HSync +VSync
        h: width  1152 start 1216 end 1344 total 1600 skew    0 clock 129.60KHz
        v: height  864 start  865 end  868 total  900           clock 144.00Hz
  1280x720 (0x51) 153.657MHz +HSync -VSync
        h: width  1280 start 1328 end 1360 total 1440 skew    0 clock 106.71KHz
        v: height  720 start  723 end  728 total  741           clock 144.00Hz
  1024x768 (0x52) 155.993MHz -HSync -VSync
        h: width  1024 start 1048 end 1184 total 1344 skew    0 clock 116.07KHz
        v: height  768 start  771 end  777 total  806           clock 144.00Hz
  1024x768i (0x53) 74.355MHz +HSync +VSync Interlace
        h: width  1024 start 1032 end 1208 total 1264 skew    0 clock  58.83KHz
        v: height  768 start  768 end  776 total  817           clock 144.00Hz
  960x720 (0x54) 280.806MHz -HSync +VSync DoubleScan
        h: width   960 start 1024 end 1128 total 1300 skew    0 clock 216.00KHz
        v: height  720 start  720 end  722 total  750           clock 144.00Hz
  928x696 (0x55) 261.745MHz -HSync +VSync DoubleScan
        h: width   928 start  976 end 1088 total 1264 skew    0 clock 207.08KHz
        v: height  696 start  696 end  698 total  719           clock 144.00Hz
  896x672 (0x56) 245.706MHz -HSync +VSync DoubleScan
        h: width   896 start  960 end 1060 total 1224 skew    0 clock 200.74KHz
        v: height  672 start  672 end  674 total  697           clock 144.00Hz
  1024x576 (0x57) 101.106MHz +HSync -VSync
        h: width  1024 start 1072 end 1104 total 1184 skew    0 clock  85.39KHz
        v: height  576 start  579 end  584 total  593           clock 144.00Hz
  960x600 (0x58) 184.808MHz +HSync -VSync DoubleScan
        h: width   960 start  984 end 1000 total 1040 skew    0 clock 177.70KHz
        v: height  600 start  601 end  604 total  617           clock 144.00Hz
  832x624 (0x59) 110.649MHz -HSync -VSync
        h: width   832 start  864 end  928 total 1152 skew    0 clock  96.05KHz
        v: height  624 start  625 end  628 total  667           clock 144.00Hz
  960x540 (0x5a) 89.673MHz +HSync -VSync
        h: width   960 start 1008 end 1040 total 1120 skew    0 clock  80.07KHz
        v: height  540 start  543 end  548 total  556           clock 144.00Hz
  800x600 (0x5b) 92.162MHz +HSync +VSync
        h: width   800 start  824 end  896 total 1024 skew    0 clock  90.00KHz
        v: height  600 start  601 end  603 total  625           clock 144.00Hz
  840x525 (0x5c) 143.081MHz +HSync -VSync DoubleScan
        h: width   840 start  864 end  880 total  920 skew    0 clock 155.52KHz
        v: height  525 start  526 end  529 total  540           clock 144.00Hz
  864x486 (0x5d) 73.729MHz +HSync -VSync
        h: width   864 start  912 end  944 total 1024 skew    0 clock  72.00KHz
        v: height  486 start  489 end  494 total  500           clock 144.00Hz
  700x525 (0x5e) 146.463MHz +HSync +VSync DoubleScan
        h: width   700 start  744 end  820 total  940 skew    0 clock 155.81KHz
        v: height  525 start  526 end  532 total  541           clock 144.00Hz
  800x450 (0x5f) 117.345MHz +HSync -VSync DoubleScan
        h: width   800 start  824 end  840 total  880 skew    0 clock 133.35KHz
        v: height  450 start  451 end  454 total  463           clock 144.00Hz
  640x512 (0x60) 129.560MHz +HSync +VSync DoubleScan
        h: width   640 start  664 end  720 total  844 skew    0 clock 153.51KHz
        v: height  512 start  512 end  514 total  533           clock 144.00Hz
  700x450 (0x61) 104.010MHz +HSync -VSync DoubleScan
        h: width   700 start  724 end  740 total  780 skew    0 clock 133.35KHz
        v: height  450 start  451 end  456 total  463           clock 144.00Hz
  640x480 (0x62) 60.481MHz -HSync -VSync
        h: width   640 start  656 end  752 total  800 skew    0 clock  75.60KHz
        v: height  480 start  490 end  492 total  525           clock 144.00Hz
  720x405 (0x63) 53.096MHz +HSync -VSync
        h: width   720 start  768 end  800 total  880 skew    0 clock  60.34KHz
        v: height  405 start  408 end  413 total  419           clock 144.00Hz
  720x400 (0x64) 60.115MHz -HSync +VSync
        h: width   720 start  756 end  828 total  936 skew    0 clock  64.23KHz
        v: height  400 start  401 end  404 total  446           clock 144.00Hz
  684x384 (0x65) 86.914MHz +HSync -VSync DoubleScan
        h: width   684 start  708 end  724 total  764 skew    0 clock 113.76KHz
        v: height  384 start  385 end  390 total  395           clock 144.00Hz
  640x400 (0x66) 53.315MHz -HSync +VSync
        h: width   640 start  672 end  736 total  832 skew    0 clock  64.08KHz
        v: height  400 start  401 end  404 total  445           clock 144.00Hz
  576x432 (0x67) 103.682MHz +HSync +VSync DoubleScan
        h: width   576 start  608 end  672 total  800 skew    0 clock 129.60KHz
        v: height  432 start  432 end  434 total  450           clock 144.00Hz
  640x360 (0x68) 43.085MHz +HSync -VSync
        h: width   640 start  688 end  720 total  800 skew    0 clock  53.86KHz
        v: height  360 start  363 end  368 total  374           clock 144.00Hz
  640x350 (0x69) 53.315MHz +HSync -VSync
        h: width   640 start  672 end  736 total  832 skew    0 clock  64.08KHz
        v: height  350 start  382 end  385 total  445           clock 144.00Hz
  512x384 (0x6a) 77.996MHz -HSync -VSync DoubleScan
        h: width   512 start  524 end  592 total  672 skew    0 clock 116.07KHz
        v: height  384 start  385 end  388 total  403           clock 144.00Hz
  512x384i (0x6b) 37.132MHz +HSync +VSync Interlace DoubleScan
        h: width   512 start  516 end  604 total  632 skew    0 clock  58.75KHz
        v: height  384 start  384 end  388 total  408           clock 144.00Hz
  512x288 (0x6c) 50.468MHz +HSync -VSync DoubleScan
        h: width   512 start  536 end  552 total  592 skew    0 clock  85.25KHz
        v: height  288 start  289 end  292 total  296           clock 144.00Hz
  416x312 (0x6d) 55.242MHz -HSync -VSync DoubleScan
        h: width   416 start  432 end  464 total  576 skew    0 clock  95.91KHz
        v: height  312 start  312 end  314 total  333           clock 144.00Hz
  480x270 (0x6e) 44.836MHz +HSync -VSync DoubleScan
        h: width   480 start  504 end  520 total  560 skew    0 clock  80.06KHz
        v: height  270 start  271 end  274 total  278           clock 144.00Hz
  400x300 (0x6f) 46.007MHz +HSync +VSync DoubleScan
        h: width   400 start  412 end  448 total  512 skew    0 clock  89.86KHz
        v: height  300 start  300 end  301 total  312           clock 144.00Hz
  432x243 (0x70) 36.864MHz +HSync -VSync DoubleScan
        h: width   432 start  456 end  472 total  512 skew    0 clock  72.00KHz
        v: height  243 start  244 end  247 total  250           clock 144.00Hz
  320x240 (0x71) 30.183MHz -HSync -VSync DoubleScan
        h: width   320 start  328 end  376 total  400 skew    0 clock  75.46KHz
        v: height  240 start  245 end  246 total  262           clock 144.00Hz
  360x202 (0x72) 26.485MHz +HSync -VSync DoubleScan
        h: width   360 start  384 end  400 total  440 skew    0 clock  60.19KHz
        v: height  202 start  204 end  206 total  209           clock 144.00Hz
  360x200 (0x73) 30.057MHz -HSync +VSync DoubleScan
        h: width   360 start  378 end  414 total  468 skew    0 clock  64.22KHz
        v: height  200 start  200 end  202 total  223           clock 144.00Hz
  320x200 (0x74) 26.598MHz -HSync +VSync DoubleScan
        h: width   320 start  336 end  368 total  416 skew    0 clock  63.94KHz
        v: height  200 start  200 end  202 total  222           clock 144.00Hz
  320x180 (0x75) 21.542MHz +HSync -VSync DoubleScan
        h: width   320 start  344 end  360 total  400 skew    0 clock  53.85KHz
        v: height  180 start  181 end  184 total  187           clock 144.00Hz
  320x175 (0x76) 26.598MHz +HSync -VSync DoubleScan
        h: width   320 start  336 end  368 total  416 skew    0 clock  63.94KHz
        v: height  175 start  191 end  192 total  222           clock 144.00Hz
HDMI-1 disconnected (normal left inverted right x axis y axis)
	Identifier: 0x42
	Timestamp:  640661
	Subpixel:   unknown
	Clones:    
	CRTCs:      1 2 3
	Transform:  1.000000 0.000000 0.000000
	            0.000000 1.000000 0.000000
	            0.000000 0.000000 1.000000
	           filter: 
	HDCP Content Type: HDCP Type0 
		supported: HDCP Type0, HDCP Type1
	Content Protection: Undesired 
		supported: Undesired, Desired, Enabled
	max bpc: 12 
		range: (8, 12)
	content type: No Data 
		supported: No Data, Graphics, Photo, Cinema, Game
	Colorspace: Default 
		supported: Default, SMPTE_170M_YCC, BT709_YCC, XVYCC_601, XVYCC_709, SYCC_601, opYCC_601, opRGB, BT2020_CYCC, BT2020_RGB, BT2020_YCC, DCI-P3_RGB_D65, DCI-P3_RGB_Theater
	aspect ratio: Automatic 
		supported: Automatic, 4:3, 16:9
	Broadcast RGB: Automatic 
		supported: Automatic, Full, Limited 16:235
	audio: auto 
		supported: force-dvi, off, auto, on
	link-status: Good 
		supported: Good, Bad
	CTM: 0 1 0 0 0 0 0 0 0 1 0 0 0 0 0 0 
		0 1 
	CONNECTOR_ID: 103 
		supported: 103
	non-desktop: 0 
		range: (0, 1)
DP-1-0 disconnected (normal left inverted right x axis y axis)
	Identifier: 0x203
	Timestamp:  640661
	Subpixel:   unknown
	Clones:    
	CRTCs:      0 4 5 6
	Transform:  1.000000 0.000000 0.000000
	            0.000000 1.000000 0.000000
	            0.000000 0.000000 1.000000
	           filter: 
	PRIME Synchronization: 1 
		supported: 0, 1
	CTM: 0 1 0 0 0 0 0 0 0 1 0 0 0 0 0 0 
		0 1 
	CscMatrix: 65536 0 0 0 0 65536 0 0 0 0 65536 0 
	BorderDimensions: 4 
		supported: 4
	Border: 0 0 0 0 
		range: (0, 65535)
	SignalFormat: DisplayPort 
		supported: DisplayPort
	ConnectorType: DisplayPort 
	ConnectorNumber: 0 
	_ConnectorLocation: 0 
	non-desktop: 0 
		supported: 0, 1
DP-1-1 disconnected (normal left inverted right x axis y axis)
	Identifier: 0x204
	Timestamp:  640661
	Subpixel:   unknown
	Clones:    
	CRTCs:      0 4 5 6
	Transform:  1.000000 0.000000 0.000000
	            0.000000 1.000000 0.000000
	            0.000000 0.000000 1.000000
	           filter: 
	PRIME Synchronization: 1 
		supported: 0, 1
	CTM: 0 1 0 0 0 0 0 0 0 1 0 0 0 0 0 0 
		0 1 
	CscMatrix: 65536 0 0 0 0 65536 0 0 0 0 65536 0 
	BorderDimensions: 4 
		supported: 4
	Border: 0 0 0 0 
		range: (0, 65535)
	SignalFormat: TMDS 
		supported: TMDS
	ConnectorType: DisplayPort 
	ConnectorNumber: 0 
	_ConnectorLocation: 0 
	non-desktop: 0 
		supported: 0, 1
HDMI-1-0 connected primary 1920x1080+0+0 (0x206) normal (normal left inverted right x axis y axis) 598mm x 336mm
	Identifier: 0x205
	Timestamp:  640661
	Subpixel:   unknown
	Gamma:      1.0:1.0:1.0
	Brightness: 0.82
	Clones:    
	CRTC:       0
	CRTCs:      0 4 5 6
	Transform:  1.000000 0.000000 0.000000
	            0.000000 1.000000 0.000000
	            0.000000 0.000000 1.000000
	           filter: 
	_MUTTER_PRESENTATION_OUTPUT: 0 
	PRIME Synchronization: 1 
		supported: 0, 1
	CTM: 0 1 0 0 0 0 0 0 0 1 0 0 0 0 0 0 
		0 1 
	CscMatrix: 65536 0 0 0 0 65536 0 0 0 0 65536 0 
	EDID: 
		00ffffffffffff0009d1e67845540000
		221e0103803c22782e4825a756529c27
		0f5054a56b80d1c0b300a9c081808100
		81c001010101023a801871382d40582c
		450056502100001e000000ff004c384c
		30333138383031510a20000000fd0032
		4c1e5311000a202020202020000000fc
		0042656e51204757323738300a20010d
		020322f14f901f041303120211011406
		07151605230907078301000065030c00
		1000023a801871382d40582c45005650
		2100001f011d8018711c1620582c2500
		56502100009f011d007251d01e206e28
		550056502100001e8c0ad08a20e02d10
		103e9600565021000018000000000000
		00000000000000000000000000000047
	BorderDimensions: 4 
		supported: 4
	Border: 0 0 0 0 
		range: (0, 65535)
	SignalFormat: TMDS 
		supported: TMDS
	ConnectorType: HDMI 
	ConnectorNumber: 2 
	_ConnectorLocation: 2 
	non-desktop: 0 
		supported: 0, 1
  1920x1080 (0x206) 148.500MHz +HSync +VSync *current +preferred
        h: width  1920 start 2008 end 2052 total 2200 skew    0 clock  67.50KHz
        v: height 1080 start 1084 end 1089 total 1125           clock  60.00Hz
  1920x1080 (0x207) 148.350MHz +HSync +VSync
        h: width  1920 start 2008 end 2052 total 2200 skew    0 clock  67.43KHz
        v: height 1080 start 1084 end 1089 total 1125           clock  59.94Hz
  1920x1080 (0x208) 148.500MHz +HSync +VSync
        h: width  1920 start 2448 end 2492 total 2640 skew    0 clock  56.25KHz
        v: height 1080 start 1084 end 1089 total 1125           clock  50.00Hz
  1680x1050 (0x209) 146.250MHz -HSync +VSync
        h: width  1680 start 1784 end 1960 total 2240 skew    0 clock  65.29KHz
        v: height 1050 start 1053 end 1059 total 1089           clock  59.95Hz
  1600x900 (0x20a) 108.000MHz +HSync +VSync
        h: width  1600 start 1624 end 1704 total 1800 skew    0 clock  60.00KHz
        v: height  900 start  901 end  904 total 1000           clock  60.00Hz
  1280x1024 (0x20b) 135.000MHz +HSync +VSync
        h: width  1280 start 1296 end 1440 total 1688 skew    0 clock  79.98KHz
        v: height 1024 start 1025 end 1028 total 1066           clock  75.02Hz
  1280x1024 (0x20c) 108.000MHz +HSync +VSync
        h: width  1280 start 1328 end 1440 total 1688 skew    0 clock  63.98KHz
        v: height 1024 start 1025 end 1028 total 1066           clock  60.02Hz
  1280x800 (0x20d) 83.500MHz -HSync +VSync
        h: width  1280 start 1352 end 1480 total 1680 skew    0 clock  49.70KHz
        v: height  800 start  803 end  809 total  831           clock  59.81Hz
  1280x720 (0x20e) 74.250MHz +HSync +VSync
        h: width  1280 start 1390 end 1430 total 1650 skew    0 clock  45.00KHz
        v: height  720 start  725 end  730 total  750           clock  60.00Hz
  1280x720 (0x20f) 74.180MHz +HSync +VSync
        h: width  1280 start 1390 end 1430 total 1650 skew    0 clock  44.96KHz
        v: height  720 start  725 end  730 total  750           clock  59.94Hz
  1280x720 (0x210) 74.250MHz +HSync +VSync
        h: width  1280 start 1720 end 1760 total 1980 skew    0 clock  37.50KHz
        v: height  720 start  725 end  730 total  750           clock  50.00Hz
  1024x768 (0x211) 78.750MHz +HSync +VSync
        h: width  1024 start 1040 end 1136 total 1312 skew    0 clock  60.02KHz
        v: height  768 start  769 end  772 total  800           clock  75.03Hz
  1024x768 (0x212) 65.000MHz -HSync -VSync
        h: width  1024 start 1048 end 1184 total 1344 skew    0 clock  48.36KHz
        v: height  768 start  771 end  777 total  806           clock  60.00Hz
  800x600 (0x213) 49.500MHz +HSync +VSync
        h: width   800 start  816 end  896 total 1056 skew    0 clock  46.88KHz
        v: height  600 start  601 end  604 total  625           clock  75.00Hz
  800x600 (0x214) 40.000MHz +HSync +VSync
        h: width   800 start  840 end  968 total 1056 skew    0 clock  37.88KHz
        v: height  600 start  601 end  605 total  628           clock  60.32Hz
  720x576 (0x215) 27.000MHz -HSync -VSync
        h: width   720 start  732 end  796 total  864 skew    0 clock  31.25KHz
        v: height  576 start  581 end  586 total  625           clock  50.00Hz
  720x480 (0x216) 27.000MHz -HSync -VSync
        h: width   720 start  736 end  798 total  858 skew    0 clock  31.47KHz
        v: height  480 start  489 end  495 total  525           clock  59.94Hz
  640x480 (0x217) 31.500MHz -HSync -VSync
        h: width   640 start  656 end  720 total  840 skew    0 clock  37.50KHz
        v: height  480 start  481 end  484 total  500           clock  75.00Hz
  640x480 (0x218) 25.175MHz -HSync -VSync
        h: width   640 start  656 end  752 total  800 skew    0 clock  31.47KHz
        v: height  480 start  490 end  492 total  525           clock  59.94Hz
  640x480 (0x219) 25.170MHz -HSync -VSync
        h: width   640 start  656 end  752 total  800 skew    0 clock  31.46KHz
        v: height  480 start  490 end  492 total  525           clock  59.93Hz
User avatar
roblm
Level 15
Level 15
Posts: 5939
Joined: Sun Feb 24, 2013 2:41 pm

Re: Primary external monitor is blank after logging in, can only get it to work after reconnecting my HDMI cable.

Post by roblm »

SMG wrote: The below output suggests the HDMI port is wired to both Intel and Nvidia and the mini-DP port is Nvidia only.

The inxi output indicates which ports are directly connected to each GPU.
Device-1: Intel CometLake-H GT2 [UHD Graphics]
vendor: Acer Incorporated ALI driver: i915 v: kernel ports: active: eDP-1
empty: HDMI-A-1
bus-ID: 00:02.0 chip-ID: 8086:9bc4 class-ID: 0300
Device-2: NVIDIA TU106M [GeForce RTX 2060 Mobile]
vendor: Acer Incorporated ALI driver: nvidia v: 525.78.01 pcie:
speed: 2.5 GT/s lanes: 16 ports: active: none off: HDMI-A-2 empty: DP-1
The inxi output is sometimes confusing and even incorrect. The xrandr --verbose output shows the HDMI port is connected to the Nvidia GPU. When Linux video port configuration is working correctly, each GPU is assigned a CRTC (cathode ray tube controller) for each video port wired to it. For the Intel GPU, there are 3 CRTCs available: 1, 2, and 3. We know that eDP-1 is the laptop's screen and it has been assigned CRTC #1:

Code: Select all

eDP-1 connected 1920x1080+1920+0 (0x44)     
	CRTC:       1
	CRTCs:      1 2 3
The connected HDMI port would have been assigned CRTC 2 or 3, if it was connected to the Intel GPU, but it was assigned CRTC # 0. So we know that this has to come from the Nvidia GPU, which has been assigned CRTCs 0, 4, 5, and 6.

Code: Select all

HDMI-1-0 connected primary 1920x1080+0+0  
	CRTC:       0
	CRTCs:      0 4 5 6

Electronica:
To make things clear, if Performance mode is set, then the external monitor is not blank after logging in and the color settings are not changed back to default values after a restart?

With On-Demand mode set, did the changes in the .nvidia-settings-rc file revert back after a reboot?

What is the output of nvidia-optimus-offload-glx glxinfo | grep renderer
User avatar
SMG
Level 25
Level 25
Posts: 31971
Joined: Sun Jul 26, 2020 6:15 pm
Location: USA

Re: Primary external monitor is blank after logging in, can only get it to work after reconnecting my HDMI cable.

Post by SMG »

roblm wrote: Tue Feb 07, 2023 11:05 amThe inxi output is sometimes confusing and even incorrect. The xrandr --verbose output shows the HDMI port is connected to the Nvidia GPU. When Linux video port configuration is working correctly, each GPU is assigned a CRTC (cathode ray tube controller) for each video port wired to it. For the Intel GPU, there are 3 CRTCs available: 1, 2, and 3.
The xrandr --verbose output appears to show the ability of the HDMI port to be connect to Intel as well as Nvidia which is what the inxi output indicates.

Code: Select all

HDMI-1 disconnected (normal left inverted right x axis y axis)
	Identifier: 0x42
	Timestamp:  640661
	Subpixel:   unknown
	Clones:    
	CRTCs:      1 2 3
HDMI-1-0 connected primary 1920x1080+0+0 (0x206) normal (normal left inverted right x axis y axis) 598mm x 336mm
	Identifier: 0x205
	Timestamp:  640661
	Subpixel:   unknown
	Gamma:      1.0:1.0:1.0
	Brightness: 0.82
	Clones:    
	CRTC:       0
	CRTCs:      0 4 5 6
eDP-1 and HDMI-1 do not have a Prime Synchronization line in the output. HDMI-1-0, DP-1-0, and DP-1-1 all do.

I do not know how those ports compare to the actual physical ports seen on the laptop.
Image
A woman typing on a laptop with LM20.3 Cinnamon.
User avatar
roblm
Level 15
Level 15
Posts: 5939
Joined: Sun Feb 24, 2013 2:41 pm

Re: Primary external monitor is blank after logging in, can only get it to work after reconnecting my HDMI cable.

Post by roblm »

SMG wrote: The xrandr --verbose output appears to show the ability of the HDMI port to be connect to Intel as well as Nvidia which is what the inxi output indicates.

That also is confusing. We know that the video connector name is often incorrect in Linux, for example labeling an HDMI port as a DP port, so it could be referring to another video port such as USB-C, or it may be a phantom non-existant port, which is also very common.

SMG wrote: eDP-1 and HDMI-1 do not have a Prime Synchronization line in the output. HDMI-1-0, DP-1-0, and DP-1-1 all do.
That line is not always a reliable indicator. For example, on my ASUS laptop with Optimus (and I just checked it again now to be sure), the HDMI port is connected to the Intel GPU but PRIME Synchronization: 1 is listed in xrandr --verbose for that port. That's why, if in doubt, I always look at the CRTC info to determine what GPU a video port is connected to.
User avatar
SMG
Level 25
Level 25
Posts: 31971
Joined: Sun Jul 26, 2020 6:15 pm
Location: USA

Re: Primary external monitor is blank after logging in, can only get it to work after reconnecting my HDMI cable.

Post by SMG »

According to specs I found, the ports are:
HDMI Yes
Number of HDMI Outputs 1

Number of USB 3.2 Gen 1 Type-A Ports 2
Number of USB 3.2 Gen 2 Type-A Ports 1
Number of USB 3.2 Gen 2 Type-C Ports 1
Total Number of USB Ports 4

USB Type-C Yes
USB Type-C Detail USB Type-C port, supporting: USB 3.2 Gen 2 (up to 10 Gbps), USB charging 5 V; 3 A
OP said they connected to the HDMI port so the xrandr output is odd given the way it is numbered. Maybe this is somehow an issue with the Nvidia driver. This would not be the first time we've seen some weird stuff with a GTX 2000 series GPU.
Image
A woman typing on a laptop with LM20.3 Cinnamon.
Electronica__
Level 1
Level 1
Posts: 9
Joined: Sat Jan 28, 2023 2:05 pm

Re: Primary external monitor is blank after logging in, can only get it to work after reconnecting my HDMI cable.

Post by Electronica__ »

roblm wrote: Tue Feb 07, 2023 11:05 am Electronica:
To make things clear, if Performance mode is set, then the external monitor is not blank after logging in and the color settings are not changed back to default values after a restart?
Well, I don't know how or since when in between trying to troubleshoot this issue and the frequent switching between On-Demand and Performance, but now it seems to work fine. :shock:
There was another issue before as well, which is changing the order of the monitors (in Layout under Display) does not work. Both the displays start showing eDP in the top left corner and the external monitor just freezes and only the laptop monitor is usable. This is again only in On-Demand mode. The order doesn't really matter in Performance Mode.
Another thing I noticed is after I switch my order (in Performance Mode), the colour settings don't change immediately for my external monitor, they only change after I go into Nvidia Settings.
roblm wrote: Tue Feb 07, 2023 11:05 am With On-Demand mode set, did the changes in the .nvidia-settings-rc file revert back after a reboot?
Yes, they did. They reverted back to the default values.
roblm wrote: Tue Feb 07, 2023 11:05 am What is the output of nvidia-optimus-offload-glx glxinfo | grep renderer
OpenGL renderer string: NVIDIA GeForce RTX 2060/PCIe/SSE2
User avatar
roblm
Level 15
Level 15
Posts: 5939
Joined: Sun Feb 24, 2013 2:41 pm

Re: Primary external monitor is blank after logging in, can only get it to work after reconnecting my HDMI cable.

Post by roblm »

Electronica__ wrote:
roblm wrote: Tue Feb 07, 2023 11:05 am What is the output of nvidia-optimus-offload-glx glxinfo | grep renderer
OpenGL renderer string: NVIDIA GeForce RTX 2060/PCIe/SSE2
That output shows PRIME Render Offload to the Nvidia GPU appears to be working.

You previously said:
...if I use On-Demand mode and run a graphic intensive application such as a benchmarking application, it does not use the dedicated gpu, it still resorts to Intel graphics.
How were you starting the app, because you said the app's right click options in the menu didn't have a Run with Nvidia GPU option - for example with glmark2 - did you use the command nvidia-optimus-offload-glx glmark2

Or the original command:
__NV_PRIME_RENDER_OFFLOAD=1 __GLX_VENDOR_LIBRARY_NAME=nvidia glmark2

Did you try running the app again to see if it's now working correctly?

Also, when On-Demand mode is set, are color changes now sticking after a reboot?
Electronica__
Level 1
Level 1
Posts: 9
Joined: Sat Jan 28, 2023 2:05 pm

Re: Primary external monitor is blank after logging in, can only get it to work after reconnecting my HDMI cable.

Post by Electronica__ »

roblm wrote: Wed Feb 08, 2023 10:54 am How were you starting the app, because you said the app's right click options in the menu didn't have a Run with Nvidia GPU option - for example with glmark2 - did you use the command nvidia-optimus-offload-glx glmark2
Yes
roblm wrote: Wed Feb 08, 2023 10:54 am Did you try running the app again to see if it's now working correctly?
I tried it, but it's not choosing the Nvidia GPU unless I explicitly tell it to.
roblm wrote: Wed Feb 08, 2023 10:54 am Also, when On-Demand mode is set, are color changes now sticking after a reboot?
No they don't.

Well, yet again, I don't know what happened, but my computer reverted back to it's original state where the monitor is now blank after logging in.
User avatar
roblm
Level 15
Level 15
Posts: 5939
Joined: Sun Feb 24, 2013 2:41 pm

Re: Primary external monitor is blank after logging in, can only get it to work after reconnecting my HDMI cable.

Post by roblm »

Electronica__ wrote: Well, yet again, I don't know what happened, but my computer reverted back to it's original state where the monitor is now blank after logging in.
Use this command to get the video connector name (boot): cat /var/log/Xorg.0.log |grep boot

A line similar to this should be listed, with DFP-0 or DFP-1: (--) NVIDIA(0): DFP-0 (boot)

Open the 10-nvidia.conf file: xed admin:///usr/share/X11/xorg.conf.d/10-nvidia.conf

Add this line: Option "ConnectedMonitor" "DFP-X" (where X is 0 or 1, from previous result)

Reboot.
Locked

Return to “Graphics Cards & Monitors”