解决T400在linux下无法待机的问题

这个问题并不是一直存在的,当我从Hardy转战到Arch的时候,突然发现不能suspend了。与其说不能suspend,更准确的说法是成功suspend之后无法唤醒。log一切正常,但屏幕只有黑色的底和一个不能移动的鼠标。若干次试验之后可以确认是xf86-video-intel引起的,但迟迟没有找到解决办法。

今天似乎人品有点爆发,在网上看无关贴的时候看到了这个这个。一试发现果然可以。

#!/bin/sh
# Workaround for concurrency bug in xserver-xorg-video-intel 2:2.4.1-1ubuntu10.
# Save this as /etc/pm/sleep.d/00CPU
# chmod 755

. “${PM_FUNCTIONS}”

case “$1” in
hibernate|suspend)
for i in /sys/devices/system/cpu/cpu*/online ; do
echo 0 >$i
done
;;
thaw|resume)
sleep 10 # run with one core for 10 secs
for i in /sys/devices/system/cpu/cpu*/online ; do
echo 1 >$i
done
;;
*)
;;
esac

T400: Cardreader

modprobe sdhci

we can also add “sdhci” in rc.conf to make it automatically start 🙂

T400: Video Crashes X in Ubuntu

Solved by:
gstreamer-properties: set video output -> X window system (no Xv)
smplayer/mplayer: set vo == x11

This also solved the webcam problem (cuz webcam do not have problem but the video)

T400系列:Lenovo让世界人民很失望啊

事情是这样的,Thinkpad T400的独显版本支持双显卡热切换,这也是它的卖点之一。可是发布到现在(已经有一个月了),从官网上仍不能下载到驱动,不仅仅是64-bit版本的,32-bit都有问题。很多消费者购买了机器,回去重装系统,然后就发现没有合适的驱动,不仅仅是ATI显卡的驱动,Intel 5100wifi也有同样的问题。当他们使用ThinkVantage恢复的时候,“出厂”设置也不带显卡驱动。那对这些消费者来说,小黑果然变“砖头”了。

T400系列:WebCam笔记

一开就死机啊 整个X都crash了

备忘一下(链接在这里):
Webcam

The webcam in T61 is some sort of UVC camera: Found UVC 1.00 device Integrated Camera (17ef:1004). The module loads out of the box. I tested the camera using: Luvcview: http://mxhaard.free.fr/spca50x/Investigation/uvc/luvcview-20070512.tar.gz Just compile and run using ./luvcview -f yuv (JPG format doesn’t work)

I also tried gqcam and webcam, but both doesn’t work (first SEGFAULTs, second prints Invalid argument)

luvcview has a button to take pictures. Place your mouse over the buttons at the bottom of the window, and their function is revealed in the title bar. Unfortunately, the button for avi capture does not seem to work (although it does tell you what the video framerate is, which is helpful).

To capture a video stream, run ./luvcview -f yuv -S To play back the video stream, run mplayer -demuxer rawvideo -rawvideo fps=7:w=320:h=240:yuy2 stream.raw