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

Logging in/logging out kills internet. #272

Open
ThatOneCalculator opened this issue Feb 2, 2021 · 8 comments
Open

Logging in/logging out kills internet. #272

ThatOneCalculator opened this issue Feb 2, 2021 · 8 comments
Labels
bug This issue or pull request discusses a bug ok This issue or pull request was confirmed/reviewed

Comments

@ThatOneCalculator
Copy link

ThatOneCalculator commented Feb 2, 2021

OS: Arch GNU/Linux
WM: BSPWM

Issue:
After logging out/logging back in on a session, the second login will kill my wifi connection. Rebooting "solves" the issue.

Reproducible:
Every time.

Logout method:
bspc quit

Version:
Ly version v0.5.2.r1.g77f6958

@willww64
Copy link

Yes, other DM like sddm, gdm works well.
I think it's a bug related to "session" handling. After first login the $XDG_SESSION_ID is 1, and loginctl show-session 1 output State=active. But after logout and login back, the $XDG_SESSION_ID is unset, loginctl show-session 1 output State=closing.

@ThatOneCalculator
Copy link
Author

So what can I do to resolve it

@markstos
Copy link

I confirmed this after suspend/resume with Sway:

❯ loginctl show-session 1 | grep State
State=closing

I found the documentation for what "State=closing" means here:

user not logged in, and not lingering, but some processes are still around

That's clearly wrong, as I was logged when I ran the loginctl command.

As a workaround I was able to set the bluetooth.target systemd service to be restarted after a suspend/resume, which also fixes the issue.

@nullgemm nullgemm added bug This issue or pull request discusses a bug ok This issue or pull request was confirmed/reviewed labels Apr 26, 2022
@opossalite
Copy link

I have a similar issue on Arch with bspwm. I noticed after logging out and logging back in, I cannot shut down my system without a password, it requires a sudo password. The first time I log in, I can power down no problem. This is using both "shutdown now" and "systemctl poweroff". I ran the command @markstos mentioned above, and my system also says "State=closing" after logging out and logging back in again.

@markstos
Copy link

I eventually gave up on ly and just log directly into Sway from console login prompt now. This solved all problems related to running a display manager.

@AnErrupTion
Copy link
Collaborator

@ThatOneCalculator @markstos @opossalite Can you guys test if the issue is fixed with master, please?

@ThatOneCalculator
Copy link
Author

Ah, I no longer use ly, as I now use a wayland compositor and gdm ^^;

@markstos
Copy link

I no longer use Ly either.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue or pull request discusses a bug ok This issue or pull request was confirmed/reviewed
Projects
None yet
Development

No branches or pull requests

6 participants