Wifi Privacy Switch without rebooting - Printable Version +- PINE64 (https://forum.pine64.org) +-- Forum: Pinebook Pro (https://forum.pine64.org/forumdisplay.php?fid=111) +--- Forum: Linux on Pinebook Pro (https://forum.pine64.org/forumdisplay.php?fid=114) +--- Thread: Wifi Privacy Switch without rebooting (/showthread.php?tid=8313) |
Wifi Privacy Switch without rebooting - DrYak - 11-13-2019 update 2020.06.16: some recent kernel update has changed the naming of the wifi device - now fe310000.mmc. For those who like a compact one-liner: Code: sudo tee /sys/bus/platform/drivers/dwmmc_rockchip/{un,}bind <<< "$(basename /sys/devices/platform/fe310*)" TL;DR: use the two commands here to restart the Wifi driver after powering the Wifi again with the Privacy Switch for Wifi (Pine + F11) : Code: $ echo 'fe310000.dwmmc' | sudo tee /sys/bus/platform/drivers/dwmmc_rockchip/unbind The full story : (Moving to a more general thread, because currently my reply is burried in the middle of the Manjaro discussion) Currently, the privacy switch for Wifi cannot put back Wifi on because soldered-on-motherboard SDIO modules aren't Plug'n'Play. Here's what you normally see if you try the usual rmmod + modprobe route: Code: $ sudo rmmod brcmfmac brcmutil cfg80211 There is a way though: You can find the actual soldered device that answers on the mmcn mentioned above and unbind and re-bind it. Code: $ ls -d /sys/devices/platform/*.dwmmc/mmc_host/mmc0 Note -if I'm not mistaken :
the bind + unbind trick can also be used if the Broadcom Wifi chip has gone crazy and needs restarting. (source: other people with similar problems of soldered MMC modules) RE: Wifi Privacy Switch without rebooting - xalius - 11-13-2019 Thanks for posting this, I was already wondering if it could work this way RE: Wifi Privacy Switch without rebooting - Luke - 11-13-2019 Great post. Don't want to move it to tutorials? also, link it to Wiki please in relevant section. RE: Wifi Privacy Switch without rebooting - DrYak - 11-14-2019 (11-13-2019, 06:13 PM)Luke Wrote: Great post. Don't want to move it to tutorials? If you think it has its place there, feel free to move it (or is it something non-admin can do too ?) Though the best long-term solution, as I've written in the Manjaro thread, would be to get the EC-firmware guys to have the keyboard also emit simulated "Wifi Soft-kill" keypresses, and the Linux side of things to do such SDIO rescan automatically whenever the EC send such key press. (11-13-2019, 06:13 PM)Luke Wrote: also, link it to Wiki please in relevant section. The Wiki is pointing to this trick as of now. I can also add a reverse-link. RE: Wifi Privacy Switch without rebooting - Luke - 11-14-2019 Think this is fine, thanks. RE: Wifi Privacy Switch without rebooting - prokrypt - 01-12-2020 I like one-liners. Code: sudo tee /sys/bus/platform/drivers/dwmmc_rockchip/{un,}bind <<< 'fe310000.dwmmc' RE: Wifi Privacy Switch without rebooting - robt - 06-13-2020 Just a quick note: I just tried this (rebooting is for other OS-es), and found that on my PineBook Pro (received just over a week ago) I have to use fe310000.mmc instead of fe310000.dwmmc (mmc instead of dwmmc). RE: Wifi Privacy Switch without rebooting - DrYak - 06-16-2020 (06-13-2020, 04:50 AM)robt Wrote: I have to use fe310000.mmc instead of fe310000.dwmmc (mmc instead of dwmmc). Sorry for the slow reply, my day job is in virology research and you can imagine that the past couple of months have been a tsunami of extra work. I finally got time to check and: indeed, the name of the device has changed in some recent kernel update (didn't have time to track which): Code: $ ls -ld /sys/devices/platform/fe310* If one is not allergic to overly long one-line, it's automagically always findable with: Code: basename $(dirname $(dirname $(dirname $(dirname $(dirname /sys/devices/platform/*mmc/mmc_host/mmc*/mmc*/mmc*/ieee80211))))) Code: echo /sys/devices/platform/[0-9a-f]*mmc/mmc_host/mmc*/mmc*/mmc*/ieee80211|grep -oP '[0-9a-f]{8,}\.[^/]+' RE: Wifi Privacy Switch without rebooting - robt - 06-20-2020 Thanks for the reply and the one-liners, and keep up the good work on the tsunami front. I'm actually also very busy at work related to Covid19 but on a completely different end, yet geographically nearby - I'm looking onto the Limmat as I write this... ;-) |