You are not logged in.

#1 2022-12-26 18:27:28

cannibus
Member
Registered: 2022-12-26
Posts: 14

Wireless connection not working after reboot

After I have finished the installation, I rebooted. I immediatly checked if I had internet connection, but the output of ping google.com is:

ping: google.com: Temporary failure in name resolution

During the installation I was connected to my wifi and it worked just fine. One thing I noticed is that after the reboot, eth0 changed name to enp2s0f0 and wlan0 to wlp3s0.

This is the output of ip link: https://drive.google.com/file/d/1XIfKab … share_link
I tried to change the state to up, but it remained down. I used the command:

sudo ip link set dev wlp3s0 up

My network driver is ath9k, which is successfully loaded (I can see it when I lsmod | grep ath9k).
Can someone help me?

Offline

#2 2022-12-26 18:38:30

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 9,003
Website

Re: Wireless connection not working after reboot

How have you configured your wireless networking? Please share the relevant files.

I'm guessing you're not using iwd because of the interface name but there doesn't appear to be any substantive information in your OP.


Jin, Jîyan, Azadî

Offline

#3 2022-12-26 18:45:42

cannibus
Member
Registered: 2022-12-26
Posts: 14

Re: Wireless connection not working after reboot

No, I don't think I have configured it at all. How can I do it?
I don't have iwd installed. This is my first experience with arch linux

Offline

#4 2022-12-26 18:51:26

cannibus
Member
Registered: 2022-12-26
Posts: 14

Re: Wireless connection not working after reboot

Ok, I found the Network configuration/Wireless page, but still when I try to bring wlp3s0 up it remains down.

Offline

#5 2022-12-26 18:54:19

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 9,003
Website

Re: Wireless connection not working after reboot

cannibus wrote:

How can I do it?

https://wiki.archlinux.org/title/Iwd

EDIT:

cannibus wrote:

when I try to bring wlp3s0 up it remains down

Reboot after installing iwd. It needs to use the legacy interface nomenclature (ie, wlan0).

And please post actual commands and full output. Paraphrasing is bad.

Last edited by Head_on_a_Stick (2022-12-26 18:56:03)


Jin, Jîyan, Azadî

Offline

#6 2022-12-26 18:56:55

cannibus
Member
Registered: 2022-12-26
Posts: 14

Re: Wireless connection not working after reboot

Yes but since I don't have internet connection I can't installit. Anyway, this might be the origin of the problem: https://drive.google.com/file/d/1vaPv-j … share_link. How can I fix this?

Offline

#7 2022-12-26 18:58:49

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 9,003
Website

Re: Wireless connection not working after reboot

cannibus wrote:

since I don't have internet connection I can't installit

Load up the Arch live ISO, connect there (just as you did when installing) then use pacstrap to install iwd (and whatever else you need) to the system.

You can actually just copy the working configuration file from /var/lib/iwd/ in the live system to the installed system to get it working without having to use iwctl again. That's what I do anyway.


Jin, Jîyan, Azadî

Offline

#8 2022-12-26 19:21:27

cannibus
Member
Registered: 2022-12-26
Posts: 14

Re: Wireless connection not working after reboot

Ok, I installed iwctl (but I used USB tetehring with my phone) and followed the instructions of the wiki. Despite that, I get the same result when I ping google.com. But now in the ip link output there is wlan0 again, which I think replaced wlp3s0. Also, the state is UP and the mode DORMAT

Offline

#9 2022-12-26 19:23:23

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 9,003
Website

Re: Wireless connection not working after reboot

Have you configured an IP address, gateway device and nameserver? All iwd does is associate with the access point. It does have built-in dhcp functionality but it must be configured. Check the wiki again.


Jin, Jîyan, Azadî

Offline

#10 2022-12-26 20:51:27

cannibus
Member
Registered: 2022-12-26
Posts: 14

Re: Wireless connection not working after reboot

I don't know how to do it. Where can I find the istrunctions?

Offline

#11 2022-12-26 21:13:30

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 9,003
Website

Re: Wireless connection not working after reboot

The relevant instructions are on the iwd ArchWiki page to which I have already linked: https://wiki.archlinux.org/title/Iwd#En … figuration ← that shows how to enable the DHCP server and set the addresses.

For the nameserver configuration see https://wiki.archlinux.org/title/Domain … c_resolver but I will admit that's quite complicated.

Once iwd is setup with DHCP then you can just write to /etc/resolv.conf directly, like this:

nameserver 1.1.1.1

I prefer to use systemd-resolved:

# systemctl enable --now systemd-resolved
# ln -sf /run/systemd/resolve/stub-resolv.conf /etc/resolv.conf

Other methods are available.

If all this seems too complicated then perhaps try https://wiki.archlinux.org/title/NetworkManager instead. Just be sure to disable iwd before trying that to avoid conflicts.


Jin, Jîyan, Azadî

Offline

#12 2022-12-26 21:30:55

cannibus
Member
Registered: 2022-12-26
Posts: 14

Re: Wireless connection not working after reboot

Sorry, but I don't understand where is written in that page. As far as I have understood, to enable the dhcp server and to create an ip address I have to edit /etc/iwd/main.conf. Am I right?

Offline

#13 2022-12-26 21:33:37

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 9,003
Website

Re: Wireless connection not working after reboot

Yes, that's right.


Jin, Jîyan, Azadî

Offline

#14 2022-12-26 21:40:12

cannibus
Member
Registered: 2022-12-26
Posts: 14

Re: Wireless connection not working after reboot

Done that and made some order in some other files that I edited, now it works. Thanks for all the patience!!!!! But, after I reboot, iwd is inactive and networkmanager is up, and the connection doesnt work. How can I prevent this?

Offline

#15 2022-12-26 21:50:17

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 9,003
Website

Re: Wireless connection not working after reboot

cannibus wrote:

after I reboot, iwd is inactive and networkmanager is up, and the connection doesnt work. How can I prevent this?

If you want to use iwd then make sure that iwd is enabled and NetworkManager is disabled.

If you want to use NetworkManager instead disable iwd and use the NetworkManager GUI (nm-applet) to connect, just as you would in Ubunutu.

This command will show which services are enabled:

find /etc/systemd -type l -exec test -f {} \; -print | awk -F'/' '{ printf ("%-40s | %s\n", $(NF-0), $(NF-1)) }' | sort -f

Use that to eliminate any potential conflicts. Only a single networking service should be enabled at a time.

Last edited by Head_on_a_Stick (2022-12-26 21:50:51)


Jin, Jîyan, Azadî

Offline

#16 2022-12-26 22:01:10

cannibus
Member
Registered: 2022-12-26
Posts: 14

Re: Wireless connection not working after reboot

Alright, I have ran: pacman -R networkmanager, so the only net. manager will be iwd. But why do I have to enable it manually every time I boot?

Offline

#17 2022-12-26 22:06:03

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 9,003
Website

Re: Wireless connection not working after reboot

Have you read systemctl(1)? Do you understand how to enable a service and do you understand what that means?

If iwd.service is correctly enabled then it should start automatically every boot with no further intervention required. If that does not happen for you then you have not enabled the service correctly.


Jin, Jîyan, Azadî

Offline

Board footer

Powered by FluxBB