[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: And if/when one doesn't have rfkill installed ...: Re: BerkeleyLUG meetup this Sunday 2019-10-27 at Cafe Blue Door



Wow, nice!  

Thomas

On Wed, Oct 30, 2019 at 12:15 AM Michael Paoli <Michael.Paoli@cal.berkeley.edu> wrote:
And if/when one doesn't have rfkill installed ...:

> From: "tom r lopes" <tomrlopes@gmail.com>
> Subject: Re: BerkeleyLUG meetup this Sunday 2019-10-27 at Cafe Blue Door
> Date: Sun, 27 Oct 2019 17:13:38 -0700

> but rfkill was not installed.

# find /proc /dev /sys -name '*rfkill*' -exec ls -Lonid \{\} \; | sort -bn
37371 drwxr-xr-x 6 0 0 Jun 21 09:31 /sys/module/rfkill
37404 drwxr-xr-x 2 0 0 Oct 30 07:01 /sys/class/rfkill
37405 drwxr-xr-x 3 0 0 Jul 31 14:47 /sys/devices/virtual/misc/rfkill
37405 drwxr-xr-x 3 0 0 Oct 30 07:03 /sys/class/misc/rfkill
40100 -r--r--r-- 1 0 4096 Oct 30 07:03 
/sys/module/dell_laptop/parameters/force_rfkill
40156 drwxr-xr-x 4 0 0 Aug 25 00:54 /sys/devices/platform/dell-laptop/rfkill
40157 drwxr-xr-x 3 0 0 Aug 25 00:54 
/sys/devices/platform/dell-laptop/rfkill/rfkill0
40157 drwxr-xr-x 3 0 0 Oct 30 07:03 /sys/class/rfkill/rfkill0
40179 drwxr-xr-x 3 0 0 Aug 25 00:54 
/sys/devices/platform/dell-laptop/rfkill/rfkill1
40179 drwxr-xr-x 3 0 0 Oct 30 07:03 /sys/class/rfkill/rfkill1
40241 drwxr-xr-x 3 0 0 Aug 25 00:54 
/sys/devices/pci0000:00/0000:00:1c.1/0000:03:00.0/ieee80211/phy0/rfkill2
40241 drwxr-xr-x 3 0 0 Oct 30 07:03 /sys/class/rfkill/rfkill2
40266 -r--r--r-- 1 0 4096 Oct 30 07:03 
/sys/module/dell_rbtn/parameters/auto_remove_rfkill
71569 crw-rw-r--+ 1 0 10, 57 Jun 14 10:46 /dev/rfkill
#
Notice also that some of those are same inode number on same filesystem,
thus (are or link to) same file.
# grep . /sys/class/rfkill/rfkill*/{hard,soft} | sort
/sys/class/rfkill/rfkill0/hard:1
/sys/class/rfkill/rfkill0/soft:0
/sys/class/rfkill/rfkill1/hard:1
/sys/class/rfkill/rfkill1/soft:1
/sys/class/rfkill/rfkill2/hard:1
/sys/class/rfkill/rfkill2/soft:0
# ls -l /sys/class/rfkill/rfkill*
lrwxrwxrwx 1 root root 0 Oct 30 07:03 /sys/class/rfkill/rfkill0 -> 
../../devices/platform/dell-laptop/rfkill/rfkill0
lrwxrwxrwx 1 root root 0 Oct 30 07:03 /sys/class/rfkill/rfkill1 -> 
../../devices/platform/dell-laptop/rfkill/rfkill1
lrwxrwxrwx 1 root root 0 Oct 30 07:06 /sys/class/rfkill/rfkill2 -> 
../../devices/pci0000:00/0000:00:1c.1/0000:03:00.0/ieee80211/phy0/rfkill2
# rfkill list
0: dell-wifi: Wireless LAN
         Soft blocked: no
         Hard blocked: yes
1: dell-bluetooth: Bluetooth
         Soft blocked: yes
         Hard blocked: yes
2: phy0: Wireless LAN
         Soft blocked: no
         Hard blocked: yes
#
... flip the hardware switch, and:
  # rfkill list
0: dell-wifi: Wireless LAN
         Soft blocked: no
         Hard blocked: no
1: dell-bluetooth: Bluetooth
         Soft blocked: yes
         Hard blocked: no
2: phy0: Wireless LAN
         Soft blocked: no
         Hard blocked: no
12: hci0: Bluetooth
         Soft blocked: no
         Hard blocked: no
# grep . /sys/class/rfkill/rfkill*/{hard,soft} | sort
/sys/class/rfkill/rfkill0/hard:0
/sys/class/rfkill/rfkill0/soft:0
/sys/class/rfkill/rfkill1/hard:0
/sys/class/rfkill/rfkill1/soft:1
/sys/class/rfkill/rfkill2/hard:0
/sys/class/rfkill/rfkill2/soft:0
#
Flip the (Wi-Fi) softs:
# echo 1 | tee /sys/class/rfkill/rfkill[02]/soft >> /dev/null
# echo 0 > /sys/class/rfkill/rfkill1/soft
# rfkill list
0: dell-wifi: Wireless LAN
         Soft blocked: yes
         Hard blocked: no
1: dell-bluetooth: Bluetooth
         Soft blocked: no
         Hard blocked: no
2: phy0: Wireless LAN
         Soft blocked: yes
         Hard blocked: yes
13: hci0: Bluetooth
         Soft blocked: no
         Hard blocked: no
#
Set 'em as they were before:
# echo 0 | tee /sys/class/rfkill/rfkill[02]/soft >> /dev/null
# echo 1 > /sys/class/rfkill/rfkill1/soft
# rfkill list
0: dell-wifi: Wireless LAN
         Soft blocked: no
         Hard blocked: no
1: dell-bluetooth: Bluetooth
         Soft blocked: yes
         Hard blocked: no
2: phy0: Wireless LAN
         Soft blocked: no
         Hard blocked: no
#

--
You received this message because you are subscribed to the Google Groups "BerkeleyLUG" group.
To unsubscribe from this group and stop receiving emails from it, send an email to berkeleylug+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/berkeleylug/20191030001546.37264yn0ywpxpx28%40webmail.rawbw.com.

--
You received this message because you are subscribed to the Google Groups "BerkeleyLUG" group.
To unsubscribe from this group and stop receiving emails from it, send an email to berkeleylug+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/berkeleylug/CAGpvfsrxqSmKdvW0KP-ter-h4DredSU8WbVdYPL7w%2Bcr90%2BTkQ%40mail.gmail.com.