Find the answer to your Linux question:
Results 1 to 3 of 3
I dont know where to post, I guess is close to gentoo because chromium is based on gentoo. I have a chroot environment from android to chromiumos on panda board. ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Aug 2012
    Posts
    6

    Unhappy gentoo, actually chromiumos chroot from android, mouse not working


    I dont know where to post, I guess is close to gentoo because chromium is based on gentoo. I have a chroot environment from android to chromiumos on panda board. I am strugling to get the mouse working for a week or so, no success. Here are all the findings, workround I did. I practically ran out of options.

    All mounts (/dev/ proc tmp asn such) pre-chroot things and services for chromiumos are running OK. X starting OK. X starts on vt07.

    My settings and logs related to mouse are down the post.


    /etc/udev/udev.conf
    Code:
    udev_root="/_xdev" # changed to detach from android
    unpluging mouse dmesg
    Code:
    localhost udev # dmesg -c | grep usb
    usb 1-1: USB disconnect, address 57
    usb 1-1: unregistering device
    usb 1-1: usb_disable_device nuking all URBs
    musb_hdrc musb_hdrc: shutdown urb d61ca580 ep1in-intr
    usb 1-1: unregistering interface 1-1:1.0[/COLOR]
    dmesg, plugging in the USB mouse:
    Code:
    localhost udev # dmesg -c | grep usb
    usb 1-1: USB disconnect, address 58
    usb 1-1: unregistering device
    usb 1-1: usb_disable_device nuking all URBs
    musb_hdrc musb_hdrc: shutdown urb d61ca580 ep1in-intr
    usb 1-1: unregistering interface 1-1:1.0
    localhost udev # dmesg -c | grep usb
    usb 1-1: new low speed USB device using musb_hdrc and address 59
    usb 1-1: skipped 1 descriptor after interface
    usb 1-1: default language 0x0409
    usb 1-1: device v046d pc06a is not supported
    usb 1-1: udev 59, busnum 1, minor = 58
    usb 1-1: New USB device found, idVendor=046d, idProduct=c06a
    usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
    usb 1-1: Product: USB Optical Mouse
    usb 1-1: Manufacturer: Logitech
    usb 1-1: usb_probe_device
    usb 1-1: configuration #1 chosen from 1 choice
    usb 1-1: adding 1-1:1.0 (config #1, interface 0)
    usbhid 1-1:1.0: usb_probe_interface
    usbhid 1-1:1.0: usb_probe_interface - got id
    input: Logitech USB Optical Mouse as /devices/platform/musb_hdrc/usb1/1-1/1-1:1.0/input/input194
    generic-usb 0003:046D:C06A.00B7: input: USB HID v1.11 Mouse [Logitech USB Optical Mouse] on usb-musb_hdrc-1/input0
    drivers/usb/core/inode.c: creating file '059'
    new /_xdev folder
    Code:
    localhost / # ls -l /_xdev/input/
    total 8
    drwxr-xr-x 2 root root    4096 Apr 21 18:28 by-id
    drwxr-xr-x 2 root root    4096 Apr 21 18:28 by-path
    crw-rw---- 1 root input 13, 76 Apr 21 18:28 event12
    localhost / # ls -l /_xdev/input/by-id/
    total 0
    lrwxrwxrwx 1 root root 10 Apr 21 18:28 usb-Logitech_USB_Optical_Mouse-event-mouse -> ../event12
    device file cat while moving the mouse prints activity
    Code:
     cat /_xdev/input/event12 
    �_x
       �_�
    <gibrish>
    the one xorg.conf. No other xorrg.conf.d files in X11 and usr/share

    Code:
    Section "ServerFlags"
         Option        "AllowEmptyInput"     "true"
        Option        "AutoAddDevices"      "true"
        Option        "AutoEnableDevices"   "true"
        Option        "AllowMouseOpenFail"  "true"
        Option        "DontVTSwitch"        "true"
    
        Option     "NoTrapSignals" "true"
        Option     "DontZap" "false"
        # Disable DPMS timeouts.
        Option     "StandbyTime" "0"
        Option     "SuspendTime" "0"
        Option     "OffTime" "0"
        # Disable screen saver timeout.
        Option     "BlankTime" "0"
    EndSection
    
    
    Section "ServerLayout"
        Identifier    "seat0"
        Screen        "HDMI Screen"          0 0
        Option        "BlankTime"           "0"
        Option        "StandbyTime"         "0"
        Option        "SuspendTime"         "0"
        Option        "OffTime"             "0"
    EndSection
    
    
    Section "Device"
        Identifier    "HDMI Out"
        Driver        "fbdev"
        Option        "fbdev"               "/dev/graphics/fb0"
        Option        "ShadowFB"            "off"
        Option        "UseFB"
    EndSection
    
    Section "Monitor"
        Identifier    "HDMI Monitor"
        Option        "DPMS"                "0"
    EndSection
    
    
    Section "Screen"
        Identifier    "HDMI Screen"
        Monitor       "HDMI Monitor"
        Device        "HDMI Out"
        DefaultDepth  16
        SubSection "Display"
            Virtual 1920 1080
        EndSubSection
    EndSection
    
    Section "InputClass"
            Identifier "evdev pointer catchall"
            MatchIsPointer "on"
            MatchDevicePath "/_xdev/input/event*"
            Driver "evdev"
    EndSection
    
    Section "InputClass"
            Identifier "evdev keyboard catchall"
            MatchIsKeyboard "on"
            MatchDevicePath "/_xdev/input/event*"
            Driver "evdev"
    EndSection


    xorg.log while pugging in and out the mouse

    ---unplug the mouse
    Code:
    [ 24702.546] (II) config/udev: removing device Logitech USB Optical Mouse
    [ 24702.557] (II) evdev: Logitech USB Optical Mouse: Close
    [ 24702.557] (II) UnloadModule: "evdev"

    --plug the mouse

    Code:
    [ 24741.812] (II) config/udev: Adding input device Logitech USB Optical Mouse (/_xdev/input/event12)
    [ 24741.813] (**) Logitech USB Optical Mouse: Applying InputClass "evdev pointer catchall"
    [ 24741.813] (**) Logitech USB Optical Mouse: Applying InputClass "generic mouse for Chromium OS"
    [ 24741.813] (II) Using input driver 'evdev' for 'Logitech USB Optical Mouse'
    [ 24741.813] (**) Logitech USB Optical Mouse: always reports core events
    [ 24741.813] (**) evdev: Logitech USB Optical Mouse: Device: "/_xdev/input/event12"
    [ 24741.822] (**) evdev: Logitech USB Optical Mouse: ButtonMapping '1 2 3 8 9'
    [ 24741.823] (--) evdev: Logitech USB Optical Mouse: Vendor 0x46d Product 0xc06a
    [ 24741.823] (**) Option "IgnoreAbsoluteAxes" "true"
    [ 24741.823] (--) evdev: Logitech USB Optical Mouse: Found 3 mouse buttons
    [ 24741.823] (--) evdev: Logitech USB Optical Mouse: Found scroll wheel(s)
    [ 24741.823] (--) evdev: Logitech USB Optical Mouse: Found relative axes
    [ 24741.823] (--) evdev: Logitech USB Optical Mouse: Found x and y relative axes
    [ 24741.823] (II) evdev: Logitech USB Optical Mouse: Configuring as mouse
    [ 24741.823] (II) evdev: Logitech USB Optical Mouse: Adding scrollwheel support
    [ 24741.823] (**) Option "Emulate3Buttons" "false"
    [ 24741.823] (**) evdev: Logitech USB Optical Mouse: YAxisMapping: buttons 4 and 5
    [ 24741.823] (**) evdev: Logitech USB Optical Mouse: EmulateWheelButton: 4, EmulateWheelInertia: 10, EmulateWheelTimeout: 200
    [ 24741.823] (**) Option "config_info" "udev:/sys/devices/platform/musb_hdrc/usb1/1-1/1-1:1.0/input/input196/event12"
    [ 24741.823] (II) evdev: Logitech USB Optical Mouse: initialized for relative axes.
    [ 24741.824] (**) Option "Evdev Wheel Axes Acceleration" "1"
    [ 24741.824] (**) Logitech USB Optical Mouse: (accel) keeping acceleration scheme 1
    [ 24741.824] (**) Option "ConstantDeceleration" "1000"
    [ 24741.824] (**) Logitech USB Optical Mouse: (accel) constant deceleration by 1000.0
    [ 24741.825] (**) Option "AccelerationProfile" "8"
    [ 24741.825] (**) Logitech USB Optical Mouse: (accel) acceleration profile 8
    [ 24741.825] (**) Option "VelocityScale" "1"
    [ 24741.825] (**) Logitech USB Optical Mouse: (accel) acceleration factor: 2.000
    [ 24741.825] (**) Logitech USB Optical Mouse: (accel) acceleration threshold: 4
    [ 24741.825] (--) evdev: Logitech USB Optical Mouse: Using realtime input event time stamps
    [ 24741.825] (II) evdev: Logitech USB Optical Mouse: Sync_State: before 1366594389.996643 after 1366594389.996673 injected events=0

    localhost / # xinput list
    Code:
    ⎡ Virtual core pointer                    	id=2	[master pointer  (3)]
    ⎜   ↳ Virtual core XTEST pointer              	id=4	[slave  pointer  (2)]
    ⎜   ↳ Logitech USB Optical Mouse              	id=6	[slave  pointer  (2)]
    ⎣ Virtual core keyboard                   	id=3	[master keyboard (2)]
        ↳ Virtual core XTEST keyboard             	id=5	[slave  keyboard (3)]
    
    B: KEY=30000 0 0 0 0 0 0 0 0 100000 0 0 0

    cat /proc/bus/input/devices

    Code:
    ...
    I: Bus=0003 Vendor=046d Product=c06a Version=0111
    N: Name="Logitech USB Optical Mouse"
    P: Phys=usb-musb_hdrc-1/input0
    S: Sysfs=/devices/platform/musb_hdrc/usb1/1-1/1-1:1.0/input/input198
    U: Uniq=
    H: Handlers=event12 
    B: EV=17
    B: KEY=70000 0 0 0 0 0 0 0 0
    B: REL=103
    B: MSC=10


    Xorg -version

    Code:
    X.Org X Server 1.12.4
    Release Date: 2012-08-27
    X Protocol Version 11, Revision 0
    Build Operating System: Linux 3.5.0-26-generic x86_64 Gentoo
    Current Operating System: Linux localhost 2.6.35.7+ #269 SMP PREEMPT Fri Dec 2 11:11:21 EST 2011 armv7l
    Kernel command line: mem=456M<AT>0x80000000 mem=508M<AT>0xA0000000 androidboot.console=ttyO0 rootdelay=2 no_console_suspend androidboot.bootloader=248 klogo=xxxxx androidboot.mode=boot
    Build Date: 10 April 2013  12:47:00AM
     
    Current version of pixman: 0.28.0
    	Before reporting problems, check <WEB SITE>
    	to make sure that you have the latest version.
    uname -a
    Code:
    Linux localhost 3.4.0 #269 SMP PREEMPT Fri Dec 2 11:11:21 EST 2011 armv7l ARMv7 Processor rev 2 (v7l) OMAP4430  board GNU/Linux
    I can move the X cursor with xdotool:
    Code:
    mousemove X Y and click.

    But mouse does not work. The cursor stays in the center.
    Any help would be appreciated.
    I have tried several other miceand I have the same issue. Mouse seems to be detectedbut refuses to work.
    Any help would be appreciated

    Thank you.
    Last edited by mariuschincisan; 04-22-2013 at 10:01 PM. Reason: spelling

  2. #2
    Administrator MikeTbob's Avatar
    Join Date
    Apr 2006
    Location
    Texas
    Posts
    7,864
    I'm not too sure Chromium OS is Gentoo based but here goes anyway....
    Does the mouse work on Chromium OS? Non-chroot?
    Are you only having problems when chrooting from Android? Can you chroot from somewhere else to see if you have tge same problems?
    Does Chromium OS use /etc/make.conf? If yes then you may need to add evdev to make.conf
    Are you loading the correct modules for the mouse? If needed?
    I do not respond to private messages asking for Linux help, Please keep it on the forums only.
    All new users please read this.** Forum FAQS. ** Adopt an unanswered post.

    I'd rather be lost at the lake than found at home.

  3. #3
    Just Joined!
    Join Date
    Aug 2012
    Posts
    6
    Hi,
    I cannot boot into panda chromium because the chromiumos build system has a faulty u-boot for panda.
    Instead, the x86 build works fine on a pc, with mouse, and chrooted into it from ubuntu.
    On panda, to check that the issue is not android, I chroot into a oneiric-ubuntu + xfce having identical
    settings, xorg/udev as chromium, and mouse work just fine. The above outputs are identical.


    Code:
    ################
    root@localhost:/# ls -l /_xdev/input/ _xdev/input/by-id/
    /_xdev/input/:
    total 8
    drwxr-xr-x 2 root root   4096 Apr 22 19:06 by-id
    drwxr-xr-x 2 root root   4096 Apr 22 19:06 by-path
    crw-r----- 1 root root 13, 76 Apr 22 19:06 event12
    
    _xdev/input/by-id/:
    total 0
    lrwxrwxrwx 1 root root 10 Apr 22 19:06 usb-Logitech_USB_Optical_Mouse-event-mouse -> ../event12
    
    
    ##################
    root@localhost:/# tail -40 /var/log/Xorg.0.log
    [  1131.129] (II) config/udev: Adding input device Logitech USB Optical Mouse (/_xdev/input/event12)
    [  1131.129] (**) Logitech USB Optical Mouse: Applying InputClass "evdev pointer catchall"
    [  1131.129] (II) LoadModule: "evdev"
    [  1131.130] (II) Loading /usr/lib/xorg/modules/input/evdev_drv.so
    [  1131.136] (II) Module evdev: vendor="X.Org Foundation"
    [  1131.136] 	compiled for 1.10.2, module version = 2.6.0
    [  1131.137] 	Module class: X.Org XInput Driver
    [  1131.137] 	ABI class: X.Org XInput driver, version 12.3
    [  1131.137] (II) Using input driver 'evdev' for 'Logitech USB Optical Mouse'
    [  1131.137] (II) Loading /usr/lib/xorg/modules/input/evdev_drv.so
    [  1131.137] (**) Logitech USB Optical Mouse: always reports core events
    [  1131.137] (**) Logitech USB Optical Mouse: Device: "/_xdev/input/event12"
    [  1131.148] (--) Logitech USB Optical Mouse: Found 3 mouse buttons
    [  1131.148] (--) Logitech USB Optical Mouse: Found scroll wheel(s)
    [  1131.149] (--) Logitech USB Optical Mouse: Found relative axes
    [  1131.149] (--) Logitech USB Optical Mouse: Found x and y relative axes
    [  1131.149] (II) Logitech USB Optical Mouse: Configuring as mouse
    [  1131.149] (II) Logitech USB Optical Mouse: Adding scrollwheel support
    [  1131.149] (**) Logitech USB Optical Mouse: YAxisMapping: buttons 4 and 5
    [  1131.149] (**) Logitech USB Optical Mouse: EmulateWheelButton: 4, EmulateWheelInertia: 10, EmulateWheelTimeout: 200
    [  1131.149] (**) Option "config_info" "udev:/sys/devices/platform/musb_hdrc/usb1/1-1/1-1:1.0/input/input14/event12"
    [  1131.149] (II) XINPUT: Adding extended input device "Logitech USB Optical Mouse" (type: MOUSE)
    [  1131.149] (II) Logitech USB Optical Mouse: initialized for relative axes.
    [  1131.150] (**) Logitech USB Optical Mouse: (accel) keeping acceleration scheme 1
    [  1131.150] (**) Logitech USB Optical Mouse: (accel) acceleration profile 0
    [  1131.150] (**) Logitech USB Optical Mouse: (accel) acceleration factor: 2.000
    [  1131.150] (**) Logitech USB Optical Mouse: (accel) acceleration threshold: 4
    
    
    #####################
    root@localhost:/# xinput list
    ⎡ Virtual core pointer                    	id=2	[master pointer  (3)]
    ⎜   ↳ Virtual core XTEST pointer              	id=4	[slave  pointer  (2)]
    ⎜   ↳ Logitech USB Optical Mouse              	id=6	[slave  pointer  (2)]
    ⎣ Virtual core keyboard                   	id=3	[master keyboard (2)]
        ↳ Virtual core XTEST keyboard             	id=5	[slave  keyboard (3)]
    root@localhost:/# 
    
    ############################
    root@localhost:/# cat /proc/bus/input/devices
    : Bus=0003 Vendor=046d Product=c06a Version=0111
    N: Name="Logitech USB Optical Mouse"
    P: Phys=usb-musb_hdrc-1/input0
    S: Sysfs=/devices/platform/musb_hdrc/usb1/1-1/1-1:1.0/input/input14
    U: Uniq=
    H: Handlers=event12 
    B: EV=17
    B: KEY=70000 0 0 0 0 0 0 0 0
    B: REL=103
    B: MSC=10
    
    
    
    root@localhost:/# Xorg -version
    
    X.Org X Server 1.10.4
    Release Date: 2011-08-19
    X Protocol Version 11, Revision 0
    Build Operating System: Linux 2.6.31-609-imx51 armv7l Ubuntu
    Current Operating System: Linux localhost 2.6.35.7+ #269 SMP PREEMPT Fri Dec 2 11:11:21 EST 2011 armv7l
    Kernel command line: mem=456M@0x80000000 mem=508M<AT>0xA0000000 androidboot.console=ttyO0 rootdelay=2 no_console_suspend androidboot.bootloader=248 klogo=xxxx androidboot.mode=boot
    Build Date: 29 September 2011  12:57:25AM
    xorg-server 2:1.10.4-1ubuntu4 (For technical support please see <REMOVED>) 
    Current version of pixman: 0.22.2
    	Before reporting problems, check <WEB>
    	to make sure that you have the latest version.

    Editedt 4 hours later:


    More findings.
    I guess the evdev is faulty. Ill check the codeand come back...

    I just wrote a small C program which reads the /*dev/input/event/* pulls out the coord
    deltas and feeds them to the XDesktop ttrugh XWarpPointer(_dpy, None, None, 0, 0, 0, 0, dx, dy);,
    and mouse moves just really nice.
    Last edited by mariuschincisan; 04-23-2013 at 08:03 PM. Reason: added xorg version

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •