Skip to content

CommanderPi GUI fails to launch if using dtoverlay=disable-wifi #64

Description

@MardukNT

System Specs:

OS Mod: Twister OS Lite version 2.0.3
OS: Raspbian GNU/Linux 10 (buster) armv7l
Host: Raspberry Pi 4 Model B Rev 1.1
Kernel: 5.10.17-v7l+
Shell: bash 5.0.3
CPU: BCM2711 (4) @ 2.000GHz
Memory: 776MiB / 3774MiB
Disk (/): 5.6G / 110G (6%)

Issue:

CommanderPi v1.0 GUI fails to launch when dtoverlay=disable-wifi is used in /boot/config.txt

Steps to reproduce:

  • Install CommanderPi v1.0 following the Github instructions or via Pi-Apps.
  • Next, in a terminal window, type in sudo nano /boot/config.txt and hit Enter.
  • Scroll to the bottom and add dtoverlay=disable-wifi under the [All] section. Then Save and Exit.
  • Restart system and log back in.
  • Attempt to launch CommanderPi
  • Observe busy cursor briefly appears onscreen, then disappears. No GUI is ever shown.

Expected behavior:

CommanderPi should launch and function properly if/when WiFi is disabled at startup in the boot config file.

Troubleshooting performed:

From a Terminal session, I ran the following command sudo python3 ${HOME}/CommanderPi/src/main.py ${HOME}

Command output (emphasis added by me):

Here is home_path /home/pi
Here is app-1 Version 1.0
Exist and read
Traceback (most recent call last):
File "/home/pi/CommanderPi/src/main.py", line 2, in <module>
import gui as g
File "/home/pi/CommanderPi/src/gui.py", line 4, in <module>
import resources as rs
File "/home/pi/CommanderPi/src/resources.py", line 60, in <module>
ipv4wlan0 = network['wlan0'][0][1]
KeyError: 'wlan0'

Note: Removing or commenting out dtoverlay=disable-wifi from /boot/config.txt and rebooting, resolves the issue (but not the underlying conflict).

Final Thoughts:

Thank you for your attention to this matter. Kindly reach out to me, if you require further information or further testing.
--MardukNT

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions