Page 1 of 1

No WiFi on 32bit Snapshot

Posted: Mon Nov 16, 2020 10:38 pm
by AVLinux
Hi,

I have to admit to investing a ridiculous amount of hours into something that started as a whim.. I have a 32bit laptop that I still do some light production work on and I first tried to crossgrade a Debian Buster install to MX and I gave up after multiple snapshots had no WiFi working... so I thought better nuke this Frankenstall and start again so I installed one of the minimal 32bit MX ISO's and have spent about 2 weeks rebuilding everything . Tonight I have minted my first Snapshot ISO (I thought as a bonus I might provide a limited AVL-MXE 32bit ISO) and disappointingly even the 'pure' MX install produces an ISO with no WiFi..?

So a couple of points: I am running a custom kernel on this install BUT the WiFi on the host system on this same kernel works flawlessly. Also this 'ole girl is running Intel iwl WiFi which has been supported forever.. I actually remember Mepis 6.5 supporting it OOTB on this same machine back in 2006 so it's not a weird chipset by any stretch. When I boot the Snapshot and click on the network manager icon in the notification area it says 'device not ready' under WiFi Networks.. The MX-Tools Network assistant sees the WiFi chipset and shows the iwl drivers as loaded. I'm posting this from the booted ISO on a wired connection and here is the QSI:

Any clues as to why the running system has WiFi yet the Snapshot ISO does not? Is this a bug or a feature??

Code: Select all

Snapshot created on: 20201116_2038
System:    Host: <filter> Kernel: 5.9.1-rt19avl1 i686 bits: 32 compiler: N/A 
           parameters: quiet nosplash 
           Desktop: Openbox 3.6.1 info: xfce4-panel dm: SLiM 1.3.6 
           Distro: MX-19.3_base_386 patito feo Sept 28  2020 base: Debian GNU/Linux 10 (buster) 
Machine:   Type: Portable System: Dell product: MP061 v: N/A serial: <filter> Chassis: type: 8 
           serial: <filter> 
           Mobo: Dell model: 0FF049 serial: <filter> BIOS: Dell v: A01 date: 03/17/2006 
Battery:   ID-1: BAT0 charge: 28.3 Wh condition: 35.6/48.8 Wh (73%) volts: 11.5/11.1 
           model: PS2 DELL 00 type: Li-ion serial: <filter> status: Discharging 
CPU:       Topology: Dual Core model: Intel T2500 bits: 32 type: MCP arch: M Yonah family: 6 
           model-id: E (14) stepping: 8 microcode: 39 L2 cache: 2048 KiB 
           flags: nx pae sse sse2 sse3 bogomips: 7980 
           Speed: 1795 MHz min/max: 1000/2000 MHz Core speeds (MHz): 1: 1278 2: 1131 
           Vulnerabilities: Type: itlb_multihit status: KVM: VMX unsupported 
           Type: l1tf mitigation: PTE Inversion 
           Type: mds status: Vulnerable: Clear CPU buffers attempted, no microcode; SMT disabled 
           Type: meltdown mitigation: PTI 
           Type: spec_store_bypass status: Not affected 
           Type: spectre_v1 mitigation: usercopy/swapgs barriers and __user pointer sanitization 
           Type: spectre_v2 mitigation: Full generic retpoline, STIBP: disabled, RSB filling 
           Type: srbds status: Not affected 
           Type: tsx_async_abort status: Not affected 
Graphics:  Device-1: Intel Mobile 945GM/GMS 943/940GML Express Integrated Graphics vendor: Dell 
           driver: i915 v: kernel bus ID: 00:02.0 chip ID: 8086:27a2 
           Display: x11 server: X.Org 1.20.4 driver: intel unloaded: fbdev,modesetting,vesa 
           compositor: compton v: 0.1~beta2+20150922 resolution: 1920x1200~60Hz 
           OpenGL: renderer: Mesa DRI Intel 945GM x86/MMX/SSE2 v: 1.4 Mesa 18.3.6 
           direct render: Yes 
Audio:     Device-1: Intel NM10/ICH7 Family High Definition Audio vendor: Dell 
           driver: snd_hda_intel v: kernel bus ID: 00:1b.0 chip ID: 8086:27d8 
           Sound Server: ALSA v: k5.9.1-rt19avl1 
Network:   Device-1: Broadcom Limited BCM4401-B0 100Base-TX vendor: Dell Inspiron 9400 Laptop 
           driver: b44 v: kernel port: 10c0 bus ID: 03:00.0 chip ID: 14e4:170c 
           Device-2: Intel PRO/Wireless 3945ABG [Golan] Network driver: iwl3945 v: in-tree:s 
           port: 10c0 bus ID: 0c:00.0 chip ID: 8086:4222 
           IF: wlan0 state: down mac: <filter> 
           IF-ID-1: eth0 state: up speed: 100 Mbps duplex: full mac: <filter> 
Drives:    Local Storage: total: 473.24 GiB used: 2.86 GiB (0.6%) 
           ID-1: /dev/sda vendor: Samsung model: SSD 840 EVO 500GB size: 465.76 GiB block size: 
           physical: 512 B logical: 512 B speed: <unknown> serial: <filter> rev: CB6Q 
           scheme: MBR 
           ID-2: /dev/sdb type: USB vendor: Lexar model: USB Flash Drive size: 7.48 GiB 
           block size: physical: 512 B logical: 512 B serial: <filter> rev: 1100 scheme: MBR 
Partition: ID-1: / raw size: N/A size: 1.54 GiB used: 78.1 MiB (4.9%) fs: overlay 
           source: ERR-102 
           ID-2: swap-1 size: 1024.0 MiB used: 0 KiB (0.0%) fs: swap swappiness: 15 (default 60) 
           cache pressure: 100 (default) dev: /dev/sda4 
Sensors:   System Temperatures: cpu: 63.0 C mobo: N/A sodimm: 49.0 C 
           Fan Speeds (RPM): cpu: 0 fan-2: 0 
Repos:     Active apt repos in: /etc/apt/sources.list 
           1: deb https://dl.winehq.org/wine-builds/debian/ buster main
           Active apt repos in: /etc/apt/sources.list.d/debian-stable-updates.list 
           1: deb http://deb.debian.org/debian/ buster-updates main contrib non-free
           Active apt repos in: /etc/apt/sources.list.d/debian.list 
           1: deb http://deb.debian.org/debian/ buster main contrib non-free
           2: deb http://deb.debian.org/debian-security/ buster/updates main contrib non-free
           3: deb-src http://deb.debian.org/debian/ buster non-free contrib main
           Active apt repos in: /etc/apt/sources.list.d/kxstudio-debian-ppas.list 
           1: deb http://ppa.launchpad.net/kxstudio-debian/libs/ubuntu bionic main
           2: deb http://ppa.launchpad.net/kxstudio-debian/music/ubuntu bionic main
           3: deb http://ppa.launchpad.net/kxstudio-debian/plugins/ubuntu bionic main
           4: deb http://ppa.launchpad.net/kxstudio-debian/apps/ubuntu bionic main
           5: deb http://ppa.launchpad.net/kxstudio-debian/kxstudio/ubuntu bionic main
           Active apt repos in: /etc/apt/sources.list.d/kxstudio-external.list 
           1: deb [arch=amd64,i386] https://kx.studio/repo/ stable free
           2: deb [arch=amd64,i386] https://kx.studio/repo/ gcc5 free
           Active apt repos in: /etc/apt/sources.list.d/mx.list 
           1: deb http://mirrors.rit.edu/mxlinux/mx-packages/mx/repo/ buster main non-free
           2: deb http://mirrors.rit.edu/mxlinux/mx-packages/mx/testrepo/ buster test
           No active apt repos in: /etc/apt/sources.list.d/various.list 
Info:      Processes: 207 Uptime: 37m Memory: 1.96 GiB used: 621.6 MiB (31.0%) Init: SysVinit 
           v: 2.93 runlevel: 5 default: 5 Compilers: gcc: 8.3.0 alt: 8 Shell: quick-system-in 
           running in: quick-system-in inxi: 3.0.36 

Re: No WiFi on 32bit Snapshot

Posted: Mon Nov 16, 2020 10:52 pm
by JayM
ISTR there was a new feature added to MX Snapshot that excludes network settings. If you select "all of the above" on the exclusion page these will also be excluded. Maybe that has something to do with it? You could try unselecting networks from the exclusion page and make another snapshot and test it to find out if that's what's causing it.

Re: No WiFi on 32bit Snapshot

Posted: Mon Nov 16, 2020 11:14 pm
by AVLinux
Hi Jay,

Thanks for the reply. I'll give that a try and have new ISO building now, that would be pretty odd if that's the problem though.. The hardware should just work if the drivers are present and indicate on login that there is a WiFi network to sign into, not require the explicit Network info, in fact I don't know how wise it would be to share an ISO with info specific to my network on it.. The 64bit Snapshot ISO's I build seem to work without including the Network config info when the ISO's are built.

Re: No WiFi on 32bit Snapshot

Posted: Mon Nov 16, 2020 11:24 pm
by JayM
I kind of doubt if that's the problem too but it's the only thing I could think of. It's worth trying anyway, just to eliminate it from being the cause if nothing else.

Re: No WiFi on 32bit Snapshot

Posted: Tue Nov 17, 2020 1:01 am
by AVLinux
OK,

Built another ISO with my Network settings unchecked (so preserved) and the booted ISO still has no WiFi access and says 'device not ready' again. This time during the Live session I went into the Network Assistant and I blocked the loaded 'iwlegacy' driver module and then unblocked it and then WiFi worked and it connected to my home Network without needing my password.. So to summarize my personal Network settings were preserved which I don't want for a distributable ISO and the WiFi hardware still didn't work OOTB until I randomly blocked and unblocked a module..

What config file is loading both the iwlegacy and iwl3945 modules at boot? Or what should I be looking at?

Re: No WiFi on 32bit Snapshot

Posted: Tue Nov 17, 2020 1:17 am
by JayM
This person also has an older laptop with Broadcom wifi. Try the suggestions I gave him, only in the forum search suggestion, search for BCM4401. It looks like there's a solved post about getting wifi working with that chipset. Regarding the suggestion involving the wiki page, in your case you may need to unblacklist the b44 driver instead of b43, I'm not sure. Possibly the b43legacy driver on a laptop that old? You may have to try them one at a time and see which one works. Don't forget step 2 to remove the wl module that conflicts with these older Broadcom driver modules, and to reboot after unblacklisting each one.

Re: No WiFi on 32bit Snapshot

Posted: Tue Nov 17, 2020 1:27 am
by AVLinux
Hi again!

But this laptop has Intel iwl3945 WiFi and the Wired chip is Broadcom (and is working fine)..

I think this line from QSI may have something to do with it:

Code: Select all

 Device-2: Intel PRO/Wireless 3945ABG [Golan] Network driver: iwl3945 v: in-tree:s 
           port: 10c0 bus ID: 0c:00.0 chip ID: 8086:4222 
           IF: wlan0 state: down mac: <filter> 
Should the 'state' be 'up' and not down?

Re: No WiFi on 32bit Snapshot

Posted: Tue Nov 17, 2020 1:34 am
by JayM
oops, that was the Ethernet I was seeing. :bagoverhead:
I suggest as that system and its hardware are so old that regressions in that new kernel have dropped support for that hardware. You might try the standard Debian 4.19 kernel or even the antiX 4.9 kernel and see if wifi works. I did find a solution on the forum but it's for antiX so it may not apply here, but here it is anyway:
viewtopic.php?f=40&t=50613&p=505685&hil ... BG#p505685

Re: No WiFi on 32bit Snapshot

Posted: Tue Nov 17, 2020 1:58 am
by AVLinux
Hmmm,

But then why would the WiFi work on the system running the same same new kernel that the ISOs are being built with? I completely understand what you mean and that some old computers don't like 5.X+ plus kernels, but if that were the case then the WiFi wouldn't work at all either on the running system or the Snapshot. The WiFi works perfectly running the system with the 5.9.1 kernel, it's when I build a Snapshot from the system that WiFi doesn't work when booting, on top of that when I fiddle with the iwlegacy module on the Live session the WiFi will start working so the Kernel supports the hardware, it seems to me that there are either conflicting modules or something is preventing the interface from coming up at boot.

Re: No WiFi on 32bit Snapshot

Posted: Tue Nov 17, 2020 2:01 am
by JayM
I hate to say RTFM but there are some pretty good wifi troubleshooting steps in section 3.4.2 that might help you figure out what's happening. :smile:

Edit: BTW I think you may be right that there may be two or more modules vying for control of the card and that's what's causing the issue. I bet Huckleberry Finn will be able to suggest some things when he comes online. He's pretty good with wifi and networking issues, among other things.

Re: No WiFi on 32bit Snapshot

Posted: Tue Nov 17, 2020 6:53 am
by Huckleberry Finn
JayM wrote: Tue Nov 17, 2020 2:01 amI bet Huckleberry Finn will be able to suggest some things when he comes online. He's pretty good with wifi and networking issues, among other things.
Thank you so much :biggrin:
AVLinux wrote: Tue Nov 17, 2020 1:58 am...then the WiFi wouldn't work at all either on the running system or the Snapshot. The WiFi works perfectly running the system with the 5.9.1 kernel, ... it seems to me that there are either conflicting modules or something is preventing the interface from coming up at boot.
Yep.

On the other hand, same question comes to mind: then why doesn't that conflicting one (if there's) doesn't conflict/get loaded on the installed system but on live-session only ? :)
  • There seems to be no candidate to be conflicting (other than iwlwifi , though that chip number (8086:4222) is not in the list of its supported devices). You can try blacklisting that.
  • At worst case, you can try putting a .sh in Autostart Applications list (on the installed system, then take a snapshot, or on live-session directly, then Remaster), simply :

    Code: Select all

    sudo modprobe -r iwl3945 ; sudo modprobe iwl3945
    (maybe with sleep ... between )
Weirdly sometimes the vice versa happens: Everything works ootb on live-session with the official iso but not when installed, and you try this and that :)
  • Alternatively (though no such issue on the installed system) this works about disconnection issues, (again you can directly do that on live-session, then remaster if you like)

    Code: Select all

    echo "options iwl3945 disable_hw_scan=0" | sudo tee -a /etc/modprobe.d/iwl3945.conf
    (... or even both: .sh at startup and this .conf in etc... )

Re: No WiFi on 32bit Snapshot

Posted: Tue Nov 17, 2020 10:46 am
by AVLinux
Hi Huck!

Thanks for the help! I will give those a try on the next round of Snapshot tests. I know my way around multimedia stuff but I am absolutely terrible at Networking stuff. The module option looks like a good place to start, it seems to make sense, the WiFi card is there but not fully switched on... Maybe it's a firmware package fluke...?

I'll post back with what i find out

Re: No WiFi on 32bit Snapshot

Posted: Tue Nov 17, 2020 4:13 pm
by AVLinux
OK...

For fun I created the iwl3945.conf and put it in /etc/modprobe.d and it is present on the Live Filesystem (as in it is getting properly incorporated into the ISO) but still the ISO boots with no WiFi due to 'device not ready' so then in a terminal as Root in a Live session I did modprobe -r iwl3945 followed a few seconds later by modprobe iwl3945 but there was no change in status in the Network Manager notification area. Once again if I launch the Network Assistant and graphically unload and reload the iwl3945 driver it will start working on Reload...?

I'm puzzled, isn't running the modprobe commands doing exactly the same thing as the graphical Network Assistant utility is?

Re: No WiFi on 32bit Snapshot

Posted: Tue Nov 17, 2020 4:22 pm
by Huckleberry Finn
If you put it at Session and Startup => Autostart Apps (this is according to Xfce) it will be done from the very beginning.

Yes, you can do using gui, but to be loaded next boot, changes need to get permanent, you need to Remaster after changes, you know.. With modprobe, you directly load /unload module in kernel, but Network Assistant blacklists / unblacklists (prevents or not)

But.. when NM doesn't work , what does inxi -n show on live session? Or lsmod | grep iwl

Re: No WiFi on 32bit Snapshot

Posted: Tue Nov 17, 2020 4:35 pm
by AVLinux
Hi, posting from a live sesh with wired internet working..

demo@mx1:~
$ inxi -n
Network: Device-1: Broadcom Limited BCM4401-B0 100Base-TX driver: b44
Device-2: Intel PRO/Wireless 3945ABG [Golan] Network driver: iwl3945
IF: wlan0 state: down mac: fe:ec:69:5d:c0:81
IF-ID-1: eth0 state: up speed: 100 Mbps duplex: full mac: 00:14:22:f3:10:89
demo@mx1:~
$



demo@mx1:~
$ lsmod | grep iwl
iwl3945 61440 0
iwlegacy 69632 1 iwl3945
mac80211 483328 2 iwlegacy,iwl3945
cfg80211 327680 3 mac80211,iwlegacy,iwl3945
demo@mx1:~
$

I understand about using autostart but I want to distribute this snapshot so I don't want too many specifics tweaks for my hardware if that is going to mess things up for somebody else booting it..

Re: No WiFi on 32bit Snapshot

Posted: Tue Nov 17, 2020 4:40 pm
by Huckleberry Finn
So, the driver is ok, it looks loaded in both outputs:

Device-2: Intel PRO/Wireless 3945ABG [Golan] Network driver: iwl3945

Just, for some reason NM doesn't work .. State is down ...

So, no need to do anything extra, no need to .sh file, autostart etc..

So.. it shows no list of available APs ? (I'd say left & right click on NM icon if it was Xfce :) )

Re: No WiFi on 32bit Snapshot

Posted: Tue Nov 17, 2020 4:45 pm
by AVLinux
Hmmm... NM bug?

Re: No WiFi on 32bit Snapshot

Posted: Tue Nov 17, 2020 4:48 pm
by Huckleberry Finn
If you can see any Access Points, no ..

Re: No WiFi on 32bit Snapshot

Posted: Tue Nov 17, 2020 4:52 pm
by AVLinux
No pointy accesses can be found...
ksnip_20201117-165158.png
It's a 'so close' kind of issue.. :-/

Re: No WiFi on 32bit Snapshot

Posted: Tue Nov 17, 2020 4:55 pm
by Huckleberry Finn
What about right-click on NM icon? The top three boxes checked, right? "Enable ..."

Re: No WiFi on 32bit Snapshot

Posted: Tue Nov 17, 2020 4:56 pm
by AVLinux
Yep,

All boxes are checked including 'Enable WiFi"

Edit Connections shows only the existing Wired Connection

Re: No WiFi on 32bit Snapshot

Posted: Tue Nov 17, 2020 5:02 pm
by Huckleberry Finn
That's weird. We came back to post #1 :)

Re: No WiFi on 32bit Snapshot

Posted: Tue Nov 17, 2020 5:08 pm
by AVLinux
Haha, indeed we did! Not for your lack of trying though, thanks so much!

This ISO is giving me the heebie jeebies because WiFi is not working on either of my old laptops (laptop number 2 is Broadcom WiFi so expected)... It also doesn't boot on my threadripper Desktop most likely becuase of 32bit vs. UEFI so it may be wonderful elsewhere or a complete dud....

Guess I'll have to RC it into the wild and see if the cat licks it up..

Re: No WiFi on 32bit Snapshot

Posted: Tue Nov 17, 2020 5:12 pm
by Huckleberry Finn
You're welcome. Just.. Maybe you just need to press Fn Keys to activate wi-fi device ..? Or if there's a tiny button, simply switch off & on .

Re: No WiFi on 32bit Snapshot

Posted: Tue Nov 17, 2020 5:13 pm
by AVLinux
Hmmm, yeah I did try that before and it didn't work, it seems to not be a hardware switching problem..

Re: No WiFi on 32bit Snapshot

Posted: Tue Nov 17, 2020 5:16 pm
by Huckleberry Finn
Ok. As I mentioned before, sometimes the reverse happens, it's fine on live session but not when installed. The difference is squashfs , ext4 etc ... If only we all understand one day :)

Re: No WiFi on 32bit Snapshot

Posted: Tue Nov 17, 2020 5:20 pm
by AVLinux
Yeah, gotta love computers! I'm prolly not doing myself any favours with a fresh kernel on a fossil computer.. Anyway thanks again for the time and effort! I better go make some dinner and put this thing away for a while..

Re: No WiFi on 32bit Snapshot

Posted: Wed Nov 18, 2020 1:29 pm
by Huckleberry Finn
I just wonder:

Have you tried the snapshot -wifi- when it's not connected wired? (Without the cable particularly )

Also, what happens if you boot that on any other machine? (no matter different wifi device & driver on that one): No Access Points listed again?

And ... This one is up to you and just out of curiosity:

In case you have time and you don't feel lazy :) can you do / remaster the same snapshot with antiX 4.9.240 kernel and then boot on that machine again? (Yes, you wouldn't like this, as an older kernel may effect other audio related things, but this is just to try that wireless issue) ...

(Just by the way, that machine will like that kernel so much for other things.. - I know, you particularly use the 5.9 for the distro - )

Then we can have an idea if it's related to the wifi device itself, or Network Manager, or kernel (though it sounds odd as it works with the same kernel on installed system)

Re: No WiFi on 32bit Snapshot

Posted: Wed Nov 18, 2020 1:45 pm
by agnivo007
Any weird dmesg log?