The sleep functionality of the computer doesn't work, but did before

Whenever I click “Sleep” In KDE Plasma the screen goes black, but It doesn’t actually sleep, and power off the Fan and stuff.

Hello,

You may want to try running systemd-inhibit --list to see if there is any background software that is blocking suspend. You can also try running systemctl suspend, which forces a system-level suspend bypassing KDE.

If this doesn’t work, could you provide more details about your setup (e.g., hardware, version, if you are running NVIDIA drivers from RPM fusion)? After you try suspending, could you also provide the output of this journalctl -b -1 -e which shows logs and may show what failed?

Is powerdevil suppose to be In mode “block”?

└─$ systemd-inhibit --list
WHO            UID  USER       PID  COMM            WHAT                                                                       WHY                                                        MODE 
ModemManager   0    root       1520 ModemManager    sleep                                                                      ModemManager needs to reset devices                        delay
NetworkManager 0    root       1365 NetworkManager  sleep                                                                      NetworkManager needs to turn off networks                  delay
UPower         0    root       1393 upowerd         sleep                                                                      Pause device polling                                       delay
PowerDevil     1000 gitxpresso 7269 org_kde_powerde handle-power-key:handle-suspend-key:handle-hibernate-key:handle-lid-switch KDE handles power events                                   block
compositor     1000 gitxpresso 6451 kwin_wayland    sleep                                                                      Ensuring that the screen gets locked before going to sleep delay

5 inhibitors listed.

When running systemctl suspend It turns off the screen, but not the fan and other components.

Yes, PowerDevil typically registers in systemd-inhibit in block mode. Since systemctl suspend also did not work, the problem is a system-level issue. Suspending puts your computer in “Suspend to RAM” (sleep mode).

From what I am gathering, you have a few options from here:

  1. You can look around your BIOS for any settings related to suspend. For example, there may be a setting called ACPI Suspend Type manages the Advanced Configuration and Power Interface (ACPI) sleep state the system enters when suspended. You may be on Power on Suspend mode instead of a more typical Suspend to RAM setting.
  2. This may be a kernel or driver issue, as certain hardware requires specific kernel parameters or drivers to properly manage fan control during sleep states. Updating your device may or may not resolve this, if this is the case. In particular, NVIDIA drivers have been known to cause issues occasionally.
  3. You have a peripheral device, or a background/desktop environment setting, that is interfering with your suspend state. You can try looking for any peripherals, or moving for example to power save mode/balanced power mode if you are on performance mode.

If you are not able to troubleshoot this with those options, please provide the system logs and hardware specs as previously stated.