Does anyone how how I can diagnose and fix this problem:

Sometimes, but not always, when shutting down the process does not actually complete and the computer does not turn off.

The screen turns off but the keyboard backlight is still responsive, the fan is still going and the power-on LED is lit. Because the screen is turned off I can’t interact graphically with the computer and have to just hold down the power button and do a hard reboot.

I haven’t tested it properly but I get the feeling it happens more often if I have been doing audio work.

Debian 13 GNOME 48 Intel Core Ultra 7 Laptop

  • SteveTech@programming.dev
    link
    fedilink
    English
    arrow-up
    4
    ·
    3 days ago

    When it happens, try pressing Alt + SysRq(/PrtSc) + o. If that turns off your computer, then the kernel is still running and something is preventing shutdown; if it doesn’t, either SysRq is disabled, or ACPI is broken.

  • artiman@piefed.social
    link
    fedilink
    English
    arrow-up
    4
    ·
    edit-2
    4 days ago

    I have had this issue with Hyprland in arch I could not for the life of me get it to shut down I had to just unplug It although It didn’t fix It when I halted (halt is what pressing power button by default does), I get power outages every week in Iran, so the chance of corruption is not astronomically higher

  • muhyb@programming.dev
    link
    fedilink
    arrow-up
    3
    ·
    4 days ago

    Switch to a TTY and do “sudo poweroff”. See what happens. I feel like this is more likely a systemd issue.

      • muhyb@programming.dev
        link
        fedilink
        arrow-up
        1
        ·
        4 days ago

        I mean, give the shutdown command like this, not after already choosing it via menu. This way you may catch what’s wrong. Also, you can check the logs when you boot next time via journalctl -b -1 but to make it easier maybe this one should be more helpful journalctl -b -1 | grep -i shutdown

      • HakunaHafada@lemmy.dbzer0.com
        link
        fedilink
        arrow-up
        0
        ·
        edit-2
        4 days ago

        I was also experiencing your same issue, just tried @muhyb@programming.dev’s recommendation, and my computer shut off completely as desired.

        Edit: I also opened a terminal and “sudo poweroff” and “sudo shutdown now” both work, so for me, I didn’t need to switch to a TTY console.

          • HakunaHafada@lemmy.dbzer0.com
            link
            fedilink
            arrow-up
            1
            ·
            3 days ago

            Switching to a TTY screen and doing the sudo poweroff command. In my testing, I also found that opening a terminal in the regular desktop environment also worked.

  • rozodru@piefed.social
    link
    fedilink
    English
    arrow-up
    0
    ·
    4 days ago

    something with the DE I suspect. KDE will do the same thing. never had the issue with another compositor/WM but with KDE Plasma every now and again the exact same thing you’re experiencing would happen. shut down, something in Plasma is still going and same results as you.