Thank you for your donation!


Cloudsmith graciously provides open-source package management and distribution for our project.


Instruction Guide Argon ONE V2 Case w/ Argon Remote LIRC
#1
The following is a quick guide on how I got my Argon ONE V2 Case w/ Argon Remote to work with Moode Audio. Verified functional with release 8.3.6.

Login through SSH.

Run the following commands to install LIRC:
Code:
sudo apt-get update
sudo apt-get install -y lirc

Edit /boot/config.txt and add the following line:
Code:
dtoverlay=gpio-ir,gpio_pin=23

Edit /etc/lirc/lirc_options.conf and modify the existing values:
Code:
driver          = default
device          = /dev/lirc0

Create a new file /etc/lirc/lircd.conf.d/argon.lircd.conf with the following content:
Code:
begin remote

 name  argon
 bits            32
 flags SPACE_ENC
 eps             20
 aeps           200

 header        8800  4400
 one            550  1650
 zero           550   550
 ptrail         550
 repeat        8800  2200
 gap          38500
 toggle_bit       0

 frequency    38000

     begin codes
         KEY_UP                   0x00ff53ac
         KEY_DOWN                 0x00ff4bb4
         KEY_LEFT                 0x00ff9966
         KEY_RIGHT                0x00ff837c
         KEY_PLAYPAUSE            0x00ff738c
         KEY_MENU                 0x00ffb946
         KEY_HOME                 0x00ffd32c
         KEY_BACK                 0x00ff09f6
         KEY_VOLUMEUP             0x00ff01fe
         KEY_VOLUMEDOWN           0x00ff817e
     end codes

end remote

Edit /etc/lirc/irexec.lircrc and replace it with the following content:
Code:
begin
   prog = irexec
   button = KEY_UP
   config = mpc seek +00:00:10
end

begin
   prog = irexec
   button = KEY_DOWN
   config = mpc seek -00:00:10
end

begin
   prog = irexec
   button = KEY_LEFT
   config = mpc prev
end

begin
   prog = irexec
   button = KEY_RIGHT
   config = mpc next
end

begin
   prog = irexec
   button = KEY_PLAYPAUSE
   config = mpc toggle
end

begin
   prog = irexec
   button = KEY_VOLUMEUP
   config = /var/www/vol.sh -up 2
end

begin
   prog = irexec
   button = KEY_VOLUMEDOWN
   config = /var/www/vol.sh -dn 2
end

#begin
#    prog = irexec
#    button = KEY_MENU
#    config =
#end

#begin
#    prog = irexec
#    button = KEY_HOME
#    config =
#end

#begin
#    prog = irexec
#    button = KEY_BACK
#    config =
#end

Run the following commands to finish things up:
Code:
sudo mv /etc/lirc/lircd.conf.d/devinput.lircd.conf /etc/lirc/lircd.conf.d/devinput.lircd.dist
sudo systemctl enable irexec
sudo shutdown -r now
Reply


Forum Jump: