Choose style:

Author Topic: Fn key wifi hard switch functionality - rfkill permissions workaround  (Read 1725 times)

0 Members and 1 Guest are viewing this topic.

Offline hofy

  • Jr. Member
  • **
  • Posts: 86
  • Karma: 6
    • View Profile
  • Peppermint version(s): 8, 10
Hello there,

I seem to have lost the Fn key wifi hard switch functionality. I can still turn it off/on by clicking on the applet, and ticking/unticking Wifi. Still, the key shortcut was handy. Any way to bring it back? I'm positive it worked just until a while ago. An update messed it up maybe? Thanks for advice :)

inxi -Fz:
Spoiler (click here to view / hide)
hofy@hofy-EasyNote-TV11CM ~ $ inxi -Fz
System:    Host: hofy-EasyNote-TV11CM Kernel: 4.13.0-32-generic x86_64 (64 bit)
           Desktop: N/A Distro: Peppermint Eight
Machine:   System: Packard Bell product: EasyNote TV11CM v: V2.04
           Mobo: Packard Bell model: VG50_CM
           Bios: Packard Bell v: V2.04 date: 09/17/2012
CPU:       Dual core AMD A6-4400M APU with Radeon HD Graphics (-MCP-) cache: 2048 KB
           clock speeds: max: 2700 MHz 1: 1700 MHz 2: 1700 MHz
Graphics:  Card: Advanced Micro Devices [AMD/ATI] Trinity [Radeon HD 7520G]
           Display Server: X.Org 1.19.3 drivers: ati,radeon (unloaded: fbdev,vesa)
           Resolution: 1366x768@60.01hz
           GLX Renderer: Gallium 0.4 on AMD ARUBA (DRM 2.50.0 / 4.13.0-32-generic, LLVM 4.0.0)
           GLX Version: 3.0 Mesa 17.0.2
Audio:     Card-1 Advanced Micro Devices [AMD] FCH Azalia Controller
           driver: snd_hda_intel
           Card-2 Advanced Micro Devices [AMD/ATI] Trinity HDMI Audio Controller
           driver: snd_hda_intel
           Sound: Advanced Linux Sound Architecture v: k4.13.0-32-generic
Network:   Card-1: Qualcomm Atheros AR8151 v2.0 Gigabit Ethernet driver: atl1c
           IF: enp1s0 state: down mac: <filter>
           Card-2: Broadcom BCM4313 802.11bgn Wireless Network Adapter
           driver: bcma-pci-bridge
           IF: wlp2s0b1 state: down mac: <filter>
           Card-3: Atheros AR9271 802.11n driver: ath9k_htc
           IF: wlxf4f26d15ea33 state: N/A mac: N/A
Drives:    HDD Total Size: 1000.2GB (22.3% used)
           ID-1: /dev/sda model: ST1000LM024_HN size: 1000.2GB
Partition: ID-1: / size: 53G used: 11G (22%) fs: ext4 dev: /dev/sda8
RAID:      No RAID devices: /proc/mdstat, md_mod kernel module present
Sensors:   System Temperatures: cpu: 56.2C mobo: N/A gpu: 47.0
           Fan Speeds (in rpm): cpu: N/A
Info:      Processes: 149 Uptime: 5:05 Memory: 711.7/7419.5MB
           Client: Shell (bash) inxi: 2.2.35
[close]
« Last Edit: July 22, 2019, 08:33:25 am by hofy »

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 25708
  • Karma: 2821
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 8R, 9, and 9R
Re: Fn key wifi hard switch functionality lost
« Reply #1 on: February 14, 2018, 11:25:34 am »
If you used to press say Fn+F3 .. does now just pressing F3 on its own toggle wireless on/off ?

This is much more likely to be a hardware or BIOS issue because those special keys are likely not controlled by the OS .. ie. they're independent of the OS, so you can toggle them even before an IS is loaded.

In the BIOS there's an option to require the use of the Fn key or not .. maybe toggle that to where you don't require the Fn key, save the BIOS settings and exit the BIOS .. then go back in and change it back, save and exit again.
« Last Edit: February 14, 2018, 11:30:30 am by PCNetSpec »
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline hofy

  • Jr. Member
  • **
  • Posts: 86
  • Karma: 6
    • View Profile
  • Peppermint version(s): 8, 10
Re: Fn key wifi hard switch functionality lost
« Reply #2 on: February 18, 2018, 10:42:09 am »
I can tell you it is OS dependent as I have also Windowz in a dualboot setup and the Fn+f3 key works there normally. Also I have another netbook where I installed peppermint in a dualboot setup with windows, but I couldn't turn the wifi off at all in P7, whereas under Windowz it worked no problem.

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 25708
  • Karma: 2821
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 8R, 9, and 9R
Re: Fn key wifi hard switch functionality lost
« Reply #3 on: February 18, 2018, 12:51:28 pm »
If it worked until recently, have you tried booting an earlier kernel ?
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline hofy

  • Jr. Member
  • **
  • Posts: 86
  • Karma: 6
    • View Profile
  • Peppermint version(s): 8, 10
Re: Fn key wifi hard switch functionality lost
« Reply #4 on: February 19, 2018, 01:12:17 pm »
Tried now, earlier kernel works. So it's the new one.

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 25708
  • Karma: 2821
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 8R, 9, and 9R
Re: Fn key wifi hard switch functionality lost
« Reply #5 on: February 19, 2018, 01:14:25 pm »
which kernel does it work in ?
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline hofy

  • Jr. Member
  • **
  • Posts: 86
  • Karma: 6
    • View Profile
  • Peppermint version(s): 8, 10
Re: Fn key wifi hard switch functionality lost
« Reply #6 on: February 20, 2018, 04:53:17 am »
4.10 worked. 4.13 doesn't.

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 25708
  • Karma: 2821
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 8R, 9, and 9R
Re: Fn key wifi hard switch functionality lost
« Reply #7 on: February 20, 2018, 08:51:40 am »
Well your options then are to either:-

a) Set the 4.10 kernel as the default .. bearing in mind 4.10 is NOT receiving the Meltdown/Spectre patches (or any other updates)

b) Live with it

c) See if a more recent kernel works .. taking care to check it's been patched against Meltdown/Spectre.

d) Revert the HWE changes, thereby downgrading to the 4.4 kernel series.
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline hofy

  • Jr. Member
  • **
  • Posts: 86
  • Karma: 6
    • View Profile
  • Peppermint version(s): 8, 10
Re: Fn key wifi hard switch functionality lost
« Reply #8 on: January 08, 2019, 06:45:12 am »
I should add the solution I employed eventually:

e) map new keyboard shortcuts with commands
Code: [Select]
rfkill block #interfacenumber
Code: [Select]
rfkill unblock #interfacenumber

Offline hofy

  • Jr. Member
  • **
  • Posts: 86
  • Karma: 6
    • View Profile
  • Peppermint version(s): 8, 10
Re: Fn key wifi hard switch functionality lost [solved]
« Reply #9 on: July 01, 2019, 06:09:21 am »
Couldn't resist to install Pep 10 and the problem sadly persists. What is worse, mapping the keyboard shortcuts with rfkill no longer works as a workaround either. I fiddled with rfkill permissions and it worked - but only until reboot.

So is there a simpler solution, or how do I change the permissions properly and persistently?

thanks :)

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 25708
  • Karma: 2821
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 8R, 9, and 9R
Re: Fn key wifi hard switch functionality lost [solved]
« Reply #10 on: July 01, 2019, 07:18:18 am »
Let's start with the output from:
Code: [Select]
lspci -vnn | grep -i net
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline hofy

  • Jr. Member
  • **
  • Posts: 86
  • Karma: 6
    • View Profile
  • Peppermint version(s): 8, 10
Re: Fn key wifi hard switch functionality lost [solved]
« Reply #11 on: July 01, 2019, 09:36:05 am »
$ lspci -vnn | grep -i net
01:00.0 Ethernet controller [0200]: Qualcomm Atheros AR8151 v2.0 Gigabit Ethernet [1969:1083] (rev c0)
   Subsystem: Acer Incorporated [ALI] AR8151 v2.0 Gigabit Ethernet [1025:0698]
02:00.0 Network controller [0280]: Broadcom Inc. and subsidiaries BCM4313 802.11bgn Wireless Network Adapter [14e4:4727] (rev 01)
   Subsystem: Foxconn International, Inc. BCM4313 802.11bgn Wireless Network Adapter [105b:e042]

I'm guessing Atheros is the USB dongle I'm using for better reception.

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 25708
  • Karma: 2821
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 8R, 9, and 9R
Re: Fn key wifi hard switch functionality lost [solved]
« Reply #12 on: July 01, 2019, 05:04:57 pm »
No, the Atheros is the wired network adapater .. USB devices aren't listed by lspci.

Can you post the output from
Code: [Select]
lsmod
and
Code: [Select]
rfkill list
« Last Edit: July 01, 2019, 05:12:24 pm by PCNetSpec »
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline hofy

  • Jr. Member
  • **
  • Posts: 86
  • Karma: 6
    • View Profile
  • Peppermint version(s): 8, 10
Re: Fn key wifi hard switch functionality lost [solved]
« Reply #13 on: July 13, 2019, 05:25:52 pm »
hofy@hofy-EasyNote ~ $ lsmod
Spoiler (click here to view / hide)
Module                  Size  Used by
ccm                    20480  3
arc4                   16384  2
ath9k_htc              77824  0
ath9k_common           36864  1 ath9k_htc
ath9k_hw              475136  2 ath9k_htc,ath9k_common
ath                    32768  3 ath9k_htc,ath9k_common,ath9k_hw
mac80211              802816  1 ath9k_htc
snd_seq_dummy          16384  0
snd_seq                65536  1 snd_seq_dummy
snd_seq_device         16384  1 snd_seq
binfmt_misc            20480  1
nls_iso8859_1          16384  1
wl                   6447104  0
uvcvideo               94208  0
videobuf2_vmalloc      16384  1 uvcvideo
videobuf2_memops       16384  1 videobuf2_vmalloc
videobuf2_v4l2         24576  1 uvcvideo
videobuf2_common       40960  2 videobuf2_v4l2,uvcvideo
videodev              188416  3 videobuf2_v4l2,uvcvideo,videobuf2_common
media                  40960  2 videodev,uvcvideo
edac_mce_amd           28672  0
kvm_amd                94208  0
ccp                    86016  1 kvm_amd
kvm                   626688  1 kvm_amd
irqbypass              16384  1 kvm
crct10dif_pclmul       16384  0
crc32_pclmul           16384  0
ghash_clmulni_intel    16384  0
pcbc                   16384  0
aesni_intel           200704  2
aes_x86_64             20480  1 aesni_intel
crypto_simd            16384  1 aesni_intel
cryptd                 24576  3 crypto_simd,ghash_clmulni_intel,aesni_intel
glue_helper            16384  1 aesni_intel
input_leds             16384  0
acer_wmi               20480  0
wmi_bmof               16384  0
sparse_keymap          16384  1 acer_wmi
joydev                 24576  0
serio_raw              16384  0
k10temp                16384  0
snd_hda_codec_realtek   106496  1
snd_hda_codec_generic    73728  1 snd_hda_codec_realtek
snd_hda_codec_hdmi     49152  1
snd_hda_intel          40960  6
snd_hda_codec         126976  4 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec_realtek
snd_hda_core           81920  5 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec,snd_hda_codec_realtek
rtsx_pci_ms            20480  0
snd_hwdep              20480  1 snd_hda_codec
memstick               16384  1 rtsx_pci_ms
snd_pcm                98304  5 snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec,snd_hda_core
cfg80211              667648  5 ath9k_htc,wl,ath9k_common,ath,mac80211
snd_timer              32768  2 snd_seq,snd_pcm
snd                    81920  21 snd_hda_codec_generic,snd_seq,snd_seq_device,snd_hda_codec_hdmi,snd_hwdep,snd_hda_intel,snd_hda_codec,snd_hda_codec_realtek,snd_timer,snd_pcm
soundcore              16384  1 snd
mac_hid                16384  0
sch_fq_codel           20480  7
sunrpc                352256  1
parport_pc             36864  0
ppdev                  20480  0
lp                     20480  0
parport                49152  3 parport_pc,lp,ppdev
ip_tables              28672  0
x_tables               40960  1 ip_tables
autofs4                40960  2
btrfs                1163264  0
xor                    24576  1 btrfs
zstd_compress         163840  1 btrfs
raid6_pq              114688  1 btrfs
libcrc32c              16384  1 btrfs
rtsx_pci_sdmmc         24576  0
radeon               1458176  11
i2c_algo_bit           16384  1 radeon
ttm                   110592  1 radeon
psmouse               151552  0
drm_kms_helper        172032  1 radeon
syscopyarea            16384  1 drm_kms_helper
sysfillrect            16384  1 drm_kms_helper
sysimgblt              16384  1 drm_kms_helper
i2c_piix4              24576  0
fb_sys_fops            16384  1 drm_kms_helper
drm                   458752  13 drm_kms_helper,radeon,ttm
atl1c                  49152  0
rtsx_pci               65536  2 rtsx_pci_sdmmc,rtsx_pci_ms
ahci                   40960  5
libahci                32768  1 ahci
wmi                    24576  2 acer_wmi,wmi_bmof
video                  45056  1 acer_wmi
[close]

hofy@hofy-EasyNote ~ $ rfkill list
Spoiler (click here to view / hide)
0: acer-wireless: Wireless LAN
   Soft blocked: no
   Hard blocked: no
1: phy0: Wireless LAN
   Soft blocked: no
   Hard blocked: no
2: brcmwl-0: Wireless LAN
   Soft blocked: no
   Hard blocked: no
3: phy1: Wireless LAN
   Soft blocked: no
   Hard blocked: no
[close]

edit: It works (a mapped keyboard shortcut) if I change rfkill permission 'everybody' from 'read only' to 'read and write'. How do I do this properly so the change is persistent?
thanks

EDIT2:
I changed the 'all users' permission and added 'write' by:
Code: [Select]
sudo chmod a+w /dev/rfkill
thus rendering the workaround with a custom keyboard shortcut (mentioned earlier in this thread) viable again. how to make it persistent?
« Last Edit: July 22, 2019, 08:34:11 am by hofy »