Using an IR Remote with Volumio

Thanks a lot Sid_d and Michael,
I configured my tv remote without prolems.

This is my lircd.conf :

# Please make this file available to others
# by sending it to <lirc@bartelmus.de>
#
# this config file was automatically generated
# using lirc-0.9.0-pre1(default) on Fri Jan  9 23:21:22 2015
#
# contributed by romvise
#
# brand: Samsung                       /etc/lirc/lircd.conf
# model no. of remote control: AA59-00741A
# devices being controlled by this remote: Raspberry Pi
#

begin remote

  name  /etc/lirc/lirc.conf
  flags RAW_CODES|CONST_LENGTH
  eps            30
  aeps          100

  gap          108123

      begin raw_codes

          name KEY_VOLUMEUP
             4572    4489     580    1652     592    1636
              610    1660     583     531     597     519
              601     537     600     520     589     539
              582    1618     629    1640     607    1667
              595     516     591     530     592     512
              626     498     626     500     610    1636
              608    1675     566    1661     585     535
              589     535     589     527     590     513
              612     536     586     540     585     533
              591     535     586    1657     588    1660
              586    1662     582    1657     590    1659
              586

          name KEY_VOLUMEDOWN
             4554    4479     591    1656     612    1608
              605    1648     642     472     614     533
              579     521     641     483     631     515
              585    1655     614    1619     601    1641
              608     508     616     533     585     517
              646     472     624     524     586    1660
              589    1656     588     510     640    1627
              593     531     588     526     597     534
              627     496     589     523     597     533
              601    1650     586     535     589    1655
              587    1646     602    1658     581    1660
              593

          name KEY_PLAY
             4544    4495     584    1654     596    1650
              660    1578     594     537     587     532
              662     453     641     473     609     519
              665    1576     622    1645     633    1613
              585     516     648     495     596     531
              583     519     641     508     615    1626
              586    1659     595    1640     635     494
              600     528     585     544     603    1636
              585     513     643     506     597     525
              585     537     623    1624     586    1645
              604    1654     613     508     606    1641
              607

          name KEY_PAUSE
             4570    4469     630    1621     594    1656
              592    1652     595     510     660     482
              598     502     611     512     674     449
              611    1658     613    1607     616    1629
              639     483     652     488     597     510
              608     538     616     484     611     535
              584    1647     603     533     592    1652
              588     535     589     530     588    1661
              586     513     627    1644     585     523
              599    1658     584     540     584    1657
              588    1663     605     511     610    1638
              585

          name KEY_STOP
             4574    4458     614    1632     647    1620
              590    1641     634     505     588     515
              647     487     595     539     608     506
              631    1605     603    1645     606    1657
              585     514     624     524     588     537
              584     513     614     535     583     548
              578    1658     585    1652     597     534
              588     539     584     513     629    1644
              585     526     603    1654     586     535
              622     503     596    1648     599    1653
              587    1633     608     535     587    1659
              589

          name KEY_RED
             4567    4490     618    1623     582    1638
              654    1591     632     490     675     471
              584     548     579     510     642     508
              581    1640     621    1623     611    1633
              638     490     601     543     584     531
              624     479     611     538     587     511
              611     536     615    1632     586    1642
              604     532     594    1652     586    1658
              583     541     585    1665     583    1638
              605     535     590     535     586    1658
              591     533     588     534     592    1653
              587

          name KEY_GREEN
             4544    4467     601    1656     587    1654
              595    1652     586     512     618     521
              598     535     619     479     614     534
              585    1657     590    1657     586    1634
              608     540     585     512     633     514
              581     568     559     517     621     524
              582     542     583    1659     595     531
              584    1660     587     533     608     517
              588     537     585    1657     587    1661
              591     527     592    1652     592     532
              593    1653     590    1661     583    1655
              593

          name KEY_YELLOW
             4634    4414     627    1621     602    1652
              590    1623     641     506     610     513
              586     512     645     501     618     506
              593    1650     639    1609     582    1660
              629     494     605     517     586     538
              624     499     608     514     582    1641
              636     509     585    1657     631     495
              596    1647     604     522     613     509
              585     536     584     540     618    1626
              585     528     625    1630     582     521
              621    1642     585    1660     614    1630
              586

          name KEY_BLUE
             4600    4456     618    1595     620    1652
              620    1621     570     555     620     487
              630     496     580     555     622     491
              604    1652     617    1626     596    1624
              646     507     590     525     572     548
              629     499     593     530     570     530
              650    1609     596    1662     615     503
              593    1647     569     557     616     505
              595     527     568    1678     601     521
              588     528     628    1625     592     506
              594    1676     594    1647     575    1672
              584

          name KEY_PREVIOUS
             4582    4461     596    1660     600    1621
              608    1664     583     510     606     565
              563     514     656     465     643     504
              586    1635     615    1632     642    1610
              602     535     620     487     607     511
              609     535     602     500     608    1655
              616     509     619    1629     585     512
              635     490     610     538     583    1644
              604     535     584     535     605    1642
              607     515     595    1652     586    1646
              599    1652     595     509     606    1648
              603

          name KEY_NEXT
             4564    4495     579    1655     590    1661
              583    1655     591     514     602     536
              588     517     645     478     605     543
              581    1642     608    1656     588    1662
              581     539     584     518     638     496
              604     521     592     536     609     510
              596     532     587     513     652    1616
              587     532     613     513     593    1653
              587     523     606    1651     596    1649
              588    1656     588     520     614    1646
              587    1667     579     537     584    1662
              583

      end raw_codes

end remote

and here my lircrc :

begin
    prog = irexec
    button = KEY_PREVIOUS
    config = mpc prev; mpc play
    repeat = 0
end
begin
    prog = irexec
    button = KEY_NEXT
    config = mpc next; mpc play
    repeat = 0
end
begin
    prog = irexec
    button = KEY_PLAY
    config = mpc play
    repeat = 0
end
begin
    prog = irexec
    button = KEY_PAUSE
    config = mpc toggle
    repeat = 0
end
begin
    prog = irexec
    button = KEY_STOP
    config = mpc stop
    repeat = 0
end
begin
    prog = irexec
    button = KEY_VOLUMEUP
    config = mpc volume +1
    repeat = 4
end
begin
    prog = irexec
    button = KEY_VOLUMEDOWN
    config = mpc volume -1
    repeat = 4
end
begin
    prog = irexec
    button = KEY_RED             
    button = KEY_RED
    config = sudo halt
    repeat = 0
end

Roberto