Posts by Sprits
-
-
LibreElec 12.2.1 on RPi4B with Fenvi AX1800 MT7921U USB Wifi adapter.
I recently bought a Wifi adapter to improve the network performance. It's a Mediatek MT7921U for which drivers are included in LibreELEC, so it should run without any issues.
However, during startup the creation of the wlan interface for the USB Wifi adapter fails due to "Too many open files". If I remove and plug in the device once startup has finished and Kodi is up and running, the wlan interface is succesfully created. From then on I can use the device without any problems.
But I want the device started at boot time and prioritized over the the internal wifi, so i've been trying to increase the open files limit at startup.
I've copied both sysem.conf and user.conf from /etc/systemd to /storage/.config/systemd and set the value of parameter DefaultLimitNOFILE from 1024:524288 to 2048:524288. This seems to have no effect; after reboot command ulimit -n still reports 1024 as the max open files.
Next I created /storage/.config/autostart.sh and added command ulimit -n 2048. This also has no effect.Manually setting the open file limit from SSH works just fine.
Now I've run out of ideas. Does anyone know how to increase the open file limit?Log at https://paste.libreelec.tv/darling-bison.log
Errors occurs at 10:44:19, succesfull reconnect from 18:21:4