Re: rfkill list wlan, Hard blocked: yes

2024-01-23 Thread David Wright
On Sun 21 Jan 2024 at 21:57:20 (+0100), Geert Stappers wrote:
> On Sun, Jan 21, 2024 at 12:59:01PM -0600, David Wright wrote:
> > On Sun 21 Jan 2024 at 18:58:43 (+0100), Geert Stappers wrote:
> > > On Sun, Jan 21, 2024 at 10:44:04AM -0600, David Wright wrote:
> > > > On Sun 21 Jan 2024 at 17:33:57 (+0100), Geert Stappers wrote:
> > > > ( https://lists.debian.org/debian-user/2024/01/msg01038.html )
> > > > > [7.854942] iwlwifi :02:00.0: reporting RF_KILL (radio 
> > > > > disabled)
> > > > > [7.860452] iwlwifi :02:00.0: RF_KILL bit toggled to disable 
> > > > > radio.
> > > > > [8.356275] iwlwifi :02:00.0 wlp2s0: renamed from wlan0
> > > > 
> > > > Run rfkill and, if it's blocked, unblock it.
> > > 
> > > Installed package `rfkill`  (it wasn't installed before)
> > > and tried it.
> > > 
> > > It does report "hard blocked", but rfkill can't change it.
> > > 
> > > I always tried a "function key" on the keyboard of the laptop,
> > > also without the desired effect.
> > 
> > Has that worked in the past … on previous Debians … on
> > the originally installed OS?
> 
> I think it has.  Years ago.

You might need to firm up that answer. I now see thinkpad
added to your Subject line, and also occurring in the logs.
A naive search for such a device turns up:
https://www.amazon.com/Centrino-Wireless-N-112BNHMW-300Mbps-Wireless/dp/B009WJ44CA
which warns "About this item // Note: this wireless card
could not work on IBM/Lenovo/Thinkpad and HP version laptop".
Several reviews expressed disappointment with the product.

Cheers,
David.



Re: rfkill list wlan, Hard blocked: yes

2024-01-21 Thread David Wright
On Sun 21 Jan 2024 at 21:57:20 (+0100), Geert Stappers wrote:
> On Sun, Jan 21, 2024 at 12:59:01PM -0600, David Wright wrote:
> > On Sun 21 Jan 2024 at 18:58:43 (+0100), Geert Stappers wrote:
> > > On Sun, Jan 21, 2024 at 10:44:04AM -0600, David Wright wrote:
> > > > On Sun 21 Jan 2024 at 17:33:57 (+0100), Geert Stappers wrote:
> > > > ( https://lists.debian.org/debian-user/2024/01/msg01038.html )
> > > > > [7.854942] iwlwifi :02:00.0: reporting RF_KILL (radio 
> > > > > disabled)
> > > > > [7.860452] iwlwifi :02:00.0: RF_KILL bit toggled to disable 
> > > > > radio.
> > > > > [8.356275] iwlwifi :02:00.0 wlp2s0: renamed from wlan0
> > > > 
> > > > Run rfkill and, if it's blocked, unblock it.
> > > 
> > > Installed package `rfkill`  (it wasn't installed before)
> > > and tried it.
> > > 
> > > It does report "hard blocked", but rfkill can't change it.
> > > 
> > > I always tried a "function key" on the keyboard of the laptop,
> > > also without the desired effect.
> > 
> > Has that worked in the past … on previous Debians … on
> > the originally installed OS?
> 
> I think it has.  Years ago.
> 
> In recent years only the ethernet interface has been used.

Just checking, as some laptops are supplied without a wifi option.

You could try checking the BIOS—my Lenovo has an ?InsydeH2O BIOS
with a section:

WirelessEnabled
Bluetooth   Enabled
Power Beep  Disabled
Intel Virtual TechnologyDisabled
BIOS Back Flash Disabled
HotKey Mode Enabled → Disabled
Always On USB   Disabled
AOAC Configuration  Enabled
Deep S3 FunctionDisabled

You could install the regulatory database if it's not there
(wireless-regdb). However, I think normal behaviour is to
allow wifi to run at the lowest legal power when the
regulatory domain is not known.

After that, I'm getting out of my depth:

> [8.002917] thinkpad_acpi: rfkill switch tpacpi_bluetooth_sw: radio is 
> blocked
> [8.019804] thinkpad_acpi: rfkill switch tpacpi_wwan_sw: radio is blocked
> [8.685725] iwlwifi :02:00.0: can't disable ASPM; OS doesn't have ASPM 
> control

Possibilities here are suggested by:

https://www.reddit.com/r/debian/comments/8c6ytj/active_state_power_management_aspm/

https://www.reddit.com/r/debian/comments/y4ahsh/solution_cant_disable_aspm_os_doesnt_have_aspm/

and:

https://www.kernel.org/doc/html/v5.19/admin-guide/kernel-parameters.html

which warns:

  pcie_aspm=   [PCIE] Forcibly enable or disable PCIe Active State Power 
Management.
   off Disable ASPM.
   force   Enable ASPM even on devices that claim not to support it.
   WARNING: Forcing ASPM on may cause system lockups.

Cheers,
David.



Re: rfkill list wlan, Hard blocked: yes

2024-01-21 Thread Geert Stappers
On Sun, Jan 21, 2024 at 12:59:01PM -0600, David Wright wrote:
> On Sun 21 Jan 2024 at 18:58:43 (+0100), Geert Stappers wrote:
> > On Sun, Jan 21, 2024 at 10:44:04AM -0600, David Wright wrote:
> > > On Sun 21 Jan 2024 at 17:33:57 (+0100), Geert Stappers wrote:
> > > ( https://lists.debian.org/debian-user/2024/01/msg01038.html )
> > > > [7.854942] iwlwifi :02:00.0: reporting RF_KILL (radio disabled)
> > > > [7.860452] iwlwifi :02:00.0: RF_KILL bit toggled to disable 
> > > > radio.
> > > > [8.356275] iwlwifi :02:00.0 wlp2s0: renamed from wlan0
> > > 
> > > Run rfkill and, if it's blocked, unblock it.
> > 
> > Installed package `rfkill`  (it wasn't installed before)
> > and tried it.
> > 
> > It does report "hard blocked", but rfkill can't change it.
> > 
> > I always tried a "function key" on the keyboard of the laptop,
> > also without the desired effect.
> 
> Has that worked in the past … on previous Debians … on
> the originally installed OS?

I think it has.  Years ago.

In recent years only the ethernet interface has been used.

 
> Do you see any reaction in the logs (daemon.log and syslog)
> when you press that function key? Does xev show a XF86WLAN
> keysym occurring (or anything)?

The laptop doesn't run  X any more. Tried `xev` anyway:

| # xev
| xev:  unable to open display ''
| #

With `dmesg -w` was neither the function key press seen.

 
> Presumably as there's a function key, there's no button
> on the laptop, as commonly found on ones old enough.

Indeed, no dedicated "airplane switch" present.


Tried with parameter for the rfkill kernel module.
Either I did that wrong or it had not the desired effect.


Further suggestions appriciated.


What follows is the parameter attempt.


root@nero:~# modinfo -p rfkill
master_switch_mode:SW_RFKILL_ALL ON should: 0=do nothing (only unlock); 
1=restore; 2=unblock all (uint)
default_state:Default initial state for all radio types, 0 = radio off (uint)
root@nero:~# echo 'rfkill master_switch_mode=2' > 
/etc/modules-load.d/rfkil_unblock.conf
root@nero:~# update-initramfs -u
update-initramfs: Generating /boot/initrd.img-5.10.0-27-amd64
root@nero:~# dmesg | grep -e rfkill -e iwlwifi
[8.002917] thinkpad_acpi: rfkill switch tpacpi_bluetooth_sw: radio is 
blocked
[8.019804] thinkpad_acpi: rfkill switch tpacpi_wwan_sw: radio is blocked
[8.685725] iwlwifi :02:00.0: can't disable ASPM; OS doesn't have ASPM 
control
[8.768395] iwlwifi :02:00.0: firmware: direct-loading firmware 
iwlwifi-1000-5.ucode
[8.768624] iwlwifi :02:00.0: loaded firmware version 39.31.5.1 build 
35138 1000-5.ucode op_mode iwldvm
[8.768677] iwlwifi :02:00.0: firmware: failed to load 
iwl-debug-yoyo.bin (-2)
[9.074938] iwlwifi :02:00.0: CONFIG_IWLWIFI_DEBUG disabled
[9.074943] iwlwifi :02:00.0: CONFIG_IWLWIFI_DEBUGFS disabled
[9.074946] iwlwifi :02:00.0: CONFIG_IWLWIFI_DEVICE_TRACING disabled
[9.074950] iwlwifi :02:00.0: Detected Intel(R) Centrino(R) Wireless-N 
1000 BGN, REV=0x6C
[9.088734] iwlwifi :02:00.0: reporting RF_KILL (radio disabled)
[9.088763] iwlwifi :02:00.0: RF_KILL bit toggled to disable radio.
[9.194253] iwlwifi :02:00.0 wlp2s0: renamed from wlan0
root@nero:~# reboot
Connection to nero closed by remote host.
Connection to nero closed.
stappers@paddy:~
$ bong
E: Missing hostname
I: This programm reduces output of 
I: Like  is a hostname as parameter required
stappers@paddy:~
$ bong nero
 
21:24:18 just_started 0:00:00
PING nero.gpm.stappers.nl (172.24.0.54) 56(84) bytes of data.
21:24:19 still_up 0:00:01
21:26:09 up_again 0:01:50
stappers@paddy:~
$ ssh nero
Linux nero 5.10.0-27-amd64 #1 SMP Debian 5.10.205-2 (2023-12-31) x86_64

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Sun Jan 21 20:25:08 2024 from 172.24.0.36
stappers@nero:~$ sudo su -
root@nero:~# dmesg | grep -e rfkill -e iwlwifi
[7.952756] thinkpad_acpi: rfkill switch tpacpi_bluetooth_sw: radio is 
blocked
[7.976749] thinkpad_acpi: rfkill switch tpacpi_wwan_sw: radio is blocked
[8.397512] iwlwifi :02:00.0: can't disable ASPM; OS doesn't have ASPM 
control
[8.405654] iwlwifi :02:00.0: firmware: direct-loading firmware 
iwlwifi-1000-5.ucode
[8.405864] iwlwifi :02:00.0: loaded firmware version 39.31.5.1 build 
35138 1000-5.ucode op_mode iwldvm
[8.405909] iwlwifi :02:00.0: firmware: failed to load 
iwl-debug-yoyo.bin (-2)
[8.658837] iwlwifi :02:00.0: CONFIG_IWLWIFI_DEBUG disabled
[8.658843] iwlwifi :02:00.0: CONFIG_IWLWIFI_DEBUGFS disabled
[8.658846] iwlwifi :02:00.0: CONFIG_IWLWIFI_DEVICE_TRACING disabled
[8.658850] iwlwifi :02:00.0: Detected Intel(R) Centrino(R) Wirele

Re: rfkill list wlan, Hard blocked: yes

2024-01-21 Thread David Wright
On Sun 21 Jan 2024 at 18:58:43 (+0100), Geert Stappers wrote:
> On Sun, Jan 21, 2024 at 10:44:04AM -0600, David Wright wrote:
> > On Sun 21 Jan 2024 at 17:33:57 (+0100), Geert Stappers wrote:
> > ( https://lists.debian.org/debian-user/2024/01/msg01038.html )
> > > [7.854942] iwlwifi :02:00.0: reporting RF_KILL (radio disabled)
> > > [7.860452] iwlwifi :02:00.0: RF_KILL bit toggled to disable radio.
> > > [8.356275] iwlwifi :02:00.0 wlp2s0: renamed from wlan0
> > 
> > Run rfkill and, if it's blocked, unblock it.
> 
> Installed package `rfkill`  (it wasn't installed before)
> and tried it.
> 
> It does report "hard blocked", but rfkill can't change it.
> 
> I always tried a "function key" on the keyboard of the laptop,
> also without the desired effect.

Has that worked in the past … on previous Debians … on
the originally installed OS?

Do you see any reaction in the logs (daemon.log and syslog)
when you press that function key? Does xev show a XF86WLAN
keysym occurring (or anything)?

Presumably as there's a function key, there's no button
on the laptop, as commonly found on ones old enough.

Cheers,
David.



Re: rfkill list wlan, Hard blocked: yes

2024-01-21 Thread Marco Moock
Am 21.01.2024 um 18:58:43 Uhr schrieb Geert Stappers:

> It does report "hard blocked", but rfkill can't change it.

Look for a hardware switch or a keystroke (mostly combined with FN) to
enable it.



rfkill list wlan, Hard blocked: yes

2024-01-21 Thread Geert Stappers


In-Reply-To: 
Subject: Re: ip link   versus   nmcli device,   WIFI   firmware related


On Sun, Jan 21, 2024 at 10:44:04AM -0600, David Wright wrote:
> On Sun 21 Jan 2024 at 17:33:57 (+0100), Geert Stappers wrote:
> ( https://lists.debian.org/debian-user/2024/01/msg01038.html )
> > [7.854942] iwlwifi :02:00.0: reporting RF_KILL (radio disabled)
> > [7.860452] iwlwifi :02:00.0: RF_KILL bit toggled to disable radio.
> > [8.356275] iwlwifi :02:00.0 wlp2s0: renamed from wlan0
> 
> Run rfkill and, if it's blocked, unblock it.

Installed package `rfkill`  (it wasn't installed before)
and tried it.

It does report "hard blocked", but rfkill can't change it.


root@nero:~# rfkill
ID TYPE  DEVICE   SOFTHARD
 0 bluetooth tpacpi_bluetooth_sw   blocked blocked
 1 wwan  tpacpi_wwan_sw  unblocked blocked
 2 wlan  phy0unblocked blocked
root@nero:~# nmcli radio
WIFI-HW  WIFI  WWAN-HW  WWAN 
enabled  disabled  enabled  disabled 
root@nero:~# rfkill list wlan
2: phy0: Wireless LAN
Soft blocked: no
Hard blocked: yes
root@nero:~# rfkill unblock wlan
root@nero:~# rfkill list wlan
2: phy0: Wireless LAN
Soft blocked: no
Hard blocked: yes
root@nero:~# rfkill unblock all
root@nero:~# rfkill list wlan
2: phy0: Wireless LAN
Soft blocked: no
Hard blocked: yes
root@nero:~# nmcli radio
WIFI-HW  WIFI  WWAN-HW  WWAN 
enabled  disabled  enabled  disabled 
root@nero:~#


I always tried a "function key" on the keyboard of the laptop,
also without the desired effect.

So now in doubt how to proceed.




 
> Cheers,
> David.


Groeten
Geert Stappers
-- 
Silence is hard to parse