The problem I have solved after my archlinux upgrade to gnome3.4(我的archlinux的Gnome升级到3.4之后遇到的问题)

1. Can’t suspend after the laptop lid closed.(合上电脑盖之后,无法挂起的问题)
Solution:
Install acpid, and modify the handler.sh file.

sudo pacman -S acpid
cd /etc/acpi
sudo cp /etc/acpi/handler.sh{,.bak}
sudo vim handler.sh

In file handler.sh, you will find the following content:

 button/lid)
       	case "$3" in
	    close)
		#echo "LID closed!">/dev/tty5
		;;

Change to the following content:

 button/lid)
       	case "$3" in
	    close)
		#echo "LID closed!">/dev/tty5
		su -c - username "DISPLAY=:0.0 /usr/bin/gnome-screensaver-command --lock" &
		/usr/sbin/pm-suspend
		;;

Done

2. No input device, can’t voice chat.(pulseaudio无法检测话筒设备)
Solution
After investigate a lot on the Internet.
I saw the following sentence in the archlinux wiki:

No mic on ThinkPad T400/T500/T420
Run
alsamixer -c 0
Maximize the volume of/unmute the "Internal Mic".
Once you see the device with
arecord -l
you might still need to adjust the settings. The microphone and the audio jack are duplexed. Set the configuration of the internal audio in pavucontrol to Analog Stereo Duplex.

The link is:
https://wiki.archlinux.org/index.php/Pulseaudio
Done

关于Thinkpad W510 ubuntu下睡眠唤醒后小红点中键失效的解决办法

这个bug的情况是这样的:

当ubuntu睡眠唤醒之后,小红点中键失效了

在论坛里找的多数解决方案是用gpointing-device-settings设置,但是这个是设置让小红点中键生效,而解决不了睡眠唤醒后小红点的悲剧…

关于Thinkpad的bug的解决办法呢,还是要看Thinkwiki,不过虽然我找到了下面这篇文章,可是仍然没有解决问题…

链接:http://www.thinkwiki.org/wiki/How_to_configure_the_TrackPoint

接下来我搜到了这样一篇文章,算是解决了这个问题。

链接:http://psung.blogspot.com/2010/04/thinkpad-trackpoint-scrolling-in-ubuntu.html

具体步骤如下:

创建并修改文件

sudo vim /usr/share/X11/xorg.conf.d/20-thinkpad.conf

修改文件内容:

Section "InputClass"
Identifier "Trackpoint Wheel Emulation"
MatchProduct "TrackPoint"
MatchDevicePath "/dev/input/event*"
Driver "evdev"
Option "EmulateWheel" "true"
Option "EmulateWheelButton" "2"
Option "Emulate3Buttons" "false"
Option "XAxisMapping" "6 7"
Option "YAxisMapping" "4 5"
EndSection

重启gdm

ctrl+alt+F1 进入终端
sudo /etc/init.d/gdm restart

问题解决~

关于Thinkpad W510 ubuntu睡眠的bug临时解决方案

这个在Thinkwiki里有提到:

http://www.thinkwiki.org/wiki/Category:W510

Suspend not implemented yet in USB 3.0 (xhci) driver – system cannot suspend unless driver is unloaded first – https://bugs.launchpad.net/ubuntu/+source/linux/+bug/522998

看情况呢,是跟USB 3.0的驱动有关,所以我觉得很有可能带有USB 3.0端口的笔记本都会遇到这个问题…

临时解决方案是这个链接的42楼:

https://bugs.launchpad.net/ubuntu/+source/linux/+bug/522998

以下是操作步骤:

创建或修改这个文件:

sudo vim /etc/pm/sleep.d/05_xhci

添加或修改文件内容:

#!/bin/sh
# Fix some issues with USB3
 
if [ "$1" = "suspend" ]
then
modprobe -r xhci_hcd
fi
 
if [ "$1" = "resume" ]
then
modprobe xhci_hcd
fi

修改文件权限(不确定是否为必须):

sudo chmod 755 /etc/pm/sleep.d/05_xhci

问题解决~

CSE634大作业时关于opencv的一些资料

Opencv中文 http://www.opencv.org.cn/index.php/首页

Opencv Basic structure http://opencv.willowgarage.com/documentation/basic_structures.html

Opencv 中文论坛 内存问题: http://www.opencv.org.cn/forum/viewtopic.php?f=1&t=11678

Opencvx  on Google Code http://code.google.com/p/opencvx/

Opencv笔记 查找轮廓 http://westice.javaeye.com/blog/721225

Opencv教学 手势识别 http://rickykwan.iworkshop.com.hk/2010/01/375.html

Opencv人脸检测及示例 http://www.javaeye.com/topic/463668

百度知道 Opencv手势识别系统 http://zhidao.baidu.com/question/153472412.html?push=ql

Opencv轮廓提取 http://www.cppblog.com/qianqian/archive/2009/07/27/91390.html

手和手指检测 http://www.openframeworks.cc/forum/viewtopic.php?f=8&t=1916

Opencv 2.0 Reference http://opencv.willowgarage.com/documentation/index.html

Opencv的一些经验总结 http://hi.baidu.com/wmsunny/blog/item/8ddeb1dfc22f4e5d95ee375e.html

轮廓的查找,表达,绘制 http://www.cnblogs.com/xrwang/archive/2010/03/20/1666684.html

The condensation algorithm http://homepages.inf.ed.ac.uk/rbf/CVonline/LOCAL_COPIES/ISARD1/condensation.html

P.S. 附加一个

关于wxWidgets的类型转换: http://blog.csdn.net/puny/archive/2008/09/04/2882546.aspx

Thinkpad touchpad打开双指滚动的方法

网上搜索了好多,常见的结果在我这里不起作用

比如用synclient -m 50这样的句子,系统给我的回复是:

Can't access shared memory area. SHMConfig disabled?

尝试了好多如何打开SHMconfig的方法,网上主要分两种:

1. 修改xorg.conf

2. 修改hal的policy

我这里都不行,始终无法打开

最后终于找到这样一个帖子(8楼有解决办法)

我把它贴到这里,大家可以参考一下
1. Install “Pointing Devices”

2. Open System / Preferences / Pointing Devices and disable Vertical and Horizontal Scrolling.

3. Open a terminal (ctrl + alt + t) and execute this commands:
Code:

synclient HorizTwoFingerScroll=1
synclient VertTwoFingerScroll=1
synclient EmulateTwoFingerMinZ=40
synclient EmulateTwoFingerMinW=8

4.Open a terminal (ctrl + alt + t) and execute this commands:
Code:

gconf-editor

5. Navigate and find this key: /desktop/gnome/peripherals/touchpad/scroll_method

6. Assign the value ’2′

7.Open a terminal (ctrl + alt + t) and execute this commands:
Code:

cat /usr/share/X11/xorg.conf.d/50-synaptics.conf

8. Copy the Identifier name, in my case, it was “Touchpad catchall”
Code:

Identifier "touchpad catchall"

9. Execute this command, as a Super User.
Code:

sudo gedit /usr/share/X11/xorg.conf.d/50-twofingerscroll.conf

10. Write this, making sure to put your Identifier.
Code:

Section "InputClass"
Identifier "touchpad catchall"
MatchProduct "SynPS/2 Synaptics TouchPad"
MatchDevicePath "/dev/input/event*"
Option "VertTwoFingerScroll" "on"
Option "EmulateTwoFingerMinW" "8"
Option "EmulateTwoFingerMinZ" "40"
EndSection

Thinkpad W510 + ubuntu10.10的一些配置

自从做毕设转到archlinux以后,好久都没有用过ubuntu了,目睹了ubuntu 10.04和ubuntu 10.10的推出

前两天终于把ubuntu 10.10装到机器上了

“终于”二字是有原因的,我下载了好几个发行版的镜像,打算做到U盘里,然后U盘启动,后来发现,不论我用什么软件或者镜像,U盘启动都无法成功

说是找不到介质,我查了一下,大约是U盘启动很多时候都会遇到的问题,boot device not showing up after 30 seconds and thrown into ramfs$

archlinux 论坛上有关于此的讨论 https://bbs.archlinux.org/viewtopic.php?pid=600013

以及这篇文章提到的解决办法

我照着里面的解决方法试了一下,失败

无奈之后,只能买了一盒可以刻录的CD-Rom,刻了一张盘,装上去了。

关于ubuntu-indicator的一些改动

这个东西很有意思,是ubuntu10.04换UI推出的?(我好久都不用ubuntu了,具体历史记不太清楚了…)

这个东西很好用,把邮件,IM, SNS都集成在了一起,节约面板空间,很好的一个小东西

不过话说回来,自带的evolution实在是没用用过,无奈之下,只有到网上寻找解决方案

删除evolution:

sudo rm /usr/share/indicators/messages/applications/evolution

对于我想使用的thunderbird来说,我是这样做的

sudo mv /usr/share/indicators/messages/applications/evolution /usr/share/indicators/messages/applications/thunderbird

然后把里面的内容替换为

/usr/share/applications/thunderbird.desktop

就可以了

关于Thinkpad W510的小红点儿鼠标中键的解决办法:

安装gpointing-device-settings这个东西

然后再System->Preferences->Pointing devices里面,就可以修改了

修改IBM Trackpoint把Use wheel emulation选中,button选择2,再把Enable vertical scroll选中就可以了

目前touchpad的多点触摸我还没有搞定,以后再试试

P.S.说点儿题外话

今天没有去看OSU每年一度的为了Beat Michigan而表达死战之决心的跳湖而表示遗憾…

主要原因是昨天为了准备考试,在图书馆待了一夜,我怕我再去跳个湖,可能就真成跳湖的了…

室友去了,玩的很high的样子,去年据说有1W多人跳湖,平时如果跳湖的话,是违法的,将会受到监禁+做社区服务+罚款等等处罚。

每年,只有为了这次盛大的比赛而跳湖是个例外,警察们不光不去抓人,还要保护大家,恩,有点儿意思~

据说明年Columbus不是主场了,所以,可能明年看到跳湖的机会也不大了….

在图书馆我还发现,老美什么时间自习的人都有啊…有个哥们1点去的,4点回家了,看的我无比羡慕…

有些遗憾,不过人生哪有那么完美的,有点儿遗憾生活才有乐趣嘛~

刚才睡醒,信笔涂鸦几句,继续去睡了,养足精神,明天继续拼Project。

Finish.

20101031万圣节

西方的万圣节,类似于中国的鬼节吧,据说本科生包了一个酒吧,有party,据说化妆好了可以免费进,不过没去,这个热闹就不去凑了~

室友同学送给了室友一个南瓜灯,我也趁机合了个影,哈哈~

2010万圣节

2010万圣节