diff --git a/modules/desktop/graphics/labwc.config.nix b/modules/desktop/graphics/labwc.config.nix index 2d1880390..1b4a47770 100644 --- a/modules/desktop/graphics/labwc.config.nix +++ b/modules/desktop/graphics/labwc.config.nix @@ -40,6 +40,7 @@ let runtimeInputs = [ pkgs.systemd pkgs.dbus + pkgs.brightnessctl ]; text = @@ -52,6 +53,8 @@ let systemctl --user reset-failed systemctl --user stop ghaf-session.target systemctl --user start ghaf-session.target + # By default set system brightness to 100% which can be configured later + brightnessctl set 100% '' + cfg.extraAutostart; }; diff --git a/modules/desktop/profiles/graphics.nix b/modules/desktop/profiles/graphics.nix index 9d0156544..6aa9a454d 100644 --- a/modules/desktop/profiles/graphics.nix +++ b/modules/desktop/profiles/graphics.nix @@ -95,8 +95,6 @@ in WLR_NO_HARDWARE_CURSORS = if (cfg.renderer == "pixman") then 1 else 0; # 24 is default value set in labwc XCURSOR_SIZE = 24; - # To Fix "Fontconfig error : No writable cache directories" during new session login - XDG_CACHE_HOME = "$(mktemp -d)"; XKB_DEFAULT_LAYOUT = "us,ara,fi"; XKB_DEFAULT_OPTIONS = "grp:alt_shift_toggle"; # Set by default in labwc, but possibly not in other compositors diff --git a/modules/microvm/virtualization/microvm/guivm.nix b/modules/microvm/virtualization/microvm/guivm.nix index 7bcdbdbf2..ca194c6ab 100644 --- a/modules/microvm/virtualization/microvm/guivm.nix +++ b/modules/microvm/virtualization/microvm/guivm.nix @@ -245,11 +245,7 @@ in if config.ghaf.guest.kernel.hardening.graphics.enable then pkgs.linuxPackagesFor guest_graphics_hardened_kernel else - # TODO: with pkgs.linuxPackages_latest (6.10.2) default brightness - # value of ghaf system will change from 96000 (max brightness) to - # 4800 (5% of max brightness) which need to be debugged - # so, currently align Kernel version which is used by ghaf-host - config.boot.zfs.package.latestCompatibleLinuxPackages; + pkgs.linuxPackages_latest; # We need this patch to avoid reserving Intel graphics stolen memory for vm # https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/12103