Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Controller connects then immediately disconnects #80

Closed
cbelcher opened this issue Mar 2, 2019 · 56 comments
Closed

Controller connects then immediately disconnects #80

cbelcher opened this issue Mar 2, 2019 · 56 comments

Comments

@cbelcher
Copy link

cbelcher commented Mar 2, 2019

Sorry guys hit the enter key while typing in the description.

Everything installed like a champ and all worked perfectly when I scan (it sees the controller), the pairing command worked and so did the trust, but when I try to connect it says "Failed to connect: org.bluez.Error.Failed" Then it just says over and over again [CHG] Device xxx Connected: yes then immediately no. Going to turn on some logging and see what I see. Any advice is appreciated, sending my donation now :)

Running retropie 4.14.30-v7+

@cbelcher
Copy link
Author

cbelcher commented Mar 2, 2019

Going through the debug procedures and I don't see the hid_xpadneo directory? Should it be there? Sent you 3 cups of Joe!

@atar-axis
Copy link
Owner

atar-axis commented Mar 2, 2019

Hi There!
Thank you very much for the donation :)

No, this directory is not created as long as the devices ist not successfully connected. It is normal that you cannot find it therefore ;)
The connection loop you describe is usually caused by a ERTM bug in Linux. Therefore the driver installation tool does disable ERTM in advance.

As a first step: Please upload a log of the Installation process and reboot your Pi after installation. (simply run sudo ./uninstall.sh so you can reinstall it).

@atar-axis
Copy link
Owner

atar-axis commented Mar 2, 2019

Btw, same Problem: #76 (comment)
Solution (kind of): #76 (comment)

@cbelcher
Copy link
Author

cbelcher commented Mar 2, 2019 via email

@cbelcher
Copy link
Author

cbelcher commented Mar 2, 2019 via email

@cbelcher
Copy link
Author

cbelcher commented Mar 2, 2019 via email

@cbelcher
Copy link
Author

cbelcher commented Mar 2, 2019

Alter-Axis came to the rescue and got me working. Steps to resolve issue:
Edit the autostart.sh script to add one line
sudo nano /opt/retropie/configs/all/autostart.sh
On the first line enter add:
sudo bash -c 'echo 1 > /sys/module/bluetooth/parameters/disable_ertm'
Save the file Cntl X then Y then Enter
sudo reboot
sudo bluetoothctl

remove the existing controller, FYI your MAC will be unique!

[bluetooth]# remove EC:83:50:12:35:2F
Then start the pairing process.
[bluetooth]# scan on
Push the connect button on upper side of the gamepad, and hold it down, until the light starts flashing fast.
Wait for the gamepad to show up in bluetoothctl, remember the MAC address (EC:83:50:12:35:2F)
[bluetooth]# pair EC:83:50:12:35:2F
[bluetooth]# trust EC:83:50:12:35:2F
[bluetooth]# connect EC:83:50:12:35:2F
Done.

@cbelcher cbelcher closed this as completed Mar 2, 2019
@cbelcher
Copy link
Author

cbelcher commented Mar 2, 2019

What would cause /dev/input/js0 not to show up? The controller shows connected.

@cbelcher cbelcher reopened this Mar 2, 2019
@atar-axis
Copy link
Owner

atar-axis commented Mar 2, 2019

Hey Craig!

What part of Germany?

The most southern :) (Upper Bavaria)
I think Los Angeles is not bad too, eh? 😁

Edit the autostart.sh script to add one line (...)

This is not necessary since the post_install script should already configure modprobe to do something silimar, see here: https://raw.githubusercontent.com/atar-axis/xpadneo/master/hid-xpadneo/dkms.post_install
But I am happy if it works for you anyway 😄

If you want me to analyze why it didn't worked out of the box, then please upload a log of the installation 😃 and the ouput of cat /etc/modprobe.d/99-xpadneo-bluetooth.conf

What would cause /dev/input/js0 not to show up?

Hum, it depends. Can you please upload again the output of...

  • dmesg and
  • lsmod | grep xpadneo

after the connection is established. Thanks!

@cbelcher cbelcher changed the title Controller connects then immediatly Controller connects then immediately disconnects Mar 2, 2019
@cbelcher
Copy link
Author

cbelcher commented Mar 2, 2019

pi@retropie:~$ lsmod
Module Size Used by
hidp 24576 1
cmac 16384 1
bnep 20480 2
hci_uart 24576 1
bluetooth 368640 28 hidp,hci_uart,bnep
ecdh_generic 28672 1 bluetooth
brcmfmac 307200 0
brcmutil 16384 1 brcmfmac
evdev 24576 2
joydev 20480 0
cfg80211 573440 1 brcmfmac
rfkill 28672 6 bluetooth,cfg80211
snd_bcm2835 32768 1
snd_pcm 98304 2 snd_bcm2835
snd_timer 32768 1 snd_pcm
snd 69632 4 snd_timer,snd_bcm2835,snd_pcm
fixed 16384 0
uio_pdrv_genirq 16384 0
uio 20480 1 uio_pdrv_genirq
uinput 20480 0
ip_tables 24576 0
x_tables 28672 1 ip_tables
ipv6 434176 44

pi@retropie:$ lsmod | grep xpadneo
pi@retropie:
$

@cbelcher
Copy link
Author

cbelcher commented Mar 2, 2019

The wife works for the German National Tourist Board aka GNT, she gets Americans to come visit Germany and she loves it.

@atar-axis
Copy link
Owner

atar-axis commented Mar 2, 2019

So it looks like xpadneo is not correctly bounded to the gamepad, which is the job of udev. Could you please upload the dmesg too? ;)
(It has to include the Connect-Event)

"Beste Grüße von Unbekannt" to your wife :)

@cbelcher
Copy link
Author

cbelcher commented Mar 2, 2019

If you want me to analyze why it didn't worked out of the box, then please upload a log of the installation 😃 and the ouput of cat /etc/modprobe.d/99-xpadneo-bluetooth.conf

What directory is the log or it's name? And there is no file on my PI with the name 99-xpadneo-bluetooth.conf. I'm guessing we should see some output in the lsmod output?

@cbelcher
Copy link
Author

cbelcher commented Mar 2, 2019

Schlaf gut!

@atar-axis
Copy link
Owner

Aha! It becomes clearer and clearer :) Looks like sth. went wrong while installing the driver!

dmesg is just a command you type into the shell ;)

Anyway, please Reinstall the driver!

  1. Switch into the directory where you cloned the Repo to
  2. Type sudo ./uninstall.sh
  3. sudo ./install.sh
  4. Upload the output of both commands ;)

Danke ;) Ihr auch!

@cbelcher
Copy link
Author

cbelcher commented Mar 2, 2019

pi@retropie:/etc/modprobe.d$ dmesg
[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 4.14.30-v7+ (dc4@dc4-XPS13-9333) (gcc version 4.9.3 (crosstool-NG crosstool-ng-1.22.0-88-g8460611)) #1102 SMP Mon Mar 26 16:45:49 BST 2018
[ 0.000000] CPU: ARMv7 Processor [410fd034] revision 4 (ARMv7), cr=10c5383d
[ 0.000000] CPU: div instructions available: patching division code
[ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[ 0.000000] OF: fdt: Machine model: Raspberry Pi 3 Model B Plus Rev 1.3
[ 0.000000] Memory policy: Data cache writealloc
[ 0.000000] cma: Reserved 8 MiB at 0x1f400000
[ 0.000000] On node 0 totalpages: 131072
[ 0.000000] free_area_init_node: node 0, pgdat 80c7edc0, node_mem_map 9ef80000
[ 0.000000] Normal zone: 1152 pages used for memmap
[ 0.000000] Normal zone: 0 pages reserved
[ 0.000000] Normal zone: 131072 pages, LIFO batch:31
[ 0.000000] random: fast init done
[ 0.000000] percpu: Embedded 17 pages/cpu @9ff95000 s38720 r8192 d22720 u69632
[ 0.000000] pcpu-alloc: s38720 r8192 d22720 u69632 alloc=17*4096
[ 0.000000] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3
[ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 129920
[ 0.000000] Kernel command line: 8250.nr_uarts=0 bcm2708_fb.fbwidth=1440 bcm2708_fb.fbheight=900 bcm2708_fb.fbswap=1 vc_mem.mem_base=0x3ec00000 vc_mem.mem_size=0x40000000 dwc_otg.lpm_enable=0 console=ttyS0,115200 console=tty3 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait quiet loglevel=3 logo.nologo consoleblank=0 plymouth.enable=0
[ 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: 498116K/524288K available (7168K kernel code, 550K rwdata, 2048K rodata, 1024K init, 706K bss, 17980K reserved, 8192K cma-reserved)
[ 0.000000] Virtual kernel memory layout:
vector : 0xffff0000 - 0xffff1000 ( 4 kB)
fixmap : 0xffc00000 - 0xfff00000 (3072 kB)
vmalloc : 0xa0800000 - 0xff800000 (1520 MB)
lowmem : 0x80000000 - 0xa0000000 ( 512 MB)
modules : 0x7f000000 - 0x80000000 ( 16 MB)
.text : 0x80008000 - 0x80800000 (8160 kB)
.init : 0x80b00000 - 0x80c00000 (1024 kB)
.data : 0x80c00000 - 0x80c8986c ( 551 kB)
.bss : 0x80c90f40 - 0x80d417f4 ( 707 kB)
[ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[ 0.000000] ftrace: allocating 24918 entries in 74 pages
[ 0.000000] Hierarchical RCU implementation.
[ 0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[ 0.000000] arch_timer: cp15 timer(s) running at 19.20MHz (phys).
[ 0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x46d987e47, max_idle_ns: 440795202767 ns
[ 0.000007] sched_clock: 56 bits at 19MHz, resolution 52ns, wraps every 4398046511078ns
[ 0.000018] Switching to timer-based delay loop, resolution 52ns
[ 0.000268] Console: colour dummy device 80x30
[ 0.000285] console [tty3] enabled
[ 0.000310] Calibrating delay loop (skipped), value calculated using timer frequency.. 38.40 BogoMIPS (lpj=192000)
[ 0.000325] pid_max: default: 32768 minimum: 301
[ 0.000636] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.000647] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.001581] Disabling memory control group subsystem
[ 0.001661] CPU: Testing write buffer coherency: ok
[ 0.002056] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[ 0.002434] Setting up static identity map for 0x100000 - 0x10003c
[ 0.002550] Hierarchical SRCU implementation.
[ 0.003181] smp: Bringing up secondary CPUs ...
[ 0.003913] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[ 0.004709] CPU2: thread -1, cpu 2, socket 0, mpidr 80000002
[ 0.005493] CPU3: thread -1, cpu 3, socket 0, mpidr 80000003
[ 0.005596] smp: Brought up 1 node, 4 CPUs
[ 0.005608] SMP: Total of 4 processors activated (153.60 BogoMIPS).
[ 0.005613] CPU: All CPU(s) started in HYP mode.
[ 0.005617] CPU: Virtualization extensions available.
[ 0.006390] devtmpfs: initialized
[ 0.017047] VFP support v0.3: implementor 41 architecture 3 part 40 variant 3 rev 4
[ 0.017269] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.017286] futex hash table entries: 1024 (order: 4, 65536 bytes)
[ 0.017841] pinctrl core: initialized pinctrl subsystem
[ 0.018587] NET: Registered protocol family 16
[ 0.021310] DMA: preallocated 1024 KiB pool for atomic coherent allocations
[ 0.026195] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[ 0.026202] hw-breakpoint: maximum watchpoint size is 8 bytes.
[ 0.026408] Serial: AMBA PL011 UART driver
[ 0.028032] bcm2835-mbox 3f00b880.mailbox: mailbox enabled
[ 0.028489] uart-pl011 3f201000.serial: could not find pctldev for node /soc/gpio@7e200000/uart0_pins, deferring probe
[ 0.059425] bcm2835-dma 3f007000.dma: DMA legacy API manager at a0813000, dmachans=0x1
[ 0.060940] SCSI subsystem initialized
[ 0.061163] usbcore: registered new interface driver usbfs
[ 0.061214] usbcore: registered new interface driver hub
[ 0.061299] usbcore: registered new device driver usb
[ 0.070086] raspberrypi-firmware soc:firmware: Attached to firmware from 2018-03-23 16:31
[ 0.071479] clocksource: Switched to clocksource arch_sys_counter
[ 0.147278] VFS: Disk quotas dquot_6.6.0
[ 0.147364] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[ 0.147548] FS-Cache: Loaded
[ 0.147746] CacheFiles: Loaded
[ 0.156641] NET: Registered protocol family 2
[ 0.157363] TCP established hash table entries: 4096 (order: 2, 16384 bytes)
[ 0.157423] TCP bind hash table entries: 4096 (order: 3, 32768 bytes)
[ 0.157520] TCP: Hash tables configured (established 4096 bind 4096)
[ 0.157619] UDP hash table entries: 256 (order: 1, 8192 bytes)
[ 0.157646] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[ 0.157856] NET: Registered protocol family 1
[ 0.158303] RPC: Registered named UNIX socket transport module.
[ 0.158309] RPC: Registered udp transport module.
[ 0.158314] RPC: Registered tcp transport module.
[ 0.158319] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 0.159861] hw perfevents: enabled with armv7_cortex_a7 PMU driver, 7 counters available
[ 0.162612] workingset: timestamp_bits=14 max_order=17 bucket_order=3
[ 0.170500] FS-Cache: Netfs 'nfs' registered for caching
[ 0.171085] NFS: Registering the id_resolver key type
[ 0.171112] Key type id_resolver registered
[ 0.171117] Key type id_legacy registered
[ 0.173039] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 251)
[ 0.173160] io scheduler noop registered
[ 0.173167] io scheduler deadline registered (default)
[ 0.173444] io scheduler cfq registered
[ 0.173450] io scheduler mq-deadline registered
[ 0.173456] io scheduler kyber registered
[ 0.175737] BCM2708FB: allocated DMA memory df500000
[ 0.175763] BCM2708FB: allocated DMA channel 0 @ a0813000
[ 0.212050] Console: switching to colour frame buffer device 180x56
[ 0.235615] bcm2835-rng 3f104000.rng: hwrng registered
[ 0.235741] vc-mem: phys_addr:0x00000000 mem_base=0x3ec00000 mem_size:0x40000000(1024 MiB)
[ 0.236200] vc-sm: Videocore shared memory driver
[ 0.236474] gpiomem-bcm2835 3f200000.gpiomem: Initialised: Registers at 0x3f200000
[ 0.246091] brd: module loaded
[ 0.254944] loop: module loaded
[ 0.254958] Loading iSCSI transport class v2.0-870.
[ 0.255601] libphy: Fixed MDIO Bus: probed
[ 0.255683] usbcore: registered new interface driver lan78xx
[ 0.255737] usbcore: registered new interface driver smsc95xx
[ 0.255752] dwc_otg: version 3.00a 10-AUG-2012 (platform bus)
[ 0.483844] Core Release: 2.80a
[ 0.483855] Setting default values for core params
[ 0.483885] Finished setting default values for core params
[ 0.684135] Using Buffer DMA mode
[ 0.684141] Periodic Transfer Interrupt Enhancement - disabled
[ 0.684147] Multiprocessor Interrupt Enhancement - disabled
[ 0.684154] OTG VER PARAM: 0, OTG VER FLAG: 0
[ 0.684163] Dedicated Tx FIFOs mode
[ 0.684567] WARN::dwc_otg_hcd_init:1046: FIQ DMA bounce buffers: virt = 0x9f514000 dma = 0xdf514000 len=9024
[ 0.684593] FIQ FSM acceleration enabled for :
Non-periodic Split Transactions
Periodic Split Transactions
High-Speed Isochronous Endpoints
Interrupt/Control Split Transaction hack enabled
[ 0.684601] dwc_otg: Microframe scheduler enabled
[ 0.684657] WARN::hcd_init_fiq:459: FIQ on core 1 at 0x805d2774
[ 0.684669] WARN::hcd_init_fiq:460: FIQ ASM at 0x805d2adc length 36
[ 0.684681] WARN::hcd_init_fiq:486: MPHI regs_base at 0xa087e000
[ 0.684738] dwc_otg 3f980000.usb: DWC OTG Controller
[ 0.684770] dwc_otg 3f980000.usb: new USB bus registered, assigned bus number 1
[ 0.684803] dwc_otg 3f980000.usb: irq 62, io mem 0x00000000
[ 0.684851] Init: Port Power? op_state=1
[ 0.684856] Init: Power Port (0)
[ 0.685056] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[ 0.685066] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 0.685075] usb usb1: Product: DWC OTG Controller
[ 0.685084] usb usb1: Manufacturer: Linux 4.14.30-v7+ dwc_otg_hcd
[ 0.685092] usb usb1: SerialNumber: 3f980000.usb
[ 0.685691] hub 1-0:1.0: USB hub found
[ 0.685732] hub 1-0:1.0: 1 port detected
[ 0.686266] dwc_otg: FIQ enabled
[ 0.686271] dwc_otg: NAK holdoff enabled
[ 0.686276] dwc_otg: FIQ split-transaction FSM enabled
[ 0.686286] Module dwc_common_port init
[ 0.686511] usbcore: registered new interface driver usb-storage
[ 0.686681] mousedev: PS/2 mouse device common for all mice
[ 0.686755] IR NEC protocol handler initialized
[ 0.686761] IR RC5(x/sz) protocol handler initialized
[ 0.686766] IR RC6 protocol handler initialized
[ 0.686771] IR JVC protocol handler initialized
[ 0.686776] IR Sony protocol handler initialized
[ 0.686781] IR SANYO protocol handler initialized
[ 0.686786] IR Sharp protocol handler initialized
[ 0.686791] IR MCE Keyboard/mouse protocol handler initialized
[ 0.686796] IR XMP protocol handler initialized
[ 0.687460] bcm2835-wdt 3f100000.watchdog: Broadcom BCM2835 watchdog timer
[ 0.687707] bcm2835-cpufreq: min=600000 max=1400000
[ 0.688060] sdhci: Secure Digital Host Controller Interface driver
[ 0.688065] sdhci: Copyright(c) Pierre Ossman
[ 0.688413] mmc-bcm2835 3f300000.mmc: could not get clk, deferring probe
[ 0.688732] sdhost-bcm2835 3f202000.mmc: could not get clk, deferring probe
[ 0.688822] sdhci-pltfm: SDHCI platform and OF driver helper
[ 0.690245] ledtrig-cpu: registered to indicate activity on CPUs
[ 0.690386] hidraw: raw HID events driver (C) Jiri Kosina
[ 0.690535] usbcore: registered new interface driver usbhid
[ 0.690540] usbhid: USB HID core driver
[ 0.691151] vchiq: vchiq_init_state: slot_zero = 9f580000, is_master = 0
[ 0.692624] [vc_sm_connected_init]: start
[ 0.701836] [vc_sm_connected_init]: end - returning 0
[ 0.702388] Initializing XFRM netlink socket
[ 0.702411] NET: Registered protocol family 17
[ 0.702505] Key type dns_resolver registered
[ 0.703036] Registering SWP/SWPB emulation handler
[ 0.703613] registered taskstats version 1
[ 0.709444] uart-pl011 3f201000.serial: cts_event_workaround enabled
[ 0.709526] 3f201000.serial: ttyAMA0 at MMIO 0x3f201000 (irq = 87, base_baud = 0) is a PL011 rev2
[ 0.711308] mmc-bcm2835 3f300000.mmc: mmc_debug:0 mmc_debug2:0
[ 0.711317] mmc-bcm2835 3f300000.mmc: DMA channel allocated
[ 0.772114] sdhost: log_buf @ 9f513000 (df513000)
[ 0.807962] mmc1: queuing unknown CIS tuple 0x80 (2 bytes)
[ 0.809533] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
[ 0.811102] mmc1: queuing unknown CIS tuple 0x80 (3 bytes)
[ 0.813892] mmc1: queuing unknown CIS tuple 0x80 (7 bytes)
[ 0.851502] mmc0: sdhost-bcm2835 loaded - DMA enabled (>1)
[ 0.852540] of_cfs_init
[ 0.852640] of_cfs_init: OK
[ 0.873633] Waiting for root device /dev/mmcblk0p2...
[ 0.899073] mmc1: new high speed SDIO card at address 0001
[ 0.901620] Indeed it is in host mode hprt0 = 00021501
[ 0.968534] mmc0: host does not support reading read-only switch, assuming write-enable
[ 0.971154] mmc0: new high speed SDXC card at address 0001
[ 0.971655] mmcblk0: mmc0:0001 ED4QT 119 GiB
[ 0.973124] mmcblk0: p1 p2
[ 1.006689] EXT4-fs (mmcblk0p2): INFO: recovery required on readonly filesystem
[ 1.006698] EXT4-fs (mmcblk0p2): write access will be enabled during recovery
[ 1.111586] usb 1-1: new high-speed USB device number 2 using dwc_otg
[ 1.111729] Indeed it is in host mode hprt0 = 00001101
[ 1.351743] usb 1-1: New USB device found, idVendor=0424, idProduct=2514
[ 1.351757] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[ 1.352427] hub 1-1:1.0: USB hub found
[ 1.352516] hub 1-1:1.0: 4 ports detected
[ 1.529658] EXT4-fs (mmcblk0p2): recovery complete
[ 1.533561] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[ 1.533635] VFS: Mounted root (ext4 filesystem) readonly on device 179:2.
[ 1.541425] devtmpfs: mounted
[ 1.544880] Freeing unused kernel memory: 1024K
[ 1.671536] usb 1-1.1: new high-speed USB device number 3 using dwc_otg
[ 1.801785] usb 1-1.1: New USB device found, idVendor=0424, idProduct=2514
[ 1.801804] usb 1-1.1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[ 1.802457] hub 1-1.1:1.0: USB hub found
[ 1.802542] hub 1-1.1:1.0: 3 ports detected
[ 2.083748] systemd[1]: System time before build time, advancing clock.
[ 2.121534] usb 1-1.1.2: new low-speed USB device number 4 using dwc_otg
[ 2.229403] NET: Registered protocol family 10
[ 2.230608] Segment Routing with IPv6
[ 2.242088] ip_tables: (C) 2000-2006 Netfilter Core Team
[ 2.265959] systemd[1]: systemd 232 running in system mode. (+PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD +IDN)
[ 2.266521] systemd[1]: Detected architecture arm.
[ 2.268602] usb 1-1.1.2: New USB device found, idVendor=1c4f, idProduct=0002
[ 2.268615] usb 1-1.1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 2.268625] usb 1-1.1.2: Product: USB Keyboard
[ 2.268633] usb 1-1.1.2: Manufacturer: SIGMACHIP
[ 2.274867] systemd[1]: Set hostname to .
[ 2.278482] input: SIGMACHIP USB Keyboard as /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.1/1-1.1.2/1-1.1.2:1.0/0003:1C4F:0002.0001/input/input0
[ 2.342451] hid-generic 0003:1C4F:0002.0001: input,hidraw0: USB HID v1.10 Keyboard [SIGMACHIP USB Keyboard] on usb-3f980000.usb-1.1.2/input0
[ 2.351984] input: SIGMACHIP USB Keyboard as /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.1/1-1.1.2/1-1.1.2:1.1/0003:1C4F:0002.0002/input/input1
[ 2.421785] hid-generic 0003:1C4F:0002.0002: input,hidraw1: USB HID v1.10 Device [SIGMACHIP USB Keyboard] on usb-3f980000.usb-1.1.2/input1
[ 2.721540] usb 1-1.1.1: new high-speed USB device number 5 using dwc_otg
[ 2.851958] usb 1-1.1.1: New USB device found, idVendor=0424, idProduct=7800
[ 2.851974] usb 1-1.1.1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[ 2.932262] systemd[1]: Listening on udev Kernel Socket.
[ 2.932794] systemd[1]: Listening on RPCbind Server Activation Socket.
[ 2.933570] systemd[1]: Created slice System Slice.
[ 2.936398] systemd[1]: Mounting RPC Pipe File System...
[ 2.936906] systemd[1]: Listening on Journal Socket (/dev/log).
[ 2.938075] systemd[1]: Set up automount Arbitrary Executable File Formats File System Automount Point.
[ 2.939120] systemd[1]: Created slice system-systemd\x2dfsck.slice.
[ 3.142181] libphy: lan78xx-mdiobus: probed
[ 3.696182] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
[ 3.763892] systemd-journald[108]: Received request to flush runtime journal from PID 1
[ 4.193489] snd_bcm2835: module is from the staging directory, the quality is unknown, you have been warned.
[ 4.199461] bcm2835_alsa bcm2835_alsa: card created with 8 channels
[ 4.488060] brcmfmac: F1 signature read @0x18000000=0x15264345
[ 4.502675] brcmfmac: brcmf_fw_map_chip_to_name: using brcm/brcmfmac43455-sdio.bin for chip 0x004345(17221) rev 0x000006
[ 4.503451] usbcore: registered new interface driver brcmfmac
[ 4.859919] brcmfmac: brcmf_c_preinit_dcmds: Firmware version = wl0: Feb 27 2018 03:15:32 version 7.45.154 (r684107 CY) FWID 01-4fbe0b04
[ 4.860480] brcmfmac: brcmf_c_preinit_dcmds: CLM version = API: 12.2 Data: 9.10.105 Compiler: 1.29.4 ClmImport: 1.36.3 Creation: 2018-03-09 18:56:28
[ 4.861867] random: crng init done
[ 5.318311] uart-pl011 3f201000.serial: no DMA platform data
[ 5.869959] Adding 102396k swap on /var/swap. Priority:-2 extents:1 across:102396k SSFS
[ 5.941711] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[ 5.941766] brcmfmac: power management disabled
[ 7.038673] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[ 7.040939] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[ 7.041141] brcmfmac: power management disabled
[ 10.243496] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[ 11.548351] Bluetooth: Core ver 2.22
[ 11.548438] NET: Registered protocol family 31
[ 11.548445] Bluetooth: HCI device and connection manager initialized
[ 11.548469] Bluetooth: HCI socket layer initialized
[ 11.548484] Bluetooth: L2CAP socket layer initialized
[ 11.548517] Bluetooth: SCO socket layer initialized
[ 11.555715] Bluetooth: HCI UART driver ver 2.3
[ 11.555738] Bluetooth: HCI UART protocol H4 registered
[ 11.555744] Bluetooth: HCI UART protocol Three-wire (H5) registered
[ 11.741574] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[ 11.741580] Bluetooth: BNEP filters: protocol multicast
[ 11.741594] Bluetooth: BNEP socket layer initialized
[14133.117932] Bluetooth: HIDP (Human Interface Emulation) ver 1.2
[14133.117972] Bluetooth: HIDP socket layer initialized
[14133.122885] hid-generic 0005:045E:02FD.0003: unknown main item tag 0x0
[14133.122955] hid-generic 0005:045E:02FD.0003: unbalanced collection at end of report description
[14133.123048] hid-generic: probe of 0005:045E:02FD.0003 failed with error -22
pi@retropie:/etc/modprobe.d$

@cbelcher
Copy link
Author

cbelcher commented Mar 2, 2019

uninstalling and reinstalling.

@cbelcher
Copy link
Author

cbelcher commented Mar 2, 2019

output from the uninstall and reinstall.

pi@retropie:$ cd /home/pi/xpadneo/
pi@retropie:
/xpadneo$ sudo ./uninstall.sh

  • unloading current driver module
    modprobe: FATAL: Module hid_xpadneo not found.
  • looking for registered instances
    found 1 registered instance(s) on your system
  • 0.5.4
    • uninstalling and removing 0.5.4 from DKMS

Deleting module version: 0.5.4
completely from the DKMS tree.

Done.

  • removing 0.5.4 folder from /usr/src
    pi@retropie:/xpadneo$ sudo ./install
    sudo: ./install: command not found
    pi@retropie:
    /xpadneo$ sudo ./install.sh
  • replacing version string if necessary
  • copying module into /usr/src
  • adding module to DKMS

Creating symlink /var/lib/dkms/hid-xpadneo/0.5.4/source ->
/usr/src/hid-xpadneo-0.5.4

DKMS: add completed.

  • installing module (using DKMS)

Kernel preparation unnecessary for this kernel. Skipping...

Building module:
cleaning build area....
make -j4 KERNELRELEASE=4.14.30-v7+ -C /lib/modules/4.14.30-v7+/build M=/var/lib/dkms/hid-xpadneo/0.5.4/build/src modules....
cleaning build area...

DKMS: build completed.

hid-xpadneo.ko:
Running module version sanity check.

  • Original module
    • No original module exists within this kernel
  • Installation
    • Installing to /lib/modules/4.14.30-v7+/kernel/drivers/hid/

Running the post_install script:
Disabling ERTM permanently (requires reboot)...
Diabling ERTM instantly...
Installing UDEV rule to automatically bind xpadneo (necessary on kernel < 4.16 and >= 4.20)...

depmod....

Warning: Unable to find an initial ram disk that I know how to handle.
Will not try to make an initrd.

DKMS: install completed.
pi@retropie:~/xpadneo$

@cbelcher
Copy link
Author

cbelcher commented Mar 2, 2019

Still no /dev/input/js0, lsmod | grep xpadneo has a
null output. The controller is paired but nothing see's it. Bottom line no change.

@atar-axis
Copy link
Owner

OK perfect! Now please turn off the gamepad, reboot the Pi, type sudo dmesg -C.

Now connect your gamepad and share the dmesg output with me again.

Thank you for your patience!

@cbelcher
Copy link
Author

cbelcher commented Mar 2, 2019

sudo dmesg -C output is null.

@cbelcher
Copy link
Author

cbelcher commented Mar 2, 2019

pi@retropie:~$ dmesg
[ 131.755570] Bluetooth: HIDP (Human Interface Emulation) ver 1.2
[ 131.755609] Bluetooth: HIDP socket layer initialized
[ 131.761101] hid-generic 0005:045E:02FD.0003: unknown main item tag 0x0
[ 131.761190] hid-generic 0005:045E:02FD.0003: unbalanced collection at end of report description
[ 131.761344] hid-generic: probe of 0005:045E:02FD.0003 failed with error -22
[ 131.788067] hid_xpadneo: loading out-of-tree module taints kernel.
[ 131.788528] hid_xpadneo: disagrees about version of symbol dev_err
[ 131.788539] hid_xpadneo: Unknown symbol dev_err (err -22)
[ 131.788592] hid_xpadneo: disagrees about version of symbol dev_printk
[ 131.788599] hid_xpadneo: Unknown symbol dev_printk (err -22)

@atar-axis
Copy link
Owner

atar-axis commented Mar 2, 2019

Thanks! I will have to do some research since this is a totally new error for me too, I report back as soon as I understand it a bit more ;)

@cbelcher
Copy link
Author

cbelcher commented Mar 2, 2019

No worries mate, gute nacht :)

@atar-axis
Copy link
Owner

Looks like the new issue (not the connection problem but the 'unbalanced' error in dmesg) is the same as reported in #61.

Could you therefore please Update your gamepad before we continue? Either via an Xbox or Windows 10 OS (Xbox Accessoires App). It doesnt matter If your fw is already the latest btw. ;)

@cbelcher
Copy link
Author

cbelcher commented Mar 3, 2019 via email

@cbelcher
Copy link
Author

cbelcher commented Mar 3, 2019 via email

@cbelcher
Copy link
Author

cbelcher commented Mar 3, 2019 via email

@atar-axis
Copy link
Owner

atar-axis commented Mar 3, 2019

Yeah right, this procedure resets the gamepad :)
no matter what it says ;D

Now, please reboot the Pi again, connect the gamepad and give me the output of sudo find "/sys/kernel/debug/hid/" -name "0005:045E:*" -exec sh -c 'echo "{}" && head -1 "{}/rdesc" | tee /dev/tty | cksum && echo' \;

and dmesg

@cbelcher
Copy link
Author

cbelcher commented Mar 3, 2019 via email

@atar-axis
Copy link
Owner

atar-axis commented Mar 3, 2019

Perfect, the hid report descriptor looks correct (now), can you please add the dmesg output too - I would like to check if it still reports the same problem ;)

I will check it tomorrow ;) Nacht!

@cbelcher
Copy link
Author

cbelcher commented Mar 3, 2019 via email

@atar-axis
Copy link
Owner

Looking good! Second issue solved - one left ;)

@cbelcher
Copy link
Author

cbelcher commented Mar 3, 2019 via email

@atar-axis
Copy link
Owner

I think the (hopefully) last problem is most probably related to the kernel headers used by dkms, I will report back tomorrow 😴

I am sorry that you are having such a hard time using this driver, it usually works "out of the box"

@cbelcher
Copy link
Author

cbelcher commented Mar 3, 2019 via email

@atar-axis
Copy link
Owner

  • uname -r
  • apt list --installed | grep -i header

@atar-axis
Copy link
Owner

And dpkg -s raspberrypi-kernel-headers

@cbelcher
Copy link
Author

cbelcher commented Mar 3, 2019 via email

@cbelcher
Copy link
Author

cbelcher commented Mar 3, 2019 via email

@atar-axis
Copy link
Owner

Working? Like "Problems solved"? :) Did it rumble?

@cbelcher
Copy link
Author

cbelcher commented Mar 3, 2019 via email

@atar-axis
Copy link
Owner

It should rumble every time you connect it - does it? :)
If not, I fear we aren't done because then xpadneo isn't used and the gamepad will not work reliable ;)

@cbelcher
Copy link
Author

cbelcher commented Mar 3, 2019 via email

@cbelcher
Copy link
Author

cbelcher commented Mar 3, 2019 via email

@atar-axis
Copy link
Owner

Yes, the question is: is it hid-generic or hid-microsoft?
I guess it is the former, we can simply check that by:

  • sudo dmesg -C (clears the dmesg output)
  • connect gamepad
  • dmesg (please upload the output)

@cbelcher
Copy link
Author

cbelcher commented Mar 3, 2019 via email

@cbelcher
Copy link
Author

cbelcher commented Mar 3, 2019 via email

@cbelcher
Copy link
Author

cbelcher commented Mar 3, 2019 via email

@atar-axis
Copy link
Owner

Perfect, that's what I would have suggested next ;)
Yeah, now it's done 😁

You had three problems I think

  1. The installation went wrong somehow, that's why ERTM was still enabled
  2. Your gamepads firmware was in a faulty state where the HID report descriptor is cropped
  3. Your headers and kernel did not fit somehow, that was fixed after the update. Moreover DKMS did not automatically upgrade xpadneo - no idea why.

That took some doing xD

@cbelcher
Copy link
Author

cbelcher commented Mar 3, 2019 via email

@cbelcher
Copy link
Author

cbelcher commented Mar 4, 2019 via email

@atar-axis
Copy link
Owner

You are Welcome Craig!

@mlyszczek
Copy link

I got same problem on Gentoo, I could pair with pad but right after I connected I got disconnect. In my case I was missing 'hidp' module (BT_HIDP). I leave it here as this is easily found by search engines with 'xpadneo disconnect' keywrods.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants