Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DietPi-Config | Enabling WiFi for 1st time, delayed by DHCP #711

Closed
Fourdee opened this Issue Jan 14, 2017 · 2 comments

Comments

Projects
None yet
1 participant
@Fourdee
Copy link
Collaborator

Fourdee commented Jan 14, 2017

To allow for scanning on most WiFi chipsets, we need to bring up the adapter (eg: ifup wlan0)

The DHCP delay is due to bringing up the adapter with no creds for the 1st time.

@Fourdee Fourdee added this to the v142 milestone Jan 14, 2017

@Fourdee

This comment has been minimized.

Copy link
Collaborator Author

Fourdee commented Jan 14, 2017

Options:

  • Set WiFi to STATIC in dietpi-config by default on 1st run. Downside: requires user to change from STATIC before scanning and connecting.
  • 🈯️ /etc/dhcp/dhclient.conf: specify timeout and retry limits. Downside: If the limits are too "tight", this may actually cause issues with some routers not providing lease ack in time, resulting in a failed connection.
timeout 10;
retry 4;

Fourdee added a commit that referenced this issue Jan 14, 2017

v142
+ DietPi-Config | WiFi: Reduced the DHCP retry count and timeouts, to
prevent a unnecessary wait when enabling WiFi for the 1st time:
#711
@Fourdee

This comment has been minimized.

Copy link
Collaborator Author

Fourdee commented Jan 14, 2017

Managed to reduce the delay when enabling WiFi for the 1st time, by roughly 70%, adjusting limits of dhclient:

timeout 10;
retry 4;

Marking as closed.

@Fourdee Fourdee closed this Jan 14, 2017

@Fourdee Fourdee referenced this issue Jan 14, 2017

Merged

v142 #712

Fourdee added a commit that referenced this issue Jan 14, 2017

Merge pull request #712 from Fourdee/testing
v142
(14/01/17)

New Image:

DietPi for Sparky SBC (Allo) is now available: http://dietpi.com/phpbb/viewtopic.php?f=8&t=1161&p=4922#p4922

Changes / Improvements / Optimizations:

DietPi-Backup | Now supports BTRFS filesystems for target backup location.

DietPi-Backup | Now features "System only" and "Full backup" modes. In "Full backup" mode, DietPi User data is included in backups: #685

DietPi-Config | Audio > Sound card: "Allo Piano DAC 2.1", now applies correct module and dtoverlay (previously Piano DAC 1 was used): #699

DietPi-Config | Audio > Sound card: Added support for "Allo Cheapo" sound card on Sparky SBC.

DietPi-Config | Audio > Sound card: Added support for HDMI/3.5mm sound cards on NanoPi M2/M3.

DietPi-Config | Audio > Sound card: Added option for force 3.5mm output with Onboard RPi: #704

DietPi-Config | Audio > Sound card: Added support for selecting USB-DAC sound cards: #683

DietPi-Config | Audio > Sound card: Added support for RPi 'HifiBerry DIGI Pro' sound card.

DietPi-Config | WiFi: Reduced the DHCP retry count and timeouts, to prevent a unnecessary wait when enabling WiFi for the 1st time: #711

DietPi-Software | Open Media Vault: Is now available for installation: http://dietpi.com/phpbb/viewtopic.php?f=8&t=5&p=4859#p4859

DietPi-Software | MySQL/MariaDB: Data store is now located in the DietPi User data location (eg: /mnt/dietpi_userdata/mysql). Should offer improved performance for USB drive users: #672

DietPi-Software | NetData updated to latest version (1.4.0): #696

DietPi-Software | Added support for Apt-Fast if installed: #698

DietPi-Software | PiHole: Access via http://ip/admin is now supported, for new installations: #703

Typo | Correct use of MHz (previously Mhz). Thanks to Rainer.

Bug fixes:

General | RPi 3 onboard Bluetooth is now functional: #693

General | Odroid C2: Resolved an issue with deb-multimedia repo failing GPG key: #677

General | Resolved an issue where access to /mnt/usb_1 would hang the program/command, when no USB drive was attached: #684

General | Resolved an issue where alsamixer was unable to load sound card device: #705

General | Odroids: Resolved an issue where Meverics custom CPU governor script, would override DietPi applied CPU govs during boot.

DietPi-Config | Resolved an issue where NTPD Daemon + Drift mode, did not create drift file. This mode has now been moved to systemd-timesyncd: #709

DietPi-Config | Enabling the RPi camera will now apply the required 128MB minimum GPU memory split, if not already higher: #706

DietPi-Software | Resolved issues with non-functional RPi camera with DietPi-Cam: #706

DietPi-Automation | Resolved an issue with automated 1st run installation would hang on Odroid C2, during patch stage: #689

Sparky SBC | Resolved an issue with touch screen module causing dmesg errors associated with it. This module is now disabled: #699 (comment)

RPi Stretch:

General | RPi 3 Onboard WiFi is now functional.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.