一条命令解决ubuntu network-manager显示“无线网络已经禁用”


之前写了一篇ubuntu network-manager显示“无线网络已经禁用”的解决方法

但是上面的解决方法太复杂,而且连接网络之后Ubuntu One不能连接Ubuntu云服务器端。
所以,最近这段时间一直没有放弃查找这个问题的解决方法,最终在Debian的bug系统里找到相关的解决方法。
参考:http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=544217

我的笔记本是Dell的,默认会加载一个dell_laptop模块。正是这个模块导致rfkill返回值不正确,删除该模块之后,久违的无线网络图标终于出现了。

$ sudo rmmod dell_laptop

关于该Bug讨论的部分摘抄:

There are a few options for working around these bugs. I list them ehre
for the benefit of other users with the same problem:

1. Tell HAL to ignore all rfkill devices. I tried to do this by
setting the ‘info.ignore’ property on each of the killswitch
devices. Unfortunately, this didn’t stop NetworkManager from
seeing them. I guess info.ignore isn’t supposed to be used for
this purpose. Is there another way to deal with this at the HAL
level?
2. Patch NetworkManager to override the information coming from
HAL. The ‘nm-ignore-killswitches.patch’ is attached, and it does
work. Of course, it’s not suitable as anything other than a
crude hack to workaround the issue.
3. Fix the broken killswitch devices. The first broken device comes
from the kernel’s dell_laptop module, so that’s one bug. The
second comes from HAL’s device database, but is actually queried
with the dellWirelessCtl utility, which returns the wrong
result. I have filed separate bugs for these issues.
4. Work around the broken killswitch devices. The dell_laptop
kernel module can simply be blacklisted, and removing the
libsmbios-bin package that contains dellWirelessCtl causes
querying HAL for its status to return an error; which in turn
causes NetworkManager to assume that the radio is enabled.
5. Fix the hardware. Dell have posted a BIOS update for my laptop,
version A03, the release notes of which include “Fix kill switch
sttatus report fail”. Unfortunately, it is impossible to
actually install this update without installing Windows, so I
can’t test that out. 😦

在最新的Ubuntu 10.10中,这个问题已经不存在了。可以放心的加载dell_laptop了。

Advertisements

一条命令解决ubuntu network-manager显示“无线网络已经禁用”》上有2条评论

  1. Pingback引用通告: 拯救我的network-manager | 杰林修·呓|Jarlyyn's Blog.

发表评论

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

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / 更改 )

Twitter picture

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

Facebook photo

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

Google+ photo

You are commenting using your Google+ account. Log Out / 更改 )

Connecting to %s