How to get a seamless remote experience - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33) +--- Forum: General Support (https://forum.kodi.tv/forumdisplay.php?fid=111) +---- Forum: Linux (https://forum.kodi.tv/forumdisplay.php?fid=52) +---- Thread: How to get a seamless remote experience (/showthread.php?tid=104541) |
RE: How to get a seamless remote experience - Baxh - 2015-02-20 I followed the instructions to use the in kernel lirc. ir-keytable -t works as expected and translates my keypresses to keyboard commands: Code: # ir-keytable -t :( But Kodi does not react to them! Am I missing a step here? If I stop Kodi I can use my IR-remote to enter numbers in the console, so it works as it should, but why does kodi not find it? Some more info: Code: # ir-keytable Code: # ls -la /dev/input/ RE: How to get a seamless remote experience - immerc - 2015-02-28 Baxh, if you turn on debugging in Kodi do you see anything in the logs? Have you verified that the keymap in Kodi is set up right as in post #4? http://forum.kodi.tv/showthread.php?tid=104541&pid=828177#pid828177 RE: How to get a seamless remote experience - immerc - 2015-02-28 When I made a most recent upgrade the arrow keys on my remote stopped working properly. They were suddenly generating multiple keypresses. The rest of the remote keys continued to work fine. What it seems like is that there's another kernel module that is (mis)handling some of the inputs from the remote. When I use "ir-keytable -t" and "xev" at the same time, I can see that the direction buttons on the remote are generating events in "xev", but "ir-keytable" doesn't see them. With the rest of the keys I see both single events in "xev" and the corresponding events in "ir-keytable -t". Does anybody know what kernel module might be interfering? RE: How to get a seamless remote experience - adelaney - 2015-03-01 (2015-01-29, 02:27)fbacher Wrote: I have Ubuntu 14.10 and using the kernel IR support, not lirc. I have an mce remote working for a number of navigation keys (left, right, up, down, play, etc.) but I can not get it to work for simple things like KEY_BACKSPACE or KEY_C, which I remapped a few keys to in order to avoid the > 255 problem. This is very similar to my problem. Everything was working fine before 14.10, I'm just using a little Apple Remote, and after the upgrade my KEY_PLAYPAUSE and KEY_BACKSPACE no longer worked on the remote. I switched KEY_PLAYPAUSE to KEY_PLAY and it started working again...and KEY_BACKSPACE is, as you say, generated in ir-keytable -t but Kodi doesn't respond to it. In a somewhat related issue, my whole ir-keytable -w command no longer seems to work (post 14.10 upgrade) from rc.local, although it does still work in Terminal. Does anyone even know where kodi remaps ir-keytable key presses to kodi commands? For example in my keyboard keymap file I'm able to redefine <up> to VolumeUp during <FullscreenVideo>. So that my apple remote button (defined as KEY_UP) can change the volume while videos are playing. But I haven't the faintest idea how kodi knows to define KEY_UP to <up> in the first place. I know I didn't set that. I'd love to know because I have a feeling I wouldn't have to guess and check anymore how I should define my key presses in my ir-keytable configuration file. I've had to make edits to it in the past when things stopped working as well (for example at one point KEY_MENU no longer worked and I had to redefine it as KEY_BACKSPACE...now of course neither of them work. And then another time KEY_SPACE no longer worked, so I switched it to KEY_PLAYPAUSE. But this is all just guess and check because I don't know how or where kodi is interpreting my ir-keytable definitions). RE: How to get a seamless remote experience - Baxh - 2015-03-01 (2015-02-28, 22:47)immerc Wrote: Baxh, if you turn on debugging in Kodi do you see anything in the logs? @imerc I did turn on debugging in Kodi but nothing showed up, the keymap is also setup (I used dedicated lirc before and it worked). I am using a wireless XBOX 360 Controller now (which also didn't work initially, but I created a workaround RE: How to get a seamless remote experience - dadadavid - 2015-03-02 Hi, I am still relatively new to Kodi, but I ran into the same problems as mentioned above: purged lirc (ubuntu/apt-get) and used a custom keymapping with some keys from the IR remote working as soon as I reload the keymap (like KEY_PLAYPAUSE, KEY_FASTFORWARD) and some not (like KEY_0-KEY_9, KEY_F, KEY_POWER and KEY_BACKSPACE) - even though they are working just fine outside of Kodi (in a terminal for example). I also found some kind of clue as to where the problem is: If I killall -9 kodi the keys still won't work, but If I leave Kodi normally and (using the default Ubuntu login screen) log in again, everything works just fine (every key behaves just like it came from an ordinary keyboard). I am not using any custom kodi keymap.xml except one: Code: <f>ActivateWindow(Favourites)</f> I am using Ubuntu 14.10 and enabled autologin with a pure Kodi session (no gnome). Since I've already used the better part of the evening trying to set this damn IR remote up, I am not really motivated into doing more "research" into that, at least for today and probably the rest of the week, but maybe someone here could. RE: How to get a seamless remote experience - dadadavid - 2015-03-06 Well, seems like this is a timing issue. Not sure, wether Xorg or the rc.local script is timed wrong here, but anyway I fixed the issue by creating a custom udev rule for my ir-receiver: in (a new file) /etc/udev/rules.d/99-ir.rules Code: SUBSYSTEMS=="input" ATTRS{name}=="em28xx IR (em28178 #0)" SYMLINK+="pctv-remote" RUN+="/usr/bin/ir-keytable -d /dev/pctv-remote -c -w /etc/rc_keymaps/mini-remote" which adds a default device /dev/pctv-remote for my IR receiver and executes ir-keytable so to make sure the new rules are loaded as soon as the device turns up. if you want to try it too, you would have to find out the attributes/vendor information for your IR receiver and probably read a bit about udev rules. then just use the RUN+="..." part from above. Just to recap: don't put your ir-keytable command in rc.local RE: How to get a seamless remote experience - kees667 - 2015-03-06 Teedubb, the day has arrived that I want to try this. Had to unplug USB last week and couldnt find the port it was in. I opened the file you mention using "sudo nano /etc/udev/rules.d/99-disable-wakeup.rules" It opens a file that is completely empty. in fact it mentions new file so either I dont have this yet or it is in a different location. I am running the kodibuntu installation, so no seperate linux with kodi install, plain kodibuntu installed. screenshot: Which parts of your file do I need to get it to work? Do I need stuff like Code: #enable or just Code: #harmony/phillips ir Code: [code] and then with the input for my remote? (2015-02-09, 13:37)teeedubb Wrote: kees667 Glad you found that 3+ year old post useful RE: How to get a seamless remote experience - dixons - 2015-03-07 New to Linux Kodi 14.1 Helix Ubuntu 14.10,Intel Celeron NUC Have Bluetooth keyboard that does not wake up properly, have checked cat /proc/acpi/wakeup and lspci, but can't work out which device code applies to the bluetooth keyboard if any XHC1, PXSX and PWRB are enabled RE: How to get a seamless remote experience - teeedubb - 2015-03-07 kees667 The file doesnt exist by default, its user generated. Any thing with a # in front is a comment so it is ignored, the comments are there to be able identify devices easily. You dont need code tags either. How to get a seamless remote experience - kees667 - 2015-03-07 (2015-03-07, 01:57)teeedubb Wrote: kees667 The file doesnt exist by default, its user generated. Any thing with a # in front is a comment so it is ignored, the comments are there to be able identify devices easily. You dont need code tags either. Thanks. Will give it a try then! RE: How to get a seamless remote experience - nilaz - 2015-03-07 Hi! I installed OpenElec on an Asus Chromebox yesterday. Kodi works great with a keyboard connected. Then I connected a remote control as the picture shows: Nothing happens when I press the keys. I think it is a HP MCE Remote. After connecting it I killed the lircd as the guide propose. Running lsusb output this: Code: HTPC:~ # lsusb Then I start ir-keytable -c -p all -t and start pressing keys on the remote. Output is Code: ir-keytable -c -p all -t What have I missed to do? Regards, Niklas Re: How to get a seamless remote experience - nickr - 2015-03-07 Does this help? http://forum.kodi.tv/showthread.php?tid=182065 RE: How to get a seamless remote experience - nilaz - 2015-03-07 That was a bit interesting reading and it might answer the question why it did not work. I have the same receiver as fbacher in that thread and the solution in the thread was to use USB2 if I understood it correct. What I can read is that my ASUS ChromeBox only has USB3 connections. But, this is the output from lsusb: Code: HTPC:~ # lsusb Still, it does not work. :-( RE: How to get a seamless remote experience - FishOil - 2015-03-09 (2015-03-07, 23:38)nilaz Wrote: That was a bit interesting reading and it might answer the question why it did not work. As per the wiki, ALL topseed receivers do not work |