[SOLVED] Nvidia PRIME gone after Linux Mint 21.3 in-place upgrade

Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Post Reply
The Bright Side
Level 3
Level 3
Posts: 172
Joined: Thu Jul 12, 2018 3:09 pm

[SOLVED] Nvidia PRIME gone after Linux Mint 21.3 in-place upgrade

Post by The Bright Side »

[Solution: viewtopic.php?p=2444909#p2444909]

Hey guys! I upgraded my laptop from Mint 21.1 to 21.3 yesterday and now the Nvidia PRIME options is gone from nvidia-settings:

https://paste.pics/QKHMR

The system used to recognize my built-in screen on DP-1 as a PRIME screen, now it's on DP-2 as a regular screen. In display settings, the only resolution available is 2560x1440 at 60 or 240 Hz:

https://paste.pics/QKHNC

Things I tried:
  • Install driver 550
  • Install driver 535
  • From Terminal 1 before logon: sudo apt purge *nvidia*, then sudo apt install nvidia-driver-550
  • Upgrade to Kernel 6.5
This is my system now:

https://termbin.com/dysg

Good news is, I switched to the nvidia PRIME profile from the command line and I can use OpenCL in Darktable, so it seems like the Nvidia portion of the graphics card works correctly. But I'd like to have PRIME functionality back so I can switch resolutions using xrandr / Mint display settings and have no screen tearing.

Any advice would be greatly appreciated. Thanks!
Last edited by The Bright Side on Sun Mar 17, 2024 5:19 am, edited 2 times in total.
Hoser Rob
Level 20
Level 20
Posts: 11796
Joined: Sat Dec 15, 2012 8:57 am

Re: Nvidia PRIME gone after Linux Mint 21.3 in-place upgrade

Post by Hoser Rob »

You need to post better system info, copy/paste the complete text output of

Code: Select all

inxi -Fxxxpmrz
run in the terminal and wrap it in <code> tags.
For every complex problem there is an answer that is clear, simple, and wrong - H. L. Mencken
User avatar
SMG
Level 25
Level 25
Posts: 32007
Joined: Sun Jul 26, 2020 6:15 pm
Location: USA

Re: Nvidia PRIME gone after Linux Mint 21.3 in-place upgrade

Post by SMG »

The Bright Side wrote: Sat Mar 16, 2024 3:37 am Hey guys! I upgraded my laptop from Mint 21.1 to 21.3 yesterday and now the Nvidia PRIME options is gone from nvidia-settings:
You're using the beta 550 driver. Were you using that before you upgraded (presumably from the graphics-driver-ppa you installed)?
The Bright Side wrote: Sat Mar 16, 2024 3:37 am[*] From Terminal 1 before logon: sudo apt purge *nvidia*, then sudo apt install nvidia-driver-550
You should not be "purging" using that command unless you also wanted to delete your nvidia-prime-applet (which is a Linux Mint file and not an Nvidia file). You can re-install the applet with sudo apt-get install nvidia-prime-applet.

Please provide the output of

Code: Select all

xrandr --verbose
and enclose the results in code tags.
Image
A woman typing on a laptop with LM20.3 Cinnamon.
The Bright Side
Level 3
Level 3
Posts: 172
Joined: Thu Jul 12, 2018 3:09 pm

Re: Nvidia PRIME gone after Linux Mint 21.3 in-place upgrade

Post by The Bright Side »

Thanks guys! Much appreciated.

@SMS, I was using 545 before things started going wrong. Everything worked well, too, before I upgraded from LM 21.1 to 21.3 on Thursday.

Output:

Code: Select all

$ inxi -Fxxxpmrz
System:
  Kernel: 6.5.0-25-generic x86_64 bits: 64 compiler: N/A
    Desktop: Cinnamon 6.0.4 tk: GTK 3.24.33 wm: muffin vt: 7 dm: LightDM 1.30.0
    Distro: Linux Mint 21.3 Virginia base: Ubuntu 22.04 jammy
Machine:
  Type: Laptop System: ASUSTeK product: ROG Strix G733CX_G733CX v: 1.0
    serial: <superuser required>
  Mobo: ASUSTeK model: G733CX v: 1.0 serial: <superuser required>
    UEFI: American Megatrends LLC. v: G733CX.316 date: 02/21/2023
Battery:
  ID-1: BAT0 charge: 81.7 Wh (100.0%) condition: 81.7/90.0 Wh (90.7%)
    volts: 16.8 min: 15.9 model: AS3GWYF3KC GA50358 type: Unknown
    serial: <filter> status: Full
  Device-1: hidpp_battery_0 model: Logitech Wireless Keyboard K540/K545
    serial: <filter> charge: 100% (should be ignored) rechargeable: yes
    status: Discharging
  Device-2: hidpp_battery_1 model: Logitech Wireless Mouse M510
    serial: <filter> charge: 55% (should be ignored) rechargeable: yes
    status: Discharging
Memory:
  RAM: total: 30.96 GiB used: 4.98 GiB (16.1%)
  RAM Report:
    permissions: Unable to run dmidecode. Root privileges required.
CPU:
  Info: 16-core model: 12th Gen Intel Core i9-12950HX bits: 64 type: MCP
    smt: disabled arch: Alder Lake rev: 2 cache: L1: 1.4 MiB L2: 14 MiB
    L3: 30 MiB
  Speed (MHz): avg: 966 high: 1986 min/max: 800/4900:5000:3600 cores:
    1: 800 2: 800 3: 1574 4: 1986 5: 800 6: 800 7: 800 8: 800 9: 800 10: 1501
    11: 800 12: 800 13: 800 14: 800 15: 800 16: 800 bogomips: 79872
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
Graphics:
  Device-1: Intel vendor: ASUSTeK driver: i915 v: kernel ports: active: none
    empty: DP-1, DP-2, HDMI-A-1, HDMI-A-2 bus-ID: 0000:00:02.0
    chip-ID: 8086:4688 class-ID: 0380
  Device-2: NVIDIA GA103M [GeForce RTX 3080 Ti Mobile] vendor: ASUSTeK
    driver: nvidia v: 550.54.14 ports: active: none off: HDMI-A-3,eDP-1
    empty: DP-3 bus-ID: 0000:01:00.0 chip-ID: 10de:2420 class-ID: 0300
  Display: x11 server: X.Org v: 1.21.1.4 driver: X: loaded: nvidia
    gpu: i915,nvidia display-ID: :0 screens: 1
  Screen-1: 0 s-res: 1920x1080 s-dpi: 96 s-size: 508x286mm (20.0x11.3")
    s-diag: 583mm (23")
  Monitor-1: HDMI-0 res: 1920x1080 hz: 60 dpi: 37
    size: 1328x747mm (52.3x29.4") diag: 1524mm (60")
  OpenGL: renderer: NVIDIA GeForce RTX 3080 Ti Laptop GPU/PCIe/SSE2
    v: 4.6.0 NVIDIA 550.54.14 direct render: Yes
Audio:
  Device-1: Intel vendor: ASUSTeK driver: snd_hda_intel v: kernel
    bus-ID: 0000:00:1f.3 chip-ID: 8086:7ad0 class-ID: 0403
  Device-2: NVIDIA vendor: ASUSTeK driver: snd_hda_intel v: kernel
    bus-ID: 0000:01:00.1 chip-ID: 10de:2288 class-ID: 0403
  Sound Server-1: ALSA v: k6.5.0-25-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 driver: iwlwifi v: kernel port: N/A bus-ID: 0000:00:14.3
    chip-ID: 8086:7af0 class-ID: 0280
  IF: wlo1 state: up mac: <filter>
  Device-2: Realtek RTL8125 2.5GbE vendor: ASUSTeK driver: r8169 v: kernel
    port: 3000 bus-ID: 0000:6c:00.0 chip-ID: 10ec:8125 class-ID: 0200
  IF: enp108s0 state: down mac: <filter>
Bluetooth:
  Device-1: Intel type: USB driver: btusb v: 0.8 bus-ID: 1-14:5
    chip-ID: 8087:0033 class-ID: e001
  Report: hciconfig ID: hci0 rfk-id: 0 state: down
    bt-service: enabled,running rfk-block: hardware: no software: yes
    address: <filter>
RAID:
  Hardware-1: Intel Volume Management Device NVMe RAID Controller driver: vmd
    v: 0.6 port: N/A bus-ID: 0000:00:0e.0 chip-ID: 8086:467f rev:
    class-ID: 0104
Drives:
  Local Storage: total: 3.73 TiB used: 2.22 TiB (59.5%)
  ID-1: /dev/nvme0n1 vendor: Samsung model: MZVL22T0HBLB-00B00
    size: 1.86 TiB speed: 63.2 Gb/s lanes: 4 type: SSD serial: <filter>
    rev: GXB7401Q temp: 30.9 C scheme: GPT
  ID-2: /dev/nvme1n1 vendor: Samsung model: MZVL22T0HBLB-00B00
    size: 1.86 TiB speed: 63.2 Gb/s lanes: 4 type: SSD serial: <filter>
    rev: GXB7401Q temp: 37.9 C scheme: GPT
Partition:
  ID-1: / size: 51.61 GiB used: 35.96 GiB (69.7%) fs: ext4
    dev: /dev/nvme0n1p6
  ID-2: /boot/efi size: 96 MiB used: 32.3 MiB (33.6%) fs: vfat
    dev: /dev/nvme0n1p1
  ID-3: /home size: 1.83 TiB used: 1.33 TiB (72.7%) fs: ext4
    dev: /dev/nvme1n1p1
  ID-4: /mnt/5A30D3B430D3957B size: 1.47 TiB used: 702.2 GiB (46.6%)
    fs: ntfs dev: /dev/nvme0n1p3
  ID-5: /mnt/62421560-3529-4017-a970-cab513f05b45 size: 335.36 GiB
    used: 168.16 GiB (50.1%) fs: ext4 dev: /dev/nvme0n1p7
Swap:
  ID-1: swap-1 type: partition size: 5.86 GiB used: 0 KiB (0.0%) priority: -2
    dev: /dev/nvme0n1p5
Sensors:
  System Temperatures: cpu: 55.0 C mobo: N/A gpu: nvidia temp: 56 C
  Fan Speeds (RPM): cpu: 2000
Repos:
  Packages: 3056 apt: 3010 flatpak: 39 snap: 7
  No active apt repos in: /etc/apt/sources.list
  Active apt repos in: /etc/apt/sources.list.d/appimagelauncher-team-stable-jammy.list
    1: deb [signed-by=/etc/apt/keyrings/appimagelauncher-team-stable-jammy.gpg] https://ppa.launchpadcontent.net/appimagelauncher-team/stable/ubuntu jammy main
  Active apt repos in: /etc/apt/sources.list.d/daniruiz-flat-remix-jammy.list
    1: deb [signed-by=/etc/apt/keyrings/daniruiz-flat-remix-jammy.gpg] https://ppa.launchpadcontent.net/daniruiz/flat-remix/ubuntu jammy main
  Active apt repos in: /etc/apt/sources.list.d/deadsnakes-ppa-jammy.list
    1: deb [signed-by=/etc/apt/keyrings/deadsnakes-ppa-jammy.gpg] https://ppa.launchpadcontent.net/deadsnakes/ppa/ubuntu jammy main
  Active apt repos in: /etc/apt/sources.list.d/expressvpn.list
    1: deb [signed-by=/usr/share/keyrings/expressvpn.asc] mirror+file:/usr/lib/expressvpn/repo_mirror.list any-version main
  Active apt repos in: /etc/apt/sources.list.d/google-chrome.list
    1: deb [arch=amd64] https://dl.google.com/linux/chrome/deb/ stable main
  Active apt repos in: /etc/apt/sources.list.d/graphics-drivers-ppa-jammy.list
    1: deb [signed-by=/etc/apt/keyrings/graphics-drivers-ppa-jammy.gpg] https://ppa.launchpadcontent.net/graphics-drivers/ppa/ubuntu jammy main
  Active apt repos in: /etc/apt/sources.list.d/hluk-copyq-jammy.list
    1: deb [signed-by=/etc/apt/keyrings/hluk-copyq-jammy.gpg] https://ppa.launchpadcontent.net/hluk/copyq/ubuntu jammy main
  Active apt repos in: /etc/apt/sources.list.d/libreoffice-ppa-jammy.list
    1: deb [signed-by=/etc/apt/keyrings/libreoffice-ppa-jammy.gpg] https://ppa.launchpadcontent.net/libreoffice/ppa/ubuntu jammy main
  Active apt repos in: /etc/apt/sources.list.d/libretro-stable-jammy.list
    1: deb [signed-by=/etc/apt/keyrings/libretro-stable-jammy.gpg] https://ppa.launchpadcontent.net/libretro/stable/ubuntu jammy main
  Active apt repos in: /etc/apt/sources.list.d/microsoft-edge.list
    1: deb [arch=amd64] https://packages.microsoft.com/repos/edge/ stable main
  Active apt repos in: /etc/apt/sources.list.d/nextcloud-devs-client-jammy.list
    1: deb [signed-by=/etc/apt/keyrings/nextcloud-devs-client-jammy.gpg] https://ppa.launchpadcontent.net/nextcloud-devs/client/ubuntu jammy main
  Active apt repos in: /etc/apt/sources.list.d/numix-ppa-jammy.list
    1: deb [signed-by=/etc/apt/keyrings/numix-ppa-jammy.gpg] https://ppa.launchpadcontent.net/numix/ppa/ubuntu jammy main
  Active apt repos in: /etc/apt/sources.list.d/official-package-repositories.list
    1: deb https://ftp.rz.uni-frankfurt.de/pub/mirrors/linux-mint/packages virginia main upstream import backport
    2: deb http://mirror.eu-fr.kamatera.com/ubuntu jammy main restricted universe multiverse
    3: deb http://mirror.eu-fr.kamatera.com/ubuntu jammy-updates main restricted universe multiverse
    4: deb http://mirror.eu-fr.kamatera.com/ubuntu jammy-backports main restricted universe multiverse
    5: deb http://security.ubuntu.com/ubuntu/ jammy-security main restricted universe multiverse
  Active apt repos in: /etc/apt/sources.list.d/opera-stable.list
    1: deb https://deb.opera.com/opera-stable/ stable non-free
  Active apt repos in: /etc/apt/sources.list.d/phoerious-keepassxc-jammy.list
    1: deb [signed-by=/etc/apt/keyrings/phoerious-keepassxc-jammy.gpg] https://ppa.launchpadcontent.net/phoerious/keepassxc/ubuntu jammy main
  Active apt repos in: /etc/apt/sources.list.d/rvm-smplayer-jammy.list
    1: deb [signed-by=/etc/apt/keyrings/rvm-smplayer-jammy.gpg] https://ppa.launchpadcontent.net/rvm/smplayer/ubuntu jammy main
  Active apt repos in: /etc/apt/sources.list.d/signal-xenial.list
    1: deb [signed-by=/usr/share/keyrings/signal-desktop-keyring.gpg] https://updates.signal.org/desktop/apt xenial main
  Active apt repos in: /etc/apt/sources.list.d/solaar-unifying-stable-jammy.list
    1: deb [signed-by=/etc/apt/keyrings/solaar-unifying-stable-jammy.gpg] https://ppa.launchpadcontent.net/solaar-unifying/stable/ubuntu jammy main
  Active apt repos in: /etc/apt/sources.list.d/teamviewer.list
    1: deb [signed-by=/usr/share/keyrings/teamviewer-keyring.gpg] https://linux.teamviewer.com/deb stable main
  No active apt repos in: /etc/apt/sources.list.d/ubuntu-mozilla-security-ppa-jammy.list
  Active apt repos in: /etc/apt/sources.list.d/ubuntuhandbook1-apps-jammy.list
    1: deb [signed-by=/etc/apt/keyrings/ubuntuhandbook1-apps-jammy.gpg] https://ppa.launchpadcontent.net/ubuntuhandbook1/apps/ubuntu jammy main
  Active apt repos in: /etc/apt/sources.list.d/winehq-jammy.sources
    1: deb [arch=amd64 i386] https://dl.winehq.org/wine-builds/ubuntu jammy main
Info:
  Processes: 438 Uptime: 6m wakeups: 7 Init: systemd v: 249 runlevel: 5
  Compilers: gcc: 11.4.0 alt: 11/12 Shell: Bash v: 5.1.16 running-in: guake
  inxi: 3.3.13
And xrandr - I'm doing this from my living room right now, with my internal screen off and the TV connected via HDMI. So this is the output with that in mind:

Code: Select all

$ xrandr --verbose
Screen 0: minimum 8 x 8, current 1920 x 1080, maximum 32767 x 32767
DP-0 disconnected (normal left inverted right x axis y axis)
	Identifier: 0x1bc
	Timestamp:  27772
	Subpixel:   unknown
	Clones:    
	CRTCs:      1 0 2 3
	Transform:  1.000000 0.000000 0.000000
	            0.000000 1.000000 0.000000
	            0.000000 0.000000 1.000000
	           filter: 
	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 disconnected (normal left inverted right x axis y axis)
	Identifier: 0x1bd
	Timestamp:  27772
	Subpixel:   unknown
	Clones:    
	CRTCs:      1 0 2 3
	Transform:  1.000000 0.000000 0.000000
	            0.000000 1.000000 0.000000
	            0.000000 0.000000 1.000000
	           filter: 
	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
DP-2 connected (normal left inverted right x axis y axis)
	Identifier: 0x1be
	Timestamp:  27772
	Subpixel:   unknown
	Clones:    
	CRTCs:      1 0 2 3
	Transform:  1.000000 0.000000 0.000000
	            0.000000 1.000000 0.000000
	            0.000000 0.000000 1.000000
	           filter: 
	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 
	Backlight: 100 
		range: (0, 100)
	EDID: 
		00ffffffffffff0009e5690a00000000
		151f0104a5261578030f95ae5243b026
		0f505400000001010101010101010101
		010101010101e26700b0a0a0b4503020
		36007dd610000018000000fd0c3cf086
		866a010a202020202020000000fe0042
		4f452043510a202020202020000000fe
		004e4531373351484d2d4e5a320a0167
		7013790000030114889f0184ff09af00
		2f001f009f05b3000200050000000000
		00000000000000000000000000000000
		00000000000000000000000000000000
		00000000000000000000000000000000
		00000000000000000000000000000000
		00000000000000000000000000000000
		00000000000000000000000000004d90
	BorderDimensions: 4 
		supported: 4
	Border: 0 0 0 0 
		range: (0, 65535)
	SignalFormat: DisplayPort 
		supported: DisplayPort
	ConnectorType: Panel 
	ConnectorNumber: 1 
	_ConnectorLocation: 1 
	non-desktop: 0 
		supported: 0, 1
  2560x1440 (0x1bf) 265.940MHz -HSync -VSync +preferred
        h: width  2560 start 2608 end 2640 total 2736 skew    0 clock  97.20KHz
        v: height 1440 start 1443 end 1449 total 1620           clock  60.00Hz
  2560x1440 (0x1c0) 1063.770MHz -HSync -VSync
        h: width  2560 start 2608 end 2640 total 2736 skew    0 clock 388.80KHz
        v: height 1440 start 1443 end 1449 total 1620           clock 240.00Hz
HDMI-0 connected primary 1920x1080+0+0 (0x1c2) normal (normal left inverted right x axis y axis) 1328mm x 747mm
	Identifier: 0x1c1
	Timestamp:  27772
	Subpixel:   unknown
	Gamma:      1.0:1.0:1.0
	Brightness: 1.0
	Clones:    
	CRTC:       0
	CRTCs:      1 0 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 
	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: 
		00ffffffffffff003dcb610f00000000
		0019010380854b780a0dc9a057479827
		12484c210800818001010101b3000101
		010101010101023a801871382d40582c
		450030eb5200001e011d007251d01e20
		6e28550030eb5200001e000000fc0054
		582d4e523634360a20202020000000fd
		00303e0e460f000a2020202020200162
		020344f04f1f101405130420223c3e12
		031102013b097f070f7f071707503f06
		c04902005706015f7e035f7e01677f01
		834f00006c030c004500b82d0f000000
		00e200fb023a80d072382d40102c4580
		30eb5200001e011d00bc52d01e20b828
		554030eb5200001e011d8018711c1620
		582c250030eb5200009e00000000001b
	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 (0x1c2) 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 (0x1c3) 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 (0x1c4) 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
  1920x1080 (0x1c5) 74.180MHz +HSync +VSync
        h: width  1920 start 2008 end 2052 total 2200 skew    0 clock  33.72KHz
        v: height 1080 start 1084 end 1089 total 1125           clock  29.97Hz
  1920x1080 (0x1c6) 74.180MHz +HSync +VSync
        h: width  1920 start 2558 end 2602 total 2750 skew    0 clock  26.97KHz
        v: height 1080 start 1084 end 1089 total 1125           clock  23.98Hz
  1680x1050 (0x1c7) 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
  1280x1024 (0x1c8) 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
  1280x720 (0x1c9) 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 (0x1ca) 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 (0x1cb) 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
  1280x720 (0x1cc) 74.180MHz -HSync +VSync
        h: width  1280 start 3040 end 3080 total 3300 skew    0 clock  22.48KHz
        v: height  720 start  725 end  730 total  750           clock  29.97Hz
  1280x720 (0x1cd) 59.340MHz +HSync +VSync
        h: width  1280 start 3040 end 3080 total 3300 skew    0 clock  17.98KHz
        v: height  720 start  725 end  730 total  750           clock  23.98Hz
  1024x768 (0x1ce) 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 (0x1cf) 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 (0x1d0) 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 (0x1d1) 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 (0x1d2) 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 (0x1d3) 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
Idk how relevant it is, but upstairs in my office, I have 3 screens connected via 2x USB-C (using a USB-C > DVI adapter and a USB-C docking station w/ full-size DP port, respectively) and 1x HDMI. So with that setup, obviously it would look different and I can check again tomorrow. Does this help?

Thanks so much!
The Bright Side
Level 3
Level 3
Posts: 172
Joined: Thu Jul 12, 2018 3:09 pm

Re: Nvidia PRIME gone after Linux Mint 21.3 in-place upgrade

Post by The Bright Side »

Oh, and I need to correct a line from my OP:

"The system used to recognize my built-in screen on eDP-1-1 as a PRIME screen, now it's on DP-2 as a regular screen."
User avatar
SMG
Level 25
Level 25
Posts: 32007
Joined: Sun Jul 26, 2020 6:15 pm
Location: USA

Re: Nvidia PRIME gone after Linux Mint 21.3 in-place upgrade

Post by SMG »

The Bright Side wrote: Sat Mar 16, 2024 2:36 pmEverything worked well, too, before I upgraded from LM 21.1 to 21.3 on Thursday.
And did you take a Timeshift snapshot before upgrading to which you can revert?
The Bright Side wrote: Sat Mar 16, 2024 2:38 pm Oh, and I need to correct a line from my OP:

"The system used to recognize my built-in screen on eDP-1-1 as a PRIME screen, now it's on DP-2 as a regular screen."
Did you go into your BIOS/UEFI and change the setting from Hybrid/Switchable to Discrete? That is usually what makes that type of change in the xrandr output.

Also, I don't understand what that means because eDP-1 is showing as attached to your Nvidia GPU.

Device-2: NVIDIA GA103M [GeForce RTX 3080 Ti Mobile] vendor: ASUSTeK
driver: nvidia v: 550.54.14 ports: active: none off: HDMI-A-3,eDP-1

I'd like to know how you got different output from your initial system information in your original post and the output you just posted.

from termbin:

Code: Select all

  Display: x11 server: X.Org v: 1.21.1.4 driver: X: loaded: modesetting,nvidia
    unloaded: fbdev,nouveau,vesa gpu: i915,nvidia display-ID: :0 screens: 1
What you just posted:

Code: Select all

  Display: x11 server: X.Org v: 1.21.1.4 driver: X: loaded: nvidia
    gpu: i915,nvidia display-ID: :0 screens: 1
Notice the missing modesetting driver in the second output. What is the output of

Code: Select all

cat /etc/X11/xorg.conf
That file should not exist on a dual-GPU laptop.
The Bright Side wrote: Sat Mar 16, 2024 2:36 pmAnd xrandr - I'm doing this from my living room right now, with my internal screen off and the TV connected via HDMI. So this is the output with that in mind:
All ports are showing the same CRTCs: 1 0 2 3 which usually only happens when one GPU is available.

X Server runs the graphics in Linux Mint. Please use this command in a terminal to upload the X Server log file to termbin:

Code: Select all

cat /var/log/Xorg.0.log | nc termbin.com 9999
It will return with a url address that you can post in your next reply.
Image
A woman typing on a laptop with LM20.3 Cinnamon.
The Bright Side
Level 3
Level 3
Posts: 172
Joined: Thu Jul 12, 2018 3:09 pm

Re: Nvidia PRIME gone after Linux Mint 21.3 in-place upgrade

Post by The Bright Side »

I have to admit I didn't make a Timeshift backup, unfortunately. I haven't touched the UEFI in months and I just checked, it doesn't seem to have a setting where I can switch the graphics card(s) mode. It shows both chips in its easy UI. Made a quick recording: https://youtu.be/ddGyes5Yx8s

Since I upgraded to kernel 6.5, most attempts to boot the PC fail right at the beginning with an "out of memory" error and then kernel panic, so I need to reboot a few times before I get to the login screen. This video shows it: https://youtu.be/mISFKoBf9Co

Please excuse the absolute n00b overkill in these videos, I have the world's worst cell phone + klutzy fingers. I tried ;-) o.O

Wondering if that has anything to do with it. The kernel panic looks like Linux can't find my hard disk partitions, though.

Very interesting, in the snippet you quoted, it seems like the eDP-1 is off? I have no idea how I went from my OP to here.

The xorg.conf does exist on my system because, as I was trying to troubleshoot today, I made one by hand (copied the output from nvidia-settings). So this might not be very useful, but here it goes:

Code: Select all

$ cat /etc/X11/xorg.conf
# nvidia-settings: X configuration file generated by nvidia-settings
# nvidia-settings:  version 510.47.03

# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig:  version 550.54.14

Section "ServerLayout"
    Identifier     "Layout0"
    Screen      0  "Screen0" 0 0
    InputDevice    "Keyboard0" "CoreKeyboard"
    InputDevice    "Mouse0" "CorePointer"
    Option         "Xinerama" "0"
EndSection

Section "Files"
EndSection

Section "InputDevice"

    # generated from default
    Identifier     "Mouse0"
    Driver         "mouse"
    Option         "Protocol" "auto"
    Option         "Device" "/dev/psaux"
    Option         "Emulate3Buttons" "no"
    Option         "ZAxisMapping" "4 5"
EndSection

Section "InputDevice"

    # generated from default
    Identifier     "Keyboard0"
    Driver         "kbd"
EndSection

Section "Monitor"
    Identifier     "Monitor0"
    VendorName     "Unknown"
    ModelName      "BenQ BL3200"
    HorizSync       30.0 - 88.0
    VertRefresh     50.0 - 76.0
    Option         "DPMS"
EndSection

Section "Device"
    Identifier     "Device0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    BoardName      "NVIDIA GeForce RTX 3080 Ti Laptop GPU"
EndSection

Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    Option         "Stereo" "0"
    Option         "nvidiaXineramaInfoOrder" "DFP-0"
    Option         "metamodes" "DP-0: nvidia-auto-select +0+0 {ForceCompositionPipeline=On}, HDMI-0: nvidia-auto-select +4240+0 {ForceCompositionPipeline=On}"
    Option         "SLI" "Off"
    Option         "MultiGPU" "Off"
    Option         "BaseMosaic" "off"
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection
And here's the termbin URL: https://termbin.com/f131
The Bright Side
Level 3
Level 3
Posts: 172
Joined: Thu Jul 12, 2018 3:09 pm

Re: Nvidia PRIME gone after Linux Mint 21.3 in-place upgrade

Post by The Bright Side »

I installed nvidia-prime-applet but I get "command not found" when I try to launch it from the command line, then I installed the Prime applet (https://paste.pics/QKM3G) through the "Applets" app and added it to my top panel, where it now sits showing me an "Err", tells me that Nvidia Prime is not set up correctly and asks me if everything is installed: https://paste.pics/QKM21

In Synaptic, I get a red star icon next to nvidia-prime: https://paste.pics/QKM2A

EDIT: okay, one more bit, here's my Nvidia bug report: https://nx30954.your-storageshare.de/s/YrYH4obrDdNmjPH

LAST EDIT: okay, after a reboot, the Prime applet appeared and it did show Intel. I switched to Nvidia, rebooted and the "nVidia Prime GPU Display" applet still shows the same error I posted above.
Last edited by The Bright Side on Sat Mar 16, 2024 4:44 pm, edited 1 time in total.
User avatar
SMG
Level 25
Level 25
Posts: 32007
Joined: Sun Jul 26, 2020 6:15 pm
Location: USA

Re: Nvidia PRIME gone after Linux Mint 21.3 in-place upgrade

Post by SMG »

The Bright Side wrote: Sat Mar 16, 2024 4:26 pm I installed nvidia-prime-applet but I get "command not found" when I try to launch it from the command line, then I installed the Prime applet (https://paste.pics/QKM3G) through the "Applets" app and added it to my top panel, where it now sits showing me an "Err", tells me that Nvidia Prime is not set up correctly and asks me if everything is installed: https://paste.pics/QKM21
I have not had a chance to check your videos and your entire posts yet, but you are making things worse. Get rid of that applet now. That is not the correct applet and does not work properly in Linux Mint.

Remove the /etc/X11/xorg.conf file. By using that file you are telling your system to only use Nvidia and it completely blocks Intel from being used.

I have to step aside for a bit to eat, but I will get back and review everything you posted. The out of memory error is a known issue and I will need to find the posts with the fixes in it.
Image
A woman typing on a laptop with LM20.3 Cinnamon.
The Bright Side
Level 3
Level 3
Posts: 172
Joined: Thu Jul 12, 2018 3:09 pm

Re: Nvidia PRIME gone after Linux Mint 21.3 in-place upgrade

Post by The Bright Side »

Thanks so much, I really appreciate it. Getting rid of the applet now and removing the xorg.conf. Please take all the time you need, it's close to 10 pm here in Germany so I won't be doing anything more until well into tomorrow. Enjoy your meal, thanks again, talk to you soon!
User avatar
SMG
Level 25
Level 25
Posts: 32007
Joined: Sun Jul 26, 2020 6:15 pm
Location: USA

Re: Nvidia PRIME gone after Linux Mint 21.3 in-place upgrade

Post by SMG »

The Bright Side wrote: Sat Mar 16, 2024 4:11 pm I have to admit I didn't make a Timeshift backup, unfortunately. I haven't touched the UEFI in months and I just checked, it doesn't seem to have a setting where I can switch the graphics card(s) mode. It shows both chips in its easy UI. Made a quick recording: https://youtu.be/ddGyes5Yx8s
I did not notice anything in the video which would seem to indicate there is a setting which can be changed.
The Bright Side wrote: Sat Mar 16, 2024 4:11 pmSince I upgraded to kernel 6.5, most attempts to boot the PC fail right at the beginning with an "out of memory" error and then kernel panic, so I need to reboot a few times before I get to the login screen. This video shows it: https://youtu.be/mISFKoBf9Co
If you start with this post and check the subsequent discussion in the topic, you will see screenshots which match what was in your video. The final solution for the person who made that topic was mentioned near the end of the second page.

The fact you are sometimes able to get in probably indicates the size of the initramfs is probably just on the edge of what might be too big and sometimes it works and sometimes not. Maybe some of the original solutions will work for you and you will not need to use what the other person had to do. You'll see the discussion in the other topic what the sizes that person initramfs had and what worked was not significantly different.
The Bright Side wrote: Sat Mar 16, 2024 4:11 pm Very interesting, in the snippet you quoted, it seems like the eDP-1 is off? I have no idea how I went from my OP to here.
That is unusual considering you did not make any BIOS/UEFI changes. I am not aware of anything in the upgrade which would have affected that because the base Ubuntu version did not change. :?
The Bright Side wrote: Sat Mar 16, 2024 4:11 pmAnd here's the termbin URL: https://termbin.com/f131
This was using the custom xorg.conf file so while the Intel GPU was probed, nothing was loaded for it. Let's try again to generate this log with the file removed and you having rebooted since the removal.
The Bright Side wrote: Sat Mar 16, 2024 4:26 pm I installed nvidia-prime-applet but I get "command not found" when I try to launch it from the command line, then I installed the Prime applet (https://paste.pics/QKM3G) through the "Applets" app and added it to my top panel, where it now sits showing me an "Err", tells me that Nvidia Prime is not set up correctly and asks me if everything is installed: https://paste.pics/QKM21
Not the first time I have seen a screenshot of "Err" which is why I knew exactly what had happened. ;)
The Bright Side wrote: Sat Mar 16, 2024 4:26 pmIn Synaptic, I get a red star icon next to nvidia-prime: https://paste.pics/QKM2A
The red star is new to me. :?
The Bright Side wrote: Sat Mar 16, 2024 4:26 pmEDIT: okay, one more bit, here's my Nvidia bug report: https://nx30954.your-storageshare.de/s/YrYH4obrDdNmjPH
This bug report used the custom xorg.conf. However, it did mention amdgpu and radeon files (although your system does not use them), but it didn't mention intel files which are usually part of an install.

The Nvidia bug report also went back to an Xorg log when you were not using the custom xorg.conf file. In that it shows

Code: Select all

[  4368.925] (II) modeset(G0): glamor X acceleration enabled on Mesa Intel(R) UHD Graphics (ADL-S GT1)
[  4368.929] (II) modeset(G0): EDID for output eDP-1-1
which is Intel for the laptop screen.

The dmesg (in the Nvidia bug report) for the time you used the custom xorg.conf has

Code: Select all

[    3.096026] i915 0000:00:02.0: [drm] Cannot find any crtc or sizes
[    3.096629] i915 0000:00:02.0: [drm] Cannot find any crtc or sizes
It's possible the xorg.conf caused that to happen.

And weirdly enough xrandr --verbose (in the Nvidia bug report) does not mention prime synchronization which usually means all of the ports are attached to Intel.
Image
A woman typing on a laptop with LM20.3 Cinnamon.
The Bright Side
Level 3
Level 3
Posts: 172
Joined: Thu Jul 12, 2018 3:09 pm

Re: Nvidia PRIME gone after Linux Mint 21.3 in-place upgrade

Post by The Bright Side »

Oh. My. God.

I was playing Control on Windows 11 on Friday night and I wanted to get full power out of the graphics card, so I used ASUS' "Armory Crate" tool and picked the graphics card setting, "Ultimate".

THAT tinkered with the BIOS, disabling Prime and leaving only the Nvidia GPU running!

I'm back to normal. And I sent you on a wild goose chase. I'm sorry!!

/// I still do have the boot-up issue and I'm very grateful to you for linking me to the thread where somebody else solved it. I will look into this later when I find more time.
The Bright Side
Level 3
Level 3
Posts: 172
Joined: Thu Jul 12, 2018 3:09 pm

Re: [SOLVED] Nvidia PRIME gone after Linux Mint 21.3 in-place upgrade

Post by The Bright Side »

Went ahead and installed dracut, it also uninstalled a few things in the process and configured a number of things. I have yet to actually execute dracut though, because in my 2 boot attempts since resetting the graphics card from Armory Crate, I no longer had any issues.

If the bootup "out of memory" issue occurs again, do I understand correctly that all I need to do is this?

1. Reboot until I get into Mint
2. sudo dracut --regenerate-all --force
3. Reboot
4. Happiness

I think that's what I gathered from the thread, just wanted to double-check. Again, thanks for your help - legendary as always!
seasons
Level 4
Level 4
Posts: 373
Joined: Fri Nov 17, 2023 5:00 pm

Re: [SOLVED] Nvidia PRIME gone after Linux Mint 21.3 in-place upgrade

Post by seasons »

I believe when you install dracut, it regenerates the kernel images (or at least the one you're currently using) automatically, though you can use that command just to make sure. It will compress any new kernels you install/update.
User avatar
SMG
Level 25
Level 25
Posts: 32007
Joined: Sun Jul 26, 2020 6:15 pm
Location: USA

Re: Nvidia PRIME gone after Linux Mint 21.3 in-place upgrade

Post by SMG »

The Bright Side wrote: Sun Mar 17, 2024 5:18 am Oh. My. God.

I was playing Control on Windows 11 on Friday night and I wanted to get full power out of the graphics card, so I used ASUS' "Armory Crate" tool and picked the graphics card setting, "Ultimate".

THAT tinkered with the BIOS, disabling Prime and leaving only the Nvidia GPU running!
Thank you for explaining the source of why the port designations changed. :lol:

I do recall seeing the Armory Crate setting in your video of the BIOS/UEFI. However, I don't know if that lets you change the designation there or it can only be done in Windows. I think Armory Crate is a Windows only tool which is why I ignored it when I saw it in the video.

I see seasons has given you feedback on your dracut question. Most people in the past were able to use the other suggestions which were linked in the first post I gave you. That topic was the first time none of the other solutions worked and going to dracut was necessary.
Image
A woman typing on a laptop with LM20.3 Cinnamon.
The Bright Side
Level 3
Level 3
Posts: 172
Joined: Thu Jul 12, 2018 3:09 pm

Re: [SOLVED] Nvidia PRIME gone after Linux Mint 21.3 in-place upgrade

Post by The Bright Side »

seasons wrote: Sun Mar 17, 2024 9:33 am I believe when you install dracut, it regenerates the kernel images (or at least the one you're currently using) automatically, though you can use that command just to make sure. It will compress any new kernels you install/update.
Awesome! I was in a rush so I didn't pay close enough attention to what it was doing, but I had a hunch that might have been it. Thanks!
The Bright Side
Level 3
Level 3
Posts: 172
Joined: Thu Jul 12, 2018 3:09 pm

Re: Nvidia PRIME gone after Linux Mint 21.3 in-place upgrade

Post by The Bright Side »

SMG wrote: Sun Mar 17, 2024 10:09 am I do recall seeing the Armory Crate setting in your video of the BIOS/UEFI. However, I don't know if that lets you change the designation there or it can only be done in Windows. I think Armory Crate is a Windows only tool which is why I ignored it when I saw it in the video.
Yup, that's right. Armory Crate is a proprietary ASUS tool that comes with their ROG laptops and runs on Windows only. It pretty much gives one the fine-grained control over one's PC that, to my mind, should be possible from the BIOS. So in hindsight, it's not even that surprising it made the change in the UEFI when I switched the graphics card to "Ultimate".
Post Reply

Return to “Graphics Cards & Monitors”