sebanc / brunch

Boot ChromeOS on x86_64 PC - Supports Intel CPU/GPU from 8th gen or AMD Ryzen
GNU General Public License v3.0
3.55k stars 388 forks source link

Unable to turn on Wi-Fi #1024

Open shadowyay opened 3 years ago

shadowyay commented 3 years ago

My Wi-Fi is Broadcom Corporation BCM43142 802.11b/g/n (rev 01) I have installed Chrome OS in my PC single boot My Wi-Fi is not working

Screenshot 2021-04-26 at 9 26 48 AM

If i turn on the Wi-Fi it is showinf "Wi-Fi is turned off" How to resolve this problem ?

shadowyay commented 2 years ago

I'm facing the same issue on my vaio with BCM943142HM.

go to ctrl + alt + t {terminal} and type shell and copy all below and paste

sudo su mount -o remount, rw / sudo echo "blacklist b43" >> /etc/modprobe.d/blacklist.conf sudo echo "blacklist b43legacy" >> /etc/modprobe.d/blacklist.conf sudo echo "blacklist ssb" >> /etc/modprobe.d/blacklist.conf sudo echo "blacklist bcma" >> /etc/modprobe.d/blacklist.conf sudo echo "wl" >> /etc/modules sudo touch /etc/modprobe.d/wl.conf sudo echo "alias wlan0 wl" >> /etc/modprobe.d/wl.conf cd /lib/modules/3.4.0/kernel/drivers/net/wireless/ wget http://chromium.arnoldthebat.co.uk/files/fw/lib/modules/3.4.0/kernel/drivers/net/wireless/wl.ko sudo insmod /lib/modules/3.4.0/kernel/net/wireless/cfg80211.ko sudo insmod /lib/modules/3.4.0/kernel/net/wireless/lib80211.ko sudo insmod /lib/modules/3.4.0/kernel/net/wireless/lib80211_crypt_ccmp.ko sudo insmod /lib/modules/3.4.0/kernel/net/wireless/lib80211_crypt_tkip.ko sudo insmod /lib/modules/3.4.0/kernel/net/wireless/lib80211_crypt_wep.ko sudo insmod /lib/modules/3.4.0/kernel/drivers/net/wireless/wl.ko sudo depmod -a

and restart the pc

sebanc commented 2 years ago

@ravindrank Could you try the new brunch-unstable build ?

Ciancy28 commented 2 years ago

I'm facing the same issue on my vaio with BCM943142HM.

go to ctrl + alt + t {terminal} and type shell and copy all below and paste

sudo su mount -o remount, rw / sudo echo "blacklist b43" >> /etc/modprobe.d/blacklist.conf sudo echo "blacklist b43legacy" >> /etc/modprobe.d/blacklist.conf sudo echo "blacklist ssb" >> /etc/modprobe.d/blacklist.conf sudo echo "blacklist bcma" >> /etc/modprobe.d/blacklist.conf sudo echo "wl" >> /etc/modules sudo touch /etc/modprobe.d/wl.conf sudo echo "alias wlan0 wl" >> /etc/modprobe.d/wl.conf cd /lib/modules/3.4.0/kernel/drivers/net/wireless/ wget http://chromium.arnoldthebat.co.uk/files/fw/lib/modules/3.4.0/kernel/drivers/net/wireless/wl.ko sudo insmod /lib/modules/3.4.0/kernel/net/wireless/cfg80211.ko sudo insmod /lib/modules/3.4.0/kernel/net/wireless/lib80211.ko sudo insmod /lib/modules/3.4.0/kernel/net/wireless/lib80211_crypt_ccmp.ko sudo insmod /lib/modules/3.4.0/kernel/net/wireless/lib80211_crypt_tkip.ko sudo insmod /lib/modules/3.4.0/kernel/net/wireless/lib80211_crypt_wep.ko sudo insmod /lib/modules/3.4.0/kernel/drivers/net/wireless/wl.ko sudo depmod -a

and restart the pc

Still doesn't work.

shadowyay commented 2 years ago

I'm facing the same issue on my vaio with BCM943142HM.

go to ctrl + alt + t {terminal} and type shell and copy all below and paste sudo su mount -o remount, rw / sudo echo "blacklist b43" >> /etc/modprobe.d/blacklist.conf sudo echo "blacklist b43legacy" >> /etc/modprobe.d/blacklist.conf sudo echo "blacklist ssb" >> /etc/modprobe.d/blacklist.conf sudo echo "blacklist bcma" >> /etc/modprobe.d/blacklist.conf sudo echo "wl" >> /etc/modules sudo touch /etc/modprobe.d/wl.conf sudo echo "alias wlan0 wl" >> /etc/modprobe.d/wl.conf cd /lib/modules/3.4.0/kernel/drivers/net/wireless/ wget http://chromium.arnoldthebat.co.uk/files/fw/lib/modules/3.4.0/kernel/drivers/net/wireless/wl.ko sudo insmod /lib/modules/3.4.0/kernel/net/wireless/cfg80211.ko sudo insmod /lib/modules/3.4.0/kernel/net/wireless/lib80211.ko sudo insmod /lib/modules/3.4.0/kernel/net/wireless/lib80211_crypt_ccmp.ko sudo insmod /lib/modules/3.4.0/kernel/net/wireless/lib80211_crypt_tkip.ko sudo insmod /lib/modules/3.4.0/kernel/net/wireless/lib80211_crypt_wep.ko sudo insmod /lib/modules/3.4.0/kernel/drivers/net/wireless/wl.ko sudo depmod -a and restart the pc

Still doesn't work.

oops . after all commands did you press enter to last command to work ?

ravindrank commented 2 years ago

@ravindrank Could you try the new brunch-unstable build ? Thank you @sebanc Tried the latest unstable build.. No change :( sorry I was out yetserday ..couldnt look into this issue

Ciancy28 commented 2 years ago

oops . after all commands did you press enter to last command to work ?

Yes. Otherwise i couldn't sudo reboot

sebanc commented 2 years ago

@ravindrank No worries and thanks for trying it :)

Actually it is kind of a bad timing as I have just uploaded a new brunch-unstable build with a new potential fix (downgrading wpa_supplicant binaries), could you try it when you have the time ?

ravindrank commented 2 years ago

Trying it now :) I'm in India ..Friday afternoon..good time :)

ravindrank commented 2 years ago

@sebanc Good news but there is some probably bad news as well. Now, I'm able to connect to my known Wifi SSIDs Bad news.. It doesn seem to list all the SSIDs in range.. Lists only known networks Screenshot below image

ravindrank commented 2 years ago

Sorry maybe I spoke early.. But it lists one now..I'm pretty sure there are quite many SSIDs around though. So probably populating slowly! image

Edit: @sebanc Other more thing to note is : Laptop running on Battery due to power outage. Not sure whether this affects. Did a quick reboot as well . Thanks for all the fixes and hard work :)

shadowyay commented 2 years ago

Trying it now :) I'm in India ..Friday afternoon..good time :)

i am from tamil nadu (india) good afternoon

shadowyay commented 2 years ago

oops . after all commands did you press enter to last command to work ?

Yes. Otherwise i couldn't sudo reboot

ok

shadowyay commented 2 years ago

Sorry maybe I spoke early.. But it lists one now..I'm pretty sure there are quite many SSIDs around though. So probably populating slowly! image

it worked ?

ravindrank commented 2 years ago

@sebanc This might be of some use.. not sure.. pls let me know if you need more logs etc

2021-08-20T10:57:42.107835Z ERR wpa_supplicant[1063]: bgscan simple: Failed to enable signal strength monitoring

chronos@localhost /var/log $ tail -20 net.log 2021-08-20T10:53:29.022857Z INFO patchpaneld[1519]: INFO patchpaneld: [multicast_forwarder.cc(249)] Started IPv4 forwarding between wlan0 and arc_wlan0 for 239.255.255.250:1900 2021-08-20T10:53:29.022906Z INFO patchpaneld[1519]: INFO patchpaneld: [multicast_forwarder.cc(270)] Started IPv6 forwarding between wlan0 and arc_wlan0 for ff02::c:1900 2021-08-20T10:53:29.022913Z INFO patchpaneld[1519]: INFO patchpaneld: [multicast_proxy.cc(89)] Enabling broadcast forwarding for device wlan0 2021-08-20T10:53:29.022960Z WARNING patchpaneld[1519]: WARNING patchpaneld: [netlink_fd.cc(28)] Failed to increase receive buffer size to 524288b: Operation not permitted (1) 2021-08-20T10:53:29.022977Z WARNING patchpaneld[1519]: WARNING patchpaneld: [rtnl_handler.cc(112)] Failed to increase receive buffer size to 3145728b: Operation not permitted (1) 2021-08-20T10:53:29.022992Z INFO patchpaneld[1519]: INFO patchpaneld: [multicast_proxy.cc(94)] Starting broadcast forwarding between wlan0 and arc_wlan0 2021-08-20T10:53:29.023593Z INFO patchpaneld[1517]: INFO patchpaneld: [adb_proxy.cc(234)] Accepting connections on {family: AF_INET6, port: 5555, addr: ::} 2021-08-20T10:53:30.894270Z INFO patchpaneld[1511]: INFO patchpaneld: [network_monitor_service.cc(324)] NUD state changed on wlan0 for { addr: 192.168.1.2, role: dns_server, state: NUD_STALE }, old_state=NUD_NONE 2021-08-20T10:53:34.838888Z INFO shill[1208]: INFO shill: [wifi.cc(377)] ScanDone 2021-08-20T10:53:34.844008Z INFO shill[1208]: INFO shill: [wifi_service.cc(766)] Rep endpoint updated for wifi_psk_1. sig: -30, sec: rsn, freq: 2447 2021-08-20T10:53:41.934481Z NOTICE wpa_supplicant[1063]: wlan0: CTRL-EVENT-REGDOM-CHANGE init=BEACON_HINT type=UNKNOWN 2021-08-20T10:53:41.936804Z INFO shill[1208]: INFO shill: [wifi.cc(377)] ScanDone 2021-08-20T10:53:41.937344Z INFO shill[1208]: INFO shill: [wifi_service.cc(766)] Rep endpoint updated for wifi_psk_4. sig: -89, sec: rsn, freq: 2472 2021-08-20T10:53:41.966766Z WARNING shill[1208]: WARNING shill: [service.cc(1350)] Uninitialized traffic counter snapshot for source ARC 2021-08-20T10:54:32.679493Z INFO shill[1208]: INFO shill: [result_aggregator.cc(42)] Error type org.chromium.flimflam.Error.Success: Success (no error) reported 2021-08-20T10:54:38.471282Z INFO shill[1208]: INFO shill: [wifi.cc(377)] ScanDone 2021-08-20T10:57:42.079093Z INFO shill[1208]: INFO shill: [wifi_service.cc(766)] Rep endpoint updated for wifi_psk_1. sig: -77, sec: rsn, freq: 2447 2021-08-20T10:57:42.079691Z INFO shill[1208]: INFO shill: [wifi_provider.cc(408)] Removed endpoint 60:32:b1:d8:57:be from service wifi_psk_1 2021-08-20T10:57:42.107835Z ERR wpa_supplicant[1063]: bgscan simple: Failed to enable signal strength monitoring 2021-08-20T10:57:42.108661Z INFO shill[1208]: INFO shill: [wifi.cc(682)] Updated bgscan parameters: simple:360:-72:86400

ravindrank commented 2 years ago

@sebanc I have a feeling there is no issue. I think due to a long power outage I see lesser wifi Access points :) I will confirm later once power is back in my locality

shadowyay commented 2 years ago

@sebanc I have a feeling there is no issue. I think due to a long power outage I see lesser wifi Access points :) I will confirm later once power is back in my locality

india ! no power ! same problem!

ravindrank commented 2 years ago

@sebanc Confirmed :) Looks all fine!! Screenshot 2021-08-20 4 53 18 PM

sebanc commented 2 years ago

@ravindrank That's very good news :) Thanks a lot for all the tests !

Ciancy28 commented 2 years ago

I updated to brunch unstable with sudo chromeos-update -f /home/chronos/user/Downloads/brunch_r91_unstable_20210820.tar.gz but wifi still doesen't work, are there steps that i missed? my wi-fi card is Broadcom BCM943142HM.

sebanc commented 2 years ago

Did you enable the "broadcom_wl" option ?

Ciancy28 commented 2 years ago

Did you enable the "broadcom_wl" option ?

Yes

sebanc commented 2 years ago

Could you attach a dmesg ? (Run "dmesg > ~/Downloads/dmesg.txt" in crosh shell and attach dmesg.txt from your Downloads folder)

Ciancy28 commented 2 years ago

Could you attach a dmesg ? (Run "dmesg > ~/Downloads/dmesg.txt" in crosh shell and attach dmesg.txt from your Downloads folder)

dmesg.txt

sebanc commented 2 years ago

Is secure boot enabled on your PC ?

Ciancy28 commented 2 years ago

Is secure boot enabled on your PC ?

no

sebanc commented 2 years ago

@Ciancy28 Could you try the new brunch-unstable build ?

Ciancy28 commented 2 years ago

@Ciancy28 Could you try the new brunch-unstable build ?

Still not working

shadowyay commented 2 years ago

@Ciancy28 Could you try the new brunch-unstable build ?

Still not working

oops

sebanc commented 2 years ago

@Ciancy28 Could you try the new brunch-unstable build ?

Still not working

Actually do you use broadcom_wl driver in linux distros ? I think your card is supported by the brcmfmac driver and should not need this option. Could you post a dmesg without "broadcom_wl" option ?

Ciancy28 commented 2 years ago

Actually do you use broadcom_wl driver in linux distros ?

Yes.

I think your card is supported by the brcmfmac driver and should not need this option. Could you post a dmesg without "broadcom_wl" option ?

dmesg.txt (I can't turn wi-fi on without the broadcom_wl option)

Ciancy28 commented 2 years ago

After adding broadcom_wl to options again i still couldn't turn wi-fi on i had to send these commands in terminal again:

sudo su mount -o remount, rw / sudo echo "blacklist b43" >> /etc/modprobe.d/blacklist.conf sudo echo "blacklist b43legacy" >> /etc/modprobe.d/blacklist.conf sudo echo "blacklist ssb" >> /etc/modprobe.d/blacklist.conf sudo echo "blacklist bcma" >> /etc/modprobe.d/blacklist.conf sudo echo "wl" >> /etc/modules sudo touch /etc/modprobe.d/wl.conf sudo echo "alias wlan0 wl" >> /etc/modprobe.d/wl.conf cd /lib/modules/3.4.0/kernel/drivers/net/wireless/ wget http://chromium.arnoldthebat.co.uk/files/fw/lib/modules/3.4.0/kernel/drivers/net/wireless/wl.ko sudo insmod /lib/modules/3.4.0/kernel/net/wireless/cfg80211.ko sudo insmod /lib/modules/3.4.0/kernel/net/wireless/lib80211.ko sudo insmod /lib/modules/3.4.0/kernel/net/wireless/lib80211_crypt_ccmp.ko sudo insmod /lib/modules/3.4.0/kernel/net/wireless/lib80211_crypt_tkip.ko sudo insmod /lib/modules/3.4.0/kernel/net/wireless/lib80211_crypt_wep.ko sudo insmod /lib/modules/3.4.0/kernel/drivers/net/wireless/wl.ko sudo depmod -a`

Which at least makes wi-fi turn on (but not find any access points).

sebanc commented 2 years ago

As far as I can tell:

Those commands are unnecessary or already included in brunch:

sudo su
mount -o remount, rw /
sudo echo "blacklist b43" >> /etc/modprobe.d/blacklist.conf
sudo echo "blacklist b43legacy" >> /etc/modprobe.d/blacklist.conf
sudo echo "blacklist ssb" >> /etc/modprobe.d/blacklist.conf
sudo echo "blacklist bcma" >> /etc/modprobe.d/blacklist.conf
sudo echo "wl" >> /etc/modules

I really don't think those commands do anything:

cd /lib/modules/3.4.0/kernel/drivers/net/wireless/
wget http://chromium.arnoldthebat.co.uk/files/fw/lib/modules/3.4.0/kernel/drivers/net/wireless/wl.ko
sudo insmod /lib/modules/3.4.0/kernel/net/wireless/cfg80211.ko
sudo insmod /lib/modules/3.4.0/kernel/net/wireless/lib80211.ko
sudo insmod /lib/modules/3.4.0/kernel/net/wireless/lib80211_crypt_ccmp.ko
sudo insmod /lib/modules/3.4.0/kernel/net/wireless/lib80211_crypt_tkip.ko
sudo insmod /lib/modules/3.4.0/kernel/net/wireless/lib80211_crypt_wep.ko
sudo insmod /lib/modules/3.4.0/kernel/drivers/net/wireless/wl.ko
sudo depmod -a

Those 2 might have an impact even though I am not sure why they would be needed:

sudo touch /etc/modprobe.d/wl.conf
sudo echo "alias wlan0 wl" >> /etc/modprobe.d/wl.conf

Could you try to run again the brunch update on the same version (to make sure you have a clean filesystem) and run only the 2 above commands and see if it enables wifi ?

Ciancy28 commented 2 years ago

Could you try to run again the brunch update on the same version (to make sure you have a clean filesystem) and run only the 2 above commands and see if it enables wifi ?

The first command does something but doesen't make wifi able to turn on. The second command returns bash: /etc/modprobe.d/wl.conf: Permission denied (but works when done with the other commands as you can see here: https://github.com/sebanc/brunch/issues/1024#issuecomment-901049428)

sebanc commented 2 years ago

Ah yes try "sudo su" first.

is wifi enabled directly after running those commands or after a reboot ?

Ciancy28 commented 2 years ago

Ah yes try "sudo su" first.

is wifi enabled directly after running those commands or after a reboot ?

i updated to start clean once again and this time enabling wi-fi works without running any command.
So maybe it was only a coincidence? i have no idea.

sebanc commented 2 years ago

wifi works or just the toggle ? (if just the toggle, please attach a dmesg)

Ciancy28 commented 2 years ago

wifi works or just the toggle ? (if just the toggle, please attach a dmesg)

dmesg.txt

Ciancy28 commented 2 years ago

something i noticed now is that when i get to the point that wi-fi can be turned on (but not working) bluethoot disappears from the quick settings and the button to turn it on in the settings is greyed out.
Before it was present and i was able to turn it on, not sure if it worked though.

sebanc commented 2 years ago

@Ciancy28 I used the same bcmwl module source from ubuntu which is the recommended one for your wifi adapter, the module appears to be correctly built as it works for others and I found nothing interesting on linux forums aside from the secureboot issue. Sorry but I am out of ideas here.

Ciancy28 commented 2 years ago

after reinstalling from scratch chromeos rammus 91 + brunch r92 unstable now wifi scanning works and finds access points, but doesen't connect to any of them (it always says out of range after password input). Bluethoot is also not working.

Ciancy28 commented 2 years ago

nevermind, wifi connected and it's working as soon as i hit the Comment button...
Bluethoot still doesen't work though, but i don't really need it.

ravindrank commented 2 years ago

@sebanc All good with latest stable release :) Thank you

lorebuson commented 2 years ago

Hello everyone, as I have already written in issue 1378 (https://github.com/sebanc/brunch/issues/1378), I have the same problem as @Nakul-TK and @ravindrank , that is the wifi doesn't work when I activate it even if the tick turns blue.

My Teclast F7 Plus is equipped with an "Intel AC 3165" network card and a N4100 processor.

I have already tried in the "crosh-shell" to enable the "iwlwifi_backport" framework option, but not only does nothing change but even the realteck usb adapter that I use to connect to networks no longer works.

Some idea, @sebanc or @Ciancy28 for exaple? What information can I provide to help me resolve the problem?