Linux Play, Pause, and Stop buttons not working on remote
#1
Ubuntu: Linux version 4.4.0-72-generic (buildd@lcy01-26) (gcc version 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.4) ) #93-Ubuntu SMP Fri Mar 31 14:07:23 UTC 2017 (Ubuntu 4.4.0-72.93-generic 4.4.49)
Install method: Distribution

Kodi: 17.3 Git:20170525-nogitfound Media Center Kodi
Copyright © 2005-2013 Team Kodi - http://kodi.tv

Hardware: i686

Remote control: Ortek Technology, Inc. IR receiver [VRC-1100 Vista MCE Remote Control]
usb info: Bus 006 Device 004: ID 05a4:9881

Problem description:
Some of the buttons on my remote control have stopped working when watching a movie since I went from Kodi 15.3 to 17.3. The ones I know that stopped working are Play, Pause, and Stop. FastForward and SkipNext are still working.

To reproduce the problem:
1. Start kodi
2. Select a movie to play
3. Start any movie
4. Push Play, Pause, or Stop. None of them work.
5. I pushed SkipNext once, then Alt-F4 to kill Kodi.

I have logging on for kodi. Looking at the log, kodi does not even see the Play, Pause, or Stop buttons when pushed. I have included the log file here: http://paste.ubuntu.com/25108116/

I have not (to my knowledge) messed with any keymaps.

The /etc/lirc/lircd.conf file is here: http://paste.ubuntu.com/25108050/

Here's some dmesg info:
dmesg | grep 05a4
[ 2.759546] usb 6-1.3: New USB device found, idVendor=05a4, idProduct=9881
[ 2.770542] input: HID 05a4:9881 as /devices/pci0000:00/0000:00:1c.0/0000:01:00.0/usb6/6-1/6-1.3/6-1.3:1.0/0003:05A4:9881.0002/input/input6
[ 2.824458] hid-generic 0003:05A4:9881.0002: input,hidraw1: USB HID v1.10 Keyboard [HID 05a4:9881] on usb-0000:01:00.0-1.3/input0
[ 2.857472] input: HID 05a4:9881 as /devices/pci0000:00/0000:00:1c.0/0000:01:00.0/usb6/6-1/6-1.3/6-1.3:1.1/0003:05A4:9881.0003/input/input7
[ 2.912648] hid-generic 0003:05A4:9881.0003: input,hidraw2: USB HID v1.10 Mouse [HID 05a4:9881] on usb-0000:01:00.0-1.3/input1
Reply
#2
In working on kodipup, I found a fix for vrc-1100 buttons.

Lirc is not needed.

With a small change, vrc-1100 remote works out of the box.

You will need to create a script

Quote:#!/bin/sh
# fix vrc-1100 keymap, switched channels and volume buttons. Volume now works smoothly.
xmodmap ~/.kodi-xmodmap

#brings kodi up fullscreen
kodi -fs

# fix vrc-1100 keymap, changes channels and volume buttons back to normal.
xmodmap ~/.xmodmap



.kodi-xmodmap


Quote:! -*- coding: utf-8 -*-
! VRC-1100 works mostly out of the box
! Some programs have trouble recognizing certain buttons

! This is fixed by replacing missing keysym's
! Used xev to find keycodes
! Switched volume and channel to get volume to work smoothly


keycode 223 = XF86Sleep
keycode 178 = XF86HomePage

keycode 160 = XF86AudioMute
keycode 99 = XF86AudioRaiseVolume
keycode 105 = XF86AudioLowerVolume

keycode 162 = XF86AudioPlay
keycode 164 = XF86AudioStop

keycode 144 = XF86AudioPrev
keycode 153 = XF86AudioNext

keycode 176 = Prior
keycode 174 = Next


.xmodmap


Quote:! -*- coding: utf-8 -*-
! VRC-1100 works mostly out of the box
! Some programs have trouble recognizing certain buttons

! This is fixed by replacing missing keysym's
! Used xev to find keycodes
! Changes volume and channel buttons back to normal


keycode 223 = XF86Sleep
keycode 178 = XF86HomePage

keycode 160 = XF86AudioMute
keycode 99 = Prior
keycode 105 = Next

keycode 162 = XF86AudioPlay
keycode 164 = XF86AudioStop

keycode 144 = XF86AudioPrev
keycode 153 = XF86AudioNext

keycode 176 = XF86AudioRaiseVolume
keycode 174 = XF86AudioLowerVolume


Put these two files into your home directory.

Create a icon on your desktop, that calls this script

This script switches your channel buttons, and volume buttons
Calls kodi full screen
An after exiting kodi, switches channel buttons, and volume buttons back to normal.
Reply
#3
Good try, Laser3, but it misses the mark just a little. The buttons that aren't working for me are Play, Pause, and Stop - all video controls. The audio controls are not interesting to me, only because I control my audio with a universal remote (thru my receiver). I tried to use xev to get the scan codes for Play, Pause, and Stop but they aren't even getting to xev in an xterm window, much less to kodi.

I need to know how to get them to show up anywhere. Then maybe I can figure out how to get them to kodi, perhaps with xmodmap.

Any idea why the scan codes are getting intercepted?
Reply
#4
make sure you don't have a custom keymap in ~/.kodi/userdata/keymaps
Or remap the buttons using the keymap editor addon.

If it still doesn't work: Debug Log
Reply
#5
Smile 
I did a couple of things which fixed my problem. The first was to use lirc the way MythTV suggested here: https://www.mythtv.org/wiki/VRC-1100_Ort...one_Remote. The second thing was to look for custom keymaps and I found them: I had gone into X11 default settings and trapped the Play and Stop buttons to see if that fixed my problem. As soon as I turned off those (in cooperation with the MythTV lirc fix), everything worked.

Thanks, Lasar3 and wsnipex, for your suggestions.
Reply
#6
Glad that you got it fixed.

Questions:

I am still basically a linux newbie ?

I have a lot of questions. What part of the operating systems caused your problem?

Would you say this problem is peculiar to Linux version 4.4.0-72-generic kernel?

Was it caused by Ubuntu 5.4.0-6ubuntu1~16.04.4?

Or it caused by the unity desktop?

And how did you trap the play and stop keys in x11 default settings?
Reply

Logout Mark Read Team Forum Stats Members Help
Play, Pause, and Stop buttons not working on remote0