Find the answer to your Linux question:
Results 1 to 2 of 2
I'm trying to get mythtv running on a macbook (2nd gen) and have got to the point where most things are working. But I am struggling with the IR Receiver ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Aug 2010
    Posts
    2

    infrared remote on macbook/debian


    I'm trying to get mythtv running on a macbook (2nd gen) and have got to the point where most things are working. But I am struggling with the IR Receiver and a non-apple remote control. I have lirc installed and the IR device is detected as an inbuilt HID usb device and the device file /usr/usb/hiddev0 works as the lirc device for the apple remote.

    Trouble is the apple remote with its 6 buttons is not very useful in mythtv. I have a leadtek DTV tuner and it came with a remote that has lots of buttons so I would like to use that. Unfortunately, even getting the raw data from the remote doesn't seem to return valid data for that or any other remote I have apart from the apple remote.

    I'm running

    cat /dev/usb/hiddev0 | od -v -t x1

    to see the raw data from the remote. For the apple remote I usually get 32 bytes/button push and bytes 20 and 28 change for each button. All the other remotes return the same 32 bytes regardless of the button pushed. These are:

    00 00 00 ff 00 00 00 00 00 00 00 ff 00 00 00 00
    00 00 00 ff 00 00 00 00 00 00 00 ff 00 00 00 00

    For the apple remote I get

    00 00 00 ff 87 00 00 00 00 00 00 ff ee 00 00 00
    00 00 00 ff f0 00 00 00 00 00 00 ff xx 00 00 00

    where xx is different for each button. The values for the codes in the lircd.conf for each button are 32 bit quantities made up of the 5th, 13th, 21st and 29th bytes (ie: for the six apple remote button codes you have 0x87EEF0xx where xx is 0B, 0D, 08, 07, 04 or 02)

    Has anyone got this working for a macbook with non-apple remote? Any other pointers on what I could look at next?

    thanks,

  2. #2
    Just Joined!
    Join Date
    Aug 2010
    Posts
    2
    To answer my own question... it seems that the IR protocol used by apple for their remote is not compatible with other remotes.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •