You are not logged in.

#1 2020-09-27 16:00:50

lviggiani
Member
Registered: 2014-02-28
Posts: 112

[ABANDONED] Connection to WiFi only works when in installation media

Hi I've just made a fresh installation of Arch Linux in my old Surface Pro 4 device.
When booted from the installation media (latest downloaded today), I could successfully connect to my home wlan through iwctl as stated in the wiki. Then I've completed the installation and chrooted into the target machine and installed netctl.
After reboot, I've used wifi-menu to connect to my home wifi and, despite I didn't get any error at first, I could not ping neither google.com nor 192.198.1.1 (that should be my router). It says (network cannot be reached).
After trying to configure netctl without success, I rebooted with the installation media, connected to wifi with iwctl, chrooted into my computer, removed netctl and installed iwctl (that is working when run from installation media). After reboot, I used iwctl to connect to wifi (exactly as when done from the installation media) but, again despite I don't get any message, I cannot ping any site or address or evan use pacman.
issuing networkctl says that wlan0 is degradated.
So it's not an hardware problem as it runs form the installation media and not on target machine (I guess they have the same kernel).
Can someone help me please as I'm stuck here... thanks!

Last edited by lviggiani (2020-10-01 16:33:41)

Offline

#2 2020-09-27 16:08:06

Head_on_a_Stick
Member
From: London
Registered: 2014-02-20
Posts: 5,542
Website

Re: [ABANDONED] Connection to WiFi only works when in installation media

Did you remember to install the linux-firmware package? You should probably list the exact commands that you used for the installation process so that we can spot any mistakes you may have made.

Offline

#3 2020-09-27 16:38:41

lviggiani
Member
Registered: 2014-02-28
Posts: 112

Re: [ABANDONED] Connection to WiFi only works when in installation media

Yes I did install linux-firmware

From installation media, in order to connect WiFi I do:

# iwctl

[iwd] device list
[iwd] station wlan0 scan
[iwd] station wlan0 get-networks
[iwd] station wlan0 connect mySSID

And I'm actually connected and I can reach the internet

Then I mount my root partition to /mnt and boo to /mnt/boot and arch-chroot to my target machine (of course after having installed base system, linux, linux-firmware etc).
There I installed iwd and completed the rest of setup (partion table, boot loader etc)
Finally I reboot in my target machine. It boots fine without any issues. Then I try to connect to the wifi like when from installation media:

# iwctl

[iwd] device list
[iwd] station wlan0 scan
[iwd] station wlan0 get-networks
[iwd] station wlan0 connect mySSID

But after some seconds I get an "operation failed" error message. Password is correct (I typed in sever times) and I also tried with other SSID's (e.g. my phone hotspot) but I always get the same result.
ip addr doesn't show any inet address in this case, whereas from installation media of course it does.

Offline

#4 2020-09-27 16:45:04

Head_on_a_Stick
Member
From: London
Registered: 2014-02-20
Posts: 5,542
Website

Re: [ABANDONED] Connection to WiFi only works when in installation media

So what is your wireless hardware and driver?

The kernel version on the ISO image will be old now so this may be due to a regression in the current version. You could use the archive to install an old kernel version to test this theory. Or try the LTS kernel.

Also check the journal for anything relevant.

Offline

#5 2020-09-27 16:50:10

nl6720
Wiki Admin
Registered: 2016-07-02
Posts: 244

Re: [ABANDONED] Connection to WiFi only works when in installation media

Head_on_a_Stick wrote:

Or try the LTS kernel.

If you're lucky, you can encounter a bug that's been backported to LTS too. tongue

Offline

#6 2020-09-27 16:56:53

lviggiani
Member
Registered: 2014-02-28
Posts: 112

Re: [ABANDONED] Connection to WiFi only works when in installation media

It's a MS surface pro 4. I know it needs the linux-surface kernel in the end.
As the installation media works, I thought the same for the target machine.
Installation media comes with linux 5.8.5 whereas current linux in arch repo is 5.8.11.
Maybe it's a regression. I try to install linux-surface now and see how it goes.

Offline

#7 2020-09-27 17:16:32

lviggiani
Member
Registered: 2014-02-28
Posts: 112

Re: [ABANDONED] Connection to WiFi only works when in installation media

...no way... neither with linux-surface kernel... I think I meesed thing up when first I tried to install bot netctl and network manager... Maybe a clean reinstall might work?

Offline

#8 2020-09-28 19:49:01

lviggiani
Member
Registered: 2014-02-28
Posts: 112

Re: [ABANDONED] Connection to WiFi only works when in installation media

ok I managed to downgrade kernel to linux-5.8.5 (same as installation media) but I still get the same result.
It's a clean install, I followed arch wiki installation instructions and I only installed intel-ucode and iwd packages other than what stated in the installation instructions (linux-firmware is installed too).
What do i miss? Help please! smile

Offline

#9 2020-09-28 20:08:18

Zod
Member
From: Hoosiertucky
Registered: 2019-03-10
Posts: 418

Re: [ABANDONED] Connection to WiFi only works when in installation media

Offline

#10 2020-09-29 05:12:24

lviggiani
Member
Registered: 2014-02-28
Posts: 112

Re: [ABANDONED] Connection to WiFi only works when in installation media

Yes I spent a lot of time within that page but I'm still missing something. Thanks for linking me the documentation but I always read official wiki, forums and other sites like stackoverflow or so BEFORE posting for help.
If I'm here it's because I still cannot solve my problem and just linking the wiki is not of much help in my case. I'm closing this thread because this is not taking me anywhere...

Last edited by lviggiani (2020-09-29 05:13:47)

Offline

#11 2020-09-29 07:46:45

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 10,831

Re: [ABANDONED] Connection to WiFi only works when in installation media

[CLOSED] denotes a closed thread by a mod, use [ABANDONED] instead.

That said you have been given pointers to provide more information in post #4 which you seem to have ignored or read over, unless you provide these pieces of information, no one can help you

Last edited by V1del (2020-09-29 07:47:49)

Online

Board footer

Powered by FluxBB