A couple of points for completeness, in case anyone visits this thread
in the future.
1) I'm running pCP without Jivelite, so KEY_U doesn't work - it's a
Jivelite-specific key mapping. For running headless, the equivalent is
KEY_MUTE.
2) In the list of DVD remotes that came with the oneforall remote,
there's a brand 'Slim Art', with a single device code of 0770. Setting
the remote up to use this device code instantly gave all of the commands
defined in the default lircd.conf file:
Code:
--------------------
KEY_VOLUMEDOWN 0x00FF
KEY_VOLUMEUP 0x807F
KEY_REWIND 0xC03F
KEY_FORWARD 0xA05F
KEY_PAUSE 0x20DF
KEY_PLAY 0x10EF
KEY_POWER 0x40BF
--------------------
Coincidence? I doubt it, not with a name that includes 'Slim'. In
addition, the mute key outputs a signal, although the lircd.conf file
doesn't know what to do with that signal initially.
So I went through the whole irrecord procedure, and found that the Slim
Art remote is outputting 32-bit codes. I thought it odd that a 32-bit
remote was successfully sending 16-bit codes, so I took a closer look at
the original lircd.conf file and compared the codes (above) with those
captured from the 32-bit Slim Art configuration:
Code:
--------------------
KEY_VOLUMEDOWN 0x768900FF
KEY_VOLUMEUP 0x7689807F
KEY_REWIND 0x7689C03F
KEY_FORWARD 0x7689A05F
KEY_PAUSE 0x768920DF
KEY_PLAY 0x768910EF
KEY_POWER 0x768940BF
KEY_MUTE 0x00FF10EF
--------------------
Clearly the last two bytes (16 bits) are common. And then I noticed a
couple of lines in the header section of the original lircd.conf file:
Code:
--------------------
pre_data_bits 16
pre_data 0x7689
--------------------
So in fact the Squeezebox remote is sending 32-bit codes after all, but
the first 16 bits are always 0x7689.
The mute key is different though, so I simply commented out the
'pre_data_bits' and 'pre_data' lines in the original file, changed the
'bits' to 32, inserted 0x7689 in front of each code, and added
KEY_MUTE=0x00FF10EF.
Bingo - the oneforall now has a mute function. I'll now see if I can
find any other useful functions that Squeezelite already recognises
(i.e. which I can implement without having to mess with the .lircrc
file.
------------------------------------------------------------------------
chill's Profile: http://forums.slimdevices.com/member.php?userid=10839
View this thread: http://forums.slimdevices.com/showthread.php?t=110318
_______________________________________________
diy mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/diy