[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

X无法使用部分键盘按键的问题



各位好!
  下面是我的计算机的xorg的配置文件xorg.conf,在没有将键盘和鼠标的驱动
换成evdev之前,键盘上所有的按键都是可以正常使用,将键盘和鼠标的驱动换成
使用evdev驱动之后,发现键盘主键区之外的所有键: 包括F1-F12, Home, End,
PgUp, PgDn, Delete, Insert, 上下左右4个方向键等全都不能正常工作了,出现
的现象是按键和对应的操作不匹配了,比如,我按上箭头键,结果执行了屏幕抓图
的动作。

请问是什么原因?
张召伟

xorg.conf文件的内容:

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 "bitmap"
Load "dbe"
Load "ddc"
Load "dri"
Load "extmod"
Load "freetype"
Load "glx"
Load "int10"
Load "type1"
Load "vbe"
EndSection

Section "InputDevice"
Identifier "Generic Keyboard 0"
# Driver "kbd"
Driver "evdev"
Option "Device" "/dev/input/event3"
Option "CoreKeyboard"
Option "XkbRules" "xorg"
Option "XkbModel" "pc104"
Option "XkbLayout" "us"
EndSection

Section "InputDevice"
Identifier "Configured Mouse 0"
# Driver "mouse"
Driver "evdev"
Option "CorePointer"
Option "Device" "/dev/input/event4"
Option "Protocol" "ExplorerPS/2"
Option "Emulate3Buttons" "true"
EndSection

Section "Device"
Identifier "Matrox Graphics, Inc. MGA 2164W [Millennium II] 0"
Driver "mga"
BusID "PCI:2:6:0"
VideoRam 8192
EndSection

Section "Monitor"
Identifier "Generic Monitor 0"
Option "DPMS"
HorizSync 24-70
VertRefresh 56-75
EndSection


Section "Screen"
Identifier "Default Screen 0"
Device "Matrox Graphics, Inc. MGA 2164W [Millennium II] 0"
Monitor "Generic Monitor 0"
DefaultDepth 24
SubSection "Display"
Depth 1
Modes "1152x864" "1024x768"
EndSubSection
SubSection "Display"
Depth 4
Modes "1152x864" "1024x768"
EndSubSection
SubSection "Display"
Depth 8
Modes "1152x864" "1024x768"
EndSubSection
SubSection "Display"
Depth 15
Modes "1152x864" "1024x768"
EndSubSection
SubSection "Display"
Depth 16
Modes "1152x864" "1024x768"
EndSubSection
SubSection "Display"
Depth 24
Modes "1152x864" "1024x768"
EndSubSection
EndSection

Section "ServerLayout"
Identifier "Layout0"
Screen "Default Screen 0"
InputDevice "Generic Keyboard 0"
InputDevice "Configured Mouse 0"
EndSection

Section "DRI"
Mode 0666
EndSection




Reply to: