Can't log into a Cinnamon Wayland session - only Nvidia GPU

Questions about the experimental Wayland support on Linux Mint Cinnamon
Forum rules
Include your system information for help with troubleshooting. Report reproducible issues related to Wayland, whether for Cinnamon, an XApp, a Mint tool or any Linux Mint maintained software on the dedicated issue tracker. Topics in this forum are automatically closed after 6 months.
Post Reply
hynkelz
Level 1
Level 1
Posts: 17
Joined: Sat Jul 22, 2023 9:29 am

Can't log into a Cinnamon Wayland session - only Nvidia GPU

Post by hynkelz »

I also see a black screen with a blinking cursor when i try to log in a wayland session with my computer.
My computer has no intel graphics , only nvidia gtx1070.

I tired a new user. Didn't work.

I did not mess with grub or anything else trying to make it work.

Code: Select all

System:
  Kernel: 5.15.0-92-generic x86_64 bits: 64 compiler: gcc v: 11.4.0 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
.....
Graphics:
  Device-1: NVIDIA GP104 [GeForce GTX 1070] vendor: Micro-Star MSI driver: nvidia v: 535.154.05
    pcie: speed: 8 GT/s lanes: 16 ports: active: none off: HDMI-A-1 empty: DP-1, DP-2, DP-3, DVI-D-1
    bus-ID: 01:00.0 chip-ID: 10de:1b81 class-ID: 0300
  Device-2: Microdia USB Live camera type: USB driver: snd-usb-audio,uvcvideo bus-ID: 1-4.1.1:7
    chip-ID: 0c45:6536 class-ID: 0102 serial: <filter>
  Display: x11 server: X.Org v: 1.21.1.4 driver: X: loaded: nvidia gpu: nvidia display-ID: :0
    screens: 1
  Screen-1: 0 s-res: 5120x2880 s-dpi: 144 s-size: 903x508mm (35.6x20.0") s-diag: 1036mm (40.8")
  Monitor-1: HDMI-0 res: 5120x2880 hz: 60 dpi: 209 size: 621x341mm (24.4x13.4")
    diag: 708mm (27.9")
  OpenGL: renderer: NVIDIA GeForce GTX 1070/PCIe/SSE2 v: 4.6.0 NVIDIA 535.154.05
    direct render: Yes

As a side note.. , i was able to start a wayland session on Linux Mint Cinnamon 21.3 on a 14 year old laptop with AMD graphics and generic drivers.
Last edited by SMG on Sat Jan 27, 2024 10:31 am, edited 1 time in total.
Reason: Split from https://forums.linuxmint.com/viewtopic.php?t=411976 which is different hardware.
hynkelz
Level 1
Level 1
Posts: 17
Joined: Sat Jul 22, 2023 9:29 am

Re: Can't log into a Cinnamon Wayland session - only Nvidia GPU

Post by hynkelz »

Something in my current installation must be preventing it from working.
I used another mint installation with less software than my main mint installation and upgraded it to 21.3 and used the 535 and 545 nvidia drivers.
User avatar
SMG
Level 25
Level 25
Posts: 32438
Joined: Sun Jul 26, 2020 6:15 pm
Location: USA

Re: Can't log into a Cinnamon Wayland session - only Nvidia GPU

Post by SMG »

hynkelz wrote: Sat Jan 27, 2024 10:23 am I also see a black screen with a blinking cursor when i try to log in a wayland session with my computer.
My computer has no intel graphics , only nvidia gtx1070.
The video you posted in the other topic was running the LM21.3 beta version.
hynkelz wrote: Sat Jan 27, 2024 10:23 amI tired a new user. Didn't work.

I did not mess with grub or anything else trying to make it work.
Two people who have posted on the forum who were able to get into a Wayland session using Nvidia did use the nvidia-drm.modeset=1 kernel parameter. Several Mint developers told me they were able to get into Wayland without using the kernel parameters. I do not yet know what the difference might be.

Are you using a HiDPI monitor?
hynkelz wrote: Sat Jan 27, 2024 2:04 pm Something in my current installation must be preventing it from working.
I used another mint installation with less software than my main mint installation and upgraded it to 21.3 and used the 535 and 545 nvidia drivers.
You were not using the kernel parameter in either case?

Please post your complete system information.
Image
A woman typing on a laptop with LM20.3 Cinnamon.
hynkelz
Level 1
Level 1
Posts: 17
Joined: Sat Jul 22, 2023 9:29 am

Re: Can't log into a Cinnamon Wayland session - only Nvidia GPU

Post by hynkelz »

I have a 4K monitor , not sure if that is considered a HiDPI monitor.

I did not use the kernel parameter in either cases.

I re-installed the 545 driver on my main Mint installation and was able to log into the wayland session once. After a reboot the screen went black again with a blinking cursor.

Code: Select all

System:
  Kernel: 5.15.0-92-generic x86_64 bits: 64 compiler: gcc v: 11.4.0 Desktop: Cinnamon 6.0.4
    tk: GTK 3.24.33 wm: muffin dm: LightDM Distro: Linux Mint 21.3 Virginia base: Ubuntu 22.04 jammy
Machine:
  Type: Desktop System: ASUS product: N/A v: N/A serial: <superuser required>
  Mobo: ASUSTeK model: PRIME Z690M-PLUS D4 v: Rev 1.xx serial: <superuser required>
    UEFI: American Megatrends v: 3010 date: 12/11/2023
CPU:
  Info: 12-core (8-mt/4-st) model: 12th Gen Intel Core i7-12700KF bits: 64 type: MST AMCP
    arch: Alder Lake rev: 2 cache: L1: 1024 KiB L2: 12 MiB L3: 25 MiB
  Speed (MHz): avg: 800 high: 802 min/max: 800/4900:5000:3800 cores: 1: 800 2: 802 3: 800 4: 800
    5: 800 6: 800 7: 800 8: 801 9: 800 10: 800 11: 800 12: 800 13: 800 14: 800 15: 800 16: 802
    17: 800 18: 800 19: 799 20: 800 bogomips: 144383
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
Graphics:
  Device-1: NVIDIA GP104 [GeForce GTX 1070] vendor: Micro-Star MSI driver: nvidia v: 545.29.06
    pcie: speed: 8 GT/s lanes: 16 ports: active: none off: HDMI-A-1 empty: DP-1, DP-2, DP-3, DVI-D-1
    bus-ID: 01:00.0 chip-ID: 10de:1b81
  Device-2: Microdia USB Live camera type: USB driver: snd-usb-audio,uvcvideo bus-ID: 1-4.1.1:7
    chip-ID: 0c45:6536
  Display: x11 server: X.Org v: 1.21.1.4 driver: X: loaded: nvidia gpu: nvidia display-ID: :0
    screens: 1
  Screen-1: 0 s-res: 5120x2880 s-dpi: 144
  Monitor-1: HDMI-0 res: 5120x2880 dpi: 209 diag: 708mm (27.9")
  OpenGL: renderer: NVIDIA GeForce GTX 1070/PCIe/SSE2 v: 4.6.0 NVIDIA 545.29.06
    direct render: Yes
Audio:
  Device-1: Intel vendor: ASUSTeK driver: snd_hda_intel v: kernel bus-ID: 00:1f.3
    chip-ID: 8086:7ad0
  Device-2: NVIDIA GP104 High Definition Audio vendor: Micro-Star MSI driver: snd_hda_intel
    v: kernel pcie: speed: 8 GT/s lanes: 16 bus-ID: 01:00.1 chip-ID: 10de:10f0
  Device-3: C-Media Audio Adapter type: USB driver: hid-generic,snd-usb-audio,usbhid
    bus-ID: 1-11:4 chip-ID: 0d8c:000c
  Device-4: Microdia USB Live camera type: USB driver: snd-usb-audio,uvcvideo bus-ID: 1-4.1.1:7
    chip-ID: 0c45:6536
  Sound Server-1: ALSA v: k5.15.0-92-generic running: yes
  Sound Server-2: PulseAudio v: 15.99.1 running: no
  Sound Server-3: PipeWire v: 1.0.0 running: yes
Network:
  Device-1: Intel Ethernet I219-V vendor: ASUSTeK driver: e1000e v: kernel port: N/A
    bus-ID: 00:1f.6 chip-ID: 8086:1a1d
  IF: eno1 state: up speed: 1000 Mbps duplex: full mac: <filter>
  IF-ID-1: vmnet1 state: unknown speed: N/A duplex: N/A mac: <filter>
  IF-ID-2: vmnet8 state: unknown speed: N/A duplex: N/A mac: <filter>
RAID:
  Hardware-1: Intel Volume Management Device NVMe RAID Controller driver: vmd v: 0.6
    bus-ID: 00:0e.0 chip-ID: 8086:467f
Drives:
  Local Storage: total: 8.19 TiB used: 2.45 TiB (29.9%)
  ID-1: /dev/nvme0n1 vendor: Western Digital model: WD Blue SN570 500GB size: 465.76 GiB
    speed: 31.6 Gb/s lanes: 4 serial: <filter> temp: 43.9 C
  ID-2: /dev/sda vendor: Western Digital model: WD20EFRX-68EUZN0 size: 1.82 TiB speed: 6.0 Gb/s
    serial: <filter>
  ID-3: /dev/sdb vendor: Western Digital model: WD6002FFWX-68TZ4N0 size: 5.46 TiB
    speed: 6.0 Gb/s serial: <filter>
  ID-4: /dev/sdc vendor: Western Digital model: WDS500G2B0A size: 465.76 GiB speed: 6.0 Gb/s
    serial: <filter>
Partition:
  ID-1: / size: 456.89 GiB used: 385.87 GiB (84.5%) fs: ext4 dev: /dev/nvme0n1p3
  ID-2: /boot/efi size: 512 MiB used: 6.1 MiB (1.2%) fs: vfat dev: /dev/nvme0n1p2
Swap:
  ID-1: swap-1 type: file size: 16 GiB used: 1024 KiB (0.0%) priority: -2 file: /swapfile
Sensors:
  System Temperatures: cpu: 44.0 C mobo: 52.0 C gpu: nvidia temp: 62 C
  Fan Speeds (RPM): fan-1: 0 fan-2: 1670 fan-3: 0 fan-4: 0 fan-5: 0 fan-6: 0 gpu: nvidia
    fan: 29%
Repos:
  Packages: 3095 apt: 3039 flatpak: 56
  No active apt repos in: /etc/apt/sources.list
  No active apt repos in: /etc/apt/sources.list.d/balena-etcher.list
  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/nordvpn.list
    1: deb https: //repo.nordvpn.com/deb/nordvpn/debian stable main
  Active apt repos in: /etc/apt/sources.list.d/official-package-repositories.list
    1: deb https: //muug.ca/mirror/linuxmint/packages virginia main upstream import backport
    2: deb http: //archive.ubuntu.com/ubuntu jammy main restricted universe multiverse
    3: deb http: //archive.ubuntu.com/ubuntu jammy-updates main restricted universe multiverse
    4: deb http: //archive.ubuntu.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/picoscope7.list
    1: deb https: //labs.picotech.com/rc/picoscope7/debian/ picoscope main
  Active apt repos in: /etc/apt/sources.list.d/pipewire-debian-pipewire-upstream-jammy.list
    1: deb [signed-by=/etc/apt/keyrings/pipewire-debian-pipewire-upstream-jammy.gpg] https: //ppa.launchpadcontent.net/pipewire-debian/pipewire-upstream/ubuntu jammy main
    2: deb-src [signed-by=/etc/apt/keyrings/pipewire-debian-pipewire-upstream-jammy.gpg] https: //ppa.launchpadcontent.net/pipewire-debian/pipewire-upstream/ubuntu jammy main
  Active apt repos in: /etc/apt/sources.list.d/skype-stable.list
    1: deb [arch=amd64] https: //repo.skype.com/deb stable 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
  Active apt repos in: /etc/apt/sources.list.d/winehq.list
    1: deb [signed-by=/usr/share/keyrings/winehq.gpg] http: //dl.winehq.org/wine-builds/ubuntu/ jammy main
Info:
  Processes: 448 Uptime: 11h 0m Memory: 31.15 GiB used: 5.34 GiB (17.1%) Init: systemd v: 249
  runlevel: 5 Compilers: gcc: 11.4.0 alt: 11/12 Client: Unknown python3.10 client inxi: 3.3.13
User avatar
SMG
Level 25
Level 25
Posts: 32438
Joined: Sun Jul 26, 2020 6:15 pm
Location: USA

Re: Can't log into a Cinnamon Wayland session - only Nvidia GPU

Post by SMG »

hynkelz wrote: Sun Jan 28, 2024 1:04 am I have a 4K monitor , not sure if that is considered a HiDPI monitor.
High density pixels is not the same thing as a high resolution screen (although a 4K monitor can be HiDPI). The output below does not seem to indicate a 4K monitor, but a 5K monitor.

Code: Select all

  Screen-1: 0 s-res: 5120x2880 s-dpi: 144
  Monitor-1: HDMI-0 res: 5120x2880 dpi: 209 diag: 708mm (27.9")
This looks to be an informative article How to Find High PPI (DPI) Monitors and Choose the Right One. I don't know if the listed dpi's in the inxi output are considered high for your size monitor.
hynkelz wrote: Sun Jan 28, 2024 1:04 amI re-installed the 545 driver on my main Mint installation and was able to log into the wayland session once. After a reboot the screen went black again with a blinking cursor.
I presume the below data is your "main Mint installation".

I recommend using a 6 series kernel with a 12th-gen Intel CPU. The 6.5 kernel is available in Update Manager.

Instructions for upgrading to the 6.5 kernel:
  • Open Update Manager.
  • Select View > Linux Kernels and click Continue.
  • Make sure 6.5 is selected on the left panel and then click the top-most option on the right panel. An "Install" button will appear.
  • Install the kernel and then reboot for it to become active.
I don't know if it will help with this issue, but a newer kernel means the Nvidia modules will rebuild. Maybe that will help.

I also recommend taking a look at what you have on your drive. It's getting full which can affect performance. (At levels >90% you can run into problems logging into Linux Mint.)
Partition:
ID-1: / size: 456.89 GiB used: 385.87 GiB (84.5%) fs: ext4 dev: /dev/nvme0n1p3
ID-2: /boot/efi size: 512 MiB used: 6.1 MiB (1.2%) fs: vfat dev: /dev/nvme0n1p2
Image
A woman typing on a laptop with LM20.3 Cinnamon.
hynkelz
Level 1
Level 1
Posts: 17
Joined: Sat Jul 22, 2023 9:29 am

Re: Can't log into a Cinnamon Wayland session - only Nvidia GPU

Post by hynkelz »

My screen resolution is the oddest thing. When i right click the desktop and select "Display settings" , it says i have a 3840 x 2160 display. But when i do the system info , it says 5120x2880 and when i play a computer game it says 5120x2880 as well.

Not sure why the numbers differ so much. I did not really have a problem with that but i have always been scratching my head about it.
My Display is this one : https://www.asus.com/ca-en/displays-des ... /techspec/

I will have to look into upgrading my system drive and changing my kernel as well and see.

Does Linux Mint automatically select what kernel is the most suitable for each CPU or does it stick to a default version like 5.xx because it is considered stable ?
User avatar
SMG
Level 25
Level 25
Posts: 32438
Joined: Sun Jul 26, 2020 6:15 pm
Location: USA

Re: Can't log into a Cinnamon Wayland session - only Nvidia GPU

Post by SMG »

hynkelz wrote: Sun Jan 28, 2024 5:12 pm My screen resolution is the oddest thing.
That may be the factor causing the sometimes it works and sometimes it does not outcomes you are experiencing. I don't know how Nvidia is handling the info it is getting from the monitor.
hynkelz wrote: Sun Jan 28, 2024 5:12 pmWhen i right click the desktop and select "Display settings" , it says i have a 3840 x 2160 display.
Which is what ASUS indicates it is. That is 4K.

If you open the Nvidia X Server Settings app, what does it show there?
And what options show in the Display app? (Or maybe that is what you meant by right-clicking the desktop. There is no option like that in LM20.3 so I'm not sure.)
hynkelz wrote: Sun Jan 28, 2024 5:12 pmDoes Linux Mint automatically select what kernel is the most suitable for each CPU or does it stick to a default version like 5.xx because it is considered stable ?
If you install the version with the 5.15 LTS kernel, it stays with the LTS kernel. If you install an HWE (which is what the 6.5 kernel is), the hwe packages will upgrade you to the next HWE kernel when a newer HWE kernel is released to the repos.

Your CPU does not have graphics, but the graphics drivers for 12th-gen Intel weren't in the mainline kernels until 5.19 if I am recalling correctly. Canonical eventually backported the graphics drivers to 5.15, but I don't think they back-ported any other 12th-gen optimizations.
Image
A woman typing on a laptop with LM20.3 Cinnamon.
hynkelz
Level 1
Level 1
Posts: 17
Joined: Sat Jul 22, 2023 9:29 am

Re: Can't log into a Cinnamon Wayland session - only Nvidia GPU

Post by hynkelz »

Yikes. I need top upgrade my kernel.

You are onto something there wondering about how nvidia handles display resolutions...
nvidia2.png
nvidia.png
dektop settings.png
I think what's happening is that nvidia does not dance well with fractional scaling. When i set the scaling to 150% , nvidia thinks that the display resoution is 5K. When i set the scaling to 100% or 200% it thinks that it is 4K.
User avatar
SMG
Level 25
Level 25
Posts: 32438
Joined: Sun Jul 26, 2020 6:15 pm
Location: USA

Re: Can't log into a Cinnamon Wayland session - only Nvidia GPU

Post by SMG »

hynkelz wrote: Sun Jan 28, 2024 6:30 pmI think what's happening is that nvidia does not dance well with fractional scaling. When i set the scaling to 150% , nvidia thinks that the display resoution is 5K. When i set the scaling to 100% or 200% it thinks that it is 4K.
This may be this issue Fractional scaling issue on Mint 20 with proprietary Nvidia drivers #9369 where "Fractional scaling scales desktop viewport instead of content when using proprietary Nvidia drivers:".

That bug report is on LM20. Muffin was rebased on LM21, but maybe that part of the code remained the same so it is still an issue?

Have you checked to see if Wayland works when using 100% or 200% and you get the blinking cursor when you use 150%?
Image
A woman typing on a laptop with LM20.3 Cinnamon.
hynkelz
Level 1
Level 1
Posts: 17
Joined: Sat Jul 22, 2023 9:29 am

Re: Can't log into a Cinnamon Wayland session - only Nvidia GPU

Post by hynkelz »

when i was experimenting with wayland , standard scaling always worked better than fractional.
hynkelz
Level 1
Level 1
Posts: 17
Joined: Sat Jul 22, 2023 9:29 am

Re: Can't log into a Cinnamon Wayland session - only Nvidia GPU

Post by hynkelz »

Did kernel update and re-installed 545 driver and wayland still not working without grub config change.

now im getting many lines of "nvidia agent reported first" or something and then blinking cursor.
User avatar
SMG
Level 25
Level 25
Posts: 32438
Joined: Sun Jul 26, 2020 6:15 pm
Location: USA

Re: Can't log into a Cinnamon Wayland session - only Nvidia GPU

Post by SMG »

hynkelz wrote: Mon Jan 29, 2024 2:31 am Did kernel update and re-installed 545 driver and wayland still not working without grub config change.

now im getting many lines of "nvidia agent reported first" or something and then blinking cursor.
I am not familiar with that message. Can you post what you are seeing? If a photo does not work, then reboot and go into X11 and run the following which will get the information from the prior boot cycle. There may be an issue with the latest 545 driver causing what you are seeing.

Code: Select all

journalctl -b -1 | grep -i "drm\|nvidia\|NVRM\|01:00.0"
Image
A woman typing on a laptop with LM20.3 Cinnamon.
hynkelz
Level 1
Level 1
Posts: 17
Joined: Sat Jul 22, 2023 9:29 am

Re: Can't log into a Cinnamon Wayland session - only Nvidia GPU

Post by hynkelz »

Did some digging today and found out that it was PCI ASPM related.

Turned ASPM off in BIOS and it fixed it.

Now i'm running 6.5.0-15-generic with the 545 nvidia driver.

Haven't tried wayland yet though.
Post Reply

Return to “Cinnamon on Wayland”