Manjaro Gnome desktop freezing right after login (input passwd) with the installation of Nvidia drivers

Hi, I just installed the nvidia driver for GTX1066 card and then my manjaro desktop would freeze right after login (passwd input is O.K.). I found that the freezing situation can be solved when I unplug may keyboard and reconnect it to the PC, then everything just go normal.

It seems that such a problem happens after I install the Nvidia GPU driver by using the command

sudo mhwd -a pci nonfree 0300

Before the installation of the GPU driver, everything is just OK.

I searched for the solution and it seems like the current situation is very similar to this topic Gnome "freeze" after login, which infers to the gnome-extension-dash-to-dock. Yet, I tried to remove the extension but nothing changed for the freezing login. Has anyone come across such a problem? THX for your help and the followings are the specs and nvidia-driver info of my PC.

nby@homemanjaro ~> neofetch
██████████████████  ████████   nby@homemanjaro 
██████████████████  ████████   --------------- 
██████████████████  ████████   OS: Manjaro Linux x86_64 
██████████████████  ████████   Host: BATTLE-AX B760M-F PRO 
████████            ████████   Kernel: 6.9.12-3-MANJARO 
████████  ████████  ████████   Uptime: 1 hour 
████████  ████████  ████████   Packages: 1524 (pacman), 16 (flatpak) 
████████  ████████  ████████   Shell: bash 5.2.32 
████████  ████████  ████████   Resolution: 3840x2160 
████████  ████████  ████████   DE: GNOME 46.4 
████████  ████████  ████████   WM: Mutter 
████████  ████████  ████████   WM Theme: Custom-Accent-Colors 
████████  ████████  ████████   Theme: Adw-dark [GTK2/3] 
████████  ████████  ████████   Icons: Papirus-Dark-Maia [GTK2/3] 
                               Terminal: gnome-terminal 
                               CPU: 12th Gen Intel i5-12490F (12) @ 4.600GHz 
                               GPU: NVIDIA GeForce GTX 1060 6GB 
                               Memory: 5096MiB / 15830MiB 

                                                       
                                                       

nby@homemanjaro ~ [1]> nvidia-smi
Sat Sep  7 16:36:04 2024       
+-----------------------------------------------------------------------------------------+
| NVIDIA-SMI 550.107.02             Driver Version: 550.107.02     CUDA Version: 12.4     |
|-----------------------------------------+------------------------+----------------------+
| GPU  Name                 Persistence-M | Bus-Id          Disp.A | Volatile Uncorr. ECC |
| Fan  Temp   Perf          Pwr:Usage/Cap |           Memory-Usage | GPU-Util  Compute M. |
|                                         |                        |               MIG M. |
|=========================================+========================+======================|
|   0  NVIDIA GeForce GTX 1060 6GB    Off |   00000000:01:00.0  On |                  N/A |
|  6%   55C    P0             35W /  170W |     848MiB /   6144MiB |      0%      Default |
|                                         |                        |                  N/A |
+-----------------------------------------+------------------------+----------------------+
                                                                                         
+-----------------------------------------------------------------------------------------+
| Processes:                                                                              |
|  GPU   GI   CI        PID   Type   Process name                              GPU Memory |
|        ID   ID                                                               Usage      |
|=========================================================================================|
|    0   N/A  N/A       838      G   /usr/lib/Xorg                                 346MiB |
|    0   N/A  N/A       941      G   /usr/bin/gnome-shell                          143MiB |
|    0   N/A  N/A      3062      G   /usr/bin/gnome-control-center                  16MiB |
|    0   N/A  N/A      4275      G   /home/nby/software/firefox/firefox-bin        336MiB |
+-----------------------------------------------------------------------------------------+

Hi @nimble2005 ,

I see you’ve been here before, so you should know this, but in order for us, or anyone for that matter, to be able to provide assistance, more information is necessary. To that end, please see:

Please also note and heed: Forum Rules - Manjaro

Hope you manage!


:bangbang: Tip: :bangbang:

Please do not post images of text. Instead, to provide terminal output, copy the text you wish to share, and paste it here, surrounded by three (3) backticks, a.k.a grave accents. Like this:

```
pasted text
```

Or three (3) tilde signs, like this:

~~~
pasted text
~~~

This will just cause it to be rendered like this:

Portaest sed
elementum
cursus nisl nisi
hendrerit ac quis
sit
adipiscing
tortor sit leo commodo.

Instead of like this:

Portaest sed elementum cursus nisl nisi hendrerit ac quis sit adipiscing tortor sit leo commodo.

Alternatively, paste the text you wish to format as terminal output, select all pasted text, and click the </> button on the taskbar. This will indent the whole pasted section with one TAB, causing it to render the same way as described above.

Thereby improving legibility and making it much easier for those trying to be of assistance.


:bangbang::bangbang: Additionally

If your language isn’t English, please prepend any and all terminal commands with LC_ALL=C. For example:

LC_ALL=C bluetoothctl

This will just cause the terminal output to be in English, making it easier to understand and debug.

Please edit your post accordingly.


neofetch does not provide enogh info.

Please use

inxi -Fxxxxc0
nby@homemanjaro ~> inxi -Fxxxxc0
System:
  Host: homemanjaro Kernel: 6.9.12-3-MANJARO arch: x86_64 bits: 64 compiler: gcc v: 14.2.1
    clocksource: tsc
  Console: pty pts/1 DM: GDM v: 46.2 Distro: Manjaro base: Arch Linux
Machine:
  Type: Desktop System: Colorful And Development product: BATTLE-AX B760M-F PRO v: N/A
    serial: <superuser required>
  Mobo: Colorful And Development model: BATTLE-AX B760M-F PRO v: V20
    serial: <superuser required> uuid: <superuser required> UEFI: American Megatrends LLC. v: 1005
    date: 10/11/2023
Battery:
  Device-1: hidpp_battery_0 model: Logitech Wireless Mouse M545/M546 serial: 49-28-dc-3a
    charge: 55% (should be ignored) rechargeable: yes status: discharging
CPU:
  Info: 6-core model: 12th Gen Intel Core i5-12490F bits: 64 type: MT MCP smt: enabled
    arch: Alder Lake rev: 2 cache: L1: 480 KiB L2: 7.5 MiB L3: 20 MiB
  Speed (MHz): avg: 2989 high: 4000 min/max: 800/4600 cores: 1: 4000 2: 4000 3: 3793 4: 3791
    5: 3940 6: 4000 7: 1432 8: 2682 9: 2615 10: 2428 11: 800 12: 2390 bogomips: 71904
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
Graphics:
  Device-1: NVIDIA GP106 [GeForce GTX 1060 6GB] vendor: ZOTAC driver: nvidia v: 550.107.02
    arch: Pascal pcie: speed: 2.5 GT/s lanes: 16 ports: active: none off: DP-3 empty: DP-1, DP-2,
    DVI-D-1, HDMI-A-1 bus-ID: 01:00.0 chip-ID: 10de:1c03 class-ID: 0300
  Display: unspecified server: X.org v: 1.21.1.13 with: Xwayland v: 24.1.2
    compositor: gnome-shell driver: X: loaded: N/A failed: nvidia gpu: nvidia,nvidia-nvswitch note: X
    driver n/a, try sudo/root tty: 129x36
  Monitor-1: DP-3 model: KOIOS K2720UD serial: 0000000000000 res: 3840x2160 dpi: 163
    size: 600x330mm (23.62x12.99") diag: 685mm (27") modes: max: 3840x2160 min: 640x480
  Monitor-2: Unknown-1 size-res: N/A in console modes: 1920x1200
  API: EGL v: 1.5 hw: drv: nvidia platforms: device: 0 drv: nvidia device: 2 drv: swrast
    surfaceless: drv: nvidia inactive: gbm,wayland,x11,device-1
  API: OpenGL v: 4.6.0 compat-v: 4.5 vendor: mesa v: 24.1.6-arch1.1 note: console (EGL sourced)
    renderer: NVIDIA GeForce GTX 1060 6GB/PCIe/SSE2, llvmpipe (LLVM 18.1.8 256 bits)
Audio:
  Device-1: Intel Raptor Lake High Definition Audio driver: snd_hda_intel v: kernel
    bus-ID: 00:1f.3 chip-ID: 8086:7a50 class-ID: 0403
  Device-2: NVIDIA GP106 High Definition Audio vendor: ZOTAC driver: snd_hda_intel v: kernel
    pcie: speed: 8 GT/s lanes: 16 bus-ID: 01:00.1 chip-ID: 10de:10f1 class-ID: 0403
  API: ALSA v: k6.9.12-3-MANJARO status: kernel-api with: aoss type: oss-emulator
  Server-1: JACK v: 1.9.22 status: off
  Server-2: PipeWire v: 1.2.2 status: active with: 1: pipewire-pulse status: active
    2: wireplumber status: active 3: pipewire-alsa type: plugin
Network:
  Device-1: Realtek RTL8111/8168/8211/8411 PCI Express Gigabit Ethernet driver: r8169 v: kernel
    pcie: speed: 2.5 GT/s lanes: 1 port: 3000 bus-ID: 03:00.0 chip-ID: 10ec:8168 class-ID: 0200
  IF: enp3s0 state: up speed: 1000 Mbps duplex: full mac: 00:e0:4c:68:19:82
Bluetooth:
  Device-1: Cambridge Silicon Radio Bluetooth Dongle (HCI mode) driver: btusb v: 0.8 type: USB
    rev: 2.0 speed: 12 Mb/s lanes: 1 bus-ID: 1-3:10 chip-ID: 0a12:0001 class-ID: e001
  Report: rfkill ID: hci0 rfk-id: 1 state: up address: see --recommends
Drives:
  Local Storage: total: 2.5 TiB used: 1.48 TiB (59.1%)
  ID-1: /dev/nvme0n1 vendor: Samsung model: SSD 970 EVO 500GB size: 465.76 GiB speed: 31.6 Gb/s
    lanes: 4 tech: SSD serial: S466NX0KA87260W fw-rev: 2B2QEXE7 temp: 34.9 C scheme: GPT
  ID-2: /dev/sda vendor: Seagate model: ST2000DM008-2FR102 size: 1.82 TiB speed: 6.0 Gb/s
    tech: HDD rpm: 7200 serial: WFL0YSG3 fw-rev: 0001 scheme: MBR
  ID-3: /dev/sdb vendor: Samsung model: SSD 850 EVO 250GB size: 232.89 GiB speed: 6.0 Gb/s
    tech: SSD serial: S3R1NF0J863304M fw-rev: 3B6Q scheme: GPT
Partition:
  ID-1: / size: 457.09 GiB used: 39.24 GiB (8.6%) fs: ext4 dev: /dev/nvme0n1p2
  ID-2: /boot/efi size: 299.4 MiB used: 300 KiB (0.1%) fs: vfat dev: /dev/nvme0n1p1
Swap:
  Alert: No swap data was found.
Sensors:
  System Temperatures: cpu: 36.8 C mobo: N/A gpu: nvidia temp: 50 C
  Fan Speeds (rpm): N/A gpu: nvidia fan: 0%
Info:
  Memory: total: 16 GiB available: 15.46 GiB used: 6.65 GiB (43.0%)
  Processes: 347 Power: uptime: 4h 45m states: freeze,mem,disk suspend: deep wakeups: 0
    hibernate: platform Init: systemd v: 256 default: graphical
  Packages: 1540 pm: pacman pkgs: 1524 pm: flatpak pkgs: 16 Compilers: clang: 18.1.8 gcc: 14.2.1
    Shell: fish v: 3.7.1 default: Bash v: 5.2.32 running-in: pty pts/1 (SSH) inxi: 3.3.35

the following is the status of gdm when the freezing condition happens

nby@homemanjaro ~> sudo systemctl status gdm
● gdm.service - GNOME Display Manager
     Loaded: loaded (/usr/lib/systemd/system/gdm.service; enabled; preset: disabled)
     Active: active (running) since Sat 2024-09-07 15:43:36 CST; 4h 45min ago
 Invocation: 1cf0a405ceea45f1a9be156a043deef5
   Main PID: 781 (gdm)
      Tasks: 4 (limit: 18909)
     Memory: 6.9M (peak: 8.2M)
        CPU: 60ms
     CGroup: /system.slice/gdm.service
             └─781 /usr/bin/gdm

Sep 07 15:43:36 homemanjaro systemd[1]: Starting GNOME Display Manager...
Sep 07 15:43:36 homemanjaro systemd[1]: Started GNOME Display Manager.
Sep 07 15:43:40 homemanjaro gdm-autologin][806]: pam_systemd_home(gdm-autologin:account): New sd-bus connection (system-bus-pam->
Sep 07 15:43:40 homemanjaro gdm-autologin][806]: pam_unix(gdm-autologin:session): session opened for user nby(uid=1000) by nby(u>
Sep 07 15:43:40 homemanjaro gdm-autologin][806]: pam_systemd(gdm-autologin:session): New sd-bus connection (system-bus-pam-syste>
Sep 07 15:43:40 homemanjaro gdm-autologin][806]: gkr-pam: couldn't unlock the login keyring.
Sep 07 15:43:40 homemanjaro gdm[781]: Gdm: on_display_added: assertion 'GDM_IS_REMOTE_DISPLAY (display)' failed
Sep 07 15:43:40 homemanjaro gdm[781]: Gdm: on_display_removed: assertion 'GDM_IS_REMOTE_DISPLAY (display)' failed

THX for the help

Disable autologin - it might solve your issue.

hi, thanks for the help. I tried to disable autologin, but it does not work.

nby@homemanjaro ~> cat /etc/gdm/custom.conf 
# GDM configuration storage

[daemon]
AutomaticLogin=nby
AutomaticLoginEnable=False
# Uncomment the line below to force the login screen to use Xorg
#WaylandEnable=false

[security]

[xdmcp]

[chooser]

[debug]
# Uncomment the line below to turn on debugging
#Enable=true

Since it is an issue with the proprietary driver one suspect if you have the correct parameters for loading nvidia drivers with the kernel.

You did note the option to enable debugging?

Really appreciate your reply and help. Could you be more specific? I do not really get what you are meaning, such as “enable debugging”?

In the gdm/custom.conf

While the issue is not the same - the instructions for setting up Nvidia - are the same

Also see → [HowTo] Use Wayland with proprietary NVIDIA drivers

I don’t have a system with Nvidia - too much trouble for what it was worth to me.

OK, thanks for the help! I guess it is some incompatibility between gnome desktop and nvidia driver.