Freeplaytech Forum

Full Version: Lost my inputs... Any advice?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Good day! First off, should say I am new to most of this, but I think I am learning... Perhaps that is why I am in my current predicament  Big Grin

So, I recently soldered my add-on board, to make use of L2/R2 and the hotkey, (planning to make use of the analogs in time), but when I tried to modify via :

sudo sh -c 'echo "options mk_arcade_joystick_rpi map=4 gpio=4,17,6,5,19,26,16,24,23,18,15,14,-20,42,43,41,40 hkmode=2" >> /etc/modprobe.d/mk_arcade_joystick.conf'

I lost my inputs when I exited... Soooo. I tried manually putting in the default inputs, as well as my desired inputs, as seen by the image I attached... That didn't work. And I brought up dmesg in hopes of finding an issue, and that's when I really went far out of my depth. 


Any insights into my... blunder, would be greatly appreciated!

Thanks!

pi@retropie:~ $ sudo modprobe -r mk_arcade_joystick_rpi
pi@retropie:~ $ dmesg
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.14.98-v7+ (dom@dom-XPS-13-9370) (gcc version 4.9.3 (crosstool-NG crosstool-ng-1.22.0-88-g8460611)) #1200 SMP Tue Feb 12 20:27:48 GMT 2019
[    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 Compute Module 3 Plus Rev 1.0
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] cma: Reserved 8 MiB at 0x2f800000
[    0.000000] On node 0 totalpages: 196608
[    0.000000] free_area_init_node: node 0, pgdat 80c85780, node_mem_map af134000
[    0.000000]   Normal zone: 1728 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 196608 pages, LIFO batch:31
[    0.000000] percpu: Embedded 17 pages/cpu @af0dd000 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: 194880
[    0.000000] Kernel command line: bcm2708_fb.fbwidth=320 bcm2708_fb.fbheight=240 bcm2708_fb.fbswap=1 smsc95xx.macaddr=B8:27:EB:B6:C9:2E vc_mem.mem_base=0x3ec00000 vc_mem.mem_size=0x40000000  dwc_otg.lpm_enable=0 console=ttyAMA0,115200 console=tty1 root=PARTUUID=6397c987-02 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait loglevel=3 consoleblank=0 plymouth.enable=0
[    0.000000] PID hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
[    0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] Memory: 757532K/786432K available (7168K kernel code, 577K rwdata, 2080K rodata, 1024K init, 698K bss, 20708K reserved, 8192K cma-reserved)
[    0.000000] Virtual kernel memory layout:
                   vector  : 0xffff0000 - 0xffff1000   (   4 kB)
                   fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
                   vmalloc : 0xb0800000 - 0xff800000   (1264 MB)
                   lowmem  : 0x80000000 - 0xb0000000   ( 768 MB)
                   modules : 0x7f000000 - 0x80000000   (  16 MB)
                     .text : 0x80008000 - 0x80800000   (8160 kB)
                     .init : 0x80b00000 - 0x80c00000   (1024 kB)
                     .data : 0x80c00000 - 0x80c906d4   ( 578 kB)
                      .bss : 0x80c97ef8 - 0x80d468f0   ( 699 kB)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[    0.000000] ftrace: allocating 25298 entries in 75 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.000263] Console: colour dummy device 80x30
[    0.000281] console [tty1] enabled
[    0.000305] Calibrating delay loop (skipped), value calculated using timer frequency.. 38.40 BogoMIPS (lpj=192000)
[    0.000320] pid_max: default: 32768 minimum: 301
[    0.000643] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.000658] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.001599] Disabling memory control group subsystem
[    0.001674] CPU: Testing write buffer coherency: ok
[    0.002090] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.002494] Setting up static identity map for 0x100000 - 0x10003c
[    0.002617] Hierarchical SRCU implementation.
[    0.003295] smp: Bringing up secondary CPUs ...
[    0.004074] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[    0.004915] CPU2: thread -1, cpu 2, socket 0, mpidr 80000002
[    0.005739] CPU3: thread -1, cpu 3, socket 0, mpidr 80000003
[    0.005844] smp: Brought up 1 node, 4 CPUs
[    0.005856] SMP: Total of 4 processors activated (153.60 BogoMIPS).
[    0.005861] CPU: All CPU(s) started in HYP mode.
[    0.005865] CPU: Virtualization extensions available.
[    0.006748] devtmpfs: initialized
[    0.016919] random: get_random_u32 called from bucket_table_alloc+0xfc/0x24c with crng_init=0
[    0.017663] VFP support v0.3: implementor 41 architecture 3 part 40 variant 3 rev 4
[    0.017886] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.017903] futex hash table entries: 1024 (order: 4, 65536 bytes)
[    0.018467] pinctrl core: initialized pinctrl subsystem
[    0.019214] NET: Registered protocol family 16
[    0.021919] DMA: preallocated 1024 KiB pool for atomic coherent allocations
[    0.026905] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[    0.026912] hw-breakpoint: maximum watchpoint size is 8 bytes.
[    0.027117] Serial: AMBA PL011 UART driver
[    0.028880] bcm2835-mbox 3f00b880.mailbox: mailbox enabled
[    0.061522] bcm2835-dma 3f007000.dma: DMA legacy API manager at b0813000, dmachans=0x1
[    0.062967] SCSI subsystem initialized
[    0.063196] usbcore: registered new interface driver usbfs
[    0.063254] usbcore: registered new interface driver hub
[    0.063339] usbcore: registered new device driver usb
[    0.070089] raspberrypi-firmware soc:firmware: Attached to firmware from 2019-03-27 15:45
[    0.071501] clocksource: Switched to clocksource arch_sys_counter
[    0.148231] VFS: Disk quotas dquot_6.6.0
[    0.148313] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.148498] FS-Cache: Loaded
[    0.148683] CacheFiles: Loaded
[    0.156741] NET: Registered protocol family 2
[    0.157456] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
[    0.157566] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
[    0.157752] TCP: Hash tables configured (established 8192 bind 8192)
[    0.157880] UDP hash table entries: 512 (order: 2, 16384 bytes)
[    0.157925] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
[    0.158151] NET: Registered protocol family 1
[    0.158611] RPC: Registered named UNIX socket transport module.
[    0.158617] RPC: Registered udp transport module.
[    0.158622] RPC: Registered tcp transport module.
[    0.158627] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.160279] hw perfevents: enabled with armv7_cortex_a7 PMU driver, 7 counters available
[    0.163065] workingset: timestamp_bits=14 max_order=18 bucket_order=4
[    0.171223] FS-Cache: Netfs 'nfs' registered for caching
[    0.171860] NFS: Registering the id_resolver key type
[    0.171890] Key type id_resolver registered
[    0.171895] Key type id_legacy registered
[    0.171911] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.173839] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 251)
[    0.173969] io scheduler noop registered
[    0.173976] io scheduler deadline registered (default)
[    0.174144] io scheduler cfq registered
[    0.174151] io scheduler mq-deadline registered
[    0.174157] io scheduler kyber registered
[    0.176925] BCM2708FB: allocated DMA memory ef910000
[    0.176953] BCM2708FB: allocated DMA channel 0 @ b0813000
[    0.180396] Console: switching to colour frame buffer device 40x30
[    0.183859] bcm2835-rng 3f104000.rng: hwrng registered
[    0.183995] vc-mem: phys_addr:0x00000000 mem_base=0x3ec00000 mem_size:0x40000000(1024 MiB)
[    0.184422] vc-sm: Videocore shared memory driver
[    0.184702] gpiomem-bcm2835 3f200000.gpiomem: Initialised: Registers at 0x3f200000
[    0.194312] brd: module loaded
[    0.202936] loop: module loaded
[    0.202948] Loading iSCSI transport class v2.0-870.
[    0.203589] libphy: Fixed MDIO Bus: probed
[    0.203688] usbcore: registered new interface driver lan78xx
[    0.203742] usbcore: registered new interface driver smsc95xx
[    0.203756] dwc_otg: version 3.00a 10-AUG-2012 (platform bus)
[    0.231647] dwc_otg 3f980000.usb: base=0xf0980000
[    0.431831] Core Release: 2.80a
[    0.431840] Setting default values for core params
[    0.431869] Finished setting default values for core params
[    0.632125] Using Buffer DMA mode
[    0.632131] Periodic Transfer Interrupt Enhancement - disabled
[    0.632136] Multiprocessor Interrupt Enhancement - disabled
[    0.632143] OTG VER PARAM: 0, OTG VER FLAG: 0
[    0.632154] Dedicated Tx FIFOs mode
[    0.632529] WARN::dwc_otg_hcd_init:1046: FIQ DMA bounce buffers: virt = 0xaf904000 dma = 0xef904000 len=9024
[    0.632553] FIQ FSM acceleration enabled for :
               Non-periodic Split Transactions
               Periodic Split Transactions
               High-Speed Isochronous Endpoints
               Interrupt/Control Split Transaction hack enabled
[    0.632561] dwc_otg: Microframe scheduler enabled
[    0.632612] WARN::hcd_init_fiq:459: FIQ on core 1 at 0x805ed94c
[    0.632624] WARN::hcd_init_fiq:460: FIQ ASM at 0x805edcb4 length 36
[    0.632636] WARN::hcd_init_fiq:486: MPHI regs_base at 0xf0006000
[    0.632690] dwc_otg 3f980000.usb: DWC OTG Controller
[    0.632720] dwc_otg 3f980000.usb: new USB bus registered, assigned bus number 1
[    0.632750] dwc_otg 3f980000.usb: irq 62, io mem 0x00000000
[    0.632797] Init: Port Power? op_state=1
[    0.632802] Init: Power Port (0)
[    0.632997] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    0.633007] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    0.633016] usb usb1: Product: DWC OTG Controller
[    0.633024] usb usb1: Manufacturer: Linux 4.14.98-v7+ dwc_otg_hcd
[    0.633032] usb usb1: SerialNumber: 3f980000.usb
[    0.633608] hub 1-0:1.0: USB hub found
[    0.633653] hub 1-0:1.0: 1 port detected
[    0.634173] dwc_otg: FIQ enabled
[    0.634178] dwc_otg: NAK holdoff enabled
[    0.634183] dwc_otg: FIQ split-transaction FSM enabled
[    0.634198] Module dwc_common_port init
[    0.634441] usbcore: registered new interface driver usb-storage
[    0.634605] mousedev: PS/2 mouse device common for all mice
[    0.634673] IR NEC protocol handler initialized
[    0.634678] IR RC5(x/sz) protocol handler initialized
[    0.634683] IR RC6 protocol handler initialized
[    0.634688] IR JVC protocol handler initialized
[    0.634693] IR Sony protocol handler initialized
[    0.634698] IR SANYO protocol handler initialized
[    0.634703] IR Sharp protocol handler initialized
[    0.634708] IR MCE Keyboard/mouse protocol handler initialized
[    0.634713] IR XMP protocol handler initialized
[    0.635500] bcm2835-wdt 3f100000.watchdog: Broadcom BCM2835 watchdog timer
[    0.635753] bcm2835-cpufreq: min=600000 max=1200000
[    0.636124] sdhci: Secure Digital Host Controller Interface driver
[    0.636129] sdhci: Copyright© Pierre Ossman
[    0.636478] sdhost-bcm2835 3f202000.mmc: could not get clk, deferring probe
[    0.636581] sdhci-pltfm: SDHCI platform and OF driver helper
[    0.637005] ledtrig-cpu: registered to indicate activity on CPUs
[    0.637085] hidraw: raw HID events driver © Jiri Kosina
[    0.637201] usbcore: registered new interface driver usbhid
[    0.637205] usbhid: USB HID core driver
[    0.637768] vchiq: vchiq_init_state: slot_zero = af980000, is_master = 0
[    0.639150] [vc_sm_connected_init]: start
[    0.647690] [vc_sm_connected_init]: end - returning 0
[    0.648249] Initializing XFRM netlink socket
[    0.648272] NET: Registered protocol family 17
[    0.648368] Key type dns_resolver registered
[    0.648877] Registering SWP/SWPB emulation handler
[    0.649459] registered taskstats version 1
[    0.655189] uart-pl011 3f201000.serial: cts_event_workaround enabled
[    0.655266] 3f201000.serial: ttyAMA0 at MMIO 0x3f201000 (irq = 87, base_baud = 0) is a PL011 rev2
[    0.655312] console [ttyAMA0] enabled
[    0.657176] sdhost: log_buf @ af907000 (ef907000)
[    0.731531] mmc0: sdhost-bcm2835 loaded - DMA enabled (>1)
[    0.732520] of_cfs_init
[    0.732604] of_cfs_init: OK
[    0.733109] Waiting for root device PARTUUID=6397c987-02...
[    0.861942] mmc0: host does not support reading read-only switch, assuming write-enable
[    0.862104] Indeed it is in host mode hprt0 = 00021501
[    0.923216] mmc0: new high speed SDHC card at address aaaa
[    0.923715] mmcblk0: mmc0:aaaa SC32G 29.7 GiB
[    0.928288]  mmcblk0: p1 p2
[    0.949958] random: fast init done
[    0.965489] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[    0.965534] VFS: Mounted root (ext4 filesystem) readonly on device 179:2.
[    0.966275] devtmpfs: mounted
[    0.969709] Freeing unused kernel memory: 1024K
[    1.071552] usb 1-1: new high-speed USB device number 2 using dwc_otg
[    1.071792] Indeed it is in host mode hprt0 = 00001101
[    1.323236] usb 1-1: New USB device found, idVendor=2109, idProduct=2813
[    1.323260] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[    1.323269] usb 1-1: Product: USB2.0 Hub
[    1.323277] usb 1-1: Manufacturer: VIA Labs, Inc.
[    1.324237] hub 1-1:1.0: USB hub found
[    1.325034] hub 1-1:1.0: 4 ports detected
[    1.367344] systemd[1]: System time before build time, advancing clock.
[    1.495147] NET: Registered protocol family 10
[    1.496207] Segment Routing with IPv6
[    1.507227] ip_tables: © 2000-2006 Netfilter Core Team
[    1.523083] random: systemd: uninitialized urandom read (16 bytes read)
[    1.528744] 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)
[    1.529301] systemd[1]: Detected architecture arm.
[    1.531249] systemd[1]: Set hostname to <retropie>.
[    1.560490] random: systemd: uninitialized urandom read (16 bytes read)
[    1.575197] uart-pl011 3f201000.serial: no DMA platform data
[    1.591343] random: systemd-cryptse: uninitialized urandom read (16 bytes read)
[    1.671578] usb 1-1.1: new high-speed USB device number 3 using dwc_otg
[    1.823032] usb 1-1.1: New USB device found, idVendor=0bda, idProduct=8176
[    1.823047] usb 1-1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    1.823055] usb 1-1.1: Product: 802.11n WLAN Adapter
[    1.823063] usb 1-1.1: Manufacturer: Realtek
[    1.823071] usb 1-1.1: SerialNumber: 00e04c000001
[    1.981568] usb 1-1.2: new low-speed USB device number 4 using dwc_otg
[    2.076794] systemd[1]: Listening on udev Control Socket.
[    2.078318] systemd[1]: Set up automount Arbitrary Executable File Formats File System Automount Point.
[    2.078888] systemd[1]: Listening on fsck to fsckd communication Socket.
[    2.079928] systemd[1]: Created slice User and Session Slice.
[    2.080361] systemd[1]: Reached target Swap.
[    2.080861] systemd[1]: Listening on udev Kernel Socket.
[    2.081563] systemd[1]: Listening on Journal Socket.
[    2.178225] usb 1-1.2: New USB device found, idVendor=03f0, idProduct=0d4a
[    2.178238] usb 1-1.2: New USB device strings: Mfr=0, Product=2, SerialNumber=0
[    2.178246] usb 1-1.2: Product: HP USB Keyboard
[    2.202661] input: HP USB Keyboard as /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.2/1-1.2:1.0/0003:03F0:0D4A.0001/input/input0
[    2.272410] hid-generic 0003:03F0:0D4A.0001: input,hidraw0: USB HID v1.10 Keyboard [HP USB Keyboard] on usb-3f980000.usb-1.2/input0
[    2.285509] input: HP USB Keyboard as /devices/platform/soc/3f980000.usb/usb1/1-1/1-1.2/1-1.2:1.1/0003:03F0:0D4A.0002/input/input1
[    2.287226] mk_arcade_joystick_rpi: loading out-of-tree module taints kernel.
[    2.288038] mk_arcade_joystick_rpi: unknown parameter 'gpi' ignored
[    2.288055] mk_arcade_joystick_rpi: unknown parameter 'gpi' ignored
[    2.288346] mk_arcade_joystick_rpi: Freeplay Button Driver
[    2.288352] mk_arcade_joystick_rpi: pad type : 4
[    2.288357] mk_arcade_joystick_rpi: Custom device needs gpio argument
[    2.351881] hid-generic 0003:03F0:0D4A.0002: input,hidraw1: USB HID v1.10 Device [HP USB Keyboard] on usb-3f980000.usb-1.2/input1
[    2.398528] i2c /dev entries driver
[    2.748808] EXT4-fs (mmcblk0p2): re-mounted. Opts: (null)
[    2.858919] systemd-journald[82]: Received request to flush runtime journal from PID 1
[    3.383133] bcm2708_i2c 3f804000.i2c: BSC1 Controller at 0x3f804000 (irq 83) (baudrate 400000)
[    3.462393] snd_bcm2835: module is from the staging directory, the quality is unknown, you have been warned.
[    3.479658] bcm2835_alsa bcm2835_alsa: card created with 8 channels
[    3.972971] usbcore: registered new interface driver rtl8192cu
[    4.670241] random: crng init done
[    4.670260] random: 7 urandom warning(s) missed due to ratelimiting
[    5.520217] Adding 102396k swap on /var/swap.  Priority:-2 extents:2 across:143356k SSFS
[    5.855259] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[    7.823756] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
Hey Zedd!

Well, from your post of dmesg (which was the right thing to post), we can see these lines.

[ 2.288038] mk_arcade_joystick_rpi: unknown parameter 'gpi' ignored
[ 2.288055] mk_arcade_joystick_rpi: unknown parameter 'gpi' ignored
[ 2.288346] mk_arcade_joystick_rpi: Freeplay Button Driver
[ 2.288352] mk_arcade_joystick_rpi: pad type : 4
[ 2.288357] mk_arcade_joystick_rpi: Custom device needs gpio argument

When the driver is reading the conf file, it seems to be hitting some garbage. I also see that the command you used would have added extra lines into the conf file instead of just changing the current line.

sudo sh -c 'echo "options mk_arcade_joystick_rpi map=4 gpio=4,17,6,5,19,26,16,24,23,18,15,14,-20,42,43,41,40 hkmode=2" >> /etc/modprobe.d/mk_arcade_joystick.conf'

That would add a line, and if there were already lines there, it would now have multiple lines.

Can you post the output of
cat /etc/modprobe.d/mk_arcade_joystick.conf

Then, I think we can get to the bottom of things quicker. What you will likely want to do is actually

sudo nano /etc/modprobe.d/mk_arcade_joystick.conf

And remove the extra lines and modify the one line you need. You will only want ONE SINGLE line in that file (that doesn't start with #).
(12-31-2019, 04:30 AM)Flavor Wrote: [ -> ]Hey Zedd!

Well, from your post of dmesg (which was the right thing to post), we can see these lines.

[    2.288038] mk_arcade_joystick_rpi: unknown parameter 'gpi' ignored
[    2.288055] mk_arcade_joystick_rpi: unknown parameter 'gpi' ignored
[    2.288346] mk_arcade_joystick_rpi: Freeplay Button Driver
[    2.288352] mk_arcade_joystick_rpi: pad type : 4
[    2.288357] mk_arcade_joystick_rpi: Custom device needs gpio argument

When the driver is reading the conf file, it seems to be hitting some garbage.  I also see that the command you used would have added extra lines into the conf file instead of just changing the current line.

sudo sh -c 'echo "options mk_arcade_joystick_rpi map=4 gpio=4,17,6,5,19,26,16,24,23,18,15,14,-20,42,43,41,40 hkmode=2" >> /etc/modprobe.d/mk_arcade_joystick.conf'

That would add a line, and if there were already lines there, it would now have multiple lines.  

Can you post the output of
cat /etc/modprobe.d/mk_arcade_joystick.conf

Then, I think we can get to the bottom of things quicker.  What you will likely want to do is actually

sudo nano /etc/modprobe.d/mk_arcade_joystick.conf

And remove the extra lines and modify the one line you need.  You will only want ONE SINGLE line in that file (that doesn't start with #).


Ah thank you for your advice. I checked, and you were absolutely right that I had too many lines of options active:

cat /etc/modprobe.d/mk_arcade_joystick.conf

options mk_arcade_joystick_rpi map=4 gpi=4,17,6,5,19,26,16,24,23,18,15,14,-20,-1,-1,-1,-1,-1,-1,-1,-1 hkmode=2
options mk_arcade_joystick_rpi map=4 gpi=4,17,6,5,19,26,16,24,23,18,15,14,-20,42,43,41,40,-1,-1,-1,-1 hkmode=2

I added the # to the one line, and double checked to see I had put it in right, so the next time I checked, it looked right:

#options mk_arcade_joystick_rpi map=4 gpi=4,17,6,5,19,26,16,24,23,18,15,14,-20,-1,-1,-1,-1,-1,-1,-1,-1 hkmode=2
options mk_arcade_joystick_rpi map=4 gpi=4,17,6,5,19,26,16,24,23,18,15,14,-20,42,43,41,40,-1,-1,-1,-1 hkmode=2

Rebooted, and it still doesn't seem to recognize the inputs. I tried to configure, and it does not recognize that they are there, and only wants to take inputs from my keyboard.
(12-31-2019, 05:25 AM)zedd Wrote: [ -> ]
(12-31-2019, 04:30 AM)Flavor Wrote: [ -> ]Hey Zedd!

Well, from your post of dmesg (which was the right thing to post), we can see these lines.

[    2.288038] mk_arcade_joystick_rpi: unknown parameter 'gpi' ignored
[    2.288055] mk_arcade_joystick_rpi: unknown parameter 'gpi' ignored
[    2.288346] mk_arcade_joystick_rpi: Freeplay Button Driver
[    2.288352] mk_arcade_joystick_rpi: pad type : 4
[    2.288357] mk_arcade_joystick_rpi: Custom device needs gpio argument

When the driver is reading the conf file, it seems to be hitting some garbage.  I also see that the command you used would have added extra lines into the conf file instead of just changing the current line.

sudo sh -c 'echo "options mk_arcade_joystick_rpi map=4 gpio=4,17,6,5,19,26,16,24,23,18,15,14,-20,42,43,41,40 hkmode=2" >> /etc/modprobe.d/mk_arcade_joystick.conf'

That would add a line, and if there were already lines there, it would now have multiple lines.  

Can you post the output of
cat /etc/modprobe.d/mk_arcade_joystick.conf

Then, I think we can get to the bottom of things quicker.  What you will likely want to do is actually

sudo nano /etc/modprobe.d/mk_arcade_joystick.conf

And remove the extra lines and modify the one line you need.  You will only want ONE SINGLE line in that file (that doesn't start with #).


Ah thank you for your advice. I checked, and you were absolutely right that I had too many lines of options active:

cat /etc/modprobe.d/mk_arcade_joystick.conf

options mk_arcade_joystick_rpi map=4 gpi=4,17,6,5,19,26,16,24,23,18,15,14,-20,-1,-1,-1,-1,-1,-1,-1,-1 hkmode=2
options mk_arcade_joystick_rpi map=4 gpi=4,17,6,5,19,26,16,24,23,18,15,14,-20,42,43,41,40,-1,-1,-1,-1 hkmode=2

I added the # to the one line, and double checked to see I had put it in right, so the next time I checked, it looked right:

#options mk_arcade_joystick_rpi map=4 gpi=4,17,6,5,19,26,16,24,23,18,15,14,-20,-1,-1,-1,-1,-1,-1,-1,-1 hkmode=2
options mk_arcade_joystick_rpi map=4 gpi=4,17,6,5,19,26,16,24,23,18,15,14,-20,42,43,41,40,-1,-1,-1,-1 hkmode=2

Rebooted, and it still doesn't seem to recognize the inputs. I tried to configure, and it does not recognize that they are there, and only wants to take inputs from my keyboard.
This is the recent dmesg:

[    2.258149] mk_arcade_joystick_rpi: loading out-of-tree module taints kernel.
[    2.258979] mk_arcade_joystick_rpi: unknown parameter 'gpi' ignored
[    2.259424] mk_arcade_joystick_rpi: Freeplay Button Driver
[    2.259434] mk_arcade_joystick_rpi: pad type : 4
[    2.259444] mk_arcade_joystick_rpi: Custom device needs gpio argument
So, the key here is this output from dmesg:
[ 2.258979] mk_arcade_joystick_rpi: unknown parameter 'gpi' ignored

And your conf line that looks like this:
options mk_arcade_joystick_rpi map=4 gpi=4,17,6,5,19,26,16,24,23,18,15,14,-20,42,43,41,40,-1,-1,-1,-1 hkmode=2

It should say gpio instead of gpi.
(01-03-2020, 06:12 AM)Flavor Wrote: [ -> ]So, the key here is this output from dmesg:
[    2.258979] mk_arcade_joystick_rpi: unknown parameter 'gpi' ignored

And your conf line that looks like this:
options mk_arcade_joystick_rpi map=4 gpi=4,17,6,5,19,26,16,24,23,18,15,14,-20,42,43,41,40,-1,-1,-1,-1 hkmode=2

It should say gpio instead of gpi.

... I feel silly for not picking up on that. Thank you so much for your help; I look forward to trying it out in the am!
Worked perfectly! Thank you so much!!
Awesome!