linux联想电脑wifi密码,联想笔记本Y7000—ubuntu16.4无法开启wifi的解决办法

一、问题描述

本人使用的是联想游戏本Y7000,默认装入Win10系统,然当装入Ubuntu16.04双系统时,会出现无线硬件开关关闭的问题,当然也就无法连网。

使用

rfkill list all

会出现如下提示

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

可以看到,优先级前的ideapad_wlan的Hard blocked

默认为yes,即ubuntu默认关闭了硬件wifi开关,而超极本yoga2 pro

这样的只有软件开关wifi,没有硬件开关的启动,所以引起了wifi无法开启的问题。

二、问题解决

从无线模块的显示列表可以看出,序号2的wifi模块是软硬件是可以启动的,所以,只要将前面默认的模块移出即可;使用命令:

sudo modprobe -r ideapad_laptop

即移出了ideapad的无线模块,再使用命令查看:

rfkill list all

如下提示:

2:phy0: Wireless LAN

Soft blocked: no

Hard blocked:no

3:hci0: Bluetooth

Soft blocked: yes

Hard blocked: no

即wifi模块工作正常,然而每次重启ubuntu系统都要重新进行模块移出,故可将该命令设置为开机自启动,方法是在/etc/rc.local文件中添加命令。

#!/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.

#因为使用的是非管理员登录,故在执行sudo命令时要输入密码,方可自动化执行,

#此处假设用户密码为123,命令一定要在exit 0之前运行,该文件如果没有修改权限

#修改前使用 chmod 命令修改权限即可!

echo "123" |sudo modprobe -r ideapad_laptop

exit 0

开机启动后系统会自动执行改脚本文件,完成wifi模块的自动移出操作。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值