注册 登录  
 加关注
查看详情
   显示下一条  |  关闭
温馨提示!由于新浪微博认证机制调整,您的新浪微博帐号绑定已过期,请重新绑定!立即重新绑定新浪微博》  |  关闭

zevan的博客

悟以往之不谏,知来者之可追

 
 
 

日志

 
 
关于我

Debian GNU/Linux user Vegetarian Seventh-Day Adventist

macbook触摸板设置  

2007-09-09 01:15:07|  分类: 默认分类 |  标签: |举报 |字号 订阅

  下载LOFTER 我的照片书  |
    使用Macbook的原装操作系统Mac OS X的时候,对苹果的硬件很赞赏。第一次见到了带遥控器的笔记本,第一次知道在触摸板上放一根指头和两根指头效果是不一样的。
    不过,我有点懒,不想学习Mac OS X 下的一系列软件的使用方法,急急忙忙的在Macbook中装了Debian Sid。接着,问题出现了,硬件的驱动有点难办,这包括摄像头、无线网卡、触摸板,可能还有蓝牙。摄像头的问题已经解决,无线网卡即将可以使用,触摸板一直勉强用着。
    参考了在macbook上用debian的wiki, 基本解决了触摸板的问题,现在的设置是:触摸板的右边界模拟垂直滚动条,右上角模拟鼠标右键,在触摸板上点没有效果。
    下面是从wiki上抄来的一段配置文件,自己添加了一些修改。

# /etc/X11/xorg.conf (xorg X Window System server configuration file)
#
# This file was generated by dexconf, the Debian X Configuration tool, using
# values from the debconf database.
#
# Edit this file with caution, and see the /etc/X11/xorg.conf manual page.
# (Type "man /etc/X11/xorg.conf" at the shell prompt.)
#
# This file is automatically updated on xserver-xorg package upgrades *only*
# if it has not been modified since the last upgrade of the xserver-xorg
# package.
#
# If you have edited this file but would like it to be automatically updated
# again, run the following command:
#   sudo dpkg-reconfigure -phigh xserver-xorg

Section "Files"
        FontPath        "/usr/share/fonts/X11/misc"
        FontPath        "/usr/X11R6/lib/X11/fonts/misc"
        FontPath        "/usr/share/fonts/X11/cyrillic"
        FontPath        "/usr/X11R6/lib/X11/fonts/cyrillic"
        FontPath        "/usr/share/fonts/X11/100dpi/:unscaled"
        FontPath        "/usr/X11R6/lib/X11/fonts/100dpi/:unscaled"
        FontPath        "/usr/share/fonts/X11/75dpi/:unscaled"
        FontPath        "/usr/X11R6/lib/X11/fonts/75dpi/:unscaled"
        FontPath        "/usr/share/fonts/X11/Type1"
        FontPath        "/usr/X11R6/lib/X11/fonts/Type1"
        FontPath        "/usr/share/fonts/X11/100dpi"
        FontPath        "/usr/X11R6/lib/X11/fonts/100dpi"
        FontPath        "/usr/share/fonts/X11/75dpi"
        FontPath        "/usr/X11R6/lib/X11/fonts/75dpi"
        # path to defoma fonts
        FontPath        "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"
EndSection

Section "Module"
        Load    "i2c"
        Load    "bitmap"
        Load    "ddc"
        Load    "dri"
        Load    "extmod"
        Load    "freetype"
        Load    "glx"
        Load    "int10"
        Load    "vbe"
EndSection

Section "InputDevice"
        Identifier      "Generic Keyboard"
        Driver          "kbd"
        Option          "CoreKeyboard"
        Option          "XkbRules"      "xorg"
        Option          "XkbModel"      "pc104"
        Option          "XkbLayout"     "us"
EndSection

#The following lines are added for Touchpad
Section "InputDevice"
        Identifier      "Synaptics Touchpad"
        Driver          "synaptics"
        #Option          "AlwaysCore"
        #added myself,maybe useless or harmful
        Option          "SendCoreEvents"        "true"
        #Option         "CorePointer"
       #Option          "Device"                "/dev/input/by-id/usb-Apple_Computer_Apple_Internal_Keyboard_._Trackpad-mouse"
        Option          "Device"                "/dev/input/mice"      
        Option          "Protocol"              "auto-dev"
        Option          "HorizScrollDelta"      "0"
        Option          "SHMConfig"             "true"

        Option          "TouchpaddOff"          "0"

        # How fast the two-finger scrolling scrolls. The lower, the faster.
        Option          "VertScrollDelta"       "25"
        Option          "HorizScrollDelta"      "25"

        # Location of the touchpad edges, somewhat sane values
        # that I found by testing. Xmin=0, Xmax=1216, Ymin=0,Ymax=387
        Option          "LeftEdge"              "100"
        Option          "RightEdge"             "1116"
        Option          "TopEdge"               "50"
        Option          "BottomEdge"            "337"
       
        # Touch and "untouch" thresholds
        Option          "FingerLow"             "25"
        Option          "FingerHigh"            "50"
       
        # We DO NOT want palm triggering middle/right mouse
        # button events, so a tap has to be quite fast
        Option          "MaxTapTime"            "100"
        Option          "MaxTapMove"            "100"
        Option          "MaxDoubleTapTime"      "200"

        # Enable vertical (right) edge scrolling with one finger
        Option          "VertEdgeScroll"        "1"
        # Enable horizontal (bottom) edge scrolling with one finger
        Option          "HorizEdgeScroll"       "1"

        # Disable two finger scrolling, as we have the edge scrolling enabled already
        Option          "VertTwoFingerScroll"   "0"
        Option          "HorizTwoFingerScroll"  "0"

        # Left top corner of the touchpad shall be the middle mouse button
        # Bottom buttons tend to get triggered accidentally.
        Option          "LTCornerButton"        "2"

        # Right top corner of the touchpad shall be the right mouse button
        Option          "RTCornerButton"        "3"

        # Disable bottom corners
        Option          "LBCornerButton"        "0"
        Option          "RBCornerButton"        "0"

        # Fast taps
        Option          "FastTaps"              "0"

        # Disable tapping of the touchpad (excluding the corners, of course)
        Option          "TapButton1"            "0"
        Option          "TapButton2"            "0"
        Option          "TapButton3"            "0"

        # Movement speed settings
        Option          "MinSpeed"              "0.2"
        Option          "MaxSpeed"              "0.6"
        Option          "AccelFactor"           "0.35"

        # Palm detection. Does not seem to work on Macbook
        #Option          "PalmDetect"            "1"
        #Option          "PalmMinWidth"          "10"    #1-15
        #Option          "PalmMinZ"              "200"   #1-255

        # Various other variables
        Option          "UpDownScrolling"       "0"
        Option          "LeftRightScrolling"    "0"
EndSection

Section "InputDevice"
        Identifier      "Configured Mouse"
        Driver          "mouse"
        Option          "CorePointer"
        Option          "Device"                "/dev/input/mice"
        Option          "Protocol"              "ImPS/2"
        Option          "Emulate3Buttons"       "true"
EndSection

Section "Device"
        Identifier      "Intel Corporation Mobile 945GM/GMS/940GML Express Integrated Graphics Controller"
        Driver          "i810"
        BusID           "PCI:0:2:0"
        Option  "XAANoOffscreenPixmaps" "true"
        #Option         "VideoRam"      "65536"
        #Option         "CacheLines"    "1980"
EndSection

Section "Monitor"
        Identifier      "通用显示器"
        Option          "DPMS"
        HorizSync       28-64
        VertRefresh     43-60
EndSection

Section "Screen"
        Identifier      "Default Screen"
        Device          "Intel Corporation Mobile 945GM/GMS/940GML Express Integrated Graphics Controller"
        Monitor         "通用显示器"
        DefaultDepth    24
        SubSection "Display"
                Depth           1
                Modes           "1280x800"
        EndSubSection
        SubSection "Display"
                Depth           4
                Modes           "1280x800"
        EndSubSection
        SubSection "Display"
                Depth           8
                Modes           "1280x800"
        EndSubSection
        SubSection "Display"
                Depth           15
                Modes           "1280x800"
        EndSubSection
        SubSection "Display"
                Depth           16
                Modes           "1280x800"
        EndSubSection
        SubSection "Display"
                Depth           24
                Modes           "1280x800"
        EndSubSection
EndSection

Section "ServerLayout"
        Identifier      "Default Layout"
        Screen          "Default Screen"
        InputDevice     "Generic Keyboard"
        InputDevice     "Synaptics Touchpad"#   "AlwaysCore"
        InputDevice     "Configured Mouse"
EndSection

Section "DRI"
        Mode    0666
EndSection

Section "Extensions"
        Option "Composite" "enable"
EndSection


  评论这张
 
阅读(138)| 评论(0)
推荐 转载

历史上的今天

在LOFTER的更多文章

评论

<#--最新日志,群博日志--> <#--推荐日志--> <#--引用记录--> <#--博主推荐--> <#--随机阅读--> <#--首页推荐--> <#--历史上的今天--> <#--被推荐日志--> <#--上一篇,下一篇--> <#-- 热度 --> <#-- 网易新闻广告 --> <#--右边模块结构--> <#--评论模块结构--> <#--引用模块结构--> <#--博主发起的投票-->
 
 
 
 
 
 
 
 
 
 
 
 
 
 

页脚

网易公司版权所有 ©1997-2018