Kodi Community Forum

Full Version: [Linux] Pause behaves weirdly after Dharma upgrade
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I've recently upgraded my Debian HTPC to Dharma. Now pressing the pause button on the remote does not actually pause the video (it did before), instead it has some sort of hiccup. If the video is paused (by pressing Enter twice) and I press pause, the video advances a bit.

To my untrained eye, it looks like XBMC is reading the key as two different OnKey events. Any idea why this is happening?

Code:
04:04:50 T:140286334650432 M:1898840064   DEBUG: LIRC: Update - NEW at 900773:77 0 KEY_PAUSE usb-15c2_0038-event-mouse (KEY_PAUSE)
04:04:50 T:140286334650432 M:1898840064   DEBUG: SDLKeyboard: scancode: 127, sym: 19, unicode: 0, modifier: 0
04:04:50 T:140286334650432 M:1898840064   DEBUG: OnKey: 61472 pressed, action is Pause
04:04:50 T:140285749217040 M:1898840064   DEBUG: DllPostProc: Using libpostproc system library
04:04:50 T:140286334650432 M:1898840064   DEBUG: CAnnouncementManager - Announcement: PlaybackResumed from xbmc
04:04:50 T:140286334650432 M:1898840064   DEBUG: CGUIAudioManager::DeInitialize
04:04:50 T:140285740824336 M:1898840064   DEBUG: CDVDPlayerAudio:: Discontinuity - was:330531615.356678, should be:330541555.228296, error:9939.871618
04:04:50 T:140286334650432 M:1898840064   DEBUG: OnKey: 230 pressed, action is Pause
04:04:50 T:140286334650432 M:1898840064   DEBUG: CAnnouncementManager - Announcement: PlaybackPaused from xbmc
04:04:50 T:140286334650432 M:1898840064   DEBUG: CGUIAudioManager::Initialize
04:04:50 T:140285740824336 M:1898840064 WARNING: CALSADirectSound::CALSADirectSound - device is not able to pause playback, will flush and prefix with 8131 frames
04:07:51 T:140286334650432 M:1898643456   DEBUG: ADDON: cpluff: 'Could not return information about unknown plug-in Dim.'
Ok I fixed this. I'm not entirely sure what's happening or why, but maybe it's one odd instance of that issue with keypresses being detected twice.

My Veris RM200 remote was set up through Lircmap.xml with XBMC only knowing about the 'programmable' keys using inputlirc. The arrows, enter, backspace, enter, etc were handled as keyboard presses i.e. they were not in Lircmap.xml.

After upgrading to Dharma, the Pause key was being handled like a multimedia key on a keyboard and also via Inputlirc as a KEY_PAUSE press on the remote.

A quick and dirty fix was to rem out the following line from Lircmap.xml

Code:
<pause>KEY_PAUSE</pause>

Option #1 from the StreamZap wiki page would probably work as well, but it seems like I'd be losing the ESC key, seeing as only the back/backspace key is mapped, and I don't want that.
Same issue with MCE.