Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't return to gamescope-session #267

Open
thomascft opened this issue Jan 16, 2024 · 6 comments
Open

Can't return to gamescope-session #267

thomascft opened this issue Jan 16, 2024 · 6 comments
Labels
1. type: bug Something isn't working 2. priority: 3. low 2. topic: system integration About our integration of Steam stuff within NixOS 3. status: upstream issue Issue or PR related to an upstream issue we are not handling

Comments

@thomascft
Copy link

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
Copy link
Contributor

K900 commented Jan 17, 2024

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

@thomascft
Copy link
Author

Sounds good, I found the thread and commented.

@K900
Copy link
Contributor

K900 commented Jan 17, 2024

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

@K900 K900 added 1. type: bug Something isn't working 3. status: upstream issue Issue or PR related to an upstream issue we are not handling 2. topic: system integration About our integration of Steam stuff within NixOS labels Jan 17, 2024
@thomascft
Copy link
Author

I got you: hyprwm/Hyprland#4226

@hotburger
Copy link
Contributor

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
Copy link

wvffle commented Apr 26, 2024

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}
    '')

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1. type: bug Something isn't working 2. priority: 3. low 2. topic: system integration About our integration of Steam stuff within NixOS 3. status: upstream issue Issue or PR related to an upstream issue we are not handling
Projects
None yet
Development

No branches or pull requests

5 participants