RasPlex & Raspberry Pi with RemotePi Board - How to config remote?

Hello RasPlex Team,

to my new Raspberry Pi 3 are an RemotePi Board attached… Power ON OFF works…

but…

What must i do do configurate an special remote? I wood like to use the silver Apple Remote…

i have made an own lircd.conf file but it don´t work… but it don´t working. What must i do?

This is my lircd.conf:
begin remote name appleremote bits 8 flags SPACE_ENC|CONST_LENGTH eps 30 aeps 100 header 9058 4422 one 624 1595 zero 624 497 ptrail 623 repeat 9058 2194 pre_data_bits 16 pre_data 0x77E1 post_data_bits 8 post_data 0x4E gap 107798 toggle_bit_mask 0x0 begin codes KEY_UP 0xD0 KEY_DOWN 0xB0 KEY_LEFT 0x10 KEY_RIGHT 0xE0 KEY_OK 0xBA 0x20 KEY_MENU 0x40 KEY_PLAYPAUSE 0x7A 0x20 end codes end remote

regards
Massaguana

Okay, here are an newer config

begin remote

  name  Apple_A1294
  bits            8
  flags           SPACE_ENC|CONST_LENGTH
  eps             30
  aeps            100

  header          9140  4390
  one             608   1618
  zero            608   518
  ptrail          610
  repeat          9141  2157
  pre_data_bits   16
  pre_data        0x77E1
  post_data_bits  8
  post_data       0x79
  gap             107219
  toggle_bit_mask 0x0

      begin codes
          KEY_UP                   0x50                      #  Was: UP
          KEY_DOWN                 0x30                      #  Was: DOWN
          KEY_LEFT                 0x90                      #  Was: LEFT
          KEY_RIGHT                0x60                      #  Was: RIGHT
          KEY_PLAY                 0xFA                      #  Was: PLAY
          KEY_MENU                 0xC0                      #  Was: MENU
          KEY_OK                   0x3A                      #  Was: OK
      end codes

end remote

But is it not possible to edit the file /etc/lirc/lircd.config.rpi

What must i do to edit this file?

Regards
Massaguana

PS: I hate Markdown!!!

You cannot edit that file, any new lircd.conf file should be placed in /storage/.config.

This will take precedence over the default file on boot.

Regards

Okay, safe an new lircd.conf file and reboot… but nothing change, remote don´t work

this is my remote: http://lirc.sourceforge.net/remotes/apple/A1294

i think is it an bug… with an “Standart DreamMultimedia” Remote that stored in lircd.config.rpi are don´t work too

Is it possible to test the lirc funktion with “$ sudo irw” ?

Okay, here are an fresh debug.log with press all remote keys one time…

I don´t see anything from an key pressing…

Have you checked with MSL Digital that the board supports the Apple Remote? And if so can they recommend a working lircd.conf file.

Regards

Yes, the MSL Homepage and Support say an Apple Remote are supportet when you are use an lircd.conf from the lirc homepage.

This is this one: http://lirc.sourceforge.net/remotes/apple/A1294 Checked its the correct config for my remote, it is an A1294…

Problem, the information that it is supported are all. No more Support…

Problem 2: The lirc tutorials don´t work with RasPlex, it looks like RasPlex work otherwise… With lirc is it possible to create this config by hand during you press the buttons…

Have you run irw to check the commands sent by the remote?

irrecord is the command to run to generate a lircd.conf.

I wood like check with “irw” but this command are don´t work with RasPlex… when i enter it and press some buttons nothing happend… no message, no error nothing…

waiting don´t change anything…

irw works perfectly well, either there is something wrong with your RemotePi board or you have no/duff batteries in your remote.

Regards

i don´t know… but the remotePi board are working with the ON OFF setup with my Apple Remote fine… Press the button an the Pi starts up or goes Off…
The Remote are working with an FLIRC USB Dongle fine too…

don´t know what can be broken when this all works…

Okay here are some Test´s with MSL Support:

“dtoverlay=lirc-rpi” are active at config.txt

connect over SSH at wrote:

killall lircd
mode2 -d /dev/lirc0

and Press Buttons are working. There are numbers scrolling…

But RasPlex ignores it… The command “irw” are don´t work

Okay, now it works to create an custom config with
irrecord -d /dev/lirc0 ~/lircd.conf

but
ìrsend appleremote_A1294

don´t work… command failed, remote unknow

Okay, some Days later… it works…

Here are an little Tutorial how i made it works…

1- Flash RasPlex Image to your SD-Card and plug in you Raspberry Pi and Start it to expand and finish the RasPlex Installation. Activate “RemotePi Board Support”. You must Reboot to make it Working.

2- Put the SD Card out and Change the “config.txt” file an enter the Line “dtoverlay=pi3-miniuart-bt-overlay” without “”

3- Copy this file http://www.briandorey.com/docs/Raspberry-Pi-3-UART-to-gpio-workaround/pi3-miniuart-bt-overlay.zip to the SD Card folder “overlays”. This Step 2 and 3 are only for Raspberry Pi 3, because he speck over other GPIO Ports to the RemotePi Board.

4- Restart you Raspberry Pi, login over SSH and write “systemctl disable hciuart” to disable bluetooth.

5- Now we Install the RemotePi Board Config Tool with “wget http://bit.ly/mslconfigtool” and “chmod +x mslconfigtool”. Now you can config your RemotePi Board with “./mslconfigtool”

6- Over SSH write “killall lircd” to Stop lirc, we wood like to config our remote…

7- “irrecord -d /dev/lirc0 ~/lircd.conf” open the learning tool. 2 times Enter ist Starts, you need to lines of pints by pressing all keys on your remote. I use an Apple Remote Silver A1294.

8- Now we must Set the ir coes to your Key. Di it with “irrecord -d /dev/lirc0 ~/lircd.conf”

9- Enter “KEY_UP” press Enter and Press the Up Buuton on your Remote… to this steps with all Buttons, KEY_DOWN, LEFT, RIGHT, MENU, PLAYPAUSE after finsiched press Enter to safe the new config.

looks like this:

RasPlex:~ irrecord -d /dev/lirc0 ~/lircd.conf

irrecord -  application for recording IR-codes for usage with lirc

Copyright (C) 1998,1999 Christoph Bartelmus(lirc@bartelmus.de)

This program will record the signals from your remote control
and create a config file for lircd.


A proper config file for lircd is maybe the most vital part of this
package, so you should invest some time to create a working config
file. Although I put a good deal of effort in this program it is often
not possible to automatically recognize all features of a remote
control. Often short-comings of the receiver hardware make it nearly
impossible. If you have problems to create a config file READ THE
DOCUMENTATION of this package, especially section "Adding new remote
controls" for how to get help.

If there already is a remote control of the same brand available at
http://www.lirc.org/remotes/ you might also want to try using such a
remote as a template. The config files already contain all
parameters of the protocol used by remotes of a certain brand and
knowing these parameters makes the job of this program much
easier. There are also template files for the most common protocols
available in the remotes/generic/ directory of the source
distribution of this package. You can use a template files by
providing the path of the file as command line parameter.

Please send the finished config files to <lirc@bartelmus.de> so that I
can make them available to others. Don't forget to put all information
that you can get about the remote control in the header of the file.

Press RETURN to continue.


Now start pressing buttons on your remote control.

It is very important that you press many different buttons and hold them
down for approximately one second. Each button should generate at least one
dot but in no case more than ten dots of output.
Don't stop pressing buttons until two lines of dots (2x80) have been
generated.

Press RETURN now to start recording.
................................................................................
Found const length: 107001
Please keep on pressing buttons like described above.
................................................................................
Space/pulse encoded remote control found.
Signal length is 67.
Found possible header: 9048 4434
Found trail pulse: 584
No repeat code found.
Signals are space encoded.
Signal length is 32
Now enter the names for the buttons.

Please enter the name for the next button (press <ENTER> to finish recording)
KEY_UP

Now hold down button "KEY_UP".

Please enter the name for the next button (press <ENTER> to finish recording)
KEY_DOWN

Now hold down button "KEY_DOWN".

Please enter the name for the next button (press <ENTER> to finish recording)
KEY_LEFT

Now hold down button "KEY_LEFT".

Please enter the name for the next button (press <ENTER> to finish recording)
KEY_RIGHT

Now hold down button "KEY_RIGHT".

Please enter the name for the next button (press <ENTER> to finish recording)
KEY_OK

Now hold down button "KEY_OK".

Please enter the name for the next button (press <ENTER> to finish recording)
KEY_MENU

Now hold down button "KEY_MENU".

Please enter the name for the next button (press <ENTER> to finish recording)
KEY_PLAYPAUSE

Now hold down button "KEY_PLAYPAUSE".

Please enter the name for the next button (press <ENTER> to finish recording)

Successfully written config file.

This are all Keys you can use:

! RasPlex:~ # irrecord --list-namespace
! KEY_0
! KEY_102ND
! KEY_10CHANNELSDOWN
! KEY_10CHANNELSUP
! KEY_1
! KEY_2
! KEY_3
! KEY_4
! KEY_5
! KEY_6
! KEY_7
! KEY_8
! KEY_9
! KEY_A
! KEY_AB
! KEY_ADDRESSBOOK
! KEY_AGAIN
! KEY_ALTERASE
! KEY_ANGLE
! KEY_APOSTROPHE
! KEY_ARCHIVE
! KEY_AUDIO
! KEY_AUX
! KEY_B
! KEY_BACK
! KEY_BACKSLASH
! KEY_BACKSPACE
! KEY_BASSBOOST
! KEY_BATTERY
! KEY_BLUE
! KEY_BLUETOOTH
! KEY_BOOKMARKS
! KEY_BREAK
! KEY_BRIGHTNESS_CYCLE
! KEY_BRIGHTNESSDOWN
! KEY_BRIGHTNESSUP
! KEY_BRIGHTNESS_ZERO
! KEY_BRL_DOT10
! KEY_BRL_DOT1
! KEY_BRL_DOT2
! KEY_BRL_DOT3
! KEY_BRL_DOT4
! KEY_BRL_DOT5
! KEY_BRL_DOT6
! KEY_BRL_DOT7
! KEY_BRL_DOT8
! KEY_BRL_DOT9
! KEY_C
! KEY_CALC
! KEY_CALENDAR
! KEY_CAMERA
! KEY_CANCEL
! KEY_CAPSLOCK
! KEY_CD
! KEY_CHANNEL
! KEY_CHANNELDOWN
! KEY_CHANNELUP
! KEY_CHAT
! KEY_CLEAR
! KEY_CLOSE
! KEY_CLOSECD
! KEY_COFFEE
! KEY_COMMA
! KEY_COMPOSE
! KEY_COMPUTER
! KEY_CONFIG
! KEY_CONNECT
! KEY_CONTEXT_MENU
! KEY_COPY
! KEY_CUT
! KEY_CYCLEWINDOWS
! KEY_D
! KEY_DASHBOARD
! KEY_DATABASE
! KEY_DEL_EOL
! KEY_DEL_EOS
! KEY_DELETE
! KEY_DELETEFILE
! KEY_DEL_LINE
! KEY_DIGITS
! KEY_DIRECTION
! KEY_DIRECTORY
! KEY_DISPLAY_OFF
! KEY_DISPLAYTOGGLE
! KEY_DOCUMENTS
! KEY_DOLLAR
! KEY_DOT
! KEY_DOWN
! KEY_DVD
! KEY_E
! KEY_EDIT
! KEY_EDITOR
! KEY_EJECTCD
! KEY_EJECTCLOSECD
! KEY_EMAIL
! KEY_END
! KEY_ENTER
! KEY_EPG
! KEY_EQUAL
! KEY_ESC
! KEY_EURO
! KEY_EXIT
! KEY_F10
! KEY_F11
! KEY_F12
! KEY_F13
! KEY_F14
! KEY_F15
! KEY_F1
! KEY_F16
! KEY_F17
! KEY_F18
! KEY_F19
! KEY_F20
! KEY_F21
! KEY_F22
! KEY_F23
! KEY_F24
! KEY_F2
! KEY_F
! KEY_F3
! KEY_F4
! KEY_F5
! KEY_F6
! KEY_F7
! KEY_F8
! KEY_F9
! KEY_FASTFORWARD
! KEY_FAVORITES
! KEY_FILE
! KEY_FINANCE
! KEY_FIND
! KEY_FIRST
! KEY_FN
! KEY_FN_1
! KEY_FN_2
! KEY_FN_B
! KEY_FN_D
! KEY_FN_E
! KEY_FN_ESC
! KEY_FN_F
! KEY_FN_F10
! KEY_FN_F1
! KEY_FN_F11
! KEY_FN_F12
! KEY_FN_F2
! KEY_FN_F3
! KEY_FN_F4
! KEY_FN_F5
! KEY_FN_F6
! KEY_FN_F7
! KEY_FN_F8
! KEY_FN_F9
! KEY_FN_S
! KEY_FORWARD
! KEY_FORWARDMAIL
! KEY_FRAMEBACK
! KEY_FRAMEFORWARD
! KEY_FRONT
! KEY_G
! KEY_GAMES
! KEY_GOTO
! KEY_GRAPHICSEDITOR
! KEY_GRAVE
! KEY_GREEN
! KEY_H
! KEY_HANGEUL
! KEY_HANJA
! KEY_HELP
! KEY_HENKAN
! KEY_HIRAGANA
! KEY_HOME
! KEY_HOMEPAGE
! KEY_HP
! KEY_I
! KEY_INFO
! KEY_INSERT
! KEY_INS_LINE
! KEY_ISO
! KEY_J
! KEY_K
! KEY_KATAKANA
! KEY_KATAKANAHIRAGANA
! KEY_KBDILLUMDOWN
! KEY_KBDILLUMTOGGLE
! KEY_KBDILLUMUP
! KEY_KEYBOARD
! KEY_KP0
! KEY_KP1
! KEY_KP2
! KEY_KP3
! KEY_KP4
! KEY_KP5
! KEY_KP6
! KEY_KP7
! KEY_KP8
! KEY_KP9
! KEY_KPASTERISK
! KEY_KPCOMMA
! KEY_KPDOT
! KEY_KPENTER
! KEY_KPEQUAL
! KEY_KPJPCOMMA
! KEY_KPLEFTPAREN
! KEY_KPMINUS
! KEY_KPPLUS
! KEY_KPPLUSMINUS
! KEY_KPRIGHTPAREN
! KEY_KPSLASH
! KEY_L
! KEY_LANGUAGE
! KEY_LAST
! KEY_LEFT
! KEY_LEFTALT
! KEY_LEFTBRACE
! KEY_LEFTCTRL
! KEY_LEFTMETA
! KEY_LEFTSHIFT
! KEY_LINEFEED
! KEY_LIST
! KEY_LOGOFF
! KEY_M
! KEY_MACRO
! KEY_MAIL
! KEY_MAX
! KEY_MEDIA
! KEY_MEDIA_REPEAT
! KEY_MEMO
! KEY_MENU
! KEY_MESSENGER
! KEY_MHP
! KEY_MINUS
! KEY_MODE
! KEY_MOVE
! KEY_MP3
! KEY_MSDOS
! KEY_MUHENKAN
! KEY_MUTE
! KEY_N
! KEY_NEW
! KEY_NEWS
! KEY_NEXT
! KEY_NEXTSONG
! KEY_NUMERIC_0
! KEY_NUMERIC_1
! KEY_NUMERIC_2
! KEY_NUMERIC_3
! KEY_NUMERIC_4
! KEY_NUMERIC_5
! KEY_NUMERIC_6
! KEY_NUMERIC_7
! KEY_NUMERIC_8
! KEY_NUMERIC_9
! KEY_NUMERIC_POUND
! KEY_NUMERIC_STAR
! KEY_NUMLOCK
! KEY_O
! KEY_OK
! KEY_OPEN
! KEY_OPTION
! KEY_P
! KEY_PAGEDOWN
! KEY_PAGEUP
! KEY_PASTE
! KEY_PAUSE
! KEY_PAUSECD
! KEY_PC
! KEY_PHONE
! KEY_PLAY
! KEY_PLAYCD
! KEY_PLAYER
! KEY_PLAYPAUSE
! KEY_POWER
! KEY_POWER2
! KEY_PRESENTATION
! KEY_PREVIOUS
! KEY_PREVIOUSSONG
! KEY_PRINT
! KEY_PROG1
! KEY_PROG2
! KEY_PROG3
! KEY_PROG4
! KEY_PROGRAM
! KEY_PROPS
! KEY_PVR
! KEY_Q
! KEY_QUESTION
! KEY_R
! KEY_RADIO
! KEY_RECORD
! KEY_RED
! KEY_REDO
! KEY_REFRESH
! KEY_REPLY
! KEY_RESERVED
! KEY_RESTART
! KEY_REWIND
! KEY_RFKILL
! KEY_RIGHT
! KEY_RIGHTALT
! KEY_RIGHTBRACE
! KEY_RIGHTCTRL
! KEY_RIGHTMETA
! KEY_RIGHTSHIFT
! KEY_RO
! KEY_S
! KEY_SAT
! KEY_SAT2
! KEY_SAVE
! KEY_SCALE
! KEY_SCREEN
! KEY_SCROLLDOWN
! KEY_SCROLLLOCK
! KEY_SCROLLUP
! KEY_SEARCH
! KEY_SELECT
! KEY_SEMICOLON
! KEY_SEND
! KEY_SENDFILE
! KEY_SETUP
! KEY_SHOP
! KEY_SHUFFLE
! KEY_SLASH
! KEY_SLEEP
! KEY_SLOW
! KEY_SOUND
! KEY_SPACE
! KEY_SPELLCHECK
! KEY_SPORT
! KEY_SPREADSHEET
! KEY_STOP
! KEY_STOPCD
! KEY_SUBTITLE
! KEY_SUSPEND
! KEY_SWITCHVIDEOMODE
! KEY_SYSRQ
! KEY_T
! KEY_TAB
! KEY_TAPE
! KEY_TEEN
! KEY_TEXT
! KEY_TIME
! KEY_TITLE
! KEY_TUNER
! KEY_TV
! KEY_TV2
! KEY_TWEN
! KEY_U
! KEY_UNDO
! KEY_UNKNOWN
! KEY_UP
! KEY_UWB
! KEY_V
! KEY_VCR
! KEY_VCR2
! KEY_VENDOR
! KEY_VIDEO
! KEY_VIDEO_NEXT
! KEY_VIDEOPHONE
! KEY_VIDEO_PREV
! KEY_VOICEMAIL
! KEY_VOLUMEDOWN
! KEY_VOLUMEUP
! KEY_W
! KEY_WAKEUP
! KEY_WIMAX
! KEY_WLAN
! KEY_WORDPROCESSOR
! KEY_WWW
! KEY_X
! KEY_XFER
! KEY_Y
! KEY_YELLOW
! KEY_YEN
! KEY_Z
! KEY_ZENKAKUHANKAKU
! KEY_ZOOM
! KEY_ZOOMIN
! KEY_ZOOMOUT
! KEY_ZOOMRESET
! BTN_0
! BTN_1
! BTN_2
! BTN_3
! BTN_4
! BTN_5
! BTN_6
! BTN_7
! BTN_8
! BTN_9
! BTN_A
! BTN_B
! BTN_BACK
! BTN_BASE
! BTN_BASE2
! BTN_BASE3
! BTN_BASE4
! BTN_BASE5
! BTN_BASE6
! BTN_C
! BTN_DEAD
! BTN_DIGI
! BTN_EXTRA
! BTN_FORWARD
! BTN_GAMEPAD
! BTN_GEAR_DOWN
! BTN_GEAR_UP
! BTN_JOYSTICK
! BTN_LEFT
! BTN_MIDDLE
! BTN_MISC
! BTN_MODE
! BTN_MOUSE
! BTN_PINKIE
! BTN_RIGHT
! BTN_SELECT
! BTN_SIDE
! BTN_START
! BTN_STYLUS
! BTN_STYLUS2
! BTN_TASK
! BTN_THUMB
! BTN_THUMB2
! BTN_THUMBL
! BTN_THUMBR
! BTN_TL
! BTN_TL2
! BTN_TOOL_AIRBRUSH
! BTN_TOOL_BRUSH
! BTN_TOOL_DOUBLETAP
! BTN_TOOL_FINGER
! BTN_TOOL_LENS
! BTN_TOOL_MOUSE
! BTN_TOOL_PEN
! BTN_TOOL_PENCIL
! BTN_TOOL_QUADTAP
! BTN_TOOL_RUBBER
! BTN_TOOL_TRIPLETAP
! BTN_TOP
! BTN_TOP2
! BTN_TOUCH
! BTN_TR
! BTN_TR2
! BTN_TRIGGER
! BTN_WHEEL
! BTN_X
! BTN_Y
! BTN_Z

10- with “nano ~/lircd.conf” you can take al look in your config an setup some Informations, Name etc. you don´t need it…

11- “mv ~/lircd.conf /storage/.config/lircd.conf” moves your config to the correct folder…

12- “lircd” Starts lirc again, please Reboot

FINISCHED!

Thats all steps i do to make it work.

@Massaguana

You didn’t need to go through all of that, getting an Apple remote working with RemotePi board and Rasplex is easy on an RPi3:

Flash Rasplex to SD card using GetRasplex, insert into RPi3 and power up.

Skip all of the first run screens.

On Home Screen, go to System Settings and enable RemotePi Board support for correct version, 2013 or 2015. No need to reboot.

SSH in to RPi and then enter:

 nano /storage/.config/lircd.conf

And copy in the following text:

 #########################################################
 # Apple A1294 remote lircd.conf file
 #########################################################

 begin remote

 name apple_a1294
 bits 8
 flags SPACE_ENC|CONST_LENGTH
 eps 30
 aeps 100

 header 9054 4472
 one 561 1663
 zero 561 567
 ptrail 565
 repeat 9055 2236
 pre_data_bits 16
 pre_data 0x77E1
 post_data_bits 8
 post_data 0xF1
 gap 108151
 toggle_bit_mask 0x0

 begin codes
 KEY_UP 0x50
 KEY_DOWN 0x30
 KEY_LEFT 0x90
 KEY_RIGHT 0x60
 KEY_PLAY 0xFA 0xA0
 KEY_MENU 0xC0
 KEY_OK 0x3A 0xA0
 end codes

end remote

Press Ctrl and X, then Enter

Restart the RPi3

Result, Apple remote working.

I test this steps, but it don´t work… Therefore I have created it

Works for me.

What is the correct KEY_ for equal to ESC Button on Keyboard? KEY_ESC isn´t it…

Press Escape on Keyboard are another reaction than KEY_ESC

When RasPlax are in Playback…

Press Escape on Keyboard the Playback Stop´s and i cam back in Preplay screen

Press KEY_ESC during Playback i cam Back in Preplay screen but the Playback are running hidden…

Wood like to use my Apple Remote Menü Button like an Escape Button on Keyboard… Is this Possible?

About ESC see:

and

Don´t know it this steps are working with RasPlex