[SOLVED] keyboard and mouse stop working in starting X in raspberryPI
Linux - Embedded & Single-board computerThis forum is for the discussion of Linux on both embedded devices and single-board computers (such as the Raspberry Pi, BeagleBoard and PandaBoard). Discussions involving Arduino, plug computers and other micro-controller like devices are also welcome.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
keyboard and mouse stop working in starting X in raspberryPI
I made a linux image with buildroot 2013.11 for rpi it startsup with no problem and my keyboard works fine but when I try to run startx or anything that starts X my keyboard and mouse stops working. I worked on this problem for two weeks but still no success.
another issue that I have is that X does not starts by default and I have to start it manually.
[ 247.524] (II) Module ABI versions:
[ 247.524] X.Org ANSI C Emulation: 0.4
[ 247.525] X.Org Video Driver: 12.1
[ 247.525] X.Org XInput driver : 16.0
[ 247.525] X.Org Server Extension : 6.0
[ 247.525] (II) LoadModule: "extmod"
[ 247.536] (II) Loading /usr/lib/xorg/modules/extensions/libextmod.so
[ 247.544] (II) Module extmod: vendor="X.Org Foundation"
[ 247.545] compiled for 1.12.4, module version = 1.0.0
[ 247.545] Module class: X.Org Server Extension
[ 247.545] ABI class: X.Org Server Extension, version 6.0
[ 247.545] (II) Loading extension XFree86-VidModeExtension
[ 247.545] (II) Loading extension XFree86-DGA
[ 247.545] (II) Loading extension DPMS
[ 247.545] (II) Loading extension XVideo
[ 247.545] (II) Loading extension XVideo-MotionCompensation
[ 247.545] (II) Loading extension X-Resource
[ 247.545] (II) LoadModule: "dbe"
[ 247.547] (II) Loading /usr/lib/xorg/modules/extensions/libdbe.so
[ 247.550] (II) Module dbe: vendor="X.Org Foundation"
[ 247.550] compiled for 1.12.4, module version = 1.0.0
[ 247.550] Module class: X.Org Server Extension
[ 247.550] ABI class: X.Org Server Extension, version 6.0
[ 247.551] (II) Loading extension DOUBLE-BUFFER
[ 247.551] (II) LoadModule: "record"
[ 247.552] (II) Loading /usr/lib/xorg/modules/extensions/librecord.so
[ 247.557] (II) Module record: vendor="X.Org Foundation"
[ 247.557] compiled for 1.12.4, module version = 1.13.0
[ 247.557] Module class: X.Org Server Extension
[ 247.557] ABI class: X.Org Server Extension, version 6.0
[ 247.557] (II) Loading extension RECORD
[ 247.557] (==) Matched fbdev as autoconfigured driver 0
[ 247.558] (==) Assigned the driver to the xf86ConfigLayout
[ 247.558] (II) LoadModule: "fbdev"
[ 247.559] (II) Loading /usr/lib/xorg/modules/drivers/fbdev_drv.so
[ 247.562] (II) Module fbdev: vendor="X.Org Foundation"
[ 247.562] compiled for 1.12.4, module version = 0.4.2
[ 247.562] ABI class: X.Org Video Driver, version 12.1
[ 247.562] (II) FBDEV: driver for framebuffer: fbdev
[ 247.563] (--) using VT number 2
[ 247.567] (WW) Falling back to old probe method for fbdev
[ 247.567] (II) Loading sub module "fbdevhw"
[ 247.567] (II) LoadModule: "fbdevhw"
[ 247.568] (II) Loading /usr/lib/xorg/modules/libfbdevhw.so
[ 247.572] (II) Module fbdevhw: vendor="X.Org Foundation"
[ 247.572] compiled for 1.12.4, module version = 0.0.2
[ 247.572] ABI class: X.Org Video Driver, version 12.1
[ 247.573] (II) FBDEV(0): using default device
[ 247.573] (WW) VGA arbiter: cannot open kernel arbiter, no multi-card support
[ 247.573] (II) FBDEV(0): Creating default Display subsection in Screen section
"Default Screen Section" for depth/fbbpp 16/16
[ 247.574] (==) FBDEV(0): Depth 16, (==) framebuffer bpp 16
[ 247.574] (==) FBDEV(0): RGB weight 565
[ 247.574] (==) FBDEV(0): Default visual is TrueColor
[ 247.574] (==) FBDEV(0): Using gamma correction (1.0, 1.0, 1.0)
[ 247.574] (II) FBDEV(0): hardware: BCM2708 FB (video memory: 675kB)
[ 247.574] (II) FBDEV(0): checking modes against framebuffer device...
[ 247.574] (II) FBDEV(0): checking modes against monitor...
[ 247.575] (--) FBDEV(0): Virtual size is 720x480 (pitch 720)
[ 247.575] (**) FBDEV(0): Built-in mode "current"
[ 247.575] (==) FBDEV(0): DPI set to (96, 96)
[ 247.575] (II) Loading sub module "fb"
[ 247.575] (II) LoadModule: "fb"
[ 247.577] (II) Loading /usr/lib/xorg/modules/libfb.so
[ 247.589] (II) Module fb: vendor="X.Org Foundation"
[ 247.589] compiled for 1.12.4, module version = 1.0.0
[ 247.589] ABI class: X.Org ANSI C Emulation, version 0.4
[ 247.590] (**) FBDEV(0): using shadow framebuffer
[ 247.590] (II) Loading sub module "shadow"
[ 247.590] (II) LoadModule: "shadow"
[ 247.591] (II) Loading /usr/lib/xorg/modules/libshadow.so
[ 247.596] (II) Module shadow: vendor="X.Org Foundation"
[ 247.596] compiled for 1.12.4, module version = 1.1.0
[ 247.596] ABI class: X.Org ANSI C Emulation, version 0.4
[ 247.597] (EE) FBDEV(0): FBIOBLANK: Operation not permitted
[ 247.611] (==) FBDEV(0): Backing store disabled
[ 247.612] (==) FBDEV(0): DPMS enabled
[ 247.612] (==) RandR enabled
[ 247.613] (II) Initializing built-in extension Generic Event Extension
[ 247.613] (II) Initializing built-in extension SHAPE
[ 247.613] (II) Initializing built-in extension MIT-SHM
[ 247.613] (II) Initializing built-in extension XInputExtension
[ 247.613] (II) Initializing built-in extension XTEST
[ 247.613] (II) Initializing built-in extension BIG-REQUESTS
[ 247.613] (II) Initializing built-in extension SYNC
[ 247.613] (II) Initializing built-in extension XKEYBOARD
[ 247.613] (II) Initializing built-in extension XC-MISC
[ 247.613] (II) Initializing built-in extension XINERAMA
[ 247.613] (II) Initializing built-in extension XFIXES
[ 247.613] (II) Initializing built-in extension RENDER
[ 247.614] (II) Initializing built-in extension RANDR
[ 247.614] (II) Initializing built-in extension DAMAGE
[ 248.180] (II) config/udev: Adding input device USB-compliant keyboard (/dev/input/mouse0)
[ 248.180] (II) No input driver specified, ignoring this device.
[ 248.181] (II) This device may have been added with another device file.
[ 248.224] (EE) FBDEV(0): FBIOBLANK: Operation not permitted
[ 848.235] (EE) FBDEV(0): FBIOBLANK: Operation not permitted
[ 848.235] (EE) FBDEV(0): FBIOBLANK: Operation not permitted
[ 848.237] (EE) FBDEV(0): FBIOBLANK: Operation not permitted
and my kernel info is:
Quote:
Linux buildroot 3.10.18+ #587 Sun Nov 10 15:30:45 GMT 2013 armv6l GNU/Linux
I tested it with 3 different keyboard and mouse but no success.
what is my problem that my keyboard and mouuse stop working in X and my X does not starts automatically on startup in raspberry PI?
Hello, first of all, what distribution are you running on the RPi?
To fix your keyboard and mouse problem I would look at your /etc/X11/xorg.conf file and make sure there is something in there like:
Code:
Section "InputDevice"
Identifier "Keyboard1"
Driver "kbd"
EndSection
Section "InputDevice"
Identifier "Mouse1"
Driver "mouse"
Option "Protocol" "Auto"
# look in /dev/ maybe there is a link called "mouse" that points to your real device
# or you might have to set it to your actual device (/dev/mouse0 maybe?)
Option "Device" "/dev/mouse"
EndSection
Maybe your distribution comes with a handy xorg.conf set up script, maybe xorgsetup?
To make it start up in graphical mode, look at your /etc/inittab file, and if there is a line that says
Code:
id:3:initdefault:
You can change that to
Code:
id:4:initdefault:
Last edited by casualfred; 01-27-2014 at 06:03 PM.
Reason: that is not his /boot/config.txt file.
unfortunately my image has no /etc/X11 directory so it has not xorg.conf too and I did not find any line similar to what you said in inttab. even I made xorg.conf myself and copied what you said with these changes:
Section "InputDevice"
Identifier "Mouse1"
Driver "fbdev"
Option "Protocol" "Auto"
# look in /dev/ maybe there is a link called "mouse" that points to your real device
# or you might have to set it to your actual device (/dev/mouse0 maybe?)
Option "Device" "/dev/input/mouse0"
EndSection
and my inittab is like this:
Quote:
# Startup the system
null::sysinit:/bin/mount -t proc proc /proc
null::sysinit:/bin/mount -o remount,rw / # REMOUNT_ROOTFS_RW
null::sysinit:/bin/mkdir -p /dev/pts
null::sysinit:/bin/mkdir -p /dev/shm
null::sysinit:/bin/mount -a
null::sysinit:/bin/hostname -F /etc/hostname
# now run any rc scripts
::sysinit:/etc/init.d/rcS
# Put a getty on the serial port
tty1::respawn:/sbin/getty -L tty1 115200 vt100 # GENERIC_SERIAL
# Stuff to do for the 3-finger salute
::ctrlaltdel:/sbin/reboot
# Stuff to do before rebooting
null::shutdown:/etc/init.d/rcK
null::shutdown:/bin/umount -a -r
null::shutdown:/sbin/swapoff -a
but it did not work too I mean I have no keyboard and mouse functional when I startx. ((((((((
Alright, I'm not sure what to do about the mouse and keyboard.
As for auto starting X, at the end of the /etc/init.d/rcS script you could put in:
Code:
su - root -c startx &
(especially if you're okay starting X as root). I'm used to the systemv inittab, and I believe you are using a busybox inittab, so that was my mistake.
I was confused at first what distribution you were using, but I now understand a little more about buildroot. There may be some better distributions if you want a desktop and everything...
thanks for your fast reply and I know there is some other distros that has better support for X but I am experiencing and learning . I want to know why my X does not work with keyboard and mouse with buildroot to understand the concept of what is happening background it is more that three weeks that I am working on it with no success. but still keen to read more guide and solutions from you or others.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.