近日,Compiz Fusion插件家族再添新丁!
一个新的贡献者──efeller,编写出了一个很酷的插件──smackpad。这个插件能让你的ThinkPad变成“SmackPad”。
什么是smackpad呢?让我们来看看。
首先说明,并非只有ThinkPad才能变成“SmackPad”,只要有HDAPS传感器的笔记本(如大多数ThinkPad系列,Toshiba和Apple MacBook (Pro)都有),都可以安装这个插件。那么如何看自己的本本有没有HDAPS传感器呢?在终端下执行:
ls /sys/devices | grep hdaps
如果返回结果是存在,那么恭喜你。你的本本可以变成“SmackPad”!
说了那么多,还没有说smackpad是什么呢?
看一下视频吧,你马上就会明白的!
很酷吧!
那么究竟怎么安装呢?由于我没有对应的本本,即使安装上去,也没有效果。这里我给大家讲下大致的安装过程:
好牛 可是笔记本不带那个牛的功能!
回复
2007年11月21日 星期三 12:10 下午
这样拍,会不会把硬盘给震伤,或者把显示屏给震伤的啊??呵呵
回复
2007年11月21日 星期三 1:18 下午
视频呢?说了这么多我还是不知道是什么功能
回复
2007年11月21日 星期三 1:57 下午
我终于知道为什么要加一个传感器了,装的越多—>拍的越多—>坏的越多—>买得越多—>¥越多…….
回复
2007年11月21日 星期三 2:00 下午
太残暴了
回复
2007年11月21日 星期三 2:31 下午
我的t60怎么看不到 hdaps?手动安装也不行:
sudo apt-get install hdapsd hdaps-utils
重新启动也没有。
手工启动服务:hdapsd -d /dev/sda -s 15
就说找不到文件。。。
回复
2007年11月21日 星期三 3:29 下午
而且make还出错
回复
2007年11月21日 星期三 3:37 下午
估计装了几天就会把硬盘给拍烂了
回复
2007年11月21日 星期三 4:00 下午
牛阿,检验这个笔记本质量的时候到了。
回复
2007年11月21日 星期三 4:03 下午
这?算了吧?
回复
2007年11月21日 星期三 4:17 下午
make出错阿
compiling : smackpad.c -> build/smackpad.losmackpad.c:29:25: error: compiz-core.h: No such file or directory
In file included from smackpad.c:30:
build/smackpad_options.h:23: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
build/smackpad_options.h:32: error: expected ‘)’ before ‘*’ token
build/smackpad_options.h:34: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
build/smackpad_options.h:41: error: expected ‘)’ before ‘*’ token
build/smackpad_options.h:43: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
build/smackpad_options.h:45: error: expected ‘)’ before ‘*’ token
build/smackpad_options.h:46: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
build/smackpad_options.h:47: error: expected ‘)’ before ‘*’ token
build/smackpad_options.h:49: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
build/smackpad_options.h:50: error: expected ‘)’ before ‘*’ token
smackpad.c:59: error: ‘FALSE’ undeclared here (not in a function)
smackpad.c:61: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
smackpad.c:69: error: expected ‘)’ before ‘*’ token
smackpad.c:70: error: expected ‘)’ before ‘*’ token
smackpad.c:73: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ’smackpadInitObject’
smackpad.c:74: error: expected ‘)’ before ‘*’ token
smackpad.c:75: error: expected ‘)’ before ‘*’ token
smackpad.c:76: error: expected ‘)’ before ‘*’ token
smackpad.c: In function ’smackpadReadHDAPSData’:
smackpad.c:84: error: ‘FILE’ undeclared (first use in this function)
smackpad.c:84: error: (Each undeclared identifier is reported only once
smackpad.c:84: error: for each function it appears in.)
smackpad.c:84: error: ‘file’ undeclared (first use in this function)
smackpad.c:89: warning: implicit declaration of function ‘fopen’
smackpad.c:89: warning: nested extern declaration of ‘fopen’
smackpad.c:99: warning: implicit declaration of function ‘fread’
smackpad.c:99: warning: nested extern declaration of ‘fread’
smackpad.c:100: warning: implicit declaration of function ‘fclose’
smackpad.c:100: warning: nested extern declaration of ‘fclose’
smackpad.c:103: warning: implicit declaration of function ’sscanf’
smackpad.c:103: warning: incompatible implicit declaration of built-in function ’sscanf’
smackpad.c:107: error: ‘TRUE’ undeclared (first use in this function)
smackpad.c:109: warning: control reaches end of non-void function
smackpad.c: In function ’smackpadDetectInvertedAxes’:
smackpad.c:116: error: ‘FILE’ undeclared (first use in this function)
smackpad.c:116: error: ‘file’ undeclared (first use in this function)
smackpad.c:126: warning: incompatible implicit declaration of built-in function ’sscanf’
smackpad.c:129: error: ‘TRUE’ undeclared (first use in this function)
smackpad.c:132: warning: control reaches end of non-void function
smackpad.c: In function ’smackpadRotate’:
smackpad.c:140: error: ’screen’ undeclared (first use in this function)
smackpad.c: In function ’smackpadGetPosition’:
smackpad.c:194: warning: implicit declaration of function ‘abs’
smackpad.c:217: warning: implicit declaration of function ‘nanosleep’
smackpad.c:217: warning: nested extern declaration of ‘nanosleep’
smackpad.c: At top level:
smackpad.c:224: error: expected ‘)’ before ‘*’ token
smackpad.c: In function ’smackpadInitHDAPS’:
smackpad.c:234: error: ‘FILE’ undeclared (first use in this function)
smackpad.c:234: error: ‘file’ undeclared (first use in this function)
smackpad.c:240: error: ‘TRUE’ undeclared (first use in this function)
smackpad.c:244: warning: control reaches end of non-void function
smackpad.c: At top level:
smackpad.c:247: error: expected ‘)’ before ‘*’ token
smackpad.c:272: error: expected ‘)’ before ‘*’ token
smackpad.c:281: error: expected ‘)’ before ‘*’ token
smackpad.c:291: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ’smackpadInitObject’
smackpad.c:304: error: expected ‘)’ before ‘*’ token
smackpad.c:314: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ’smackpadVTable’
smackpad.c:325: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
make: *** [build/smackpad.lo] 错误 1
回复
2007年11月21日 星期三 4:27 下午
瀑布汗~专业虐待自己电脑的东西~~~
回复
2007年11月21日 星期三 4:29 下午
原来是拍电脑的插件!
回复
2007年11月21日 星期三 4:35 下午
为什么thinkpad会有这个传感器??我推测……thinkpad是为了证明自己的“黑砖头”有多结实。。嘿嘿
回复
2007年11月21日 星期三 8:42 下午
这个传感器最初的用意是用来保护硬盘的
即当感受到震动的时候停止对硬盘进行读取,以此来保护硬盘
在win下有驱动支持
在linux下也有相关驱动 在thinkwiki闪可以找到
这个插件的作用与其最初用意完全背道而驰了
回复
2007年11月21日 星期三 11:25 下午
mac上早就有类似软件了。创意都是学人家的。
回复
2007年11月22日 星期四 8:21 上午
hdaps 可以用来检测机器的摆放,我觉得应该有插件根据机器方向,自动翻转屏幕.
回复
2007年11月22日 星期四 9:26 上午
可惜了,本子不支持~
回复
2007年11月22日 星期四 6:32 下午
我晕啊,有没有搞错,这都行???? 弓虽!!!!
回复
2007年11月22日 星期四 7:26 下午
T61 is not found it.
回复
2007年11月29日 星期四 6:45 下午
这个传感器是用来保护硬盘的,通过检测振动来停止硬盘工作
因此只要驱动安装正确,硬盘能正常停止掉。随便怎么拍都无所谓啊
创意无限!
回复
2007年12月27日 星期四 4:38 下午