Jovian-Experiments / Jovian-NixOS

Discussions: https://matrix.to/#/#Jovian-Experiments:matrix.org
https://jovian-experiments.github.io/Jovian-NixOS/
MIT License
491 stars 51 forks source link

Can't return to gamescope-session #267

Open thomascft opened 7 months ago

thomascft commented 7 months ago

I'm currently running the latest commit with nixpkgs-unstable on my Steam Deck. Here's my Jovian config

    jovian.steam = {
        enable = true;
        user = "thomas";
        autoStart = true;
        desktopSession = "hyprland";
    };

I'm able to switch to Hyprland with Switch to Desktop in the Steam power menu. When exiting Hyprland I'm met with a blank screen on tty1, and when trying to switch to other ttys I'm automatically switched back to tty1.

K900 commented 7 months ago

Hyprland doesn't know how to clean up after itself properly, it's been reported upstream somewhere and nothing happened.

thomascft commented 7 months ago

Sounds good, I found the thread and commented.

K900 commented 7 months ago

Can you link the Hyprland issue here for cross-reference?

thomascft commented 7 months ago

I got you: https://github.com/hyprwm/Hyprland/issues/4226

hotburger commented 6 months ago

I also have this issue with sway. This is how I work around it.

  environment.systemPackages = with pkgs; [

    (writers.writeDashBin "sway-logout" ''
      ${systemd}/bin/systemctl --user unset-environment WAYLAND_DISPLAY SWAYSOCK
      ${sway}/bin/swaymsg exit
    '')
  ];
wvffle commented 4 months ago

I also have this issue with sway. This is how I work around it.

While that may work for sway, the thing that worked for me in Hyprland is:

    (pkgs.writeShellScriptBin "hyprexit" ''
      ${hyprland}/bin/hyprctl dispatch exit
      ${systemd}/bin/loginctl terminate-user ${user}
    '')