You are not logged in.

#1 2023-01-31 14:34:49

hully
Member
Registered: 2022-11-14
Posts: 164

[SOLVED] Avoid disconnecting from wifi when lid closes

When I close my lid, it disconnects from wifi and bluetooth.

How can I prevent that?

At least the wifi.

I didn't implement this.

I didn't modify my udev rules for this.

I didn't ask for this.

This is so horrible.

I wish I had installed Windows 11.

Last edited by hully (2023-01-31 16:47:38)

Offline

#2 2023-01-31 14:42:58

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,508

Re: [SOLVED] Avoid disconnecting from wifi when lid closes

Sounds like you're going into suspend. Set it not to.

It's not too late to install Windows.

Offline

#3 2023-01-31 14:46:24

d.ALT
Member
Registered: 2019-05-10
Posts: 956

Re: [SOLVED] Avoid disconnecting from wifi when lid closes


<49,17,III,I>    Fama di loro il mondo esser non lassa;
<50,17,III,I>    misericordia e giustizia li sdegna:
<51,17,III,I>    non ragioniam di lor, ma guarda e passa.

Offline

#4 2023-01-31 14:46:38

hully
Member
Registered: 2022-11-14
Posts: 164

Re: [SOLVED] Avoid disconnecting from wifi when lid closes

Sounds like you're going into suspend. Set it not to.

I didn't ask for suspend on lid closing, so I don't know how to unset it.

Is it possible that GNOME set it up for me?

I have both GNOME and Hyprland installed.

It's not too late to install Windows.

I would if only I could get a reimbursement for my Arch license.

Last edited by hully (2023-01-31 14:48:18)

Offline

#5 2023-01-31 14:47:50

hully
Member
Registered: 2022-11-14
Posts: 164

Re: [SOLVED] Avoid disconnecting from wifi when lid closes

I don't know why are you quoting this.

They are two different questions.

This question is: "how to avoid suspend mode on lid close" or whatever is happening.

That question is: "how to have bluetooth reconnect with the correct profile".

Aren't they two different questions?

Offline

#6 2023-01-31 15:01:27

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 72,682

Re: [SOLVED] Avoid disconnecting from wifi when lid closes

Is it possible that GNOME set it up for me?

Rather systemd: https://man.archlinux.org/man/core/syst … .conf.5.en
Though I'll bet your right arm that gnome has a GUI config for that.

if only I could get a reimbursement for my Arch license.

Unless that's a joke you've been scammed.
Btw. windows will also suspend the system when closing the lid any by default.

And if you want to continue to use arch, I suggest to first learn how to stop whining. It's not helping you.

Offline

#7 2023-01-31 15:06:50

hully
Member
Registered: 2022-11-14
Posts: 164

Re: [SOLVED] Avoid disconnecting from wifi when lid closes

Rather systemd: https://man.archlinux.org/man/core/syst … .conf.5.en

In `/etc/systemd/logind.conf` I have:

#HandleLidSwitch=suspend
#HandleLidSwitchExternalPower=suspend
#HandleLidSwitchDocked=ignore

As you can see they are commented out?

Unless that's a joke you've been scammed.

I knew there was something fishy about that guy with the eye patch selling operating systems around the corner.

Last edited by hully (2023-01-31 15:07:37)

Offline

#8 2023-01-31 15:08:44

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 72,682

Re: [SOLVED] Avoid disconnecting from wifi when lid closes

As you can see they are commented out?

So the listed defautls are used. As you perceived.

Offline

#9 2023-01-31 15:11:22

hully
Member
Registered: 2022-11-14
Posts: 164

Re: [SOLVED] Avoid disconnecting from wifi when lid closes

seth wrote:

As you can see they are commented out?

So the listed defautls are used. As you perceived.

# Entries in this file show the compile time defaults. Local configuration

I knew I shouldn't have skipped those comments at the beginning. Thanks

Last edited by hully (2023-01-31 15:12:11)

Offline

#10 2023-01-31 15:33:47

hully
Member
Registered: 2022-11-14
Posts: 164

Re: [SOLVED] Avoid disconnecting from wifi when lid closes

If the system is inserted in a docking station, or if more than one display is connected, the action specified by HandleLidSwitchDocked= occurs; if the system is on external power the action (if any) specified by HandleLidSwitchExternalPower= occurs; otherwise the HandleLidSwitch= action occurs.

1. What is a "docking station"?

2. The integrated monitor of my laptop counts as one display? So when I connect my external monitor, that's two displays?

And so if I close the lid when my external monitor is connected, HandleLidSwitchDocked occurs. If I close it without my external monitor connected, HandleLidSwitch occurs?

Does that explain why I have to connect my external monitor with the lid open, and close it afterwards, otherwise it won't work?

Offline

#11 2023-01-31 15:43:55

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 72,682

Re: [SOLVED] Avoid disconnecting from wifi when lid closes

I'm pretty sure that if you make an effort, maybe remember that google exists and what you learned from Sesame Street, you'll be able to answer all those questions yourself.

Offline

#12 2023-01-31 16:19:26

hully
Member
Registered: 2022-11-14
Posts: 164

Re: [SOLVED] Avoid disconnecting from wifi when lid closes

seth wrote:

I'm pretty sure that if you make an effort, maybe remember that google exists and what you learned from Sesame Street, you'll be able to answer all those questions yourself.

I'm not American, we don't have Sesame Street here.

We had "L'Albero Azzurro" (the light blue tree).

It featured a quack-like animal that managed to talk.

But it had not the same educational-content at Sesame Street.

You should know Seth, you are the God of foreigners among other things.

Well, I guess my next question would be how to wake from suspend when I connect my external monitor through HDMI.

My rule to connect it with the lid open is making much more sense now.

Last edited by hully (2023-01-31 16:47:25)

Offline

Board footer

Powered by FluxBB