How to fix raspbian failed to load kernel modules (in this case i2c-dev)

Hello everyone,

I had a issue with my Raspberry PI 1 B+ running a Raspbian 9.11 fully updated, that was being used with only one TP-Link TL-WN725N USB device attached, and without any apparent reason, that WIFI dongle stops working.

To check what was happening, I started Raspbian with an HDMI screen connected, and immediately at boot there was at start a failed service mentioning that raspbian failed to load kernel modules, but still it was able to boot.

Has a first approach to check it closer, I ran the following command to check WIFI connection doing,


and notice that the previous wlan0 disappeared, so I went in kernel modules service status doing,

sudo systemctl status systemd-modules-load.service

showing a failed status and mentioning i2c-dev.

Tried first, to unplug that WIFI dongle, rebooting without it, same outcome, and several attempts to force a restart on that service and nothing.

Then, I tried to perform a “reset”, without having the WIFI dongle connected, on i2c-dev module, entering on modules.conf doing,

sudo nano /etc/modules-load.d/modules.conf

and removed the only entrie that I had, who was the i2c-dev.

After this, I restarted kernel modules service,

sudo systemctl restart systemd-modules-load.service

and after,

sudo systemctl status systemd-modules-load.service

to check that service health, and it was finally active.

So I shutdown the Raspberry PI,

sudo shutdown now

connected the WIFI dongle again, and start it again connecting pulling out and on again in power.

After starting up Raspbian, I tried again,


and I had again my wlan0 working as expected.

Since I didnt found any fix for this particular device module, I decided to post it here, hoping that it could help others.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s