Rockbox Technical Forums

Support and General Use => User Interface and Voice => Topic started by: ucong on November 02, 2022, 12:12:37 AM

Title: Remapping keylock ipod nano 2nd gen
Post by: ucong on November 02, 2022, 12:12:37 AM
My hold switch on ipod nano 2nd gen suddenly broken, is there another way to lock key/button without sliding hold switch?

Thanks in advance.
Title: Re: Remapping keylock ipod nano 2nd gen
Post by: Bilgus on November 04, 2022, 04:18:33 PM
the ipod uses a physical hold switch therefor doesn't even look for a key combo hold

I vaguely remember addign this in a custom build in the past

you might just try the keyremap plugin to see if it work otherwise post here and someone might be able to throw together a custom build for you
Title: Re: Remapping keylock ipod nano 2nd gen
Post by: ucong on November 05, 2022, 08:13:44 AM
Ok i'll try, thanks for the replay.
Title: Re: Keyremap plugin - remaps keys in rockbox
Post by: ucong on November 06, 2022, 07:24:58 PM
Hi Bilgus, i have old ipod nano gen 2 with broken hold switch (sadly). I try to remap key/button at WPS button left as keylock and unlock, can you help me?
Title: Re: Remapping keylock ipod nano 2nd gen
Post by: Bilgus on November 09, 2022, 01:04:22 PM
@ucong likely you would need a custom build tht has soft lock enabled
I'm pretty sure devices with a hardware hold switch do not enable softlock
here is a bulid that hopefully works for you I did it based on the patch I used for another user
https://gerrit.rockbox.org/r/c/rockbox/+/1973

it uses BUTTON_LEFT|BUTTON_SELECT as the WPS keylock

rockbox-full.zip/file]https://www.mediafire.com/file/8cs30d7ob6vyt5w/ipodnano2g_softlock_[LEFT-SELECT]rockbox-full.zip/file (https://www.mediafire.com/file/8cs30d7ob6vyt5w/ipodnano2g_softlock_[LEFT-SELECT)

* In theory you should now be able to remap the button within the keyremap plugin as well *
Title: Re: Remapping keylock ipod nano 2nd gen
Post by: ucong on November 14, 2022, 01:16:01 AM
Wow, that's a kind of you Bilgus, many thanks. I'll try ASAP as i get home  ;D .