Posts Tagged ‘Linux’

Linux下调节Lenovo U150亮度

自从买了U150以后,集成的GMA X4500MHD的亮度就从来不能调节。最多只能在grub菜单的时候进行调节,很是头痛。在网上大力搜索了一番以后,找到了Y450的童鞋们遇到的相同的问题(http://forums.lenovo.com/t5/Linux-Discussion/Y450-linux/td-p/130370),这个帖子里面有一个总结并且写了一个脚本来关联用键盘调整的亮度和实际亮度的关系(http://elektropionir.net/),最核心的东西在于:

sudo setpci -s 00:02.0 F4.B="20"

后面的20是亮度,值从00到FF,十六进制。可以实现255级亮度的调节,还是很理想的。相对于Windows里面的级别更是多了一些。

setpci通过设置pci接口寄存器的值来进行调节,可能Windows里面强行设置pci的寄存器的值也能达到相同的效果。

运行提供的脚本以后,不管怎么说,在linux也能调节了。虽然这样做起来有点别扭。

最后,麦克风和摄像头似乎还是没法驱动。最新的Ubuntu 10.04也没有解决,看来Linux的道路上,驱动和兼容,成了最大的问题。

Fix Ubuntu installation hang when detecting file system

My Ubuntu hanged every time when detecting file system. Sometimes even I can't see the GUI of Kubuntu. I found out that when it hanged my hard disk was reading something. I encountered this problem several years ago, but the detecting process ended not very long after the "Detecting file system" dialog. This time, after 10 minutes waiting, no response. I had to power off my PC.

Last time I thought the problem was caused by non standard or problematical partition. I remembered that I had one logical partition between two primary partitions. I fixed this problem and the installation went on.

But the problem was not the same as my last time, I fixed had a regular partition. I found out that I had some disk errors so I "chkdsk" first my drivers. No luck. I had no ideas about this. I tried to search the problem but no one had the same issue I met. So I had to figure it out by myself.

I tried to unplug the disk first and then after the liveCD desktop showed I plug it so I can see the GUI interface. Just after the "Detecting file system", the hard disk was still reading something without a stop. I switched to another console and type "top" to find the most CPU consume program. One of them is "ntfsresize". So I killed this program. But it appeared again. I killed it until no new "ntfsresize" was shown. And finally I saw the partition. Then the whole installation went on smoothly.

So, this problem must be caused by the "ntfsresize". I didn't know what's wrong with my disk or partitions that "ntfsresize" need to read it again and again. I even did not need to resize my ntfs partition. Next time, kill it first~

VMWare 6.5 vs Sun VirtualBox

昨天我还以为找到了福音,结果今天工作了半天才发现,最新的VirtualBox 2.1的性能还是有问题。昨天看到,XP启动的时候VirtualBox的性能确实好与VMWare 6.5,在实际使用中也发现VirtualBox的磁盘性能也比VMware6.5好。莫非是我虚拟机里面选磁盘接口的时候VirtualBox选的SATA,VMWare选的IDE造成的?

最大的性能差异在于应用程序的执行速度。平时我要开一个VS2005+Resharper插件,VMWare6.5分配了两个CPU给他用,很好用,速度很快。但VirtualBox就恼火了,只能开一个CPU不说,而且核心占用率经常是和实际CPU占用率一样,天啊。Resharper平时本来就要不停地解析,CPU占用又经常是100%,连打字都是飞着打的。郁闷。坚持了两个小时以后,终于放弃VirtualBox了。

总结起来,VirtualBox确实还需要进步阿!期待小巧实用的VirtualBox进一步发展,打败庞大的VMWare。

Ubuntu 8.10硬件安装无分区问题解决

可能是安装的时候占用了硬盘资源,导致无法找到硬盘分区,结果安装就没法正常的分区,安装不能正常进行。最后,参考了这个帖子,只需要在isodevice umount掉就可以了。直接打开“Application"->"Accessories"->"Terminal",然后

cd /

sudo umount -l isodevice

问题解决。笔记本升级为8.10,HAPPY。

PS:Virtual Box 2.1的性能确实要比臃肿的Vmware 6.5快很多,而且也没有Vmware 6.5的键位映射问题。爽~!

Linux下面成功使用Wine模拟TM2008 Beta

零点今天给我说他模拟成功了TM2008,哇,真的啊?他给了我这个网址:Linux 下使用 Wine 安装运行 TM2008 Beta 及乱码、与 Windows 共享聊天记录等相关问题的解决

按照网上给的方法稍作修改以后,安装成功了。

首先是把以前的wine卸载了。安装了打了中文补丁的wine 1.13,就访问http://ftp.ubuntu.org.cn/home/windowssux/Wine_CN/下载并安装最新的wine1.13就可以解决中文问题了。

然后拷贝rpcrt4.dll到wine的system32目录,然后

sh winetricks msxml3 gdiplus riched20 riched30 ie6 vcrun6 vcrun2005sp1

安装一怕啦东西。

最后就是执行TM的安装程序就可以啦。

零点装的是TM Preview 4,貌似字体比较小。我这里装的是TM Beta,但是无法上线,按了上线几秒钟就离开了,郁闷的很。

但无论杂说,还是基本可用了,比用QQ几分钟挂一次好多了,比用QQ FOR LINUX好太太太多了~~感谢wine