Kodi Community Forum

Full Version: Mysterious button presses from game controllers cause video to skip
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello all,

I have an RPI 3, networked via ethernet, with three USB inputs:
1. a Flirc IR receiver
2. a xbox 360 pad
3. a "USB,2-axis 8-button gamepad" (this is the Buffalo classic gamepad)

When I'm watching video (loaded from an SMB share), at seemingly random points through the video it will suddenly skip - the Dialog seek bar will show up and indicate that i've jumped ahead/back in the video.

When I run kodi with debug output on, it's registering an actual button press from one of the game controllers (I don't know which one), but there's no way either of them got pressed (they're across the room from me).

7:46:52.719 T:1813849072 DEBUG: FEATURE [ right ] on game.controller.default pressed
7:46:52.735 T:1813849072 DEBUG: FEATURE [ right ] on game.controller.default released
7:46:52.822 T:1958678528 DEBUG: ------ Window Init (DialogSeekBar.xml) ------
7:46:53.471 T:1958671344 DEBUG: CAnnouncementManager - Announcement: OnSeek from xbmc
7:46:53.472 T:1958671344 DEBUG: GOT ANNOUNCEMENT, type: 1, from xbmc, message OnSeek
7:46:53.476 T:1444484080 DEBUG: CVideoPlayer::SetCaching - caching state 1
7:46:53.476 T:1444484080 DEBUG: CDVDClock::SetSpeedAdjust - adjusted:0.000000
7:46:53.476 T:1444484080 DEBUG: demuxer seek to: 166907.000000
7:46:53.476 T:1444484080 DEBUG: SeekTime - unknown position after seek
7:46:53.477 T:1444484080 DEBUG: demuxer seek to: 166907.000000, success
7:46:53.477 T:1444484080 DEBUG: CVideoPlayer::FlushBuffers - flushing buffers
7:46:53.519 T:1248322544 DEBUG: CDVDAudio:Tongueause - pausing audio stream
7:46:53.568 T:1248322544 DEBUG: CDVDAudio::Flush - flush audio stream
7:46:53.569 T:1248322544 DEBUG: CDVDAudio:Tongueause - pausing audio stream
7:46:53.571 T:1266066416 DEBUG: CVideoPlayerVideo - CDVDMsg::GENERAL_SYNCHRONIZE
7:46:53.572 T:1248322544 DEBUG: CVideoPlayerAudio - CDVDMsg::GENERAL_SYNCHRONIZE
7:46:53.573 T:1444484080 DEBUG: CVideoPlayer::SetCaching - caching state 2
7:46:53.573 T:1444484080 DEBUG: CDVDClock::SetSpeedAdjust - adjusted:0.000000
7:46:53.576 T:1266066416 INFO: CVideoPlayerVideo - Stillframe left, switching to normal playback

This is OSMC May 2017 2017.05-2 (although it's been happening for a few months now) and Kodi 17.3 (it's been happening at least since 17.1 - probably even earlier)

Any ideas why/how I'd be getting "mysterious" button presses from my one of my game controllers?
Are you sure no-one is playing a practical joke on you... Maybe a dog or cat is playing with itHuh

You will need to post the full debug log. Snippets of log don't are out of context and don't show the full picture.
And to be clear - don't post logs here. Upload them to pastebin.com or paste.ubuntu.com or somewhere like that and post the link they will supply to you here.
(2017-06-13, 03:30)HTPCGriefAndGlory Wrote: [ -> ]When I run kodi with debug output on, it's registering an actual button press from one of the game controllers (I don't know which one), but there's no way either of them got pressed (they're across the room from me).

To identify which one is causing the problem unplug one and see if the problem goes away.
The log file is pretty big, so I uploaded it here - http://s000.tinyupload.com/?file_id=1834...7417551746

If you search for "game" you'll quickly find the lines that detail finding the two controllers, and eventually the receiving of an event from one of them that causes video to skip. And of course, all of the startup info at the beginning of the log gives info on the system itself.

Figuring out which controller is actually sending the events I could do by unplugging them one at a time, but I'm more curious why kodi thinks it's receiving an event at all - I'd prefer to keep both of the controllers plugged in at all times if possible.
@HTPCGriefAndGlory

No-one will download your file. We require logs pasted at a pastebin as they provide easy access to open and view. This instruction was already given to you by @DarrenHill

@popcornmix provided an excellent suggestion to discover which is the offending controller. Have you done this? You have only stated "I could do by unplugging". It is not clear if you have found the problem controller.

Keep in mind your issue is not a Kodi problem. Obviously you have an IR receiver, which is picking up a signal from your controller and Kodi is translating that into a command. What more explanation are you looking for?
Well ok then - here it is on one of the paste sites, I didn't realize that specifically was a requirement. http://paste.ubuntu.com/24852392/

As in regards to "Obviously you have an IR receiver, which is picking up a signal from your controller and Kodi is translating that into a command. What more explanation are you looking for?" I'm pretty sure that's not correct - both of the controllers are wired.

I guess what I'm looking for here is:
- How can I determine if the fault is with the hardware (controller sending phantom signals? USB controller on the pi generating phantom signals? Flirc sending random signals?) or software (Kodi doing something weird? OSMC/Linux doing something weird?) ?
- Further, can I narrow it down to a specific component?

I don't have a lot of experience with some of this hardware - is sending phantom control movements a normal way for wired game controllers to start indicating that they're bad? Or is the flirc sensitive enough to IR that normal sunlight might cause it to pick up signals?

I'm just puzzled by this behaviour...