Skip to content

High CPU usage when screen is locked. #20

Description

@FerranAD

When screen is locked there is one CPU thread maxed out all the time (checked SSHing when the screen is locked). The process using the CPU is `~/.nix-profile/bin/Hyprland --watchdog-fd 4, and once screen is unlocked the CPU goes back to normal.

Disabling catppuccin theme for hyprlock fixes the issue. My config is as follows:

  services.hypridle = {
    enable = true;
    settings = {
      general = {
        before_sleep_cmd = "loginctl lock-session";
        after_sleep_cmd = "hyprctl dispatch dpms on";
        ignore_dbus_inhibit = false;
        lock_cmd = "${pkgs.hyprlock}/bin/hyprlock --immediate";
      };
      listener = [
        {
          timeout = 300;
          on-timeout = "${pkgs.hyprlock}/bin/hyprlock --immediate";
        }
      ];
    };
  };

  programs.hyprlock = {
    enable = true;
    settings = {
      general = {
          hide_cursor = false;
      };
    };

Running journalctl --user | grep hyprlock returns:

Feb 25 16:52:29 albus hypridle[221457]: [LOG] Executing /nix/store/y6bm9cxwqy3ws7x359cpyrxfb1pakimc-hyprlock-0.9.2/bin/hyprlock --immediate
Feb 25 16:52:29 albus hypridle[222018]: Config error in file /nix/store/a26y4yhnqd538q2248jyyys7zf2z6x06-catppuccin-hyprlock-0 at line 54: config option <:monitor> does not exist.
Feb 25 16:52:29 albus hypridle[222018]: Config error in file /nix/store/a26y4yhnqd538q2248jyyys7zf2z6x06-catppuccin-hyprlock-0 at line 55: config option <:text> does not exist.
Feb 25 16:52:29 albus hypridle[222018]: Config error in file /nix/store/a26y4yhnqd538q2248jyyys7zf2z6x06-catppuccin-hyprlock-0 at line 56: config option <:color> does not exist.
Feb 25 16:52:29 albus hypridle[222018]: Config error in file /nix/store/a26y4yhnqd538q2248jyyys7zf2z6x06-catppuccin-hyprlock-0 at line 57: config option <:font_size> does not exist.
Feb 25 16:52:29 albus hypridle[222018]: Config error in file /nix/store/a26y4yhnqd538q2248jyyys7zf2z6x06-catppuccin-hyprlock-0 at line 58: config option <:font_family> does not exist.
Feb 25 16:52:29 albus hypridle[222018]: Config error in file /nix/store/a26y4yhnqd538q2248jyyys7zf2z6x06-catppuccin-hyprlock-0 at line 59: config option <:position> does not exist.
Feb 25 16:52:29 albus hypridle[222018]: Config error in file /nix/store/a26y4yhnqd538q2248jyyys7zf2z6x06-catppuccin-hyprlock-0 at line 60: config option <:halign> does not exist.
Feb 25 16:52:29 albus hypridle[222018]: Config error in file /nix/store/a26y4yhnqd538q2248jyyys7zf2z6x06-catppuccin-hyprlock-0 at line 61: config option <:valign> does not exist.
Feb 25 16:52:40 albus hypridle[222018]: [LOG] auth: authenticated for hyprlock

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions