X server segfault when using BT keyboard


OK so I picked up random keyboard at local electronics shop. And it works fine for typing for a few minutes, do I have to keep typing for the bug to trigger?

If it really takes from 10 minutes to several hours to trigger, it will take forever to debug it. Somebody needs to find a faster way to trigger the bug.
 
Last edited by a moderator:
I've used a foldable bluetooth keyboard on my Pandora in the past, and it's never crashed X. It does keep disconnecting if I don't use it for a minute or so, and IIRC I have to disable and reeenable bluetooth to get it to connect again, but I've never had the symptoms from this thread.


I've no idea if it depends on the specific keyboard or the specific Pandora. This is my keyboard and I'm using a GHz Pandora. As I said above, no (obvious) crashes.
 
OK so I picked up random keyboard at local electronics shop. And it works fine for typing for a few minutes, do I have to keep typing for the bug to trigger?

If it really takes from 10 minutes to several hours to trigger, it will take forever to debug it. Somebody needs to find a faster way to trigger the bug.
In my experience, when the keyboard is just connected, nothing happens for a long time. The easiest way of triggering this bug was to push and hold several keys at once.  But yeah, there is no sure way to reproduce it.

You might also want to try to reboot your pandora without turning off BT and while keeping your BT keyboard on. This way, after the restart the pandora gets into a known reproducible state when it picks up the keyboard. I had the bug in question in these conditions.
 
I was looking at my XORG.0.log file and consistently it seems to crash at point

(II)config/hal: removing device Anker Ultra-slim keyboard

(II)Unload module: "evdev"

Doing a quick google brought me to this thread 

http://askubuntu.com/questions/101308/xorg-segmentation-fault-seems-to-be-relevant-to-evdev

And the below was the solution which worked for 3 users. How much use this is of to anyone I don't know. But perhaps it is the Xorg package causing this?


I can confirm that the offending package on my system is xserver-xorg-core version 2:1.10.4-1ubuntu4.2newyork1.

Downgrading it with


sudo apt-get install xserver-xorg-core=2:1.10.4-1ubuntu4

saved the day for me.
 
Last edited by a moderator:
Hmm, if your log file is anything like the one in the OP and in that page you linked, the 'unloading evdev' is not where it crashes, but part of the shutdown process after it's crashed.

In the one in the OP it crashes after '[Xi] Too many valuators reported for device 'Virtual core pointer'. Ignoring event.' although the backtrace is very short (just one level) and the segfault address is very low (just 0x1c).  It may still be related to the 'too many valuators' error which no doubt is generated at a much deeper level of the code, but not being familiar with the source code (and not many are) it's hard to be sure.
 
How error occurs

Start pandora. Switch gui to XFCE. Start wifi and bluetooth. Usually have deadbeef open at this point.

Connect BT keyboard.

Open Libreoffice writer. Begin typing. Screen cuts to black terminal screen like display server has failed. Error occurs within 1-5 minutes usually although on one rare occasion I was typing away for 20 minutes without it happening.

ERROR Message

INIT: Entering runlevel: 5

Starting system message bus: dbus.

Starting hardware abstraction layer hald

Configuring leds:

     Pandora::bluetooth: bluetooth

     pandora::charger: twl4030_bci_battery-charging

     pandora::keyboard_bl: none

     pandora::power: default-on

     pandora::sd1: mmc01

     pandora::wifi: phy0radio

Starting OpenPandora Save and Restore various settings: pandora-state - Restoring Pandora specific settings

No clean shutdown - will CPU speed will be set to safe value

cpu_mhz_max set to 600

current CPU clock is 600000

Enabling ZRAM swap

Setting up swapspace version 1, size =128400 KiB

no label, UUID=d1777990-9059-4a85-8d6a-ad0d4e6555b3

Starting network connection manager demon: NetworkManager

Starting OpenPandora startup script Deamon: opruninit

OP_STARTUP: /etc/pandora/first-boot exists, not first boot

Starting Pandora PND Event Deamon: pndevmapperd

Starting Pandora PND deamon: pndnotifyd

modem-manager: ModemManger (version 0.4) starting..

modem-manager: Loaded plugin option

modem-manger: Loaded plugin Ericsson MBM

modem-manager:  (tty/ttyS3): port's parent platform driver is not whitelisted
At this point you have the terminal cursor and you can type and press enter but commands like "sudo poweroff" don't work so I have to pull the battery.
 
Last edited by a moderator:
xorg.0.log file contents

X.Org X Server 1.7.4

Release Date: 2010-01-08

X Protocol Version 11, Revision 0

Build Operating System: Linux 2.6.26-2-amd64 x86_64

Current Operating System: Linux rhydwyn-openpandora 3.2.57 #982 Sun Apr 20 20:33:11 EEST 2014 armv7l

Kernel command line: ubi.mtd=4 ubi.mtd=3 root=ubi0:rootfs rootfstype=ubifs rw rootflags=bulk_read vram=6272K omapfb.vram=0:3000K mmc_core.removable=0 quiet

Build Date: 26 June 2010  01:40:28PM

Current version of pixman: 0.17.12

    Before reporting problems, check http://wiki.x.org

    to make sure that you have the latest version.

Markers: (--) probed, (**) from config file, (==) default setting,

    (++) from command line, (!!) notice, (II) informational,

    (WW) warning, (EE) error, (NI) not implemented, (??) unknown.

(==) Log file: "/var/log/Xorg.0.log", Time: Wed Apr 30 11:28:03 2014

(==) Using config file: "/etc/X11/xorg.conf"

(==) ServerLayout "DefaultLayout"

(**) |-->Screen "Screen0" (0)

(**) |   |-->Monitor "Monitor0"

(**) |   |-->Device "OMAPFB"

(==) Automatically adding devices

(==) Automatically enabling devices

(WW) The directory "/usr/share/fonts/X11/Type1" does not exist.

    Entry deleted from font path.

(WW) The directory "/usr/share/fonts/X11/Speedo" does not exist.

    Entry deleted from font path.

(**) FontPath set to:

    /usr/share/fonts/X11/misc,

    /usr/share/fonts/X11/100dpi,

    /usr/share/fonts/X11/75dpi,

    /usr/share/fonts/X11/misc

(==) ModulePath set to "/usr/lib/xorg/modules"

(II) Cannot locate a core pointer device.

(II) Cannot locate a core keyboard device.

(II) The server relies on HAL to provide the list of input devices.

    If no devices become available, reconfigure HAL or disable AutoAddDevices.

(II) Loader magic: 0x188bd8

(II) Module ABI versions:

    X.Org ANSI C Emulation: 0.4

    X.Org Video Driver: 6.0

    X.Org XInput driver : 7.0

    X.Org Server Extension : 2.0

(++) using VT number 7

(WW) "glx" will not be loaded unless you've specified it to be loaded elsewhere.

(WW) "dri" will not be loaded unless you've specified it to be loaded elsewhere.

(II) "extmod" will be loaded. This was enabled by default and also specified in the config file.

(II) "dbe" will be loaded. This was enabled by default and also specified in the config file.

(II) "glx" will be loaded even though the default is to disable it.

(II) "dri" will be loaded even though the default is to disable it.

(II) "dri2" will be loaded. This was enabled by default and also specified in the config file.

(II) LoadModule: "extmod"

(II) Loading /usr/lib/xorg/modules/extensions/libextmod.so

(II) Module extmod: vendor="X.Org Foundation"

    compiled for 1.7.4, module version = 1.0.0

    Module class: X.Org Server Extension

    ABI class: X.Org Server Extension, version 2.0

(II) Loading extension MIT-SCREEN-SAVER

(II) Loading extension XFree86-VidModeExtension

(II) Loading extension XFree86-DGA

(II) Loading extension DPMS

(II) Loading extension XVideo

(II) Loading extension XVideo-MotionCompensation

(II) Loading extension X-Resource

(II) LoadModule: "dbe"

(II) Loading /usr/lib/xorg/modules/extensions/libdbe.so

(II) Module dbe: vendor="X.Org Foundation"

    compiled for 1.7.4, module version = 1.0.0

    Module class: X.Org Server Extension

    ABI class: X.Org Server Extension, version 2.0

(II) Loading extension DOUBLE-BUFFER

(II) LoadModule: "dri2"

(II) Loading /usr/lib/xorg/modules/extensions/libdri2.so

(II) Module dri2: vendor="X.Org Foundation"

    compiled for 1.7.4, module version = 1.1.0

    ABI class: X.Org Server Extension, version 2.0

(II) Loading extension DRI2

(II) LoadModule: "omapfb"

(II) Loading /usr/lib/xorg/modules/drivers/omapfb_drv.so

(II) Module omapfb: vendor="X.Org Foundation"

    compiled for 1.7.4, module version = 0.1.1

    ABI class: X.Org Video Driver, version 6.0

(II) omapfb: Driver for OMAP framebuffer (omapfb) and external LCD controllers:

    omap1/2/3, S1D13745, HWA742

(WW) Falling back to old probe method for OMAPFB

(WW) VGA arbiter: cannot open kernel arbiter, no multi-card support

(II) Running in FRAMEBUFFER Mode

(WW) Error opening /sys/devices/platform/omapfb/ctrl/name: No such file or directory

(WW) Can't autodetect LCD controller, assuming internal

(II) LCD controller: internal

(II) omapfb(0): VideoRAM: 3000KiB (SDRAM)

(**) omapfb(0): Depth 16, (--) framebuffer bpp 16

(==) omapfb(0): RGB weight 565

(==) omapfb(0): Default visual is TrueColor

(--) omapfb(0): Virtual size is 800x480 (pitch 800)

(**) omapfb(0):  Built-in mode "current"

(==) omapfb(0): DPI set to (96, 96)

(II) Loading sub module "fb"

(II) LoadModule: "fb"

(II) Loading /usr/lib/xorg/modules/libfb.so

(II) Module fb: vendor="X.Org Foundation"

    compiled for 1.7.4, module version = 1.0.0

    ABI class: X.Org ANSI C Emulation, version 0.4

(==) omapfb(0): DPMS enabled

(II) omapfb(0): Video plane capabilities:

(II) omapfb(0): Video plane supports the following image formats:

(II) omapfb(0): XVideo extension initialized

(==) RandR enabled

(II) Initializing built-in extension Generic Event Extension

(II) Initializing built-in extension SHAPE

(II) Initializing built-in extension MIT-SHM

(II) Initializing built-in extension XInputExtension

(II) Initializing built-in extension XTEST

(II) Initializing built-in extension BIG-REQUESTS

(II) Initializing built-in extension SYNC

(II) Initializing built-in extension XKEYBOARD

(II) Initializing built-in extension XC-MISC

(II) Initializing built-in extension XFIXES

(II) Initializing built-in extension RENDER

(II) Initializing built-in extension RANDR

(II) Initializing built-in extension COMPOSITE

(II) Initializing built-in extension DAMAGE

(II) config/hal: Adding input device nub1

(II) LoadModule: "evdev"

(II) Loading /usr/lib/xorg/modules/input/evdev_drv.so

(II) Module evdev: vendor="X.Org Foundation"

    compiled for 1.7.4, module version = 2.4.0

    Module class: X.Org XInput Driver

    ABI class: X.Org XInput driver, version 7.0

(**) nub1: always reports core events

(**) nub1: Device: "/dev/input/event3"

(II) nub1: Found 3 mouse buttons

(II) nub1: Found scroll wheel(s)

(II) nub1: Found relative axes

(II) nub1: Found x and y relative axes

(II) nub1: Configuring as mouse

(**) nub1: YAxisMapping: buttons 4 and 5

(**) nub1: EmulateWheelButton: 4, EmulateWheelInertia: 10, EmulateWheelTimeout: 200

(II) XINPUT: Adding extended input device "nub1" (type: MOUSE)

(**) nub1: (accel) keeping acceleration scheme 1

(**) nub1: (accel) acceleration profile 0

(II) nub1: initialized for relative axes.

(II) config/hal: Adding input device nub0

(**) nub0: always reports core events

(**) nub0: Device: "/dev/input/event2"

(II) nub0: Found 3 mouse buttons

(II) nub0: Found scroll wheel(s)

(II) nub0: Found relative axes

(II) nub0: Found x and y relative axes

(II) nub0: Configuring as mouse

(**) nub0: YAxisMapping: buttons 4 and 5

(**) nub0: EmulateWheelButton: 4, EmulateWheelInertia: 10, EmulateWheelTimeout: 200

(II) XINPUT: Adding extended input device "nub0" (type: MOUSE)

(**) nub0: (accel) keeping acceleration scheme 1

(**) nub0: (accel) acceleration profile 0

(II) nub0: initialized for relative axes.

(II) config/hal: Adding input device gpio-keys

(**) gpio-keys: always reports core events

(**) gpio-keys: Device: "/dev/input/event4"

(II) gpio-keys: Found keys

(II) gpio-keys: Configuring as keyboard

(II) XINPUT: Adding extended input device "gpio-keys" (type: KEYBOARD)

(**) Option "xkb_rules" "evdev"

(**) Option "xkb_model" "evdev"

(**) Option "xkb_layout" "us"

(II) config/hal: Adding input device keypad

(**) keypad: always reports core events

(**) keypad: Device: "/dev/input/event0"

(II) keypad: Found keys

(II) keypad: Configuring as keyboard

(II) XINPUT: Adding extended input device "keypad" (type: KEYBOARD)

(**) Option "xkb_rules" "evdev"

(**) Option "xkb_model" "evdev"

(**) Option "xkb_layout" "us"

(II) config/hal: Adding input device power-button

(**) power-button: always reports core events

(**) power-button: Device: "/dev/input/event1"

(II) power-button: Found keys

(II) power-button: Configuring as keyboard

(II) XINPUT: Adding extended input device "power-button" (type: KEYBOARD)

(**) Option "xkb_rules" "evdev"

(**) Option "xkb_model" "evdev"

(**) Option "xkb_layout" "us"

(II) config/hal: Adding input device touchscreen

(II) LoadModule: "tslib"

(II) Loading /usr/lib/xorg/modules/input/tslib_drv.so

(II) Module tslib: vendor="X.Org Foundation"

    compiled for 1.7.4, module version = 0.0.1

    Module class: X.Org XInput Driver

    ABI class: X.Org XInput driver, version 7.0

(**) touchscreen: always reports core events

(II) XINPUT: Adding extended input device "touchscreen" (type: TOUCHSCREEN)

xf86TslibControlProc

xf86TslibControlProc
 
Last edited by a moderator:
conetents of dmesg

dmesg

[    0.000000] Linux version 3.2.57 (notaz@pixelinis) (gcc version 4.5.2 (Sourcery G++ Lite 2011.03-41) ) #982 Sun Apr 20 20:33:11 EEST 2014

[    0.000000] CPU: ARMv7 Processor [411fc083] revision 3 (ARMv7), cr=10c5387d

[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT nonaliasing instruction cache

[    0.000000] Machine: Pandora Handheld Console

[    0.000000] cma: CMA: reserved 4 MiB at 86000000

[    0.000000] Initialized persistent memory from 80fe0000-80ffffff

[    0.000000] cma: CMA: reserved 64 MiB at 9c000000

[    0.000000] Memory policy: ECC disabled, Data cache writeback

[    0.000000] On node 0 totalpages: 131072

[    0.000000] free_area_init_node: node 0, pgdat c05bab84, node_mem_map c05ed000

[    0.000000]   Normal zone: 1024 pages used for memmap

[    0.000000]   Normal zone: 0 pages reserved

[    0.000000]   Normal zone: 130048 pages, LIFO batch:31

[    0.000000] OMAP3430/3530 ES3.1 (l2cache iva sgx neon isp )

[    0.000000] Clocking rate (Crystal/Core/MPU): 26.0/332/500 MHz

[    0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768

[    0.000000] pcpu-alloc: [0] 0

[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 130048

[    0.000000] Kernel command line: ubi.mtd=4 ubi.mtd=3 root=ubi0:rootfs rootfstype=ubifs rw rootflags=bulk_read vram=6272K omapfb.vram=0:3000K mmc_core.removable=0 quiet

[    0.000000] PID hash table entries: 2048 (order: 1, 8192 bytes)

[    0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)

[    0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)

[    0.000000] Memory: 512MB = 512MB total

[    0.000000] Memory: 443788k/443788k available, 80500k reserved, 0K highmem

[    0.000000] Virtual kernel memory layout:

[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)

[    0.000000]     fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)

[    0.000000]     vmalloc : 0xe0800000 - 0xff000000   ( 488 MB)

[    0.000000]     lowmem  : 0xc0000000 - 0xe0000000   ( 512 MB)

[    0.000000]     modules : 0xbf000000 - 0xc0000000   (  16 MB)

[    0.000000]       .text : 0xc0008000 - 0xc054ab88   (5387 kB)

[    0.000000]       .init : 0xc054b000 - 0xc057d000   ( 200 kB)

[    0.000000]       .data : 0xc057e000 - 0xc05bb300   ( 245 kB)

[    0.000000]        .bss : 0xc05bb324 - 0xc05ec624   ( 197 kB)

[    0.000000] SLUB: Genslabs=11, HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1

[    0.000000] NR_IRQS:410

[    0.000000] IRQ: Found an INTC at 0xfa200000 (revision 4.0) with 96 interrupts

[    0.000000] Total of 96 interrupts on 1 active controller

[    0.000000] OMAP clockevent source: GPTIMER1 at 32768 Hz

[    0.000000] sched_clock: 32 bits at 32kHz, resolution 30517ns, wraps every 131071999ms

[    0.000000] Console: colour dummy device 80x30

[    0.000000] console [tty0] enabled

[    0.000213] Calibrating delay loop... 497.82 BogoMIPS (lpj=1941504)

[    0.039093] pid_max: default: 32768 minimum: 301

[    0.039428] Mount-cache hash table entries: 512

[    0.039947] Initializing cgroup subsys devices

[    0.040039] CPU: Testing write buffer coherency: ok

[    0.040313] hw perfevents: enabled with ARMv7 Cortex-A8 PMU driver, 5 counters available

[    0.040466] Setting up static identity map for 0x803ecea8 - 0x803ecf00

[    0.041351] devtmpfs: initialized

[    0.050415] print_constraints: dummy:

[    0.056274] NET: Registered protocol family 16

[    0.059265] DMA: preallocated 256 KiB pool for atomic coherent allocations

[    0.059753] GPMC revision 5.0

[    0.064056] OMAP GPIO hardware version 2.5

[    0.068572] omap_mux_init: Add partition: #1: core, flags: 0

[    0.077148] Reprogramming SDRC clock to 332000000 Hz

[    0.080230] hw-breakpoint: debug architecture 0x4 unsupported.

[    0.089782]  omap-mcbsp.2: alias fck already exists

[    0.090209]  omap-mcbsp.3: alias fck already exists

[    0.092132] OMAP DMA hardware revision 4.0

[    0.113677] bio: create slab <bio-0> at 0

[    0.115203] print_constraints: vwlan: 1800 mV

[    0.117370] SCSI subsystem initialized

[    0.120544] usbcore: registered new interface driver usbfs

[    0.120880] usbcore: registered new interface driver hub

[    0.121215] usbcore: registered new device driver usb

[    0.123016] omap_i2c omap_i2c.1: bus 1 rev1.3.12 at 2600 kHz

[    0.128509] twl4030: PIH (irq 7) chaining IRQs 368..375

[    0.128631] twl4030: power (irq 373) chaining IRQs 376..383

[    0.129333] twl4030: gpio (irq 368) chaining IRQs 384..401

[    0.129913] _omap_mux_init_gpio: Could not set gpio192

[    0.131347] _omap_mux_init_gpio: Could not set gpio193

[    0.134826] print_constraints: VUSB1V5: 1500 mV normal standby

[    0.135650] print_constraints: VUSB1V8: 1800 mV normal standby

[    0.136505] print_constraints: VUSB3V1: 3100 mV normal standby

[    0.195495] twl4030_usb twl4030_usb: Initialized TWL4030 USB module

[    0.197265] print_constraints: vdd_mpu_iva: 600 <--> 1450 mV normal

[    0.198120] print_constraints: vdd_core: 600 <--> 1450 mV normal

[    0.199035] print_constraints: VMMC1: 1850 <--> 3150 mV at 3150 mV normal standby

[    0.199951] print_constraints: VDAC: 1800 mV normal standby

[    0.200836] print_constraints: VAUX2: 1800 mV normal standby

[    0.201721] print_constraints: VPLL2: 1800 mV normal standby

[    0.202667] print_constraints: VMMC2: 1850 <--> 3150 mV at 2600 mV normal standby

[    0.203582] print_constraints: VSIM: 2800 mV normal standby

[    0.204437] print_constraints: VAUX1: 3000 mV normal standby

[    0.205261] print_constraints: VAUX4: 3000 mV normal standby

[    0.205902] omap_i2c omap_i2c.3: bus 3 rev1.3.12 at 100 kHz

[    0.208984] omap-iommu omap-iommu.0: isp registered

[    0.209777] Advanced Linux Sound Architecture Driver Version 1.0.24.

[    0.210845] Switching to clocksource 32k_counter

[    0.240966] musb-hdrc: version 6.0, ?dma?, otg (peripheral+host)

[    0.246673] musb-hdrc: ConfigData=0xde (UTMI-8, dyn FIFOs, bulk combine, bulk split, HB-ISO Rx, HB-ISO Tx, SoftConn)

[    0.246704] musb-hdrc: MHDRC RTL version 1.400

[    0.246734] musb-hdrc: setup fifo_mode 4

[    0.246734] musb-hdrc: 28/31 max ep, 16384/16384 memory

[    0.247375] musb-hdrc musb-hdrc: USB OTG mode controller at fa0ab000 using DMA, IRQ 92

[    0.248504] NET: Registered protocol family 2

[    0.248718] IP route cache hash table entries: 4096 (order: 2, 16384 bytes)

[    0.249145] TCP established hash table entries: 16384 (order: 5, 131072 bytes)

[    0.249572] TCP bind hash table entries: 16384 (order: 4, 65536 bytes)

[    0.249847] TCP: Hash tables configured (established 16384 bind 16384)

[    0.249847] TCP reno registered

[    0.249877] UDP hash table entries: 256 (order: 0, 4096 bytes)

[    0.249908] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)

[    0.250427] NET: Registered protocol family 1

[    0.250732] NetWinder Floating Point Emulator V0.97 (double precision)

[    0.257781] HugeTLB registered 2 MB page size, pre-allocated 0 pages

[    0.278472] VFS: Disk quotas dquot_6.5.2

[    0.278991] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)

[    0.285369] msgmni has been set to 1002

[    0.287902] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 253)

[    0.287933] io scheduler noop registered

[    0.287933] io scheduler deadline registered

[    0.287994] io scheduler cfq registered (default)

[    0.303161] OMAP DSS rev 2.0

[    0.307556] Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled

[    0.310333] omap_uart.0: ttyO0 at MMIO 0x4806a000 (irq = 72) is a OMAP UART0

[    0.310882] omap_uart.1: ttyO1 at MMIO 0x4806c000 (irq = 73) is a OMAP UART1

[    0.311431] omap_uart.2: ttyO2 at MMIO 0x49020000 (irq = 74) is a OMAP UART2

[    0.327209] brd: module loaded

[    0.335113] loop: module loaded

[    0.335479] platform iva.0: IVA freq set to 400MHz

[    0.335571] OMAP overclocker loaded.

[    0.338623] omap2-nand driver initializing

[    0.338806] NAND device: Manufacturer ID: 0x2c, Chip ID: 0xbc (Micron NAND 512MiB 1,8V 16-bit)

[    0.339447] Creating 5 MTD partitions on "omap2-nand.0":

[    0.339477] 0x000000000000-0x000000080000 : "xloader"

[    0.340423] 0x000000080000-0x000000260000 : "uboot"

[    0.341522] 0x000000260000-0x000000280000 : "uboot-env"

[    0.342376] 0x000000280000-0x000000c80000 : "boot"

[    0.345062] 0x000000c80000-0x000020000000 : "rootfs"

[    0.435882] UBI: attaching mtd4 to ubi0

[    1.534057] UBI: scanning is finished

[    1.552001] UBI: attached mtd4 (name "rootfs", size 499 MiB) to ubi0

[    1.552032] UBI: PEB size: 131072 bytes (128 KiB), LEB size: 129024 bytes

[    1.552062] UBI: min./max. I/O unit sizes: 2048/2048, sub-page size 512

[    1.552062] UBI: VID header offset: 512 (aligned 512), data offset: 2048

[    1.552093] UBI: good PEBs: 3996, bad PEBs: 0, corrupted PEBs: 0

[    1.552124] UBI: user volume: 1, internal volumes: 1, max. volumes count: 128

[    1.552124] UBI: max/mean erase counter: 48/6, WL threshold: 4096, image sequence number: 1531410019

[    1.552154] UBI: available PEBs: 0, total reserved PEBs: 3996, PEBs reserved for bad PEB handling: 39

[    1.552185] UBI: attaching mtd3 to ubi1

[    1.552673] UBI: background thread "ubi_bgt0d" started, PID 571

[    1.574951] UBI: scanning is finished

[    1.583587] UBI: attached mtd3 (name "boot", size 10 MiB) to ubi1

[    1.583618] UBI: PEB size: 131072 bytes (128 KiB), LEB size: 129024 bytes

[    1.583618] UBI: min./max. I/O unit sizes: 2048/2048, sub-page size 512

[    1.583648] UBI: VID header offset: 512 (aligned 512), data offset: 2048

[    1.583679] UBI: good PEBs: 80, bad PEBs: 0, corrupted PEBs: 0

[    1.583679] UBI: user volume: 1, internal volumes: 1, max. volumes count: 128

[    1.583709] UBI: max/mean erase counter: 11/4, WL threshold: 4096, image sequence number: 38271869

[    1.583709] UBI: available PEBs: 0, total reserved PEBs: 80, PEBs reserved for bad PEB handling: 2

[    1.583984] UBI: background thread "ubi_bgt1d" started, PID 576

[    1.584106] usbcore: registered new interface driver libusual

[    1.584960] mousedev: PS/2 mouse device common for all mice

[    1.585754] input: keypad as /devices/platform/omap_i2c.1/i2c-1/1-004a/twl4030_keypad/input/input0

[    1.589324] input: power-button as /devices/platform/omap_i2c.1/i2c-1/1-0049/twl4030_pwrbutton/input/input1

[    1.591766] input: nub0 as /devices/platform/omap_i2c.3/i2c-3/3-0066/input/input2

[    1.593505] input: nub1 as /devices/platform/omap_i2c.3/i2c-3/3-0067/input/input3

[    1.599975] twl_rtc twl_rtc: rtc core: registered twl_rtc as rtc0

[    1.601013] i2c /dev entries driver

[    1.605957] bq27x00-battery 3-0055: support ver. 1.2.0 enabled

[    1.633697] OMAP Watchdog Timer Rev 0x31: initial timeout 60 sec

[    1.634582] twl4030_wdt twl4030_wdt: Failed to register misc device

[    1.634643] twl4030_wdt: probe of twl4030_wdt failed with error -16

[    1.635498] voltdm_scale: No voltage scale API registered for vdd_mpu_iva

[    1.635559] platform mpu.0: omap_target: unable to scale voltage up.

[    1.636199] cpuidle: using governor ladder

[    1.636199] cpuidle: using governor menu

[    1.860107] Registered led device: pandora::sd1

[    1.860412] Registered led device: pandora::sd2

[    1.860717] Registered led device: pandora::bluetooth

[    1.860992] Registered led device: pandora::wifi

[    1.862274] Registered led device: pandora::keypad_bl

[    1.863372] Registered led device: pandora::power

[    1.865997] Registered led device: pandora::charger

[    1.867767] usbcore: registered new interface driver usbhid

[    1.867797] usbhid: USB HID core driver

[    1.868041] persistent_ram: uncorrectable error in header

[    1.868072] persistent_ram: no valid data in buffer (sig = 0x47674acd)

[    1.868896] console [ram-1] enabled

[    1.871704] OMAP3 Pandora SoC init

[    1.953460] asoc: twl4030-hifi <-> omap-mcbsp-dai.1 mapping ok

[    1.955902] asoc: twl4030-hifi <-> omap-mcbsp-dai.3 mapping ok

[    1.958862] ALSA device list:

[    1.958862]   #0: omap3pandora

[    1.959075] TCP cubic registered

[    1.959075] NET: Registered protocol family 17

[    1.959167] NET: Registered protocol family 15

[    1.959167] Registering the dns_resolver key type

[    1.959228] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 1

[    1.959259] ThumbEE CPU extension supported.

[    1.959320] Registering SWP/SWPB emulation handler

[    1.967254] clock: disabling unused clocks to save power

[    1.968627] registered taskstats version 1

[    1.992706] Console: switching to colour frame buffer device 100x30

[    2.177093] input: gpio-keys as /devices/platform/gpio-keys/input/input4

[    2.178619] twl_rtc twl_rtc: setting system clock to 2014-04-30 10:27:49 UTC (1398853669)

[    2.180755] UBIFS: background thread "ubifs_bgt0_0" started, PID 679

[    2.219451] UBIFS: recovery needed

[    2.300506] mmc1: host does not support reading read-only switch. assuming write-enable.

[    2.302551] mmc1: new high speed SDXC card at address 0007

[    2.303649] mmcblk0: mmc1:0007 SD128 116 GiB

[    2.306060]  mmcblk0: p1

[    2.403045] mmc2: card claims to support voltages below the defined range. These will be ignored.

[    2.404083] mmc2: new SDIO card at address 0001

[    2.583374] UBIFS: recovery completed

[    2.583526] UBIFS: mounted UBI device 0, volume 0, name "rootfs"(null)

[    2.583526] UBIFS: LEB size: 129024 bytes (126 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes

[    2.583587] UBIFS: FS size: 508612608 bytes (485 MiB, 3942 LEBs), journal size 9033728 bytes (8 MiB, 71 LEBs)

[    2.583587] UBIFS: reserved for root: 0 bytes (0 KiB)

[    2.583618] UBIFS: media format: w4/r0 (latest is w4/r0), UUID 93132C80-8AB8-4EAA-B3CA-62CB14C1CAC5, small LPT model

[    2.585449] VFS: Mounted root (ubifs filesystem) on device 0:14.

[    2.586059] devtmpfs: mounted

[    2.586578] Freeing init memory: 200K

[    3.668792] udev: starting version 151

[    3.669464] udevd (732): /proc/732/oom_adj is deprecated, please use /proc/732/oom_score_adj instead.

[    4.438385] alignment: ignoring faults is unsafe on this CPU.  Defaulting to fixup mode.

[    7.500640] ads7846 spi1.0: touchscreen, irq 254

[    7.501556] input: touchscreen as /devices/platform/omap2_mcspi.1/spi_master/spi1/spi1.0/input/input5

[    7.561126] fuse init (API version 7.17)

[    7.972869] NET: Registered protocol family 10

[    8.149719] FAT-fs (mmcblk0): invalid media value (0xb9)

[    8.149871] FAT-fs (mmcblk0): Can't find a valid FAT filesystem

[    8.389068] zram: module is from the staging directory, the quality is unknown, you have been warned.

[    8.391571] zram: num_devices not specified. Using default: 1

[    8.391601] zram: Creating 1 devices ...

[    8.688659] UBIFS: background thread "ubifs_bgt1_0" started, PID 1310

[    8.743804] UBIFS: recovery needed

[    8.865570] UBIFS: recovery completed

[    8.865722] UBIFS: mounted UBI device 1, volume 0, name "boot"(null)

[    8.865722] UBIFS: LEB size: 129024 bytes (126 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes

[    8.865753] UBIFS: FS size: 8386560 bytes (7 MiB, 65 LEBs), journal size 1032193 bytes (0 MiB, 6 LEBs)

[    8.865753] UBIFS: reserved for root: 396117 bytes (386 KiB)

[    8.865783] UBIFS: media format: w4/r0 (latest is w4/r0), UUID 341D0557-9C2B-47C2-9C12-121448314226, small LPT model

[    9.029327] FAT-fs (mmcblk0): invalid media value (0xb9)

[    9.029479] FAT-fs (mmcblk0): Can't find a valid FAT filesystem

[    9.634307] EXT4-fs (mmcblk0p1): Unrecognized mount option "umask=0" or missing value

[    9.644683] zram: disk size not provided. You can use disksize_kb module param to specify size.

[    9.644683] Using default: (25% of RAM).

[    9.645507] FAT-fs (zram0): bogus number of reserved sectors

[    9.645721] FAT-fs (zram0): Can't find a valid FAT filesystem

[   10.339019] FAT-fs (zram0): bogus number of reserved sectors

[   10.339172] FAT-fs (zram0): Can't find a valid FAT filesystem

[   12.893646] EXT4-fs (mmcblk0p1): warning: maximal mount count reached, running e2fsck is recommended

[   12.949920] EXT4-fs (mmcblk0p1): recovery complete

[   12.955505] EXT4-fs (mmcblk0p1): mounted filesystem with ordered data mode. Opts: (null)

[   13.437896] platform mpu.0: max MPU OPP set to 3

[   13.780548] input: nub0 as /devices/platform/omap_i2c.3/i2c-3/3-0066/input/input6

[   13.865447] input: nub1 as /devices/platform/omap_i2c.3/i2c-3/3-0067/input/input7

[   13.983123] Adding 128400k swap on /dev/zram0.  Priority:5 extents:1 across:128400k SS

[   15.000152] SGX clock rate 110 MHz

[   49.044586] squashfs: version 4.0 (2009/01/31) Phillip Lougher

[   49.288909] aufs 3.2-20120109

[   49.290802] aufs test_add:261:mount[1888]: uid/gid/perm /mnt/pnd/op_switchgui 1000/1000/0755, 0/0/0777

[   73.355194] Bluetooth: Core ver 2.16

[   73.357025] NET: Registered protocol family 31

[   73.357055] Bluetooth: HCI device and connection manager initialized

[   73.357086] Bluetooth: HCI socket layer initialized

[   73.357086] Bluetooth: L2CAP socket layer initialized

[   73.358551] Bluetooth: SCO socket layer initialized

[   76.021850] Bluetooth: HCI UART driver ver 2.2

[   76.021850] Bluetooth: HCI H4 protocol initialized

[   76.021881] Bluetooth: HCILL protocol initialized

[   77.065734] Bluetooth: BNEP (Ethernet Emulation) ver 1.3

[   77.065734] Bluetooth: BNEP filters: protocol multicast

[   78.046234] Bluetooth: RFCOMM TTY layer initialized

[   78.046264] Bluetooth: RFCOMM socket layer initialized

[   78.046264] Bluetooth: RFCOMM ver 1.11

[   78.669281] Bluetooth: HIDP (Human Interface Emulation) ver 1.2

[  147.130279] EXT4-fs (mmcblk0p1): warning: maximal mount count reached, running e2fsck is recommended

[  147.162292] EXT4-fs (mmcblk0p1): mounted filesystem with ordered data mode. Opts: (null)

[  220.828765] aufs test_add:261:mount[2329]: uid/gid/perm /mnt/pnd/hdonk_firefox_001 1000/1001/0755, 0/0/0777

[  230.328857] aufs test_add:261:mount[2459]: uid/gid/perm /mnt/pnd/op_wifi 1000/1000/0755, 0/0/0777

[  234.220397] cfg80211: Calling CRDA to update world regulatory domain

[  234.794982] wl1251: using dedicated interrupt line

[  234.883453] ieee80211 phy0: Selected rate control algorithm 'pid'

[  234.896240] wl1251: loaded

[  234.896881] wl1251: initialized

[  236.367401] wl1251: 154 tx blocks at 0x3b788, 35 rx blocks at 0x3a780

[  236.367523] wl1251: firmware booted (Rev 6.0.4.235)

[  236.446685] ADDRCONF(NETDEV_UP): wlan0: link is not ready

[  238.938934] wlan0: deauthenticating from d4:d7:48:0c:40:13 by local choice (reason=3)

[  239.002746] wlan0: authenticate with d4:d7:48:0c:40:13 (try 1)

[  239.017639] wlan0: authenticated

[  239.141113] wlan0: associate with d4:d7:48:0c:40:13 (try 1)

[  239.156982] wlan0: RX AssocResp from d4:d7:48:0c:40:13 (capab=0x421 status=0 aid=2)

[  239.157012] wlan0: associated

[  239.180053] ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready

[  249.601898] wlan0: no IPv6 routers present
 
Last edited by a moderator:
contents of /proc/bus/input/devices

the last device is my BT keyboard

I: Bus=0019 Vendor=0001 Product=0001 Version=0003

N: Name="keypad"

P: Phys=twl4030_keypad/input0

S: Sysfs=/devices/platform/omap_i2c.1/i2c-1/1-004a/twl4030_keypad/input/inpu$

U: Uniq=

H: Handlers=sysrq kbd event0

B: PROP=0

B: EV=100013

B: KEY=10000 0 0 0 0 0 0 3 400003 ff800000 0 10004000 180441f fe3fffff dfffe$

B: MSC=10

I: Bus=0000 Vendor=0000 Product=0000 Version=0000

N: Name="power-button"

P: Phys=twl4030_pwrbutton/input0

S: Sysfs=/devices/platform/omap_i2c.1/i2c-1/1-0049/twl4030_pwrbutton/input/i$

U: Uniq=

H: Handlers=kbd event1

B: PROP=0

B: EV=3

B: KEY=100000 0 0 0

 I: Bus=0019 Vendor=0001 Product=0001 Version=0100

N: Name="gpio-keys"

P: Phys=gpio-keys/input0

S: Sysfs=/devices/platform/gpio-keys/input/input4

U: Uniq=

H: Handlers=kbd event4

B: PROP=0

B: EV=23

B: KEY=1000800 3fc2 4400 1400000 20000000

B: SW=1

I: Bus=0000 Vendor=0000 Product=0000 Version=0000

N: Name="touchscreen"

P: Phys=spi1.0/input0

S: Sysfs=/devices/platform/omap2_mcspi.1/spi_master/spi1/spi1.0/input/input5

U: Uniq=

H: Handlers=mouse0 event5

B: PROP=0

B: EV=b

B: KEY=400 0 0 0 0 0 0 0 0 0 0

B: ABS=1000003

I: Bus=0018 Vendor=0000 Product=0000 Version=0092

N: Name="nub0"

P: Phys=

S: Sysfs=/devices/platform/omap_i2c.3/i2c-3/3-0066/input/input6

U: Uniq=

H: Handlers=mouse1 event2

B: PROP=0

B: EV=7

B: KEY=70000 0 0 0 0 0 0 0 0

B: REL=143

I: Bus=0018 Vendor=0000 Product=0000 Version=0092

N: Name="nub1"

P: Phys=

S: Sysfs=/devices/platform/omap_i2c.3/i2c-3/3-0067/input/input7

U: Uniq=

H: Handlers=mouse2 event3

B: PROP=0

B: EV=7

B: KEY=70000 0 0 0 0 0 0 0 0

B: REL=143

I: Bus=0005 Vendor=05ac Product=022c Version=0001

N: Name="Anker Ultra-Slim Keyboard"

P: Phys=00:23:D4:D5:D2:76

S: Sysfs=/devices/platform/omap_uart.0/tty/ttyO0/hci0/hci0:1/input8

U: Uniq=30:73:00:00:EA:0E

H: Handlers=sysrq kbd event6

B: PROP=0

B: EV=12001b

B: KEY=10000 0 0 400000 0 0 0 1007b 2001007 ff9f307a d941d7ff ffbeffdf ffeff$

B: ABS=f00 0

B: MSC=10

B: LED=1f
 
Last edited by a moderator:
The logs have already been posted, there is nothing useful in them so the only way to fix it is by doing some debugging, and that needs reliable way to reproduce.

I'll try your scenario when I have time.
 
At this point you have the terminal cursor and you can type and press enter but commands like "sudo poweroff" don't work so I have to pull the battery.
You have to press alt+F1 (alt-Fn-1) to get to a terminal, and log in. Then you can do poweroff, or even restart x server if you like
 
If it's any use I asked on reddit and they pointed me in the direction of

https://bugs.freedesktop.org/show_bug.cgi?id=24441

as well as the one line patch that fixes the issue

http://lists.freedesktop.org/archives/xorg-devel/2009-October/002740.html

A device with valuators but no keys is definitely a pointer device and needs

to be attached to the VCP. Otherwise, the class copying happens on the VCK

and the VCP isn't updated with the events that are to be sent through it.

This addresses the trigger for #24441, not the actual issue.

Jury is still out on valuator+key devices.

Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>

---

dix/events.c | 4 +++-

1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/dix/events.c b/dix/events.c

index 14e3900..aaf28b5 100644

--- a/dix/events.c

+++ b/dix/events.c

@@ -345,7 +345,9 @@ DevHasCursor(DeviceIntPtr pDev)

Bool

IsPointerDevice(DeviceIntPtr dev)

{

- return (dev->type == MASTER_POINTER) || (dev->valuator && dev->button);

+ return (dev->type == MASTER_POINTER) ||

+ (dev->valuator && dev->button) ||

+ (dev->valuator && !dev->key);

}

/*

--

1.6.3.rc1.2.g0164.dirty

!
 
Last edited by a moderator:
If it's any use I asked on reddit and they pointed me in the direction of

https://bugs.freedesktop.org/show_bug.cgi?id=24441


as well as the one line patch that fixes the issue

http://lists.freedesktop.org/archives/xorg-devel/2009-October/002740.html

A device with valuators but no keys is definitely a pointer device and needs


to be attached to the VCP. Otherwise, the class copying happens on the VCK


and the VCP isn't updated with the events that are to be sent through it.


This addresses the trigger for #24441, not the actual issue.


Jury is still out on valuator+key devices.


Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>


---


dix/events.c | 4 +++-


1 files changed, 3 insertions(+), 1 deletions(-)


diff --git a/dix/events.c b/dix/events.c


index 14e3900..aaf28b5 100644


--- a/dix/events.c


+++ b/dix/events.c


@@ -345,7 +345,9 @@ DevHasCursor(DeviceIntPtr pDev)


Bool


IsPointerDevice(DeviceIntPtr dev)


{


- return (dev->type == MASTER_POINTER) || (dev->valuator && dev->button);


+ return (dev->type == MASTER_POINTER) ||


+ (dev->valuator && dev->button) ||


+ (dev->valuator && !dev->key);


}


/*


--


1.6.3.rc1.2.g0164.dirty


!
This code is already present in xorg-server-1.7.4 that pandora uses.
 
Last edited by a moderator:
Start pandora. Switch gui to XFCE. Start wifi and bluetooth. Usually have deadbeef open at this point.


Connect BT keyboard.


Open Libreoffice writer. Begin typing. Screen cuts to black terminal screen like display server has failed. Error occurs within 1-5 minutes usually
Ok I've tried this:

- changed default UI to minimenu (since your scenario includes switch GUI)

- poweroff

- start up, minimenu loads

- switch to xfce, turn on wifi, bt

- bring up the keyboard. it autoconnects since it was paired before

- start deadbeef, play some 2h dj set

- start LibreOffice, start typing

and after 15 minutes of typing nonsense I just got bored/frustrated and went on to compile xorg 1.7.7, which seems to be fully compatible with currently used 1.7.4:

EDIT: just run "upgrade pandora OS" now

manual installation:

http://notaz.gp2x.de/tmp/xserver-xorg_1.7.7-r14.2.5_armv7a.ipk

Copy this to pandora in some way and run "sudo opkg install xserver-xorg_1.7.7-r14.2.5_armv7a.ipk", then reboot and test. If you want to check if it installed properly, check first line of /var/log/Xorg.0.log , it should report 1.7.7 instead of 1.7.4.
 
Last edited by a moderator:
Slackware logs are persistent, you may find something useful in /var/log/ when reading the card on PC after the crash.
 
Back
Top