Lenovo Ultrabook Ubuntu system cannot enable Wireless hardware switch Solution
I. Problem Description
I am using Lenovo's ultraboo yoga2 pro. By default, it is mounted to the Win8 system. However, when the Ubuntu dual system is mounted, the Wireless hardware switch will be disabled, and of course the network will not be connected.
Use
Rfkill list all
The following prompt is displayed:
0: ideapad_wlan: Wireless LAN
Soft blocked: no
Hard blocked: yes
1: ideapad_bluetooth: Bluetooth
Soft blocked: no
Hard blocked: yes
2: phy0: Wireless LAN
Soft blocked: no
Hard blocked: no
3: hci0: Bluetooth
Soft blocked: yes
Hard blocked: no
We can see that the Hard blocked of ideapad_wlan prior to the priority is yes by default, that is, the hardware wifi switch is disabled by ubuntu by default. In the ultraboo yoga2 pro, only the software switch wifi is enabled, and no hardware switch is enabled, this causes the problem that wifi cannot be enabled.
Ii. Problem Solving
From the display list of the wireless module, we can see that the Wi-Fi module of serial number 2 can be started with hardware and software. Therefore, you only need to remove the default module from the front. Run the following command:
Sudo modprobe-r ideapad_laptop
Remove the wireless module of ideapad and run the following command to view it:
Rfkill list all
Note:
2: phy0: Wireless LAN
Soft blocked: no
Hard blocked: no
3: hci0: Bluetooth
Soft blocked: yes
Hard blocked: no
That is to say, the wifi module works normally. However, every time you restart the ubuntu system, you need to remove the module again. Therefore, you can set this command to start automatically at/etc/rc. add commands to the local file.
#! /Bin/sh-e
#
# Rc. local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# Value on error.
#
# In order to enable or disable this script just change the execution
# Bits.
#
# By default this script does nothing.
# Because non-Administrator Logon is used, you must enter a password when executing the sudo command to automate the execution,
# If the user password is 123, the command must be run before exit 0. If the file has no permission to be modified
# Use the chmod command to modify the permission before modification!
Echo "123" | sudo modprobe-r ideapad_laptop
Exit 0
After the instance is started, the system automatically executes the script file to remove the Wi-Fi module.