OpenELEC / OpenELEC.tv

OpenELEC - The living room PC for everyone
http://openelec.tv
1.6k stars 887 forks source link

Snapstream Firefly needs the Kodi context menu button #3885

Open RacerXXX opened 9 years ago

RacerXXX commented 9 years ago

Zotac Atom PC.

Running OpenELEC-Generic.x86_64-5.0.1.tar

The Snapstream Firefly works correctly but does not have the EPG or TITLE button to activate the Kodi context menu. An alternative would be to instead use a spare key. One possibility would be the KEY_OPTION and it's available, plus it has the benefit of a logical location on the remote control.

/storage/.kodi/userdata/

create a Lircmap.xml file

The remote device is "devinput" The function name for the context menu is "title" The key name is "KEY_OPTION"

save as Lircmap.xml and reboot your PC

Test out the Option Key on the Snapstream Firefly to open the Kodi Context Menu...

sraue commented 9 years ago

can you paste here the output from cat /proc/bus/input/devices

RacerXXX commented 9 years ago

Sure, let me know if you need any more info....

OpenELEC (official) Version: 5.0.1 LivingRm:~ # cat /proc/bus/input/devices I: Bus=0019 Vendor=0000 Product=0001 Version=0000 N: Name="Power Button" P: Phys=PNP0C0C/button/input0 S: Sysfs=/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0C0C:00/input/input0 U: Uniq= H: Handlers=kbd event0 B: PROP=0 B: EV=3 B: KEY=10000000000000 0

I: Bus=0019 Vendor=0000 Product=0001 Version=0000 N: Name="Power Button" P: Phys=LNXPWRBN/button/input0 S: Sysfs=/devices/LNXSYSTM:00/LNXPWRBN:00/input/input1 U: Uniq= H: Handlers=kbd event1 B: PROP=0 B: EV=3 B: KEY=10000000000000 0

I: Bus=0003 Vendor=046d Product=c52b Version=0111 N: Name="Logitech Unifying Device. Wireless PID:4024" P: Phys=usb-0000:00:06.0-1:1 S: Sysfs=/devices/pci0000:00/0000:00:06.0/usb4/4-1/4-1:1.2/0003:046D:C52B.0003/0003:046D:C52B.0004/input/input5 U: Uniq= H: Handlers=sysrq kbd mouse0 event2 B: PROP=0 B: EV=12001f B: KEY=3007f 0 0 83ffff17aff32d bf54444600000000 ffff0001 130f978b17c007 ffff73fad9415fff febeffdfffefffff fffffffffffffffe B: REL=1c3 B: ABS=100000000 B: MSC=10 B: LED=1f

I: Bus=0000 Vendor=0000 Product=0000 Version=0000 N: Name="HDA NVidia Front Mic" P: Phys=ALSA S: Sysfs=/devices/pci0000:00/0000:00:08.0/sound/card0/input9 U: Uniq= H: Handlers=event4 B: PROP=0 B: EV=21 B: SW=10

I: Bus=0000 Vendor=0000 Product=0000 Version=0000 N: Name="HDA NVidia Rear Mic" P: Phys=ALSA S: Sysfs=/devices/pci0000:00/0000:00:08.0/sound/card0/input10 U: Uniq= H: Handlers=event5 B: PROP=0 B: EV=21 B: SW=10

I: Bus=0000 Vendor=0000 Product=0000 Version=0000 N: Name="HDA NVidia Line" P: Phys=ALSA S: Sysfs=/devices/pci0000:00/0000:00:08.0/sound/card0/input11 U: Uniq= H: Handlers=event6 B: PROP=0 B: EV=21 B: SW=2000

I: Bus=0000 Vendor=0000 Product=0000 Version=0000 N: Name="HDA NVidia Line Out" P: Phys=ALSA S: Sysfs=/devices/pci0000:00/0000:00:08.0/sound/card0/input12 U: Uniq= H: Handlers=event7 B: PROP=0 B: EV=21 B: SW=40

I: Bus=0000 Vendor=0000 Product=0000 Version=0000 N: Name="HDA NVidia Front Headphone" P: Phys=ALSA S: Sysfs=/devices/pci0000:00/0000:00:08.0/sound/card0/input13 U: Uniq= H: Handlers=event8 B: PROP=0 B: EV=21 B: SW=4

I: Bus=0000 Vendor=0000 Product=0000 Version=0000 N: Name="HDA NVidia HDMI/DP,pcm=3 Phantom" P: Phys=ALSA S: Sysfs=/devices/pci0000:00/0000:00:08.0/sound/card0/input14 U: Uniq= H: Handlers=event9 B: PROP=0 B: EV=21 B: SW=140

I: Bus=0003 Vendor=0bc7 Product=0008 Version=0100 N: Name="X10 WTI RF receiver" P: Phys=usb-0000:00:04.0-6/input0 S: Sysfs=/devices/pci0000:00/0000:00:04.0/usb3/3-6/3-6:1.0/rc/rc0/input21 U: Uniq= H: Handlers=kbd event3 B: PROP=0 B: EV=100013 B: KEY=4000000108c0320 230016100000000 0 c000 4180c0000c01 8e168100000000 1400140000ffc B: MSC=10

sraue commented 9 years ago

hmm for this remote it seems we dont have a config, can you privide a image from this remote, where i can see all buttons?

RacerXXX commented 9 years ago

This one is pretty good

http://www.digitaldingus.com/reviews/snapstream/firefly/firefly.jpg

This one has an enlarge the photo option

http://www.remotecentral.com/firefly/

RacerXXX commented 9 years ago

Also, I'm not sure why the "KEY_C" is listed twice in remote.xml?

table snapstream_firefly, type: OTHER 0x2c KEY_ZOOM 0x2e KEY_C 0x02 KEY_CLOSE 0x0d KEY_1 0x0e KEY_2 0x0f KEY_3 0x10 KEY_4 0x11 KEY_5 0x12 KEY_6 0x13 KEY_7 0x14 KEY_8 0x15 KEY_9 0x17 KEY_0 0x16 KEY_BACK 0x18 KEY_KPENTER 0x09 KEY_VOLUMEUP 0x08 KEY_VOLUMEDOWN 0x0a KEY_MUTE 0x0b KEY_CHANNELUP 0x0c KEY_CHANNELDOWN 0x00 KEY_VENDOR 0x2e KEY_INFO 0x2f KEY_OPTION 0x1d KEY_LEFT 0x1f KEY_RIGHT 0x22 KEY_DOWN 0x1a KEY_UP 0x1e KEY_OK 1c KEY_MENU 0x20 KEY_EXIT 0x27 KEY_RECORD 0x25 KEY_PLAY 0x28 KEY_STOP 0x24 KEY_REWIND 0x26 KEY_FORWARD 0x29 KEY_PAUSE 0x2b KEY_PREVIOUS 0x2a KEY_NEXT 0x06 KEY_AUDIO 0x05 KEY_IMAGES 0x04 KEY_DVD 0x03 KEY_TV 0x07 KEY_VIDEO 0x01 KEY_HELP 0x2d KEY_MODE 0x19 KEY_A 0x1b KEY_B 0x21 KEY_C 0x23 KEY_D

irw 2e 0 KEY_C dev

RacerXXX commented 8 years ago

Update

My atom system became corrupted with the kodi startup in an endless loop so I had the opportunity to reload.

OpenELEC Generic.x86_64-5.0.8

Moreover, I also had the opportunity to test the CUBOX-I2EX RT

OpenELEC 5.0.8 (arm)

The context menu button is missing on the Snapstream Firefly Remote, as an alternative I created a context button using the option key.

cd /storage/.kodi/userdata/ open up nano The remote device is "devinput" The function name for the context menu is "title" The key name is "KEY_OPTION"

Save the file as Lircmap.xml, reboot, and now the context menu works for both systems.

RacerXXX commented 8 years ago

Two weeks ago I upgraded my atom box to Nivdia Legaacy [Stable] OpenELEC 6.0.0 (x86_64). Also upgraded my CUBOX-I2EX RT to Freescale iMX6 Build [Stable] OpenELEC 6.0.0 (x86_64). The upgrade didn't overwrite my context menu lirc button so no changes were necessary.

chewitt commented 8 years ago

I'm closing the ticket - appears to be self-solved. Thanks.

RacerXXX commented 8 years ago

It's not fixed there is only a workaround to create a button in lirc that has existed since the day this ticket was opened.

The snapstream firefly Kodi context menu button is missing, it doesn't exist, so

cd /storage/.kodi/userdata/

open up nano

KEY_OPTION

If the snapstream firefly exists, then set the tile to the KEY_OPTION like this

KEY_OPTION

Can this change be added into the code for Remotes? Or does it have to be a custom button? That's the question still to be addressed.

Thanks

On Mon, Dec 21, 2015 at 11:01 PM, Christian Hewitt <notifications@github.com

wrote:

Closed #3885 https://github.com/OpenELEC/OpenELEC.tv/issues/3885.

— Reply to this email directly or view it on GitHub https://github.com/OpenELEC/OpenELEC.tv/issues/3885#event-498143849.

RacerXXX commented 8 years ago

Update

I had the opportunity to test OpenELEC-imx6.arm-6.95.3.img.gz on my CUBOX-I2EX RT today.

OpenELEC (official) Version: 6.95.3 beta:~ # cat /proc/bus/input/devices I: Bus=0003 Vendor=046d Product=c52b Version=0111 N: Name="Logitech Unifying Device. Wireless PID:4024" P: Phys=usb-ci_hdrc.1-1:1 S: Sysfs=/devices/soc0/soc.1/2100000.aips-bus/2184200.usb/ci_hdrc.1/usb2/2-1/2-1:1.2/0003:046D:C52B.0003/0003:046D:C52B.0004/input/input0 U: Uniq= H: Handlers=sysrq kbd mouse0 event0 B: PROP=0 B: EV=12001f B: KEY=837fff 72ff32d bf544446 0 0 ffff0001 30f94 8b17c007 ffff73fa d9415fff febeffdf ffefffff ffffffff fffffffe B: REL=1c3 B: ABS=1 0 B: MSC=10 B: LED=1f

I: Bus=0019 Vendor=0001 Product=0001 Version=0100 N: Name="gpio_ir_recv" P: Phys=gpio_ir_recv/input0 S: Sysfs=/devices/soc0/ir-receiver.23/rc/rc0/input1 U: Uniq= H: Handlers=kbd event1 B: PROP=0 B: EV=100013 B: KEY=fff 0 0 200 108fc32e 2b76051 0 0 0 7 158000 4192 4001 9e9680 0 0 10004000 B: MSC=10

I: Bus=0000 Vendor=0000 Product=0000 Version=0000 N: Name="MCE IR Keyboard/Mouse (gpio-rc-recv)" P: Phys=/input0 S: Sysfs=/devices/virtual/input/input2 U: Uniq= H: Handlers=sysrq kbd mouse1 event2 B: PROP=0 B: EV=100017 B: KEY=30000 0 7 ff87207a c14057ff febeffdf ffefffff ffffffff fffffffe B: REL=3 B: MSC=10

I: Bus=0003 Vendor=0bc7 Product=0008 Version=0100 N: Name="X10 WTI RF receiver" P: Phys=usb-ci_hdrc.0-1/input0 S: Sysfs=/devices/soc0/soc.1/2100000.aips-bus/2184000.usb/ci_hdrc.0/usb1/1-1/1-1:1.0/rc/rc1/input3 U: Uniq= H: Handlers=kbd event3 B: PROP=0 B: EV=100013 B: KEY=4000000 108c0320 2300161 0 0 0 0 c000 4180 c0000c01 8e1681 0 14001 40000ffc B: MSC=10

The context menu button is missing from the Snapstream Firefly Remote, as an alternative I created a context button using the option key.

cd /storage/.kodi/userdata/

open up nano

            <lircmap> 
                    <remote device="devinput"> 
                    <title>KEY_OPTION</title> 
                    </remote> 
             </lircmap> 

Save the file as Lircmap.xml, reboot, and now the context menu works properly....