Forum
  • Search
  • Member List
  • Calendar
Hello There, Guest! Login Register — Login with Facebook

Use a remote without LIRC
Thank you for your donation

Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Threaded Mode | Linear Mode
Use a remote without LIRC
12th May, 2015, 08:00 PM
Post: #2
mikecar Offline
Registered
Posts: 2
Joined: May 2015
Reputation: 0
RE: Use a remote without LIRC
I found the answer myself, and it is a beut!

kodi contains some (dangerous IMHO) code to "auto-detect" linux input devices, and decide whay to do with them. Apparently, a device is considered a "keyboard" if it can generate AT LEAST 20 ascii characters. In my case, the remote DOES simulate a keyboard, but not completely. Therefore, kodi decides to ignore it.

The workaround is this : when setting up the kernel keymap for an input device that generates keyboard events, add some "dummy" scancodes, to get the number of possible key events to be >20! silly, but works! and, since the remote will never actually send those scancodes, the workaround should not hurt...

One last note : keep the scancodes <255, and preferrably < 127, as kodi has these limits hard-wired
Find all posts by this user
Quote this message in a reply
« Next Oldest | Next Newest »
Post Reply 


Messages In This Thread
Use a remote without LIRC - mikecar - 12th May, 2015, 10:09 AM
RE: Use a remote without LIRC - mikecar - 12th May, 2015 08:00 PM

Possibly Related Threads...
Thread: Author Replies Views: Last Post
  Hama MCE Remote: does not care about lirc kometa_triatlon 22 70,942 7th Mar, 2014 05:39 AM
Last Post: teekay

  • View a Printable Version
  • Send this Thread to a Friend
  • Subscribe to this thread
Forum Jump:

Current time: 5th Jun, 2025, 02:20 AM Powered By MyBB, © 2002-2025 MyBB Group.