免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2324 | 回复: 7
打印 上一主题 下一主题

关于触摸屏驱动的问题 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2009-05-08 23:40 |只看该作者 |倒序浏览
我遇到的问题是,触摸屏是好用的,但是屏幕上的鼠标不随着我的手指移动,我的手指一旦离开屏幕,鼠标就跑到屏幕的右上角了。。这是什么原因引起的呢?
会不会由xorg.conf中的配置有关系?谢谢大家了

论坛徽章:
0
2 [报告]
发表于 2009-05-09 07:44 |只看该作者
你的触摸屏校准了吗? 另外能不能把你的xorg.conf 关于触摸屏的部分贴出来?

论坛徽章:
0
3 [报告]
发表于 2009-05-09 08:03 |只看该作者
我没用X,不好解答

论坛徽章:
0
4 [报告]
发表于 2009-05-09 10:48 |只看该作者

回复 #2 jiayinjia198311 的帖子

如果屏幕没有校准的话,最多是鼠标跟我点的地点不匹配啊。。
我的手离开触摸屏后,鼠标应该停在原地而不是每次都返回到屏幕的左上角。。。配置文件现在不在身边,周一贴给你帮看看吧。。

论坛徽章:
0
5 [报告]
发表于 2009-05-11 10:19 |只看该作者

xorg的配置文档

# Xorg configuration created by pyxf86config-----------------old

Section "ServerFlags"
    Option    "IgnoreABI"    "True"
EndSection

Section "ServerLayout"
        Identifier     "Default Layout"
        Screen      0  "Screen0" 0 0
        InputDevice    "Keyboard0" "CoreKeyboard"
#        option                "OffTime" "10"
#        InputDevice        "touchscreen_evtouch" "CorePointer"
        InputDevice        "touchscreen_tslib" "CorePointer"
        InputDevice        "Mouse0" "SendCoreEvents"
#        InputDevice        "IgnoreMice"                #must exist when touch enable
        Option                "BlankTime" "3"
        Option                "StandbyTime" "6"
        Option                "SuspendTime" "9"
        Option                "OffTime" "12"
EndSection

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

Section "Module"
        Load  "dbe"
        Load  "fb"
#        Load  "wfb"
        Load  "extmod"
        Load  "fbdevhw"
        Load  "glx"
        Load  "record"
        Load  "freetype"
#        Load  "type1"
        Load  "exa"
        Load  "xaa"
        Load  "vgahw"
EndSection

Section "InputDevice"
        Identifier  "Keyboard0"
        Driver      "kbd"
        Option      "XkbRules" "xorg"
        Option            "XkbModel" "pc104"
        Option            "XkbLayout" "us"
EndSection

Section "Monitor"
        Identifier   "Monitor0"
        VendorName   "Monitor Vendor"
        ModelName    "HP mx705"
        #DisplaySize  320        240
### Comment all HorizSync and VertSync values to use DDC:
#        HorizSync    30.0 - 70.0
#        VertRefresh  50.0 - 160.0
        Option             "DPMS"
        ModeLIne    "800x600@56" 36 800 824 896 1024 600 601 603 625
        ModeLine    "800x600@60" 40 800 840 968 1056 600 601 605 628
        ModeLine    "800x600@72" 50 800 856 976 1040 600 637 643 666
        ModeLine    "800x600@75" 49.5 800 816 896 1056 600 601 604 625
        ModeLine    "800x600@85" 56.25 800 832 896 1048 600 601 604 631
EndSection



Section "Device"
        Identifier        "Videocard0"
        Driver                "dovefb"
        #Driver                "fbdev"
        VendorName        "Marvell, Inc"
        #BoardName        "Voyager"
        #Option                "Rotate"  "CCW"
#        Option                "NoAccel" "FALSE"
#        ChipSet                "MSOC"
#        Option                "HWCursor" "TRUE"
        #Option                "SWCursor" "TRUE"
#        Option                "UseBIOS" "FALSE"
        #Option                "UseFBDev" "TRUE"
        #Option                "PanelSize" "1024x600"
#        Option                "pci_burst" "TRUE"
#        Option                "pci_retry"        "TRUE"
        #Option                "LCDHeight"        "600"
        #Option                "LCDWidth"        "800"
        #Option                "fifo_aggressive" "TRUE"
        #Option                "VideoKey"        "0xFFFFFFFF"
        Option                 "DPMS" "TRUE"
        #BusID                "PCI:01:08:0"
        Screen 0
EndSection

Section "Device"
        Identifier  "FBDEV0"
        Driver      "fbdev"
EndSection

Section "Screen"
        Identifier "Screen0"
        #Device     "Videocard0"
        Device           "FBDEV0"
        Monitor    "Monitor0"
        DefaultDepth   16
        SubSection "Display"
                Depth    8
                #Modes       "640x480@60"
                Modes       "800x600@60"
                #Modes       "1024x768@60"
                #Modes       "1280x1024@60"
                #Option "Rotate" "CW"
        EndSubSection
        SubSection "Display"
                Depth     16
        #7" panel
                Modes       "800x480@60"
        #8.9" panel
                #Modes       "1024X600@60"
        EndSubSection
        SubSection "Display"
                Depth     24
                Modes       "800x480@60"
                Modes       "1024x600@60"
        EndSubSection
        SubSection "Display"
                Depth     32
                Modes      "800x600@60"
                Modes      "1024x600@60"
                #option    "Rotate"  "CCW"
        EndSubSection
EndSection              

Section "InputDevice"
        Identifier        "touchscreen_evtouch"
        Driver                "evtouch"
        Option                "Device"        "/dev/input/event0"
        Option                "MinX"        "120"
        Option                "MinY"        "180"
        Option                "MaxX"        "4000"
        Option                "MaxY"        "3900"

        Option                "SendCoreEvents"        "on"
        Option                "MoveLimit"                "10"
        #8.9"
        #Option                "SwapX"                        "true"
        #Option                "SwapY"                        "false"

        #7"
        Option                "SwapX"                        "false"
        Option                "SwapY"                        "true"

        Option                "Calibrate"                "0"
        Option                "LongTouchTimer"        "1000"
        Option                "longtouched_action"        "down"
        Option                "longtouched_button"        "3"
        Option                "touched_drag"        "1"
EndSection

Section "InputDevice"
        Identifier        "touchscreen_tslib"
        Driver                "tslib"
        Option                "TslibDevice"        "/dev/input/event0"
        #Option                "Width"                "800"
        #Option                "Height"        "480"
        Option                "SendCoreEvents"        "on"
        Option                "MoveLimit"                "5"
        Option                "LongTouchTimer"        "1000"
EndSection

Section "InputDevice"
        Identifier        "Mouse0"
        Driver                "mouse"
        Option                "Device"        "/dev/mice"
EndSection

Section "InputDevice"
        Identifier        "IgnoreMice"
        Driver        "void"
        Option        "Device" "/dev/mice"
EndSection

论坛徽章:
0
6 [报告]
发表于 2009-05-11 10:21 |只看该作者
我不明白的是在Section "ServerLayout"节点中
为什么把 "touchscreen_evtouch" "CorePointer"注释掉
而留下"touchscreen_tslib" "CorePointer"?
恳求高人指点。。。

论坛徽章:
0
7 [报告]
发表于 2009-05-12 09:14 |只看该作者
??

论坛徽章:
0
8 [报告]
发表于 2009-05-13 17:42 |只看该作者
手离开后指针到右上角可能因为最后触摸屏传递的值坐标变成了(0,0),查看驱动是否有错,也可能与内核版本有关,2.6.20以前触摸屏属于输入输出子系统的触摸屏模型,以后的都归入了event模型了,这两个模型的访问接口是不一样的。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP