Note: Broadcom Net Controller Driver issue on ZorinOS ================================================================================= 日前出差,假日在飯店打算用筆電精(ㄕㄨㄚ)進(ㄉㄧㄢˇ)自(ㄊㄧˊ)我(ㄇㄨˋ)時, 發現筆電接不上網路,想著是broswer沒有自動彈出登入呢,老問題了(Win少數的好處就是貼心) 然而: 不是自動logging的問題,而是根本沒有接上wi-fi 一段搜尋後,發現是Broadcom 網卡驅動issue,老問題了 附圖是網卡型號:`Broadcom BCM4350` ![image](https://hackmd.io/_uploads/HJhykUT1eg.png) Do Script --------------------------------------------------------------------------------- ### 處理自動登入的部份,簡單scripting一下: ```bash= #!/bin/bash # define google checking-website web_check="http://connectivitycheck.gstatic.com/generate_204" if curl -s -I "$web_check" | grep -q "204 No Content"; then echo "Wi-fi connection in Normal" else echo "Use Browser to login the Wi-Fi connection" # using xdg to open browser xdg-open http://neverssl.com fi ``` ### 安裝Broadcom驅動的部份: ```bash= #!/bin/bash sudo apt update sudo apt install -y build-essential dkms linux-headers-$(uname -r) # install Broadcom STA driver (broadcom-sta-dkms) sudo apt install -y broadcom-sta-dkms # remove old driver sudo modprobe -r b43 b44 b43legacy ssb brcmsmac bcma # probe Broadcom STA driver sudo modprobe wl # restart Wi-fi module sudo rfkill unblock all sudo nmcli radio wifi off sleep 2 sudo nmcli radio wifi on ``` Ref. --------------------------------------------------------------------------------- [Installing Broadcom Wireless Drivers](https://askubuntu.com/questions/55868/installing-broadcom-wireless-drivers) [Launchpad Bug 1819201 - Broadcom STA driver needed for newer kernels](https://bugs.launchpad.net/qpdfview/+bug/1819201) [WifiDocs/Driver/bcm43xx](https://help.ubuntu.com/community/WifiDocs/Driver/bcm43xx)