采取的更多步骤:

采取的更多步骤:

我有一台双引导 Ubuntu/Debian (GNOME) 机器:

我的鼠标触摸板在 Debian 上无法正常工作(右键单击无法识别,无法进行 2 根手指拖放/突出显示),但它在 Ubuntu 中可以正常工作

到目前为止,我已经.conf用 Ubuntu 中的文件覆盖了 Debian 中.conf的文件/usr/share/X11/xorg.conf.d/,并重新启动了 X,然后重新启动。但是我仍然有这个问题。

如果没有程序为我配置一切,我不确定该去哪里。如果可能的话,我想知道如何解决这个问题,以及我从哪里获取配置。

输出:


起初我没有/etc/dev/X11/xorg.conf文件或/etc/dev/X11/xorg.conf.d/目录(Ubuntu 或 Debian 都没有)。然后,我通过将文件X -configure复制xorg.config.new到 etc/dev/X11/xorg.conf 来创建此文件

输出cat /var/log/Xorg.0.log |grep Elantech

这里

采取的更多步骤:

从Ubuntu:

  • 打开tty ,Ctrl++AltF1
  • sudo service lightdm stop停止灯光DM
  • sudo X -configure抓取X配置
  • sudo start lightdm重新启动lightdm

接下来的步骤是迁移到 Debian,并查看鼠标是否可以工作。

  • 它不是。

X -configure与 Debian 和 Ubuntu相比:

(Debian)

Section "ServerLayout"
    Identifier     "X.org Configured"
    Screen      0  "Screen0" 0 0
    Screen      1  "Screen1" RightOf "Screen0"
    Screen      2  "Screen2" RightOf "Screen1"
    InputDevice    "Mouse0" "CorePointer"
    InputDevice    "Keyboard0" "CoreKeyboard"
EndSection

Section "Files" ModulePath "/usr/lib/xorg/modules" 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" FontPath "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType" FontPath "built-ins" EndSection

Section "Module" Load "extmod" Load "dri" Load "dbe" Load "dri2" Load "glx" Load "record" EndSection

Section "InputDevice" Identifier "Keyboard0" Driver "kbd" EndSection

Section "InputDevice" Identifier "Mouse0" Driver "mouse" Option "Protocol" "auto" Option "Device" "/dev/input/mice" Option "ZAxisMapping" "4 5 6 7" EndSection

Section "Monitor" Identifier "Monitor0" VendorName "Monitor Vendor" ModelName "Monitor Model" EndSection

Section "Monitor" Identifier "Monitor1" VendorName "Monitor Vendor" ModelName "Monitor Model" EndSection

Section "Monitor" Identifier "Monitor2" VendorName "Monitor Vendor" ModelName "Monitor Model" EndSection

Section "Device" ### Available Driver options are:- ### Values: : integer, : float, : "True"/"False", ### : "String", : " Hz/kHz/MHz", ### : "%" ### [arg]: arg optional #Option "AccelMethod" # #Option "DRI" # [] #Option "ColorKey" # #Option "VideoKey" # #Option "Tiling" # [] #Option "LinearFramebuffer" # [] #Option "Shadow" # [] #Option "SwapbuffersWait" # [] #Option "TripleBuffer" # [] #Option "XvPreferOverlay" # [] #Option "DebugFlushBatches" # [] #Option "DebugFlushCaches" # [] #Option "DebugWait" # [] #Option "HotPlug" # [] #Option "RelaxedFencing" # [] #Option "Throttle" # [] #Option "UseVmap" # [] #Option "ZaphodHeads" # #Option "DelayedFlush" # [] #Option "FallbackDebug" # [] #Option "BufferCache" # [] Identifier "Card0" Driver "intel" BusID "PCI:0:2:0" EndSection

Section "Device" ### Available Driver options are:- ### Values: : integer, : float, : "True"/"False", ### : "String", : " Hz/kHz/MHz", ### : "%" ### [arg]: arg optional #Option "ShadowFB" # [] #Option "Rotate" # #Option "fbdev" # #Option "debug" # [] Identifier "Card1" Driver "fbdev" BusID "PCI:0:2:0" EndSection

Section "Screen" Identifier "Screen0" Device "Card0" Monitor "Monitor0" SubSection "Display" Viewport 0 0 Depth 1 EndSubSection SubSection "Display" Viewport 0 0 Depth 4 EndSubSection SubSection "Display" Viewport 0 0 Depth 8 EndSubSection SubSection "Display" Viewport 0 0 Depth 15 EndSubSection SubSection "Display" Viewport 0 0 Depth 16 EndSubSection SubSection "Display" Viewport 0 0 Depth 24 EndSubSection EndSection

Section "Screen" Identifier "Screen1" Device "Card1" Monitor "Monitor1" SubSection "Display" Viewport 0 0 Depth 1 EndSubSection SubSection "Display" Viewport 0 0 Depth 4 EndSubSection SubSection "Display" Viewport 0 0 Depth 8 EndSubSection SubSection "Display" Viewport 0 0 Depth 15 EndSubSection SubSection "Display" Viewport 0 0 Depth 16 EndSubSection SubSection "Display" Viewport 0 0 Depth 24 EndSubSection EndSection

Section "Screen" Identifier "Screen2" Device "Card2" Monitor "Monitor2" SubSection "Display" Viewport 0 0 Depth 1 EndSubSection SubSection "Display" Viewport 0 0 Depth 4 EndSubSection SubSection "Display" Viewport 0 0 Depth 8 EndSubSection SubSection "Display" Viewport 0 0 Depth 15 EndSubSection SubSection "Display" Viewport 0 0 Depth 16 EndSubSection SubSection "Display" Viewport 0 0 Depth 24 EndSubSection EndSection

(乌班图)


Section "ServerLayout"
    Identifier     "X.org Configured"
    Screen      0  "Screen0" 0 0
    InputDevice    "Mouse0" "CorePointer"
    InputDevice    "Keyboard0" "CoreKeyboard"
EndSection

Section "Files" ModulePath "/usr/lib/xorg/modules" 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" FontPath "built-ins" EndSection

Section "Module" Load "glx" EndSection

Section "InputDevice" Identifier "Keyboard0" Driver "kbd" EndSection

Section "InputDevice" Identifier "Mouse0" Driver "mouse" Option "Protocol" "auto" Option "Device" "/dev/input/mice" Option "ZAxisMapping" "4 5 6 7" EndSection

Section "Monitor" Identifier "Monitor0" VendorName "Monitor Vendor" ModelName "Monitor Model" EndSection

Section "Device" ### Available Driver options are:- ### Values: : integer, : float, : "True"/"False", ### : "String", : " Hz/kHz/MHz", ### : "%" ### [arg]: arg optional #Option "NoAccel" # [] #Option "AccelMethod" # #Option "Backlight" # #Option "DRI" # #Option "ColorKey" # #Option "VideoKey" # #Option "Tiling" # [] #Option "LinearFramebuffer" # [] #Option "VSync" # [] #Option "PageFlip" # [] #Option "SwapbuffersWait" # [] #Option "TripleBuffer" # [] #Option "XvPreferOverlay" # [] #Option "HotPlug" # [] #Option "ReprobeOutputs" # [] #Option "XvMC" # [] #Option "ZaphodHeads" # #Option "VirtualHeads" # #Option "TearFree" # [] #Option "PerCrtcPixmaps" # [] #Option "FallbackDebug" # [] #Option "DebugFlushBatches" # [] #Option "DebugFlushCaches" # [] #Option "DebugWait" # [] #Option "BufferCache" # [] Identifier "Card0" Driver "intel" BusID "PCI:0:2:0" EndSection

Section "Screen" Identifier "Screen0" Device "Card0" Monitor "Monitor0" SubSection "Display" Viewport 0 0 Depth 1 EndSubSection SubSection "Display" Viewport 0 0 Depth 4 EndSubSection SubSection "Display" Viewport 0 0 Depth 8 EndSubSection SubSection "Display" Viewport 0 0 Depth 15 EndSubSection SubSection "Display" Viewport 0 0 Depth 16 EndSubSection SubSection "Display" Viewport 0 0 Depth 24 EndSubSection EndSection

我没有注意到指点设备之间的差异。

输出synclient -l

Parameter settings:
LeftEdge                = 130
RightEdge               = 3130
TopEdge                 = 96
BottomEdge              = 1697
FingerLow               = 1
FingerHigh              = 1
FingerPress             = 256
MaxTapTime              = 180
MaxTapMove              = 163
MaxDoubleTapTime        = 180
SingleTapTimeout        = 180
ClickTime               = 100
FastTaps                = 0
EmulateMidButtonTime    = 75
EmulateTwoFingerMinZ    = 282
EmulateTwoFingerMinW    = 7
VertScrollDelta         = 74
HorizScrollDelta        = 74
VertEdgeScroll          = 0
HorizEdgeScroll         = 0
CornerCoasting          = 0
VertTwoFingerScroll     = 1
HorizTwoFingerScroll    = 1
MinSpeed                = 1
MaxSpeed                = 1.75
AccelFactor             = 0.0537634
TrackstickSpeed         = 40
EdgeMotionMinZ          = 30
EdgeMotionMaxZ          = 160
EdgeMotionMinSpeed      = 1
EdgeMotionMaxSpeed      = 297
EdgeMotionUseAlways     = 0
TouchpadOff             = 1
LockedDrags             = 0
LockedDragTimeout       = 5000
RTCornerButton          = 0
RBCornerButton          = 0
LTCornerButton          = 0
LBCornerButton          = 0
TapButton1              = 1
TapButton2              = 3
TapButton3              = 2
ClickFinger1            = 1
ClickFinger2            = 1
ClickFinger3            = 1
CircularScrolling       = 0
CircScrollDelta         = 0.1
CircScrollTrigger       = 0
CircularPad             = 0
PalmDetect              = 0
PalmMinWidth            = 10
PalmMinZ                = 200
CoastingSpeed           = 20
CoastingFriction        = 50
PressureMotionMinZ      = 30
PressureMotionMaxZ      = 160
PressureMotionMinFactor = 1
PressureMotionMaxFactor = 1
GrabEventDevice         = 1
TapAndDragGesture       = 1
AreaLeftEdge            = 0
AreaRightEdge           = 0
AreaTopEdge             = 0
AreaBottomEdge          = 0
HorizHysteresis         = 18
VertHysteresis          = 18
ClickPad                = 0

答案1

根据,GNOME 中的设置可以覆盖系统范围的设置。您是否尝试过在Mouse and Pointing Device Settings中配置所需的行为GNOME Control Center

另请检查以确保您有配置文件来xorg.conf.d配置触摸板。我相信这可以包含在您的xorg.conf文件中,但将其分解以使其更易于理解和更易于使用是有意义的。我使用的是 arch linux,但是在安装触摸板时我经历了配置触摸板的过程。下面是我的synaptics.conf文件。 ArchWiki 上的页面可以帮助您找到要放入 synaptics.conf 的配置选项,并提供有关 GNOME 覆盖设置以及如何使用 重置它们的一些附加信息dconf

我的synaptics.conf

Section "InputClass"
        Identifier "touchpad catchall"
        Driver "synaptics"
        MatchIsTouchpad "on"
        MatchDevicePath "/dev/input/event*"
        #Option  "Device"        "/dev/input/mouse0"
#        Option  "Protocol"      "auto-dev"         
#        Option  "LeftEdge"      "1700"             
#        Option  "RightEdge"     "5300"             
#        Option  "TopEdge"       "1700"             
#        Option  "BottomEdge"    "4200"             
#        Option  "FingerLow"     "25"               
#        Option  "FingerHigh"    "30"               
#        Option  "MaxTapTime"    "180"              
#        Option  "MaxTapMove"    "220"              
        Option  "VertScrollDelta" "-100"            
        Option  "HorizScrollDelta" "-100"            
        Option  "PalmDetect"        "5"
#        Option  "MinSpeed"      "0.20"             
#        Option  "PalmDetect"      "5"             
#        Option  "AccelFactor" "0.00900"             
#        Option  "SHMConfig"     "1"               
        Option  "VertTwoFingerScroll"   "1"        
        Option  "HorizTwoFingerScroll"  "1"        
        Option  "NaturalScroll"         "1"
        Option  "VertEdgeScroll"        "1"
#        Option  "SoftButtonAreas" "50% 0 82% 0 0 0 0 0"
#        Option  "HorizEdgeScroll"       "1"
        Option  "TapButton1"            "1"
        Option  "TapButton2"            "2"
        Option  "TapButton3"            "3"
EndSection

答案2

终于解决了这个问题!我确信有一种不同的方法可以做到这一点。我所做的是:

  • 在 Ubuntu(操作系统)上:

    • synclient -l > ubuntusettings
  • 加载Debian(问题系统):

    • 复制了ubuntu设置文件从 Ubuntu 系统到 Debian。

    • 复制了这个脚本同步客户端负载到空白文本(带有 .py 扩展名) 这是为早期版本的 python 编写的,因此您需要 python 2.x

    • 用于chmod +x synclient-load使脚本可执行。

    • 运行命令python synclient-load.py ubuntusettings

我的鼠标现在可以用两根手指拖放、右键单击以及拖动和突出显示。我确信我可以检查每个 syclient 设置并手动重新配置,甚至配置 synclient 正在读取的文件(根据手册页,它从中读取 /etc/X11/xorg.conf/etc/X11/XF86Config-4但是这些对我来说都不容易编辑,因为它们不存在,并且替换/创建 xorg.conf 文件没有执行任何操作)。

相反,该脚本从转储的 synclient 文件中获取所有内容,将所有内容放入字典中,解析信息,并从该字典中设置设置。

相关内容