Remote wonder PLUS help building in support, need advice - 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: Remote wonder PLUS help building in support, need advice (/showthread.php?tid=286135) |
Remote wonder PLUS help building in support, need advice - madhits - 2016-08-09 I am wondering if I can resurrect an old piece of hardware which is still awesome. Its the Remote Wonder Plus. its an x10 device. Its had a mixed history of support that comes and goes. Here is some links to support its had in previous versions of Ubuntu and I am wondering if I can get help with a script that adds hardware support into LibreElec. I am just looking for help with kernel driver support that I will add to my own build process. Milhouse has helped me add support for other hardware and this is a new one I am looking for. See: https://ubuntuforums.org/showthread.php?t=1875938 http://www.spinics.net/lists/linux-input/msg28006.html RW 1 & 2 support guide: http://myspew.com/projects/use-the-ati-remote-wonder-with-openelec-and-kodi Hope I can get some interest and help here taking the changes in the spinics link above and apply them to the ati_x10 plugin mentioned in the last link then add the ati_x10 plugin to my own LibreElec build with the current kernel. RE: Remote wonder PLUS help building in support, need advice - Milhouse - 2016-08-09 The ati_remote.c file is still in the 4.7 kernel, "drivers/media/rc/ati_remote.c". You could try adapting the patch from here, you'll also need to add the Kconfig and Makefile changes. Once you've got your patches together, create a file in your filesystem (eg. "~/projects/keep/patches/remotewonder.txt") then add "=master remotewonder.txt" to ipatches.dat, Use "./checkpatches.sh -rp linux -k" to confirm the patch applies cleanly before building (you'll find the patched source code in "~/projects/.unpack/linux-4.7"). Or just buy a FLIRC. RE: Remote wonder PLUS help building in support, need advice - madhits - 2016-08-09 (2016-08-09, 21:23)Milhouse Wrote: The ati_remote.c file is still in the 4.7 kernel, "drivers/media/rc/ati_remote.c". THANKS Milhouse! I have wanted to use this old remote for so long you have no idea. Ok so that patch will work with the new kernel sweet. The kconfig and makefile changes is what I am going to struggle with. Ill see if I can figure that out and post back after a few attempts at this. THX RE: Remote wonder PLUS help building in support, need advice - madhits - 2016-08-11 Milhouse I found the makefile inside projects/LibreELEC.tv/ but not sure if I am doing this right. So I add this line to the Makefile: Code: obj-$(CONFIG_INPUT_ATI_REMOTE_PLUS) += ati_remote_plus.o It looks like each of the Makefile points to a script but each of these scripts seems to be a part of the build process not a patch. So do I just take the ati_remote_plus.patch and put it in there? Or does it go into the projects/keep/patches/ directory would it go there, seems more logical? As for the kconfig, I know that is kernel config is that in /projects/LibreELEC.tv/config/ and do I put the config INPUT_ATI_REMOTE_PLUS in there as a new file? OR do I add those lines to the arch.x86_64? and is this the correct location? I think its a new file right? I tried to use the legacy_hardware.txt as a guide and I am trying to figure out if I'm on the right track. Also do I need to add the ati_remote_plus.c file into a directory or is it already part of the kernel or other drivers? Thanks for your direction on this. RE: Remote wonder PLUS help building in support, need advice - Milhouse - 2016-08-11 You need to patch the Linux 4.7 source code. Once you've got your patch for the Linux source code you then add a reference to your patch in ipatches.dat as I explained. This isn't the only way to add patches to LibreELEC but it will work for you. RE: Remote wonder PLUS help building in support, need advice - madhits - 2016-08-11 (2016-08-11, 02:47)Milhouse Wrote: You need to patch the Linux 4.7 source code. So that's related to the ati_remote_plus.c file right? That's the kernel patch/driver? Anymore you can tell me? I'm not sure how to patch the source code, or update this patch. I think that's what you are getting at? RE: Remote wonder PLUS help building in support, need advice - Milhouse - 2016-08-11 I've just tried to apply the patch from the wiki and it's (unsurprisingly) useless, so forget it. Much of it has already been applied in later kernels, so you probably don't need it anyway (or the Kconfig/Makefile changes). However, looking at the 4.7 kernel source, and the LE linux.x86_64.conf, it's apparent that this remote should already be enabled in your LE build since CONFIG_RC_ATI_REMOTE=m is already being set, and the ati_remote.ko kernel module is included in the build . In which case, there's nothing else you should need to do to get this driver working. However if the remote still isn't working, then there's a problem elsewhere. RE: Remote wonder PLUS help building in support, need advice - madhits - 2016-08-12 (2016-08-11, 06:55)Milhouse Wrote: I've just tried to apply the patch from the wiki and it's (unsurprisingly) useless, so forget it. Much of it has already been applied in later kernels, so you probably don't need it anyway (or the Kconfig/Makefile changes). I will give it a try. It will likely work but not fully. The issue in the past was that the RW 1 and RW 2 worked fine. It was the 3 which used a slightly different frequency that could not be used with kodi. Ill see what I come up with. THX UPDATE: It does not work at all. Nothing happens all buttons. RE: Remote wonder PLUS help building in support, need advice - Milhouse - 2016-08-12 Sorry, can't help you. Two out of three isn't bad. RE: Remote wonder PLUS help building in support, need advice - madhits - 2016-08-13 (2016-08-12, 23:53)Milhouse Wrote: Sorry, can't help you. Two out of three isn't bad. But the patch you pointed me towards at the mythtv wiki shows how to make it work. Why wont that work? Can you explain what is missing? The RM1 and RM2 were not true x10 devices the 3 is full X10 that is the issue that was faced int he past. The remote is awesome as it works through walls and even floors in my house. While listening to music I can turn it up and switch tracks from rooms away, unlike my bluetooth that goes out just 1 room away. RE: Remote wonder PLUS help building in support, need advice - Milhouse - 2016-08-13 The patch is for kernel 2.6.31. You're building with kernel 4.7. The wiki patch no longer applies on top of 4.7. I don't know what is missing, you'll need to ask on a site that supports your ATI hardware, or find someone with the hardware that has it working with a current kernel. You should at least look to see if the module is loading using "lsmod | grep ati", and if "ati_remote" is not listed then try "modprobe ati_remote". But beyond that I don't know as I don't have this hardware - you'll need to work this out for yourself, I'm afraid. RE: Remote wonder PLUS help building in support, need advice - nickr - 2016-08-14 Here is the modinfo output for the module, it gives the developer's name and email address, as well as parameters you can add - in particular a debug option. Eg Code: modprobe ati_remote debug=1 Code: OfficeTest:~ # modinfo ati_remote RE: Remote wonder PLUS help building in support, need advice - madhits - 2016-08-19 (2016-08-14, 08:56)nickr Wrote: Here is the modinfo output for the module, it gives the developer's name and email address, as well as parameters you can add - in particular a debug option. Eg A couple of years ago I contacted torrey he got back to me with the following. I wonder if this old patch is any help? Code: If like me you have an ATI Remote Wonder in his "plus" version, you could not make it work properly with the "ati_remote" basic module. OR THIS TOPIC: http://forum.kodi.tv/showthread.php?tid=57628 |