swaywm, closing and opening of laptop lid connects to wrong wifi station
Hi, I have a wifi router and an extender/repeater. I connect to the extender's station to get the best signal, but when I close the lid on my laptop and then open it again, wifi resumes with a connection to my router's station, thereby losing about 30% signal strength so I need to manually disconnect from it and connect to the extender. I can't figure out where this happens. It is not in my sway config file and it doesn't seem to be in /etc/logind.conf either. Does anybody know how to configure this properly? Thanks, Morten
Maybe you could try forgetting the router's network name? Assuming that the two show up as different entries in the network list. On 2023/9/7 9:01, Morten Bo Johansen wrote:
Hi,
I have a wifi router and an extender/repeater. I connect to the extender's station to get the best signal, but when I close the lid on my laptop and then open it again, wifi resumes with a connection to my router's station, thereby losing about 30% signal strength so I need to manually disconnect from it and connect to the extender.
I can't figure out where this happens. It is not in my sway config file and it doesn't seem to be in /etc/logind.conf either.
Does anybody know how to configure this properly?
Thanks, Morten
Aaron Liu <aaronliu0130@gmail.com> wrote:
Maybe you could try forgetting the router's network name? Assuming that the two show up as different entries in the network list.
Seems like a good idea. How do I do it? I use iwd (which I should have mentioned the first time). Thanks, Morten
On 2023-09-07 at 22:44:58 +0200, Morten Bo Johansen <mortenbo@hotmail.com> wrote:
Aaron Liu <aaronliu0130@gmail.com> wrote:
Maybe you could try forgetting the router's network name? Assuming that the two show up as different entries in the network list.
Seems like a good idea. How do I do it? I use iwd (which I should have mentioned the first time).
You could try iwgtk (I can't verify that, though, because gtk4 doesn't work well enough on my rig), or you could delete the router's entry in /var/lib/iwd (you'll need root access).
On 23-09-07 22:44:58, Morten Bo Johansen wrote:
Aaron Liu <aaronliu0130@gmail.com> wrote:
Maybe you could try forgetting the router's network name? Assuming that the two show up as different entries in the network list.
Seems like a good idea. How do I do it? I use iwd (which I should have mentioned the first time).
Thanks, Morten
Maybe this helps https://wiki.archlinux.org/title/Iwd#Manage_known_networks To list networks you have connected to previously: [iwd]# known-networks list To forget a known network: [iwd]# known-networks <SSID> forget
moxie.arch@posteo.net <moxie.arch@posteo.net> wrote:
Maybe this helps https://wiki.archlinux.org/title/Iwd#Manage_known_networks
To list networks you have connected to previously:
[iwd]# known-networks list
To forget a known network:
[iwd]# known-networks <SSID> forget
This worked like a charm. Thank you!
participants (4)
-
2QdxY4RzWzUUiLuE@potatochowder.com
-
Aaron Liu
-
Morten Bo Johansen
-
moxie.arch@posteo.net