在ubuntu的launchpad上找到了这两天困扰我的BUG

原来有很多人有这样的问题阿,这个问题主要是在笔记本用户上出现的。基本确实是和无线网卡有关系,这个东西到处惹火,在vista里面我也吃了不少的苦。
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/355054

另外ubuntuforums论坛上有人给出了一个解决方案,想应用了试一下。

Re: cannot shutdown / reboot laptop on 9.04


I

was having the same problem. If the laptop’s wireless card was “on” at

shutdown, it would hang and I’d get that blinking cursor in the top

left corner. If the laptop’s wireless card was “off” at shutdown, no

problems at all.

So here’s how I fixed it …

Abstract: Add a short script to the init.d directory that uses

“modprobe -r” to remove the wireless driver. Then add symbolic links to

that script in both rc0.d and rc6.d directories.

Details:

1. Open a terminal and become super-user (yeah, this is a bad security

practice, but I’m too lazy to type sudo before everything).

Code:
su

2. Navigate to the init.d directory.

Code:
cd /etc/init.d

3. Touch and edit your new wireless shutdown script. I use “vi,” but feel free to use “gedit” if you like.

Code:
vi killwlan

4. Add line(s) that “modprobe -r” your wireless driver module(s).

In MY case, I remove both “ipw3945” and “iwl3945” modules. In YOUR

case, you’ll need to find out the module names being used by your

wireless device.

Code:
modprobe -r iwl3945
modprobe -r ipw3945
modprobe -r iwlagn

5. Save the script and exit the text editor.

Code:
[ESC] :wq [ENTER]

6. Navigate to the rc0.d directory.

Code:
chmod 755 killwlan
cd /etc/rc0.d

7. Create a link to your killwlan script.

Code:
ln -sT /etc/init.d/killwlan S16killwlan

8. Navigate to the rc6.d directory.

Code:
cd /etc/rc6.d

9. Create a link to your killwlan script.

Code:
ln -sT /etc/init.d/killwlan S16killwlan

10. Now try to shutdown or restart.

Code:
init 6

This worked for me. If it works for you, great! If not, sorry for having wasted your time. Good luck!

另外ubuntu8.10的时候就有过这样的问题了,那时候看见过如下的情况:

sudo gedit /etc/init.d/alsa-utils

Search for “stop)” and add immediately below:

ifconfig eth0 down
ifconfig wlan0 down

埃。。当时这个解决方案还很奏效。为什么总是有这样的问题呢。。

By Lu Jun

80后男,就职于软件行业。习于F*** GFW。人生48%时间陪同电子设备和互联网,美剧迷,高清视频狂热者,游戏菜鸟,长期谷粉,临时果粉,略知摄影。

Leave a comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.