Hello everyone,
I have new Lenovo T15 G2 i5 laptop and am having trouble with getting it to
start the wifi on boot. It's running debian
bookworm using networking.service, not NetworkManager.
This is the /etc/network/interfaces file:
-------------start interfaces file------
source /etc/network/interfaces.d/*
auto lo
iface lo inet loopback
allow-hotplug wlan0
iface wlan0 inet dhcp
ssid="Telstraxxx"
psk=xxxx
-----end interfaces file----
The /etc/wpa_supplicant/wpa_supplicant.conf file is:
------start wpa_supplicant file-----
network={
ssid="Telstraxxx"
psk=xxxx
}
--------------end wpa_supplicant file-------
I can get the wifi up online with these commands:
#rfkill unblock wifi
#wpa_supplicant _B -c /etc/wpa_supplicant/wpa_supplicant.conf -i wlan0
#dhclient wlan0
rfkill seems to be the blocking factor.
I added: rfkill.default_state=1 to the kernel boot line, but it made no
difference. I still had to use the command:
rfkill unblock wifi, to get online. I have: net.ifnames=0 on the kernel boot
line to keep the wireless interface
name from changing unpredictably. Before I had that, the interface name changed
back and forth
from wlan0 to wlpxxxxx. Now it's consistently: wlan0.
The message that comes on boot, which boots to a text prompt, is this:
---------------begin error message-----
successfully initialized wpa_supplicant
nl80211: kernel reports: Match already configured
...
...
nl80211: Could not set interface 'p2p-dev-wlan0' UP
nl80211: deinit ifname=p2p-dev-wlan0 diabled_11b_rates=0
nl80211: p2p-dev-wlan0 failed to initialize driver interface
P2P: Failed to enable P2P device interface
-----------------------end error message--------------------
Once I get the machine online with the comands mentioned above, it stays there
but the
following error message appears on the console, and repeats itself endlessly
with some
slightly different numbers for the capab= variable.
-------------------start error messages---------------
disconnect from AP xx.xx.xx.xx.xx for new auth to yy.yy.yy.yy.yy
authenticate with yy.yy.yy.yy.yy.yy.
send auth to yy.yy.yy.yy.yy (try 1/3)
authenticated
associate with yy.yy.yy.yy.yy
RX AssocRep from yy.yy.yy.yy.yy (capab=0x1411 status=0 aid=2)
associated
-----------------end error message-----------------------
The configs I used for this laptop are the same as I used for a desktop which
sets the wifi on boot and never had
rfkill issues.
I disabled systemd.rfkill.service, but it made no difference.
I wrote a systemd service I found online which may have been successful for
someone, but it made no
difference to in my case. It's reproduced here:
----------------------start systemd service file-------------------------
[Unit]
Description=RFKill-Unblock All Devices
[Service]
Type=oneshot
ExecStart=/usr/sbin/rfkill unblock all
ExecStop=
RemainAfterExit=yes
[Install]
WantedBy=multi-user.target
-----------------------end systemd service file-----------------------
My questions are: How do get the machine to get the wifi up on boot?
What errors have I made in configuration?
Since rfkill keeps the wifi on "soft off" how can I keep it from doing that
automatically?
ben
--
[email protected]
_______________________________________________
luv-main mailing list -- [email protected]
To unsubscribe send an email to [email protected]