Re: Re: Change volume with remote control?

Brian <[email protected]> Wed, 26 Dec 2001 16:37:31 -0500
Newsgroups gmane.music.equipment.slimp3.user
Message-ID <[email protected]>
OK, Mark,

Sorry, I misread your mail--I poked around a bit and found the
following.  Don't take this as authoritative--I'm just poking around
the server code for the first time myself.  My first hack late last
night was to put a static banner text on top of the 'powered off'
clock.

Here's a more useful answer, I hope...  

I found the IR codes that map the buttons in lib/IR.pm:

volup   00      00      f7      78
voldown 00      00      f7      f8

...and the handlers for all the buttons in lib/Buttons.  Specifically,
the handlers for volup and voldown are in lib/Buttons/Common.pm, and
are as follows.

sub volup {
	my $client = shift;

	SliMP3::Playlist::executecommand($client, "mixer", "volume", "+1");
}

sub voldown {
	my $client = shift;

	SliMP3::Playlist::executecommand($client, "mixer", "volume", "-1");
}

With the remote programming specified in the quick start page, the
volup and voldown do nothing, So it looks like the trick is to get the
remote to generate f778/f7f8 for volup/voldown.

Following the instructions that came with the universal remote, I set
the remote to control a JVC TV (code 027). Now when I hit vol-up, I
see the following in the server debug:

irCode: [69 00 4c bd f2 31 ff 10 00 00 c0 f8 ]
irCode not defined: 0000c0f8

Close, but not quite right.  Then I modified the code table in IR.pm
(change the f7 to c0 for volup & voldown).  Now the volup and voldown
keys are recognized:

irCode: [69 00 6b ac 61 41 ff 10 00 00 c0 78 ]
irCode = [volup] timer = [1806459201] timediff = [872525] last = [power] numrep = [2]
irCode: volup


Hope this is helpful...

Brian

----------------------------------------------------------------------
Brian Del Vecchio  |  Institute of Hybernautics   |  [email protected] 
----------------------------------------------------------------------

------------------------ Yahoo! Groups Sponsor ---------------------~-->
Send FREE Holiday eCards from Yahoo! Greetings.
http://us.click.yahoo.com/IgTaHA/ZQdDAA/ySSFAA/rIp0lB/TM
---------------------------------------------------------------------~->

To unsubscribe from this group, send an email to:
[email protected]

 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/