From patchwork Fri Dec 2 05:27:20 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [1/2] x11-common: Change drive mode of Xfbdev when xserver using framebuffer Date: Fri, 02 Dec 2011 05:27:20 -0000 From: Xiaofeng Yan X-Patchwork-Id: 16037 Message-Id: To: From: Xiaofeng Yan The previous mode of starting X is as follow: $Xfbdev :0 -keybd keyboard -mouse tslib This mode cause that some keys can't be mapped rightly. \ for example "Down" have the same function with "Enter". another drive mode "evdev" can work rightly in new version. $Xfbdev :0 -keybd evdev,,device=/dev/input/event0 -mouse tslib So I select drive mode "evdev". Signed-off-by: Xiaofeng Yan --- .../x11-common/x11-common/etc/X11/Xserver | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/meta/recipes-graphics/x11-common/x11-common/etc/X11/Xserver b/meta/recipes-graphics/x11-common/x11-common/etc/X11/Xserver index 57923e6..736cd6d 100644 --- a/meta/recipes-graphics/x11-common/x11-common/etc/X11/Xserver +++ b/meta/recipes-graphics/x11-common/x11-common/etc/X11/Xserver @@ -28,11 +28,13 @@ module_id() { ARGS=" -br -pn" +KD_DRIVE_KEYBOARD="-keybd keyboard" +KD_DRIVE_EVDEV="-keybd evdev,,device=/dev/input/event0" if [ "$XSERVER" != "/usr/bin/Xorg" ]; then . /etc/formfactor/config - ARGS="$ARGS -keybd keyboard" + ARGS="$ARGS $KD_DRIVE_EVDEV" # use usb mouse if present if [ -z "$TSLIB_TSDEVICE" ] && [ -e /dev/input/mice ]; then