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

[PROBLEM] Xbian Beta 2 and GPIO remote how to??
Thank you for your donation

Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Threaded Mode | Linear Mode
Problem: Xbian Beta 2 and GPIO remote how to??
20th Dec, 2013, 04:13 PM
Post: #1
markosjal Offline
Registered
Posts: 20
Joined: Mar 2013
Reputation: 1
Xbian Beta 2 and GPIO remote how to??
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!
Find all posts by this user
Quote this message in a reply
20th Dec, 2013, 07:24 PM
Post: #2
Nakeman Offline
Registered
Posts: 28
Joined: Dec 2013
Reputation: 0
RE: Xbian Beta 2 and GPIO remote how to??
Check this post: http://forum.xbian.org/thread-1824-post-18976.html#pid18976
Find all posts by this user
Quote this message in a reply
21st Dec, 2013, 02:04 AM
Post: #3
markosjal Offline
Registered
Posts: 20
Joined: Mar 2013
Reputation: 1
RE: Xbian Beta 2 and GPIO remote how to??
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?
Find all posts by this user
Quote this message in a reply
11th Jan, 2014, 08:47 PM
Post: #4
freem@n Offline
Registered
Posts: 134
Joined: Aug 2013
Reputation: 5
RE: Xbian Beta 2 and GPIO remote how to??
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

RPi 1 Model B & RPi 2
Find all posts by this user
Quote this message in a reply
16th Jan, 2014, 06:10 PM
Post: #5
mk01 Offline
Registered
Posts: 2,485
Joined: Mar 2013
Reputation: 209
RE: Xbian Beta 2 and GPIO remote how to??
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.

Please read rules and do a search before you post! . FAQs . How to post log file? . Looking for answers? Please start here
Find all posts by this user
Quote this message in a reply
16th Jan, 2014, 11:47 PM
Post: #6
mk01 Offline
Registered
Posts: 2,485
Joined: Mar 2013
Reputation: 209
RE: Xbian Beta 2 and GPIO remote how to??
@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

Please read rules and do a search before you post! . FAQs . How to post log file? . Looking for answers? Please start here
Find all posts by this user
Quote this message in a reply
17th Jan, 2014, 08:14 AM
Post: #7
freem@n Offline
Registered
Posts: 134
Joined: Aug 2013
Reputation: 5
AW: RE: Xbian Beta 2 and GPIO remote how to??
(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

RPi 1 Model B & RPi 2
Find all posts by this user
Quote this message in a reply
22nd Jan, 2014, 05:48 AM
Post: #8
markosjal Offline
Registered
Posts: 20
Joined: Mar 2013
Reputation: 1
RE: Xbian Beta 2 and GPIO remote how to??
@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.
Find all posts by this user
Quote this message in a reply
« Next Oldest | Next Newest »
Post Reply 


Possibly Related Threads...
Thread: Author Replies Views: Last Post
  Remote over GPIO TFT Touch Display? dju010 14 41,718 24th Mar, 2014 02:42 PM
Last Post: mk01
  Xbian Beta 2, HoneyPi IR & HP Remote: Working Script! caintgetrite 1 8,169 1st Mar, 2014 05:36 AM
Last Post: IriDium
  [SOLVED] No remote on XBian Beta 2 Jan 6 18,114 5th Feb, 2014 02:14 PM
Last Post: f1vefour

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

Current time: 9th May, 2025, 07:23 PM Powered By MyBB, © 2002-2025 MyBB Group.