Page 1 of 1

[SOLVED]Trying to use WIFI on my old Macbok Pro

Posted: Fri Oct 06, 2023 1:52 pm
by Griffy
I can see it using lspci and iwconfig. Network manager just sees my wired connection. How do I enable it so I can use it?

Re: Trying to use WIFI on my old Macbok Pro

Posted: Fri Oct 06, 2023 2:04 pm
by j2mcgreg
Have a look at these instructions from the Debian Wiki:
https://wiki.debian.org/MacBook/Wireless

Re: Trying to use WIFI on my old Macbok Pro

Posted: Fri Oct 06, 2023 2:17 pm
by Charlie Brown
When you right-click on the Network icon, are all the 3 boxes checked?

Also, you can post QSI when connected wired :)

Re: Trying to use WIFI on my old Macbok Pro

Posted: Fri Oct 06, 2023 2:22 pm
by Griffy

Code: Select all

System:
  Kernel: 6.1.0-12-amd64 [6.1.52-1] arch: x86_64 bits: 64 compiler: gcc v: 12.2.0
    parameters: BOOT_IMAGE=/boot/vmlinuz-6.1.0-12-amd64 root=UUID=<filter> ro quiet splash
  Desktop: Xfce v: 4.18.1 tk: Gtk v: 3.24.36 info: xfce4-panel wm: xfwm v: 4.18.0 vt: 7
    dm: LightDM v: 1.26.0 Distro: MX-23_x64 Libretto July 31  2023 base: Debian GNU/Linux 12
    (bookworm)
Machine:
  Type: Portable System: Apple product: MacBookPro5,1 v: 1.0 serial: <superuser required> Chassis:
    type: 8 v: Mac-F42D86C8 serial: <superuser required>
  Mobo: Apple model: Mac-F42D86C8 v: Proto serial: <superuser required> BIOS: Apple
    v: MBP51.88Z.007E.B05.0905051508 date: 05/05/09
Battery:
  ID-1: BAT0 charge: 12.3 Wh (99.2%) condition: 12.4/50.1 Wh (24.7%) volts: 12.6 min: 10.9
    model: SMP bq20z951 type: Li-ion serial: N/A status: charging cycles: 84
CPU:
  Info: model: Intel Core2 Duo T9600 bits: 64 type: MCP arch: Penryn level: v1 built: 2008
    process: Intel 45nm family: 6 model-id: 0x17 (23) stepping: 6 microcode: 0x60F
  Topology: cpus: 1x cores: 2 smt: <unsupported> cache: L1: 128 KiB desc: d-2x32 KiB; i-2x32 KiB
    L2: 6 MiB desc: 1x6 MiB
  Speed (MHz): avg: 1592 min/max: 1596/2793 scaling: driver: acpi-cpufreq governor: ondemand
    cores: 1: 1592 2: 1592 bogomips: 11143
  Flags: ht lm nx pae sse sse2 sse3 sse4_1 ssse3 vmx
  Vulnerabilities:
  Type: gather_data_sampling status: Not affected
  Type: itlb_multihit status: KVM: VMX disabled
  Type: l1tf mitigation: PTE Inversion; VMX: conditional cache flushes, SMT disabled
  Type: mds status: Vulnerable: Clear CPU buffers attempted, no microcode; SMT disabled
  Type: meltdown mitigation: PTI
  Type: mmio_stale_data status: Unknown: No mitigations
  Type: retbleed status: Not affected
  Type: spec_rstack_overflow status: Not affected
  Type: spec_store_bypass status: Vulnerable
  Type: spectre_v1 mitigation: usercopy/swapgs barriers and __user pointer sanitization
  Type: spectre_v2 mitigation: Retpolines, STIBP: disabled, RSB filling, PBRSB-eIBRS: Not
    affected
  Type: srbds status: Not affected
  Type: tsx_async_abort status: Not affected
Graphics:
  Device-1: NVIDIA G96CM [GeForce 9600M GT] vendor: Apple driver: nouveau v: kernel non-free:
    series: 340.xx status: legacy (EOL) last: release: 340.108 kernel: 5.4 xorg: 1.20 arch: Tesla
    process: 40-80nm built: 2006-13 pcie: gen: 1 speed: 2.5 GT/s lanes: 16 ports: active: LVDS-1
    empty: DP-1 bus-ID: 02:00.0 chip-ID: 10de:0647 class-ID: 0300 temp: 71.0 C
  Device-2: Apple Built-in iSight type: USB driver: uvcvideo bus-ID: 1-4:2 chip-ID: 05ac:8507
    class-ID: 0e02 serial: <filter>
  Display: x11 server: X.Org v: 1.21.1.7 compositor: xfwm v: 4.18.0 driver: X:
    loaded: modesetting unloaded: fbdev,vesa dri: nouveau gpu: nouveau display-ID: :0.0 screens: 1
  Screen-1: 0 s-res: 1440x900 s-dpi: 96 s-size: 381x238mm (15.00x9.37") s-diag: 449mm (17.69")
  Monitor-1: LVDS-1 model: Apple 0x9c84 built: 2008 res: 1440x900 hz: 60 dpi: 111 gamma: 1.2
    size: 331x207mm (13.03x8.15") diag: 390mm (15.4") ratio: 16:10 modes: max: 1440x900 min: 640x350
  API: OpenGL v: 3.3 Mesa 22.3.6 renderer: NV96 direct-render: Yes
Audio:
  Device-1: NVIDIA MCP79 High Definition Audio driver: snd_hda_intel v: kernel bus-ID: 00:08.0
    chip-ID: 10de:0ac0 class-ID: 0403
  API: ALSA v: k6.1.0-12-amd64 status: kernel-api tools: alsamixer,amixer
  Server-1: PipeWire v: 0.3.65 status: active with: 1: pipewire-pulse status: active
    2: wireplumber status: active 3: pipewire-alsa type: plugin 4: pw-jack type: plugin
    tools: pactl,pw-cat,pw-cli,wpctl
Network:
  Device-1: NVIDIA MCP79 Ethernet driver: forcedeth v: kernel port: 41e0 bus-ID: 00:0a.0
    chip-ID: 10de:0ab0 class-ID: 0200
  IF: eth0 state: up speed: 1000 Mbps duplex: full mac: <filter>
  Device-2: Broadcom BCM4322 802.11a/b/g/n Wireless LAN vendor: Apple AirPort Extreme driver: wl
    v: kernel modules: ssb pcie: gen: 1 speed: 2.5 GT/s lanes: 1 bus-ID: 04:00.0 chip-ID: 14e4:432b
    class-ID: 0280
  IF: wlan0 state: dormant mac: <filter>
Bluetooth:
  Device-1: Apple Bluetooth Host Controller type: USB driver: btusb v: 0.8 bus-ID: 4-1.1:3
    chip-ID: 05ac:8213 class-ID: fe01 serial: <filter>
  Report: hciconfig ID: hci0 rfk-id: 1 state: down bt-service: N/A rfk-block: hardware: no
    software: yes address: <filter>
  Info: acl-mtu: 1021:5 sco-mtu: 64:1 link-policy: rswitch hold sniff park
    link-mode: peripheral accept
Drives:
  Local Storage: total: 111.79 GiB used: 10.23 GiB (9.2%)
  SMART Message: Unable to run smartctl. Root privileges required.
  ID-1: /dev/sda maj-min: 8:0 vendor: Samsung model: SSD 840 EVO 120GB size: 111.79 GiB
    block-size: physical: 512 B logical: 512 B speed: 3.0 Gb/s type: SSD serial: <filter> rev: AB0Q
    scheme: MBR
Partition:
  ID-1: / raw-size: 111.79 GiB size: 109.47 GiB (97.93%) used: 10.23 GiB (9.3%) fs: ext4
    dev: /dev/sda1 maj-min: 8:1
Swap:
  Kernel: swappiness: 15 (default 60) cache-pressure: 100 (default)
  ID-1: swap-1 type: file size: 2 GiB used: 512 KiB (0.0%) priority: -2 file: /swap/swap
Sensors:
  System Temperatures: cpu: 74.0 C mobo: N/A gpu: nouveau temp: 71.0 C
  Fan Speeds (RPM): N/A
Repos:
  Packages: pm: dpkg pkgs: 2082 libs: 1055 tools: apt,apt-get,aptitude,nala,synaptic pm: rpm
    pkgs: 0 pm: flatpak pkgs: 0
  No active apt repos in: /etc/apt/sources.list
  Active apt repos in: /etc/apt/sources.list.d/debian-stable-updates.list
    1: deb http://deb.debian.org/debian bookworm-updates main contrib non-free non-free-firmware
  Active apt repos in: /etc/apt/sources.list.d/debian.list
    1: deb http://deb.debian.org/debian bookworm main contrib non-free non-free-firmware
    2: deb http://security.debian.org/debian-security bookworm-security main contrib non-free non-free-firmware
  Active apt repos in: /etc/apt/sources.list.d/mx.list
    1: deb http://mirrors.rit.edu/mxlinux/mx-packages/mx/repo/ bookworm main non-free
Info:
  Processes: 216 Uptime: 1h 23m wakeups: 3 Memory: 3.8 GiB used: 1.85 GiB (48.8%) Init: SysVinit
  v: 3.06 runlevel: 5 default: graphical tool: systemctl Compilers: gcc: 12 Client: shell wrapper
  v: 5.2.15-release inxi: 3.3.26
Boot Mode: BIOS (legacy, CSM, MBR)

Re: Trying to use WIFI on my old Macbok Pro

Posted: Fri Oct 06, 2023 2:27 pm
by Griffy
Network assistant has ethernet and wlan checked. Advance networking config just shows eth0. Does the broadcom driver need to be installed? I was able to make it work in antix using conman, but it's not as easy here.

Re: Trying to use WIFI on my old Macbok Pro

Posted: Fri Oct 06, 2023 2:28 pm
by rokytnji.1
Not Mac proficient

Might start out with

Code: Select all

rfkill list
To make sure things are not turned off.


Code: Select all

sudo dmesg | grep firmware 
wont hurt to post that either in this thread.

Relevant info

Code: Select all

Network:
  Device-1: NVIDIA MCP79 Ethernet driver: forcedeth v: kernel port: 41e0 bus-ID: 00:0a.0
    chip-ID: 10de:0ab0 class-ID: 0200
  IF: eth0 state: up speed: 1000 Mbps duplex: full mac: <filter>
  Device-2: Broadcom BCM4322 802.11a/b/g/n Wireless LAN vendor: Apple AirPort Extreme driver: wl
    v: kernel modules: ssb pcie: gen: 1 speed: 2.5 GT/s lanes: 1 bus-ID: 04:00.0 chip-ID: 14e4:432b
    class-ID: 0280
  IF: wlan0 state: dormant mac: <filter>
Good luck.

Re: Trying to use WIFI on my old Macbok Pro

Posted: Fri Oct 06, 2023 2:29 pm
by Charlie Brown
At least we know that the correct driver ( wl ) is loaded. Just state: dormant

It's also "partially" supported by b43 driver.

Just, one of them needs to stay blacklisted to prevent conflicts. You can use the MX Network Assistant to do/check that

Re: Trying to use WIFI on my old Macbok Pro

Posted: Fri Oct 06, 2023 2:30 pm
by Charlie Brown
Yes, rfkill will be good to see.

Re: Trying to use WIFI on my old Macbok Pro

Posted: Fri Oct 06, 2023 2:38 pm
by Charlie Brown
Griffy wrote: Fri Oct 06, 2023 2:27 pm... Does the broadcom driver need to be installed?..
Already installed ootb (hence wl is loaded), even the same version with AHS.


If nothing works (and then if you like) we can try ConnMan cause sometimes the culprit is just the NM and that solves the issue.

(In case you try it by yourself: You need to remove NM after the installation as they'll conflict)

Re: Trying to use WIFI on my old Macbok Pro

Posted: Fri Oct 06, 2023 2:40 pm
by Griffy
$ rfkill list
0: phy0: Wireless LAN
Soft blocked: no
Hard blocked: no
1: hci0: Bluetooth
Soft blocked: yes
Hard blocked: no

Re: Trying to use WIFI on my old Macbok Pro

Posted: Fri Oct 06, 2023 2:43 pm
by Charlie Brown
So, we can eliminate that :)

Re: Trying to use WIFI on my old Macbok Pro

Posted: Fri Oct 06, 2023 3:18 pm
by PhantomTramp

Code: Select all

Device-2: Broadcom BCM43224 802.11a/b/g/n vendor: Apple AirPort Extreme driver: wl v: kernel
    modules: bcma pcie: gen: 1 speed: 2.5 GT/s lanes: 1 bus-ID: 03:00.0 chip-ID: 14e4:4353
    class-ID: 0280
  IF: wlan0 state: up mac: <filter>
I have a MacBook 6,1 that works. He has BCM43222 and the kernel module looks different.

I have b43, b43 legacy and a host of other drivers blocked by default in MX Network Assistant..

The Tramp

:eek:

Re: Trying to use WIFI on my old Macbok Pro

Posted: Fri Oct 06, 2023 3:21 pm
by BitterTruth
What does these show:

ip link

cat /etc/network/interfaces

Re: Trying to use WIFI on my old Macbok Pro

Posted: Fri Oct 06, 2023 3:40 pm
by Charlie Brown
PhantomTramp wrote: Fri Oct 06, 2023 3:18 pm...
I have b43, b43 legacy and a host of other drivers blocked by default...
Yep, by default wl is enabled and /etc/modprobe.d/broadcom-sta-dkms.conf looks like this:

Code: Select all

# wl module from Broadcom conflicts with the following modules:
blacklist b43
blacklist b43legacy
blacklist b44
blacklist bcma
blacklist brcm80211
blacklist brcmsmac
blacklist ssb

Re: Trying to use WIFI on my old Macbok Pro

Posted: Fri Oct 06, 2023 3:49 pm
by Charlie Brown
... @Griffy

on yours it shows:

driver: wl ... modules: ssb

is ssb not blacklisted as above? (if so, you can either edit the file to look like the above, or use the MXNA to do that)

Re: Trying to use WIFI on my old Macbok Pro

Posted: Fri Oct 06, 2023 4:04 pm
by Griffy
ip link

1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP mode DEFAULT group default qlen 1000
link/ether 00:23:df:9e:cf:74 brd ff:ff:ff:ff:ff:ff
3: wlan0: <NO-CARRIER,BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state DORMANT mode DORMANT group default qlen 1000
link/ether 00:23:6c:97:a5:05 brd ff:ff:ff:ff:ff:ff

cat /etc/network/interfaces
# interfaces(5) file used by ifup(8) and ifdown(8)

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface

Re: Trying to use WIFI on my old Macbok Pro

Posted: Fri Oct 06, 2023 4:18 pm
by BitterTruth
The dormant state is like a power saving state. Let's see if we can set it to the default state:

Code: Select all

sudo ip link set wlan0 mode default

Re: Trying to use WIFI on my old Macbok Pro

Posted: Fri Oct 06, 2023 4:28 pm
by Griffy
Didn't appear to do anything.

Re: Trying to use WIFI on my old Macbok Pro

Posted: Fri Oct 06, 2023 4:30 pm
by BitterTruth
Now do:
sudo ip link set wlan0 up

and then post the output from ip link again

Re: Trying to use WIFI on my old Macbok Pro

Posted: Fri Oct 06, 2023 4:37 pm
by Griffy
ip link
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP mode DEFAULT group default qlen 1000
link/ether 00:23:df:9e:cf:74 brd ff:ff:ff:ff:ff:ff
3: wlan0: <NO-CARRIER,BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state DORMANT mode DORMANT group default qlen 1000
link/ether 00:23:6c:97:a5:05 brd ff:ff:ff:ff:ff:ff

Re: Trying to use WIFI on my old Macbok Pro

Posted: Fri Oct 06, 2023 4:59 pm
by BitterTruth
2 things that have me concerned:

1) your system is still using the 'old naming convention' for interface names i.e. wlan0, eth0 whne modern debian should be using enspl0, enxb359597770089787 etc
2) the admin state of wlan0 is up but the operational state is dormant and the mode is dormant

I think first try doing what @Charlie Brown suggested in post #15 and blacklisting ssb then edit /etc/network/interfaces file to

auto wlan0
allow-hotplug wlan0
iface wlan0 inet dhcp

to try bringing the interface up at boot. Save and Reboot.

Make sure to disconnect ethernet since sometimes if ethernet is connected, wifi switches off.

Re: Trying to use WIFI on my old Macbok Pro

Posted: Fri Oct 06, 2023 5:03 pm
by Charlie Brown
BitterTruth wrote: Fri Oct 06, 2023 4:59 pm 2 things that have me concerned:

1) your system is still using the 'old naming convention' for interface names i.e. wlan0, eth0 whne modern debian should be using enspl0, enxb359597770089787 etc
Same here, so we can eliminate that:

$ ip link
1: lo: ...
2: eth0:...
3: wlan0: ...

Re: Trying to use WIFI on my old Macbok Pro

Posted: Fri Oct 06, 2023 10:09 pm
by rokytnji.1
Just curious. I am on my MX 23 xfce shop computer redoing my wifi connection due to hail storm and router death .

Just curious what you get when ypu left click the network icon and hit the available networks line there. Can you connect OK?

Here is my shop computer that uses a dish network tv satellite antenna as amplifier for my wifi recetion

Notice on readout my wifi (wlan0) whows up now I am connected.

Code: Select all

harry@shop:~
$ inxi -Fxz
System:
  Kernel: 6.1.0-12-amd64 arch: x86_64 bits: 64 compiler: gcc v: 12.2.0
    Desktop: Xfce v: 4.18.1 Distro: MX-23_x64 Libretto July 31  2023 base: Debian
    GNU/Linux 12 (bookworm)
Machine:
  Type: Desktop System: Dell product: Precision WorkStation T3400 v: N/A
    serial: <superuser required>
  Mobo: Dell model: 0TP412 serial: <superuser required> BIOS: Dell v: A09
    date: 06/04/2009
CPU:
  Info: dual core model: Intel Core2 Duo E7400 bits: 64 type: MCP arch: Penryn
    rev: A cache: L1: 128 KiB L2: 3 MiB
  Speed (MHz): avg: 2267 high: 2791 min/max: N/A cores: 1: 1744 2: 2791
    bogomips: 11164
  Flags: ht lm nx pae sse sse2 sse3 sse4_1 ssse3
Graphics:
  Device-1: NVIDIA G86 [Quadro NVS 290] driver: nouveau v: kernel arch: Tesla
    bus-ID: 01:00.0 temp: 58.0 C
  Display: x11 server: X.Org v: 1.21.1.7 driver: X: loaded: modesetting
    unloaded: fbdev,vesa dri: nouveau gpu: nouveau resolution: 1280x1024~60Hz
  API: OpenGL v: 3.3 Mesa 22.3.6 renderer: NV86 direct-render: Yes
Audio:
  Device-1: Intel 82801I HD Audio vendor: Dell driver: snd_hda_intel v: kernel
    bus-ID: 00:1b.0
  API: ALSA v: k6.1.0-12-amd64 status: kernel-api
  Server-1: PipeWire v: 0.3.65 status: active
Network:
  Device-1: Broadcom NetXtreme BCM5754 Gigabit Ethernet PCI Express
    vendor: Dell Precision T3400 driver: tg3 v: kernel port: N/A bus-ID: 04:00.0
  IF: eth0 state: down mac: <filter>
  Device-2: Realtek RTL8191SU 802.11n WLAN Adapter driver: r8712u type: USB
    bus-ID: 3-5.4:5
  IF: wlan0 state: up mac: <filter>
Drives:
  Local Storage: total: 1.36 TiB used: 14.81 GiB (1.1%)
  ID-1: /dev/sda vendor: Seagate model: ST3500312CS size: 465.26 GiB
  ID-2: /dev/sdc vendor: Toshiba model: External USB 3.0 size: 931.51 GiB
    type: USB
Partition:
  ID-1: / size: 62.65 GiB used: 14.81 GiB (23.6%) fs: ext4 dev: /dev/sda1
Swap:
  Alert: No swap data was found.
Sensors:
  System Temperatures: cpu: 34.0 C mobo: N/A gpu: nouveau temp: 58.0 C
  Fan Speeds (RPM): cpu: 1197 mobo: 1392
Info:
  Processes: 218 Uptime: 58m Memory: total: 6 GiB available: 5.72 GiB
  used: 2.17 GiB (38.0%) Init: SysVinit runlevel: 5 Compilers: N/A
  Packages: 2073 Shell: Bash v: 5.2.15 inxi: 3.3.28
harry@shop:~

Re: Trying to use WIFI on my old Macbok Pro

Posted: Sat Oct 07, 2023 10:25 am
by Griffy
Why would it be using the old naming convention? I used a freshly downloaded .iso on a freshly partitioned HD that had never been in the mac? I'm curious as to why it would show up this way.

Re: Trying to use WIFI on my old Macbok Pro

Posted: Sat Oct 07, 2023 1:06 pm
by Griffy
Charlie Brown wrote: Fri Oct 06, 2023 3:40 pm
PhantomTramp wrote: Fri Oct 06, 2023 3:18 pm...
I have b43, b43 legacy and a host of other drivers blocked by default...
Yep, by default wl is enabled and /etc/modprobe.d/broadcom-sta-dkms.conf looks like this:

Code: Select all

# wl module from Broadcom conflicts with the following modules:
blacklist b43
blacklist b43legacy
blacklist b44
blacklist bcma
blacklist brcm80211
blacklist brcmsmac
blacklist ssb
I just got around to trying this and it worked. Made my modprobe.d file look like this, because it was missing a few entries.
Thanks Charlie!
I am still wondering why it used the old naming conventions.

Re: [SOLVED]Trying to use WIFI on my old Macbok Pro

Posted: Sat Oct 07, 2023 2:51 pm
by BitterTruth
It's probably the older bios presenting the devices in a certain way to the OS. If it works, it's fine.

Hope you enjoy your Mac. Threw mine away, prematurely a few of years ago. Regret it now. Linux has come along way in the last few years.