Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1813526
  • 博文数量: 473
  • 博客积分: 13997
  • 博客等级: 上将
  • 技术积分: 5953
  • 用 户 组: 普通用户
  • 注册时间: 2010-01-22 11:52
文章分类

全部博文(473)

文章存档

2014年(8)

2013年(38)

2012年(95)

2011年(181)

2010年(151)

分类: LINUX

2010-11-17 18:03:14

# 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

#####################################################
NOTICE:
1. It is hard coded to use only /dev/event0 now. You may link /dev/input/event1 or the device you are using to it.
2. It works fine with default resolution 480x640. I have not solve the screen rotation issue yet.
3. My working /etc/X11/xorg.conf section:
Section "InputDevice"
Identifier "Configured Mouse"
Driver "tslib"
Option "CorePointer"
Option "Device" "/dev/input/event1"
Option "Protocol" "Auto"
EndSection
阅读(1233) | 评论(1) | 转发(0) |
给主人留下些什么吧!~~

chinaunix网友2010-11-18 17:29:00

很好的, 收藏了 推荐一个博客,提供很多免费软件编程电子书下载: http://free-ebooks.appspot.com