Score:0

How to autostart sudo modprobe using a service for fixing intel wifi (ubuntu 22.04)

bh flag

(ubuntu 22.04, fresh; wifi: Intel Corporation Wireless 8265 / 8275 ; HP elitebook 830 G5)

I followed already several howtos to create my script and service.

I need to run modprobe at start because of bugs in intel's wifi driver. It does not connect to alcatel LTE routers (but it works on Windows and on Linux with all other routers/access points I have at home).

This is what needs to be run at start after approx. 20sec, it fixes wifi connection:

sudo /sbin/modprobe -rv iwlwifi && sudo /sbin/modprobe -v iwlwifi

I am glad for any help so I don't have to manually run the command on each boot.

My service file for systemd looks like this:

[Unit] 
Description=wifi intel fix wlan service

[Service]
ExecStartPre=/bin/sleep 20s 
ExecStart=/bin/bash /usr/ainoaitsupport/wifi-intel-fix.sh

[Install]
WantedBy=multi-user.target

My script (wifi-intel-fix.sh) looks like this:

#!/bin/sh
###This autostart script is a workaround for intel-wifi not connecting to certain networks i.e. alcatel router wlan

/sbin/modprobe -rv iwlwifi && /sbin/modprobe -v iwlwifi
Jeremy31 avatar
ke flag
What exactly is the issue with the Alcatel device?
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.