Home of the Squeezebox™ & Transporter® network music players.
Page 12 of 13 FirstFirst ... 210111213 LastLast
Results 111 to 120 of 125
  1. #111
    Quote Originally Posted by ralphy View Post
    Yes, it's that simple, except that the lircd used in pcp does not support any key that requires the Shift key modifier, so you'll need to change "I" to another lower case letter. The lower letter k is available. See jivekeys.csv for the full key list.

    Just copy the modified InputToActionMap.lua to /home/tc/.jivelite/userpath/jive/InputToActionMap.lua and quit jivelite. When it automatically restarts jivelite will use your version instead of the one in the tcz package.

    I will add the distinct power on/off keys to the next pcp jivelite tcz package I build.

    Code:
    diff --git a/share/jive/jive/InputToActionMap.lua b/share/jive/jive/InputToActionMap.lua
    index a07177b..c98ec6f 100644
    --- a/share/jive/jive/InputToActionMap.lua
    +++ b/share/jive/jive/InputToActionMap.lua
    @@ -24,6 +24,8 @@ charActionMappings.press = {
            ["f"]  = "go_favorites",
            ["s"]  = "sleep",
            ["q"]  = "power",
    +      ["k"]  = "power_on",
    +      ["i"]  = "power_off",
            ["t"]  = "go_current_track_info",
            ["n"]  = "go_home_or_now_playing",
            ["m"]  = "create_mix",


    Where is InputToActionMap.lua?

    I don't have jive folder with userpath

  2. #112
    Senior Member Greg Erskine's Avatar
    Join Date
    Sep 2006
    Location
    Sydney, Australia
    Posts
    1,325
    Don't know if this helps?

    Code:
    tc@piCorePlayer:/$ sudo find / -name InputToActionMap.lua -print
    /opt/jivelite/share/jive/jive/InputToActionMap.lua
    /tmp/tcloop/pcp-jivelite/opt/jivelite/share/jive/jive/InputToActionMap.lua
    tc@piCorePlayer:/$

  3. #113
    Junior Member Dr_U's Avatar
    Join Date
    May 2018
    Posts
    9

    lircrc is not integrated?

    Hi,
    my Odroid remote is working, but the lircrc is kind of neglected during the installation.

    RP 3, PC 3.22, Squeezebox, LMS,
    IQAudio Amp, IR

    The sound is fine and a radio station starts automatically, as the playlist is loaded.

    Changing and uploading the files lircrc and lircd.conf into /tmp is easy, as loading both of them via
    Tweaks // Lirc // Custom.

    But: only 4 keys are working.
    Volume (up and down), pause, muting.
    Even trying to put a working command onto a working key, like muting on volume up, did not come through.
    I tried a few different scenarios.

    I guess, it is not about the name of keys or the remote, but about implementing the lircrc into the distro.
    The folder /usr/local/etc/lirc/ contains just the lircd.conf, but no lircrc.

    As next track / previous track is working on the browser interface,
    it would be great to change the tracks with the remote.

    I am happy about some advice/help.

    The remote is working with other distros, like the exuberant Vol**io.

    As everything else is working, it would be great to sort out this tiny hickup.
    Thx a lot for any kind of help.
    Kind Regards,
    Urban
    Last edited by Dr_U; 2018-05-19 at 10:30.

  4. #114
    Senior Member ralphy's Avatar
    Join Date
    Jan 2006
    Location
    Canada
    Posts
    1,902
    KEY_FORWARD and KEY_REWIND are the lirc key symbol names you need to use with the squeezelite -i option. Jivelite uses different key symbols.

    What do you get for those keys when you run irw?

    Here are the results from running irw for my slimdevices sb3 remote.

    Code:
    00000000768940bf 00 KEY_POWER Slim_Devices_Squeezebox3
    00000000768910ef 00 KEY_PLAY Slim_Devices_Squeezebox3
    00000000768920df 00 KEY_PAUSE Slim_Devices_Squeezebox3
    000000007689807f 00 KEY_VOLUMEUP Slim_Devices_Squeezebox3
    00000000768900ff 00 KEY_VOLUMEDOWN Slim_Devices_Squeezebox3
    000000007689a05f 00 KEY_FORWARD Slim_Devices_Squeezebox3
    000000007689c03f 00 KEY_REWIND Slim_Devices_Squeezebox3
    Last edited by ralphy; 2018-05-20 at 05:16.
    Ralphy

    1-Touch, 5-Classics, 3-Booms, 1-UE Radio
    Squeezebox client builds donations always appreciated.

  5. #115
    Junior Member Dr_U's Avatar
    Join Date
    May 2018
    Posts
    9
    Hi Ralph,
    thx for your reply.

    The keys of my remote are correct:
    000000004db211ee 00 KEY_MUTE odroid
    000000004db211ee 01 KEY_MUTE odroid
    000000004db2837c 00 KEY_RIGHT odroid
    000000004db2837c 01 KEY_RIGHT odroid
    000000004db29966 00 KEY_LEFT odroid
    000000004db29966 01 KEY_LEFT odroid
    000000004db24bb4 00 KEY_DOWN odroid
    000000004db24bb4 01 KEY_DOWN odroid
    000000004db253ac 00 KEY_UP odroid
    000000004db253ac 01 KEY_UP odroid
    000000004db2817e 00 KEY_VOLUMEDOWN odroid
    000000004db2817e 01 KEY_VOLUMEDOWN odroid
    000000004db201fe 00 KEY_VOLUMEUP odroid
    000000004db201fe 01 KEY_VOLUMEUP odroid
    000000004db2a35c 00 KEY_MENU odroid
    000000004db2a35c 01 KEY_MENU odroid
    000000004db259a6 00 KEY_BACK odroid
    000000004db259a6 01 KEY_BACK odroid
    000000004db241be 00 KEY_HOME odroid
    000000004db241be 01 KEY_HOME odroid
    000000004db211ee 00 KEY_MUTE odroid
    000000004db211ee 01 KEY_MUTE odroid
    But there is no .lircrc.

    Sorry for asking:
    Should I add -i on Squeezelite Settings // Various input?
    If yes, could you give me a hint where to store my .lircrc and which option should be used?

    I thought to have done it by the book:
    Copying the files lircd.conf and lircrc to /tmp, then hit Custom, and its done.

    As far as I know now, after digging deep into the forums and options,
    it is only about implementing the lircrc.
    Right now I don't get how to do this.

    Thx a lot.
    Kind Regards
    Urban

  6. #116
    Junior Member Dr_U's Avatar
    Join Date
    May 2018
    Posts
    9
    Hi ralphy,
    thx for your reply.

    The keys of my remote are correct:
    000000004db211ee 00 KEY_MUTE odroid
    000000004db2837c 00 KEY_RIGHT odroid
    000000004db29966 00 KEY_LEFT odroid
    000000004db24bb4 00 KEY_DOWN odroid
    000000004db253ac 01 KEY_UP odroid
    000000004db2817e 00 KEY_VOLUMEDOWN odroid
    000000004db201fe 01 KEY_VOLUMEUP odroid
    000000004db2a35c 00 KEY_MENU odroid
    000000004db259a6 01 KEY_BACK odroid
    000000004db241be 00 KEY_HOME odroid
    000000004db211ee 01 KEY_MUTE odroid

    There is .lircrc in /home/tc/, but it is not used, as I put one of the working commands, *muting*,
    onto both of the volume keys.
    These are still used for changing the volume.
    The .lircrc-file is my latest one, installed as it should be.

    Sorry for asking:
    Should I add -i on Squeezelite Settings // Various input?
    If yes, could you give me a hint where to store my .lircrc and which option should be used?
    Or, how can I point to the correct file?

    I thought to have done it by the book:
    Copying the files lircd.conf and lircrc to /tmp, then hit Custom, and its done.

    As far as I know now, after digging deep into the forums and options,
    it is only about implementing the lircrc.
    Right now I don't get how to do this.

    Thx a lot.
    Kind Regards
    Urban

  7. #117
    Senior Member ralphy's Avatar
    Join Date
    Jan 2006
    Location
    Canada
    Posts
    1,902
    You don't need to add -i in the various options as picoreplayer adds it for you when lirc in enabled unless you've installed jivelite also, then you will need to add it.

    Here is a full lircrc example for the slimdevices remote. But squeezelite doesn't need it when using a slimdevices remote as it uses the same ir codes.

    You would need to change the button = for the key symbols you each config you want to map on your remote.
    program = needs to match the name of the squeezelite program, so if you're using the dsd build you would change it to program = squeezelite-dsd

    You could also change your lircd.conf file to send the key symbols squeezelite is looking for, from my irw listing above.

    Code:
    ############################
    ## KEY_POWER (0x768940bf) ##
    ############################
    
    begin
            remote = Slim_Devices_Squeezebox3
            button = KEY_POWER
            repeat = 0
            prog = squeezelite
            config = power
    end
    
    #################################
    ## KEY_VOLUMEDOWN (0x768900ff) ##
    #################################
    
    begin
            remote = Slim_Devices_Squeezebox3
            button = KEY_VOLUMEDOWN
            repeat = 0
            prog = squeezelite
            config = voldown
    end
    
    ###############################
    ## KEY_VOLUMEUP (0x7689807f) ##
    ###############################
    
    begin
            remote = Slim_Devices_Squeezebox3
            button = KEY_VOLUMEUP
            repeat = 0
            prog = squeezelite
            config = volup
    end
    
    ###########################
    ## KEY_MUTE (0x7689c43b) ##
    ###########################
    
    begin
            remote = Slim_Devices_Squeezebox3
            button = Brightness
            repeat = 0
            prog = squeezelite
            config = muting
    end
    
    ###########################
    ## KEY_PLAY (0x768910ef) ##
    ###########################
    
    begin
            remote = Slim_Devices_Squeezebox3
            button = KEY_PLAY
            repeat = 0
            prog = squeezelite
            config = play
    end
    
    ############################
    ## KEY_PAUSE (0x768920df) ##
    ############################
    
    begin
            remote = Slim_Devices_Squeezebox3
            button = KEY_PAUSE
            repeat = 0
            prog = squeezelite
            config = pause
    end
    
    ###########################
    ## KEY_NEXT (0x7689a05f) ##
    ###########################
    
    begin
            remote = Slim_Devices_Squeezebox3
            button = KEY_FORWARD
            repeat = 0
            prog = squeezelite
            config = fwd
    end
    
    ###############################
    ## KEY_PREVIOUS (0x7689c03f) ##
    ###############################
    
    begin
            remote = Slim_Devices_Squeezebox3
            button = KEY_REWIND
            repeat = 0
            prog = squeezelite
            config = rew
    end
    
    ###########################
    ## power_on (0x76898f70) ##
    ###########################
    
    ############################
    ## power_off (0x76898778) ##
    ############################
    Ralphy

    1-Touch, 5-Classics, 3-Booms, 1-UE Radio
    Squeezebox client builds donations always appreciated.

  8. #118
    Junior Member Dr_U's Avatar
    Join Date
    May 2018
    Posts
    9
    Quote Originally Posted by ralphy View Post
    You don't need to add -i in the various options as picoreplayer adds it for you when lirc in enabled unless you've installed jivelite also, then you will need to add it.
    Thx, got it

    Quote Originally Posted by ralphy View Post
    Here is a full lircrc example for the slimdevices remote. But squeezelite doesn't need it when using a slimdevices remote as it uses the same ir codes.

    You would need to change the button = for the key symbols you each config you want to map on your remote.
    program = needs to match the name of the squeezelite program, so if you're using the dsd build you would change it to program = squeezelite-dsd

    You could also change your lircd.conf file to send the key symbols squeezelite is looking for, from my irw listing above.
    I did this, quite a few times.

    My definition of lircd.conf is fine, as irw showed me the codes of all keys.

    Code:
    begin remote
    
    	name			odroid
    	bits			16
    	flags			SPACE_ENC|CONST_LENGTH
    	eps				30
    	aeps			100
    
    	header			9000 4500
    	one				563 1688
    	zero			563 564
    	ptrail			563
    	pre_data_bits	16
    	pre_data		0x4DB2
    	repeat			9000 2250
    	gap				100000
    	toggle_bit_mask	0x0
    
    	begin codes
    		KEY_LEFT		0x9966
    		KEY_RIGHT		0x837C
    		KEY_UP			0x53AC
    		KEY_DOWN		0x4BB4
    		KEY_ENTER		0x738C
    		KEY_HOME		0x41BE
    		KEY_MUTE		0x11EE
    		KEY_MENU		0xA35C
    		KEY_BACK		0x59A6
    		KEY_VOLUMEDOWN	0x817E
    		KEY_VOLUMEUP	0x01FE
    		KEY_POWER		0x3BC4
    	end codes
    
    end remote
    ┬ę 2018 GitHub, Inc.
    And my lircrc should work too:

    Code:
    begin
    remote = odroid
    button = KEY_POWER
    repeat = 0
    prog = squeezelite
    config = power
    end
    
    begin
    remote = odroid
    button = KEY_VOLUMEDOWN
    repeat = 0
    prog = squeezelite
    config = voldown
    end
    
    begin
    remote = odroid
    button = KEY_VOLUMEUP
    repeat = 0
    prog = squeezelite
    config = vol_down
    end
    
    begin
    remote = odroid
    button = KEY_HOME
    repeat = 0
    prog = squeezelite
    config = muting
    end
    
    begin
    remote = odroid
    button = KEY_PLAY
    repeat = 0
    prog = squeezelite
    config = play
    end
    
    begin
    remote = odroid
    button = KEY_MUTE
    repeat = 0
    prog = squeezelite
    config = pause
    end
    
    
    begin
    remote = odroid
    button = KEY_RIGHT
    repeat = 0
    prog = squeezelite
    config = track_next
    end
    
    begin
    remote = odroid
    button = KEY_LEFT
    repeat = 0
    prog = squeezelite
    config = track_prev
    end
    
    begin
    remote = odroid
    button = KEY_BACK
    repeat = 0
    prog = squeezelite
    config = muting
    end
    
    begin
    remote = odroid
    button = KEY_UP
    repeat = 0
    prog = squeezelite
    config = fwd
    end
    
    begin
    remote = odroid
    button = KEY_DOWN
    repeat = 0
    prog = squeezelite
    config = rew
    end
    At first I used for prog =
    squeezelite-armv6hf,
    then
    squeezelite
    and finally
    squeezelite-dsd.

    The changed lircrc was copied as .lircrc to /home/tc, but this file is not properly used for the definition of the keys.

    Sorry for using this remote, but it is working nicely with other distros.

    My goal is to use the PiCore with retro passive speakers and the remote as radio/music player.
    Some friends/colleagues will be happy with it, if it works, or when it works.

    To get this keys sorted is just a tiny step for PiCore, but right now a huge one for me.

    As only the four keys power, mute and Volup/Voldown are working, I guess,
    there is a mixup of the slimedevices remote with my lircd.conf.

    The lircrc file is copied, but every time ignored / not embedded in the Player.

    Sorry again for pointing out this weird action.
    It would be so great to sort this out.

    Right now I am hesitating to test the newest version. Maybe it is worth a try?
    On the other hand, it should work in the 3.22.

    If you have any idea, why the integration of a different lircrc is so strange, I would be happy the read it.

    Thanks a lot.
    Kind Regards,
    Urban

  9. #119
    Senior Member ralphy's Avatar
    Join Date
    Jan 2006
    Location
    Canada
    Posts
    1,902
    You should be using fwd and rew instead of track_next track_prev

    I was able to get the mapping working using my JustBoom IR Remote and pcp 3.5.0

    lircd.conf
    Code:
    begin remote
      name  JustBOOMIR
      bits            5
      flags RC5|CONST_LENGTH
      eps            30
      aeps          100
     
      one           921   855
      zero          921   855
      plead         936
      pre_data_bits   8
      pre_data       0xA0
      gap          114211
      min_repeat      1      
      suppress_repeat 3      
      toggle_bit_mask 0x800
     
          begin codes
              KEY_HOME              0x10
              KEY_POWER             0x11
              KEY_MUTE              0x12
              KEY_LEFT              0x13
              KEY_RIGHT             0x14
              KEY_OK                0x15
              KEY_MENU              0x16
              KEY_BACK              0x17
              KEY_VOLUMEDOWN        0x18
              KEY_VOLUMEUP          0x19
              KEY_UP                0x1A
              KEY_DOWN              0x1B
          end codes
    end remote
    Partial /home/tc/.lircrc
    Code:
    begin
    remote = JustBOOMIR
    button = KEY_RIGHT
    repeat = 0
    prog = squeezelite
    config = fwd
    end
    
    begin
    remote = JustBOOMIR
    button = KEY_LEFT
    repeat = 0
    prog = squeezelite
    config = rew 
    end
    You can debug what squeezelite is doing for the IR commands.

    Here's the output with an empty .lircrc

    /usr/local/bin/squeezelite -d ir=debug -i
    [14:18:05.572236] load_lirc:208 loaded liblirc_client.so.0
    [14:18:11.408771] ir_thread:165 ir lirc: KEY_LEFT [00] -> 0
    [14:18:14.229633] ir_thread:165 ir lirc: KEY_RIGHT [00] -> 0

    and with the above .lircrc

    /usr/local/bin/squeezelite -d ir=debug -i
    [14:21:45.449401] load_lirc:208 loaded liblirc_client.so.0
    [14:21:51.302932] ir_thread:151 ir cmd: rew -> 7689c03f
    [14:21:52.965307] ir_thread:151 ir cmd: fwd -> 7689a05f
    Last edited by ralphy; 2018-05-22 at 04:31.
    Ralphy

    1-Touch, 5-Classics, 3-Booms, 1-UE Radio
    Squeezebox client builds donations always appreciated.

  10. #120
    Senior Member ralphy's Avatar
    Join Date
    Jan 2006
    Location
    Canada
    Posts
    1,902
    From squeezelite/ir.c

    This is the list of available options for config =

    config, ir_code
    { "voldown", 0x768900ff },
    { "volup", 0x7689807f },
    { "rew", 0x7689c03f },
    { "fwd", 0x7689a05f },
    { "pause", 0x768920df },
    { "play", 0x768910ef },
    { "power", 0x768940bf },
    { "muting", 0x7689c43b },
    { "power_on", 0x76898f70 },
    { "power_off",0x76898778 },

    Also, you only need a mapping in .lircrc for keys that don't match what squeezelite is already setup to use. So you don't need anything for muting or the volume keys.
    Last edited by ralphy; 2018-05-21 at 11:52.
    Ralphy

    1-Touch, 5-Classics, 3-Booms, 1-UE Radio
    Squeezebox client builds donations always appreciated.

Posting Permissions

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