清北服务网站-QuickBest's Archiver

chinakr 发表于 2008-1-27 19:01

在ThinkPad上使用Ubuntu专题 - 问题解决、经验技巧

[size=4]目录[/size]
待补

chinakr 发表于 2008-1-27 19:02

在Ubuntu下更好的使用Thinkpad T60 - 键盘灯和指点杆

来源:<a href="http://blog.csdn.net/yjpark/archive/2007/05/29/1629889.aspx" target="_blank">点击进入</a><br> YJPark发表于 2007年05月29日 18:17:00<br><br>Thinkpad的Linux用户群很大,在笔记本里属于Linux支持的比较好的,驱动基本上都有,ThinkWiKi还有很多Linux的文档。<br><br>每
天上班都用Gaim来访问MSN和IRC,无意中发现Ubuntu里有一个包叫gaim-thinklight,能在收到消息时闪烁
Thinklight(Thinkpad
上面的键盘灯),非常实用,而且很酷,就是功能有些简单,只能在收到消息的时候闪烁,打算有时间的时候把他结合到guification里去,那就太方便
了。<br><br>可以在脚本里控制Thinklight的开关<br><div style="border: 0.5pt solid windowtext; padding: 4px 5.4pt; background: rgb(230, 230, 230) none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; width: 95%;"><div><img src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" alt="" align="top"><span style="color: rgb(0, 0, 255);">echo</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 255);">on</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 0);">&gt;</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 0);">/</span><span style="color: rgb(0, 0, 0);">proc</span><span style="color: rgb(0, 0, 0);">/</span><span style="color: rgb(0, 0, 0);">acpi</span><span style="color: rgb(0, 0, 0);">/</span><span style="color: rgb(0, 0, 0);">ibm</span><span style="color: rgb(0, 0, 0);">/</span><span style="color: rgb(0, 0, 0);">light&nbsp;<br><img src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" alt="" align="top"></span><span style="color: rgb(0, 0, 255);">echo</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 255);">off</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 0);">&gt;</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 0);">/</span><span style="color: rgb(0, 0, 0);">proc</span><span style="color: rgb(0, 0, 0);">/</span><span style="color: rgb(0, 0, 0);">acpi</span><span style="color: rgb(0, 0, 0);">/</span><span style="color: rgb(0, 0, 0);">ibm</span><span style="color: rgb(0, 0, 0);">/</span><span style="color: rgb(0, 0, 0);">light</span></div></div><br><br>Thinkpad的另一个特点就是指点杆了,Linux也同样能设定成按下中键模拟滚动条,在/etc/X11/xorg.conf里找到<br><div style="border: 0.5pt solid windowtext; padding: 4px 5.4pt; background: rgb(230, 230, 230) none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; width: 95%;"><div><img src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" alt="" align="top"><span style="color: rgb(0, 0, 0);">Section&nbsp;</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">InputDevice</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);"><br><img src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" alt="" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Identifier&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">Configured&nbsp;Mouse</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);"><br><img src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" alt="" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Driver&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">mouse</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);"><br><img src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" alt="" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Option&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">CorePointer</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);"><br><img src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" alt="" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Option&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">Device</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">/dev/input/mice</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);"><br><img src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" alt="" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Option&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">Protocol</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">ImPS/2</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);"><br><img src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" alt="" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Option&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">ZAxisMapping</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">4&nbsp;5</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);"><br><img src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" alt="" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Option&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">Emulate3Buttons</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">&nbsp;</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">true</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);"><br><img src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" alt="" align="top">EndSection</span></div></div><br>在EndSection前面加上<br><div style="border: 0.5pt solid windowtext; padding: 4px 5.4pt; background: rgb(230, 230, 230) none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; width: 95%;"><div><img src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" alt="" align="top"><span style="color: rgb(0, 0, 0);">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Option&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">EmulateWheel</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">on</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);"><br><img src="http://images.csdn.net/syntaxhighlighting/OutliningIndicators/None.gif" alt="" align="top">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Option&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">EmulateWheelButton</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);">2</span><span style="color: rgb(0, 0, 0);">"</span><span style="color: rgb(0, 0, 0);"><br></span></div></div><br>就行了<br>

chinakr 发表于 2008-1-27 20:29

ThinkPad T60在Ubuntu下声卡设备正常但没有声音的解决方法

作者:chinakr([url]http://www.edu-map.com/chinakr[/url])
日期:2008-01-27

[size=4]前言[/size]

关于这个问题,我google了很久。找到了很多的解决方案,但都不好用。Ubuntu中文论坛、Ubuntu官方论坛和ThinkWiki上都没有找到能够解决问题的信息。

官方论坛上提供的方法是安装backports,但在我这里没有看到效果。

今天从Ubuntu 7.10 Gutsy(linux kernel 2.6.22)升级到Ubuntu 8.04 Hardy(linux kernel 2.6.24)还是没能解决这个问题。

正在懊丧之时,峰回路转——事实证明,google无所不能,关键在于你是不是抓住了正确的关键字。

[size=4]正题[/size]

google关键字:T60 nosound 2.6.22
来源:[url=http://linux.derkeiler.com/Mailing-Lists/Ubuntu/2007-08/msg01782.html]点击进入[/url]

Re: linux-image-2.6.22-10-generic: Sound levels set to zero (on hardware?)[list][*][i]From[/i]: Re Alvarez <[email=re_alvz@DOMAIN.HIDDEN]re_alvz@xxxxxxxx[/email]>[*][i]Date[/i]: Fri, 24 Aug 2007 09:41:22 -0400[/list]for all the people that are having sound issues with GUTSY's 2.6.22.10
kernel

please do the following and your issues should be resolved.

"sudo apt-get install module-assistant
sudo m-a update
sudo m-a prepare
sudo m-a a-i alsa"

[size=4]花絮[/size]

按照上面的办法,编译过程中,最后提示错误。不过忽略了继续进行,重启以后声音就正常了。
如果音量开到最大时有啸叫声,那么在音量控制中把Mic静音即可。

[size=4]其它参考资料[/size]
(没有太大帮助,但同样对这些先驱表示感谢!)
no sound on ThinkPad T60 in Gutsy (Intel HDA),[url=http://ubuntuforums.org/showthread.php?t=607438]点击进入[/url]
Suddenly lost sound IBM T60,[url=http://ubuntuforums.org/showthread.php?t=540346]点击进入[/url]
I broke my sound. No sound on my computer anymore. Need help pronto.,[url=http://ubuntuforums.org/showthread.php?t=651091&highlight=T60+audio]点击进入[/url]
死去活来,搞定intel的HD声卡,[url=http://forum.ubuntu.org.cn//weblog_entry.php?e=1270]点击进入[/url]

chinakr 发表于 2008-10-31 01:51

温故知新,呵呵

chinakr 发表于 2008-11-2 06:40

Ubuntu 8.10里指点杆中键模拟鼠标滚轮的配置方法 2008-10-03

来源:[url=http://203.208.39.99/search?q=cache:YE4PqCplpP4J:blog.sp.jl.cn/%3Fuid-24988-action-viewspace-itemid-4990+ubuntu+8.10+hal&hl=zh-CN&ct=clnk&cd=6&gl=cn&client=firefox-a&st_usg=ALhdy29vzv9fbYPmdHjikd1vS-vELaX_dA]点击进入[/url]
2008-10-03 22:19:32

方法一:
创建文件:/etc/hal/fdi/policy/mouse-wheel.fdi

<match key="info.product" string="TPPS/2 IBM TrackPoint">
<merge key="input.x11_options.EmulateWheel" type="string">true</merge>
<merge key="input.x11_options.EmulateWheelButton" type="string">2</merge>
<merge key="input.x11_options.ZAxsisMapping" type="string">4 5</merge>
<merge key="input.x11_options.Emulate3Buttons" type="string">true</merge>
</match>

xorg.conf不用修改。

方法二:
先查看/var/log/Xorg.0.log,找到以下内容:

(**) TPPS/2 IBM TrackPoint: always reports core events
(**) TPPS/2 IBM TrackPoint: Device: "/dev/input/event8"
(II) TPPS/2 IBM TrackPoint: Found x and y relative axes
(II) TPPS/2 IBM TrackPoint: Found 3 mouse buttons
(II) TPPS/2 IBM TrackPoint: Configuring as mouse
(II) XINPUT: Adding extended input device "TPPS/2 IBM TrackPoint" (type: MOUSE)
(**) TPPS/2 IBM TrackPoint: YAxisMapping: buttons 4 and 5
(**) TPPS/2 IBM TrackPoint: EmulateWheelButton: 4, EmulateWheelInertia: 10, EmulateWheelTimeout: 200

可见设备已经识别,设备名称是/dev/input/event8,只是模拟鼠标滚轮的默认是第4键。所以修改/etc/X11/xorg.conf如下:

Section "InputDevice"
   Identifier   "Configured Mouse"
   Driver      "evdev"
   Option "CorePointer"
   Option "Device" "/dev/input/event8"
   Option "Emulate3Buttons" "true"
   Option "EmulateWheel" "true"
   Option "EmulateWheelButton" "2"
   Option "ZAxisMapping" "4 5"
EndSection

Section "ServerLayout"
        Identifier      "Default Layout"
        Screen          "Default Screen"
        Inputdevice     "Configured Mouse"
EndSection

和以前的方法不同一个是Device,mice不行了;另一个是Driver,现在是evdev。

chinakr 发表于 2008-11-2 07:35

实践反馈

5#楼的办法确实管用!

页: [1]

Powered by Discuz! Archiver 6.1.0  © 2001-2007 Comsenz Inc.