Forum
[PROBLEM] Xbian Beta 2 and GPIO remote how to?? - Printable Version

+- Forum (http://forum.xbian.org)
+-- Forum: Hardware (/forum-7.html)
+--- Forum: Remotes and CEC support (/forum-26.html)
+--- Thread: [PROBLEM] Xbian Beta 2 and GPIO remote how to?? (/thread-1912.html)



Xbian Beta 2 and GPIO remote how to?? - markosjal - 20th Dec, 2013 04:13 PM

I have seen a lot of GPIO remote how tos on Raspberry Pi , but I do not think that they necessarily apply to xbian Beta 2

I have added
lirc_rpi to /etc/modules

and at least now I see
mode2: could not open /dev/lirc0
mode2: default_init(): Device or resource busy


I get nothing on irw

I am using tsop38238

Any help appreciated!


RE: Xbian Beta 2 and GPIO remote how to?? - Nakeman - 20th Dec, 2013 07:24 PM

Check this post: http://forum.xbian.org/thread-1824-post-18976.html#pid18976


RE: Xbian Beta 2 and GPIO remote how to?? - markosjal - 21st Dec, 2013 02:04 AM

There was some partial help on that thread. The part I found most useful was

sudo modprobe lirc_rpi
sudo kill $(pidof lircd)
sudo mode2 -d /dev/lirc0

I can then see mode2 output when pressing buttons (even from the next room!)

I also copied the lircd.conf for apple remote from this page to start with
http://www.raspberrypi.org/phpBB3/viewtopic.php?f=45&t=7798&start=100

However it seems I still need to kill lircd with the above command after restart

as I can see little correlation to the examples of /etc/lirc/hardware.conf in xbian and samples on varios pages I am not sure what needs to be done there and this is part of the reason I ask for info related to Xbian Beta2

Now I am still confused on where to go next

I would also like to have an Apple remote config file that behaves as it does on Apple TV but I think the long keypresses are the challenge there. Does anyone have one with long keypresses?

Please , anyone?


RE: Xbian Beta 2 and GPIO remote how to?? - freem@n - 11th Jan, 2014 08:47 PM

I'm very interested in this topic as well. I was only using Yatse on XBian but now I think it's time to have a real remote again. I have a GPIO IR Receiver which should work with my MCE Remote (tested with OE a while ago). I also have some Bluetooth remotes like the PS3 BD Remote and the Wii Remote. but I unfortunately couldn't find a nice howto for Beta 2 Sad I think it's such an important part of the overall experience it should somehow be integrated in the XBian settings addon to help beginners get started


RE: Xbian Beta 2 and GPIO remote how to?? - mk01 - 16th Jan, 2014 06:10 PM

anyone having spare IR receiver ? send it to me, I will look into it. I have both remote types, white - silver.

or maybe I will try sharing of the IR from Mac via USBIP -> RPI. maybe it works.


RE: Xbian Beta 2 and GPIO remote how to?? - mk01 - 16th Jan, 2014 11:47 PM

@markosjal

long presses work with atvclient. but atvclient is limited only to Apple IR Receivers, … ? is it true ? so can't test another receiver (don't have), but also long press can be configured with lircrc and irsend SIMULATE.

lircrc can react on key repeats and irsend SIMULATE can send any event you need. you just add it to lircd.conf for your remote. this are documents I followed.

http://www.lirc.org/html/configure.html - topic lircrc
http://wiki.xbmc.org/index.php?title=Apple_remote - topic 4 (linux)
man irsend (SIMULATES events in format of "irw")
https://github.com/xbmc/xbmc/blob/master/system/Lircmap.xml - in case remap is needed, but actually I think better is just adjusting KEY names in lircd.conf


AW: RE: Xbian Beta 2 and GPIO remote how to?? - freem@n - 17th Jan, 2014 08:14 AM

(16th Jan, 2014 06:10 PM)mk01 Wrote:  anyone having spare IR receiver ? send it to me, I will look into it.

You can easily build a good IR Receiver yourself for approx. 1€. All you need is this tiny receiver called tsop something and 3 cables. just search for "GPIO IR TSOP Raspberry Pi" or so online and you should come up with some good articles. this one connects directly to the GPIO Port which is great for me because you don't have to "waste" a USB Port.
----------------
this is how my receiver looks like:


Please excuse the cable mess Tongue


RE: Xbian Beta 2 and GPIO remote how to?? - markosjal - 22nd Jan, 2014 05:48 AM

@mk01
Yes I am aware of that but I can also tell you that it is the best code for Apple Remote on Linux! Maybe it can be modded for GPIO?

Also as for the code you reference if you have already done so , maybe you shuld be more specific in your post. Vague posts are not helpful. I already have hit brick walls with LIRCMangled, atvclient with Apple sensor (that sometimes mysteriously does not work on any RPi distro) , and now I should endeavor for a new fix down the road that you say works but have offered no guidance for? There is a point where doing it onself gets ridiculous, especially when you claim you have already done it. Those tht have made those claims in the past in the end most always admit to a problem on xbian, or with long keypresses or something

If the Apple remote does not emulate behaviour excatly as on Apple TV it is pretty useless, because it does not have enough buttons.