My GUI is gone and Nvidia smi is not working

Hi nvidia support team, i have dgx-spark here, founders edition, i was installing gnome extensions for clipboard, as soon as i reboot, my gui is gone, nvidia smi is gone, + i got into UEFI and GRUB, in grub also tried everything and in UEFI also, idk what to do here, can anyone help

Please check the status of your gdm and gnome-remote-desktop services. If they are inactive you can start the desktop-related services with systemctl start gdm gnome-remote-desktop cups cups-browsed

how to check status of those you mentioned?

sudo systemctl status gmd
sudo systemctl status gnome-remote-desktop

sudo systemctl status gmd
sudo systemctl status gnome-remote-desktop

#!/bin/sh

# Interactive mode switcher for NVIDIA DGX OS (POSIX-compliant)

require_root() {
    if [ "$(id -u)" != "0" ]; then
        echo "This script must be run as root." >&2
        exit 1
    fi
}

switch_to_text_mode() {
    echo "→ Stopping GDM..."
    systemctl stop gdm

    echo "→ Setting default target to multi-user.target..."
    systemctl set-default multi-user.target

    echo "✅ Switched to text mode. Reboot if needed."
}

restore_gui_mode() {
    echo "→ Setting default target to graphical.target..."
    systemctl set-default graphical.target

    echo "→ Adding gdm.service to graphical.target wants..."
    systemctl add-wants graphical.target gdm.service

    echo "→ Starting GDM..."
    systemctl start gdm

    echo "→ Restarting nvidia-persistenced..."
    systemctl restart nvidia-persistenced

    echo "✅ GUI mode restored. You should see the login screen shortly."
}

print_menu() {
    echo "==============================="
    echo " NVIDIA DGX OS Mode Switcher"
    echo "==============================="
    echo " 1) Switch to Text Mode"
    echo " 2) Restore GUI Mode"
    echo " 3) Exit"
    echo "-------------------------------"
    printf "Enter your choice [1-3]: "
}

main() {
    require_root
    while :; do
        print_menu
        read choice
        case "$choice" in
            1)
                switch_to_text_mode
                ;;
            2)
                restore_gui_mode
                ;;
            3)
                echo "Exiting."
                exit 0
                ;;
            *)
                echo "⚠️ Invalid choice. Please enter 1, 2, or 3."
                ;;
        esac
        echo ""
    done
}

main "$@"

getting this @aniculescu

@Sanyam0605 try systemctl status gdm.service and not gmd.serviceJust a typo.

output:

gdm.service - GNOME DISPLAY MANAGER
loaded: loaded (/usr/lib/systemd/system/gdm.service; static)
Active: inactive (dead)

Your system is running but your GUI needs some fixing!

Check if the nvidia driver is loaded with sudo lsmod | grep nvidia

If the driver is loaded try changing runlevels and watch log output for issues:

sudo systemctl isolate multi-user.target

sudo systemctl isolate graphical.target

The fist command will change runlevel to non-GUI, and the second back to desktop.

If the GUI doesn’t start check the logs:

journalctl -b for current boot

journalctl -b -1 for previous boot

nope nvidia is not loading, even i write nivida-smi its not showing nvidia, driver not loaded is coming

see if u can help here @aniculescu or other people in Nvidia support team, would much appreciate!

would really appreciate the help from anyone

What about starting the service + try to system update (sudo apt update;sudo apt full-upgrade)

systemctl start gdm.service

Please follow my original guidance and try to activate your desktop related services. Doing a system update as @dobs mentioned is also not a bad idea
Commands to run:

sudo apt update
sudo apt dist-upgrade
sudo fwupdmgr refresh
sudo fwupdmgr upgrade
sudo reboot 

This will reboot your Spark.
Afterwards, if you still don’t have GUI, run
systemctl start gdm gnome-remote-desktop cups cups-browsed

GUI didn’t start, then i ran systemctl commands this came:

Failed to start gdm.service → interactive authentication required
Failed to start gnome-remote-desktop.service → interactive auth required
and same for others

Please run the last command with sudo privileges
sudo systemctl start gdm gnome-remote-desktop cups cups-browsed

its stuck here, and that underscore is continuously blinking, after the above commands

This certainly seems like an issue with your driver installation? The gnome-extensions you installed may not be compatible. Which extensions did you try to install? Exact commands would be helpful.

  • You can try the update process to see if it fixes your packages
sudo apt update
sudo apt dist-upgrade

thank u so so so much!! FInally worked, via reimaging from clean slate!!