PDA

View Full Version : Remapping stock remote keys?



Marc Sherman
2005-01-13, 09:03
Is it possible to remap keys on the standard remote?

I find some of the key choices a bit... puzzling. I use Browse Music
all the time, but to get there I have to navigate the menus using the
arrow keys. Brightness and Size, on the other hand, I'm perfectly
content to hide away in the setup menu.

Thanks,
- Marc

Marc Sherman
2005-01-14, 08:34
Marc Sherman wrote:
> Is it possible to remap keys on the standard remote?
>
> I find some of the key choices a bit... puzzling. I use Browse Music
> all the time, but to get there I have to navigate the menus using the
> arrow keys. Brightness and Size, on the other hand, I'm perfectly
> content to hide away in the setup menu.

So I did some digging, and found Default.map. I've remapped the
brightness key to Browse Artist if pressed, or Browse Genres if held:

# MSS 2005jan14: Remap Brightness to Browse Artist/Genre
# brightness = brightness_toggle
brightness.single = menu_browse_artist
brightness.hold = menu_browse_genre

However, it doesn't behave quite the way I expected to. If I'm in Now
Playing mode, and press the brightness key, it takes me to Browse
Artists as I expected. However, if I then press the Left key, it goes
back to Now Playing. If then hight Right, I'm back in Browse Artists.
It's as though Browse Artists has been added below Now Playing in the
menu structure. This persists until I change the playlist, at which
point Now Playing becomes itself again.

Looking at the code (.../Slim/Buttons/Common.pm), it looks like the line:
Slim::Buttons::Common::setMode($client, 'home');
before the cascading if block should root the Browse Artists/Genres mode
off the root of the menu, but it doesn't seem to be having that effect.

Note, I'm running stock 5.4.0, so this may already be fixed in a newer
version. Has anyone else tried something like this? Am I missing
something?

Thanks,
- Marc

Geoff Bonallack
2005-01-14, 11:38
On Fri, 14 Jan 2005 10:34:16 -0500, Marc Sherman <msherman (AT) projectile (DOT) ca> wrote:
> I've remapped the brightness key to Browse Artist if
> pressed, or Browse Genres if held:

Isn't the brightness-held used to activate firmware updates?
Cheers
Geoff

kdf
2005-01-14, 17:45
Quoting Geoff Bonallack <geoffbon (AT) gmail (DOT) com>:

> On Fri, 14 Jan 2005 10:34:16 -0500, Marc Sherman <msherman (AT) projectile (DOT) ca>
> wrote:
> > I've remapped the brightness key to Browse Artist if
> > pressed, or Browse Genres if held:
>
> Isn't the brightness-held used to activate firmware updates?

it should still work as a keymap, becuase the firmware hold time is a lot longer
than the software hold time. You could also consider triggering on
hold_release
-kdf