I would like to enable my wifi card automatically at the startup every time.
However, the command below requires sudo.
I see Hardware Disabled
at the wireless connection which blocks the internet access through wireless connection without the sudo command.
There is no permanent solution to this problem, since those drivers are buggy so deprecate that feature from this thread.
Temporary solution is here such that I run in Lenovo G50-30
sudo modprobe -r ideapad-laptop
which solves the problem until next shut down.
The wireless card is disabled in the next startup.
The command loads some module to Linux kernel.
I do not understand the origin of the bug.
The command rfkill list
gives
2: phy0: Wireless LAN
Soft blocked: no
Hard blocked: no
I cannot use cronjob
's @reboot
command because it does not run from the cold system as described here.
Unsuccessful modprobe and /etc/init.d/rc.local
One attempt from here.
Adding @reboot modprobe -r ideapad-laptop
to your crontab would work, but apparently only works when the machine is rebooted not when it comes up cold.
So do
sudo echo '@reboot modprobe -r ideapad-laptop' >> /etc/crontab
That will add the line to your cron jobs, but call it at login by adding it in a line to /etc/init.d/rc.local
.
How can you enable the modprobe -command at login?
@reboot sleep 10 && modprobe -r ideapad-laptop