diff --git a/README.txt b/README.txt index eccc392..e233691 100644 --- a/README.txt +++ b/README.txt @@ -139,9 +139,16 @@ The remote command works with ssh, so install pidor's root pub key into `~pi/.ss * setup lirc for AV-receiver remote control +this is the new way of doing lirc, doc is not yet tested to replay correctly. ymmv + +copy (if not yet done) files from ~pi/doorbuzz/root_files/etc/lirc/ to /etc/lirc/ +https://www.raspberrypi.org/forums/viewtopic.php?t=192891 ``` sudo apt-get install lirc sudo /bin/su -c "echo 'dtoverlay=lirc-rpi,gpio_out_pin=17,gpio_in_pin=21' >> /boot/config.txt" +echo "lirc_dev" >> /etc/modules +echo "lirc_rpi gpio_in_pin=21 gpio_out_pin=17" >> /etc/modules +systemctl start lidcd.socket lircd.service ``` diff --git a/root_files/etc/lirc/lirc_options.conf b/root_files/etc/lirc/lirc_options.conf new file mode 100644 index 0000000..f8b1e1d --- /dev/null +++ b/root_files/etc/lirc/lirc_options.conf @@ -0,0 +1,19 @@ +[lircd] +nodaemon = False +driver = default +device = /dev/lirc0 +output = /var/run/lirc/lircd +pidfile = /var/run/lirc/lircd.pid +plugindir = /usr/lib/arm-linux-gnueabihf/lirc/plugins +permission = 666 +allow-simulate = No +repeat-max = 600 +uinput = True + +[lircmd] +uinput = False +nodaemon = False + +[modinit] +code = modprobe lirc_rpi + diff --git a/root_files/etc/lirc/lircd.conf b/root_files/etc/lirc/lircd.conf index c468792..8d3fe74 100644 --- a/root_files/etc/lirc/lircd.conf +++ b/root_files/etc/lirc/lircd.conf @@ -1,182 +1,9 @@ -# Please make this file available to others -# by sending it to -# -# this config file was automatically generated -# using lirc-0.9.0-pre1(default) on Sun Mar 13 09:40:54 2016 -# -# contributed by -# -# brand: /etc/lirc/pioneer.conf -# model no. of remote control: -# devices being controlled by this remote: + +# Populated config files can be found at http://sf.net/p/lirc-remotes. The +# irdb-get(1) and lirc-setup(1) tools can be used to search and download +# config files. # +# From 0.9.2 config files could just be dropped as-is in the lircd.conf.d +# directory and be included by this file. -begin remote - - name PIONEER - flags RAW_CODES|CONST_LENGTH - eps 30 - aeps 100 - - gap 89162 - - begin raw_codes - - name KEY_POWER - 9109 4481 562 1674 587 518 - 589 1654 580 519 587 519 - 588 1647 589 517 588 1648 - 588 517 588 1655 557 542 - 588 1648 588 1648 588 518 - 563 1680 581 517 588 518 - 588 1648 587 518 589 1647 - 589 1654 582 517 563 542 - 588 517 590 1647 588 517 - 589 1648 587 524 582 518 - 587 1649 588 1648 588 1648 - 587 - - name KEY_POWER2 - 9103 4497 555 1672 588 519 - 562 1673 588 518 589 517 - 563 1672 588 518 564 1672 - 588 518 562 1674 569 537 - 587 1648 587 1650 587 518 - 588 1648 588 518 570 1666 - 588 1648 563 543 562 1674 - 587 1648 596 510 587 519 - 587 518 587 518 564 542 - 588 1648 587 519 563 542 - 595 1641 588 1648 564 1673 - 587 - - name KEY_CD - 8455 4283 493 1590 534 516 - 534 1591 534 516 534 515 - 534 1595 531 515 535 1591 - 509 541 509 1590 534 517 - 534 1595 530 1590 535 515 - 535 1589 511 540 509 541 - 509 516 534 1595 530 1591 - 534 516 534 516 534 1591 - 534 516 534 1566 534 1590 - 535 515 535 515 535 1590 - 535 1590 534 516 539 1561 - 535 - - name KEY_DVD - 8479 4243 556 1542 558 492 - 559 1565 560 490 560 490 - 560 1570 555 490 560 1565 - 560 490 560 1540 560 490 - 560 1564 565 1561 559 491 - 559 1565 560 490 560 1540 - 560 490 560 1570 555 490 - 560 490 560 490 576 473 - 561 1565 560 490 560 1570 - 530 490 560 1565 560 1565 - 560 1565 560 1569 531 514 - 536 - - name KEY_TAPE - 8479 4246 554 1566 534 490 - 561 1564 560 490 560 490 - 561 1569 556 489 561 1564 - 561 489 560 1539 561 490 - 560 1565 561 1564 560 489 - 561 1565 560 489 561 1540 - 560 490 565 485 560 489 - 561 1564 561 489 561 489 - 561 489 561 489 561 1569 - 556 1564 535 1565 561 489 - 560 1565 560 1565 565 1560 - 535 - - name KEY_TUNER - 8506 4214 560 1566 534 519 - 531 1565 560 490 560 489 - 561 1565 560 489 561 1565 - 565 484 561 1564 536 489 - 561 1564 561 1564 560 490 - 561 1564 561 489 561 1539 - 561 1564 561 1563 561 489 - 566 485 560 489 562 1564 - 560 490 561 489 560 489 - 561 489 536 1569 556 1564 - 561 1564 560 490 561 1564 - 560 - - name KEY_TV - 8512 4211 558 1572 554 490 - 560 1540 560 490 560 490 - 559 1566 560 490 560 1570 - 555 490 560 1564 536 515 - 535 1565 560 1565 560 495 - 555 1564 561 490 560 490 - 560 490 560 1540 560 1565 - 564 486 560 489 561 489 - 560 491 559 1565 560 1565 - 561 489 561 494 555 1540 - 560 1565 560 1564 561 1565 - 560 - - name KEY_VCR - 8510 4213 558 1565 560 490 - 560 1545 555 490 560 490 - 560 1564 561 490 560 1565 - 559 491 559 1566 560 489 - 535 1566 559 1565 560 490 - 560 1570 555 490 560 1566 - 559 1540 560 1565 560 1565 - 564 487 559 490 560 490 - 560 490 560 490 560 490 - 560 489 560 491 560 1544 - 556 1565 559 1565 570 1555 - 561 - - name KEY_VCR2 - 8504 4215 559 1567 559 490 - 560 1540 560 490 565 485 - 559 1566 560 490 560 1565 - 560 490 560 1565 560 494 - 556 1540 559 1566 559 491 - 559 1565 561 490 559 490 - 565 1561 559 1541 559 1565 - 560 490 560 490 560 490 - 560 495 555 1565 559 492 - 559 490 560 490 560 1565 - 535 1565 564 1560 561 1565 - 560 - - name KEY_VOLUMEUP - 8505 4216 558 1567 559 490 - 560 1571 529 515 535 490 - 560 1565 560 490 560 1564 - 561 490 560 1565 560 490 - 560 1540 559 1566 560 490 - 559 1565 561 489 561 490 - 560 1564 561 489 561 1539 - 560 490 560 490 565 485 - 560 490 560 1566 559 490 - 560 1565 560 490 560 1569 - 531 1565 560 1565 560 1565 - 560 - - name KEY_VOLUMEDOWN - 8510 4211 559 1566 560 494 - 556 1565 560 490 535 514 - 536 1565 560 490 560 1565 - 564 486 560 1564 561 490 - 560 1565 535 1565 559 490 - 560 1565 560 490 560 1565 - 560 1565 535 515 534 1566 - 565 485 559 491 560 490 - 560 490 560 490 560 490 - 559 1566 560 490 560 1570 - 555 1540 560 1564 561 1565 - 560 - - end raw_codes - -end remote - +include "lircd.conf.d/*.conf" diff --git a/root_files/etc/lirc/lircd.conf.d/pioneer.conf b/root_files/etc/lirc/lircd.conf.d/pioneer.conf new file mode 100644 index 0000000..c468792 --- /dev/null +++ b/root_files/etc/lirc/lircd.conf.d/pioneer.conf @@ -0,0 +1,182 @@ +# Please make this file available to others +# by sending it to +# +# this config file was automatically generated +# using lirc-0.9.0-pre1(default) on Sun Mar 13 09:40:54 2016 +# +# contributed by +# +# brand: /etc/lirc/pioneer.conf +# model no. of remote control: +# devices being controlled by this remote: +# + +begin remote + + name PIONEER + flags RAW_CODES|CONST_LENGTH + eps 30 + aeps 100 + + gap 89162 + + begin raw_codes + + name KEY_POWER + 9109 4481 562 1674 587 518 + 589 1654 580 519 587 519 + 588 1647 589 517 588 1648 + 588 517 588 1655 557 542 + 588 1648 588 1648 588 518 + 563 1680 581 517 588 518 + 588 1648 587 518 589 1647 + 589 1654 582 517 563 542 + 588 517 590 1647 588 517 + 589 1648 587 524 582 518 + 587 1649 588 1648 588 1648 + 587 + + name KEY_POWER2 + 9103 4497 555 1672 588 519 + 562 1673 588 518 589 517 + 563 1672 588 518 564 1672 + 588 518 562 1674 569 537 + 587 1648 587 1650 587 518 + 588 1648 588 518 570 1666 + 588 1648 563 543 562 1674 + 587 1648 596 510 587 519 + 587 518 587 518 564 542 + 588 1648 587 519 563 542 + 595 1641 588 1648 564 1673 + 587 + + name KEY_CD + 8455 4283 493 1590 534 516 + 534 1591 534 516 534 515 + 534 1595 531 515 535 1591 + 509 541 509 1590 534 517 + 534 1595 530 1590 535 515 + 535 1589 511 540 509 541 + 509 516 534 1595 530 1591 + 534 516 534 516 534 1591 + 534 516 534 1566 534 1590 + 535 515 535 515 535 1590 + 535 1590 534 516 539 1561 + 535 + + name KEY_DVD + 8479 4243 556 1542 558 492 + 559 1565 560 490 560 490 + 560 1570 555 490 560 1565 + 560 490 560 1540 560 490 + 560 1564 565 1561 559 491 + 559 1565 560 490 560 1540 + 560 490 560 1570 555 490 + 560 490 560 490 576 473 + 561 1565 560 490 560 1570 + 530 490 560 1565 560 1565 + 560 1565 560 1569 531 514 + 536 + + name KEY_TAPE + 8479 4246 554 1566 534 490 + 561 1564 560 490 560 490 + 561 1569 556 489 561 1564 + 561 489 560 1539 561 490 + 560 1565 561 1564 560 489 + 561 1565 560 489 561 1540 + 560 490 565 485 560 489 + 561 1564 561 489 561 489 + 561 489 561 489 561 1569 + 556 1564 535 1565 561 489 + 560 1565 560 1565 565 1560 + 535 + + name KEY_TUNER + 8506 4214 560 1566 534 519 + 531 1565 560 490 560 489 + 561 1565 560 489 561 1565 + 565 484 561 1564 536 489 + 561 1564 561 1564 560 490 + 561 1564 561 489 561 1539 + 561 1564 561 1563 561 489 + 566 485 560 489 562 1564 + 560 490 561 489 560 489 + 561 489 536 1569 556 1564 + 561 1564 560 490 561 1564 + 560 + + name KEY_TV + 8512 4211 558 1572 554 490 + 560 1540 560 490 560 490 + 559 1566 560 490 560 1570 + 555 490 560 1564 536 515 + 535 1565 560 1565 560 495 + 555 1564 561 490 560 490 + 560 490 560 1540 560 1565 + 564 486 560 489 561 489 + 560 491 559 1565 560 1565 + 561 489 561 494 555 1540 + 560 1565 560 1564 561 1565 + 560 + + name KEY_VCR + 8510 4213 558 1565 560 490 + 560 1545 555 490 560 490 + 560 1564 561 490 560 1565 + 559 491 559 1566 560 489 + 535 1566 559 1565 560 490 + 560 1570 555 490 560 1566 + 559 1540 560 1565 560 1565 + 564 487 559 490 560 490 + 560 490 560 490 560 490 + 560 489 560 491 560 1544 + 556 1565 559 1565 570 1555 + 561 + + name KEY_VCR2 + 8504 4215 559 1567 559 490 + 560 1540 560 490 565 485 + 559 1566 560 490 560 1565 + 560 490 560 1565 560 494 + 556 1540 559 1566 559 491 + 559 1565 561 490 559 490 + 565 1561 559 1541 559 1565 + 560 490 560 490 560 490 + 560 495 555 1565 559 492 + 559 490 560 490 560 1565 + 535 1565 564 1560 561 1565 + 560 + + name KEY_VOLUMEUP + 8505 4216 558 1567 559 490 + 560 1571 529 515 535 490 + 560 1565 560 490 560 1564 + 561 490 560 1565 560 490 + 560 1540 559 1566 560 490 + 559 1565 561 489 561 490 + 560 1564 561 489 561 1539 + 560 490 560 490 565 485 + 560 490 560 1566 559 490 + 560 1565 560 490 560 1569 + 531 1565 560 1565 560 1565 + 560 + + name KEY_VOLUMEDOWN + 8510 4211 559 1566 560 494 + 556 1565 560 490 535 514 + 536 1565 560 490 560 1565 + 564 486 560 1564 561 490 + 560 1565 535 1565 559 490 + 560 1565 560 490 560 1565 + 560 1565 535 515 534 1566 + 565 485 559 491 560 490 + 560 490 560 490 560 490 + 559 1566 560 490 560 1570 + 555 1540 560 1564 561 1565 + 560 + + end raw_codes + +end remote + diff --git a/root_files/etc/lirc/lircd.conf.d/sonybd.conf b/root_files/etc/lirc/lircd.conf.d/sonybd.conf new file mode 100644 index 0000000..f3fe9c6 --- /dev/null +++ b/root_files/etc/lirc/lircd.conf.d/sonybd.conf @@ -0,0 +1,97 @@ + +# this config file was automatically generated +# using lirc-0.8.6(default) on Tue Sep 21 17:58:58 2010 +# +# contributed by Robert Bedlinski +# +# brand: +# model no. of remote control: RMT B104P +# devices being controlled by this remote: +# SONY BLU RAY BDP S360 + +begin remote + + name SONY_BD2 + bits 12 + flags SPACE_ENC|CONST_LENGTH + eps 30 + aeps 100 + + header 2426 565 + one 1221 569 + zero 627 569 + post_data_bits 8 + post_data 0x47 + gap 44934 + min_repeat 2 + toggle_bit_mask 0x0 + + begin codes + KEY_POWER 0xA8B + KEY_1 0x00B + KEY_2 0x80B + KEY_3 0x40B + KEY_4 0xC0B + KEY_5 0x20B + KEY_6 0xA0B + KEY_7 0x60B + KEY_8 0xE0B + KEY_9 0x10B + KEY_0 0x90B + KEY_AUDIO 0x26B + KEY_SUBTITLE 0xC6B + KEY_ANGLE 0xA6B + KEY_TIME 0X14B + KEY_RED 0xE6B + KEY_GREEN 0x16B + KEY_YELLOW 0x96B + KEY_BLUE 0x66B + KEY_MENU 0x34B + X_KEY_POPUPMENU 0x94B # Was: KEY_POPUPMENU + KEY_LEFT 0xDCB + KEY_RIGHT 0x3CB + KEY_DOWN 0x5CB + KEY_UP 0x9CB + X_KEY_RETURN 0xC2B # Was: KEY_RETURN + X_KEY_OPTIONS 0xFCB # Was: KEY_OPTIONS + KEY_OK 0xBCB + KEY_HOME 0x42B + KEY_PLAY 0x58B + KEY_PAUSE 0x98B + KEY_STOP 0x18B + KEY_DISPLAY 0x82B + X_KEY_FAST_REWERSE 0xD8B # Was: KEY_FAST_REWERSE + X_KEY_FAST_FORWARD 0x38B # Was: KEY_FAST_FORWARD + KEY_PREVIOUS 0xEAB + X_KEY_INSTANT_REPLAY 0x6EB # Was: KEY_INSTANT_REPLAY + X_KEY_INSTANT_ADVENCE 0xAEB # Was: KEY_INSTANT_ADVENCE + KEY_NEXT 0x6AB + end codes + +end remote + + +begin remote + + name SONY-BD + bits 12 + flags SPACE_ENC|CONST_LENGTH + eps 30 + aeps 100 + + header 2441 556 + one 1234 557 + zero 637 557 + gap 44888 + min_repeat 2 + toggle_bit_mask 0x0 + + begin codes + KEY_VOLUMEUP 0x490 + KEY_VOLUMEDOWN 0xC90 + KEY_POWER2 0xA90 + X_KEY_INPUT 0xA50 # Was: KEY_INPUT + end codes + +end remote +