- 论坛徽章:
- 0
|
最近升级到了ubuntu8.04
发现一个问题:
在离线情况下系统反应速度以及开关机速度都比连线时慢
中文搜索,一堆废话,不知所云。
后来跑到ubuntu的官方论坛,终于找到了解决方案。
一. 系统反应慢
由于是离线时反应慢,依照经验猜测是网络管理出问题了。
在goole上搜索,找到如下文章:
https://bugs.launchpad.net/ubuntu/+source/network-manager/+bug/138691/comments/48
详细内容以及翻译如下:
To disable NetworkManager without removing it, do the following:
[kylin]在不删除NetwrokManager的情况下,禁用该项服务
1) Make CERTAIN that your standard network interface is configured properly
in /etc/network/interfaces.
[kylin]确保/etc/network/interfaces文件配置正确
"systemsettings" was no help in doing so
- I had to edit the file manually.
[kylin]系统设置没有效果,所以手动更改
In my case, there already was an entry for
"eth0" - I just needed to add/uncomment the actual configuration.
[kylin]默认情况下,里面已经有网卡的配置信息,只要打开有用的同时注释掉多余的就好
The complete
entry looks like this:
# The primary network interface
auto eth0
iface eth0 inet
dhcp
[kylin]默认情况下,文件内容如上所示,当然了,这里面没有无线网卡信息,否则会有auto lO
Once this is done, the interface will be enabled during boot-up, despite
NetworkManager being disabled.
[kylin]如上修改之后,网络会在禁用NetworkManager的情况下正常工作
2) Disable NetworkManager
Create two files in /etc/default:
[kylin]禁用NetworkManager,需要在/etc/default创建两个文件
echo "exit" > /etc/default/NetworkManager
echo "exit" >
/etc/default/NetworkManagerDispatcher
[kylin]最好su,以管理员身份运行,否则权限不够
3) Reboot
[kylin]重启电脑
乍一看,不错,像是能解决问题的样,依照上面进行后系统依然很慢。
看来不经过实践终不能成事。于是,发狠卸载NetworkManager。
经"System" -> "Administration" -> "Synaptic Package Manager",
(就是中文的新立得软件包管理器,名字怪怪的)
找到NetworkManager,右击标记为删除,然后应用更改,卸载后重启电脑。
系统反应速度似乎没多大提升,失望ing
于是卸载bluetooth,print相关的服务后重启(我的笔记本用不到这些玩意)
哈哈,开机还是蜗牛,不过系统似乎是快了一些,心理上快的吧:)
不整了,以后再专门优化一下开机以及系统反应速度
二. 关机/重启比较慢:
1. sudo gedit /etc/init.d/halt (最好cp做好备份)
2. 修改 halt -d -f -i $poweroff $hddown
为 halt -d -f $poweroff $hddown
3. 保存修改
4. 同理修改 /etc/init.d/reboot
修改后关机/重启速度大大加快:)
下面是很多人都使用的方法,据说对加速关机蛮有效果,列为参考。
1. Go to "System" -> "Administration" -> "Login Window".
[kylin]系统->管理->登陆窗口(没用过中文系统,不确定,总归差不多意思)
2. In the "General"
tab, press "Edit Commands...", which will launch a window titled "Reboot, Halt,
Suspend and Custom Command Preferences".
[kylin]“Edit Commands” 在右下角
3. In this window, select "Halt command"
in the drop-down box for "Command Type:". Underneath it, in the "Path:" box, cut
the verbiage in quotes: "Shut Down via gdm."
[kylin]把引号连同里面的内容一起剪切
4. After doing so, press "Apply
Command Change", then paste the quoted phrase back into the "Path:" box and hit
the "Apply Command Change" button again.
[kylin]应用更改后再贴回去
5. Finally, go through the same process
for the "Reboot command" in the "Command Type:" drop-down, again cutting the
quoted phrase, applying the change, pasting the quote, and applying the change.
[kylin]同理处理reboot命令行
当然了,上述方法可能会有意外,如果你启用了Compiz。
下面是追加的方法:
I. If you are not using Compiz advanced settings or if you have 'None' selected
in Appearance>Visual Effects, then this solution works as it is. No change.
[kylin]如果你没有启用Compiz,请参照上面的步骤。
II. If you are using Compiz advanced setting or if you have enabled different
window manager then this solution won't solve your problem just like that. You
have to do the following to make it work for you:
[kylin]如果你启用了Compiz,并且很不幸出现了意外,请遵循下面的步骤:
- Select 'None' in System > Preferences > Appearance > Visual
Effects. - Restart your computer.
- Now apply the solution. Hopefully it will work as it is and you will no
longer see that error while logout and logout time will reduce drastically.
- Now you can change the appearance once again if you like and use advance
CCSM or whatever.
- I will suggest doing several restarts to see if the solution works for you
before enabling advance Compiz settings. 概括来说就是:1. 关闭特效后重启系统;2. 应用上述步骤3. 重新启用特效最好多重启几次,确定上述步骤有效后再启用特效。
希望本文对各位兄弟有所帮助!
Kylin.Ming
本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/22778/showart_719776.html |
|