Rockbox Technical Forums

Support and General Use => User Interface and Voice => Topic started by: sweetfa on May 07, 2021, 05:37:23 AM

Title: iPod nano 2g, hold switch isn't unlocking once locked but only in Rockbox
Post by: sweetfa on May 07, 2021, 05:37:23 AM
In Rockbox the hold switch when pushed back to its normal position after locking isn't unlocking the keys.
In the normal apple firmware when I boot into that now it locks and unlocks perfectly, no issues, so it isn't that the switch is physically damaged.
When i lock in Rockbox the screen goes dark and then when i put the switch back the screen comes back on but the keys are still locked.
I mainly got the nano to play Doom, you need the lock switch to get to Doom's menu so this is a problem.
Also it does it during music playback, have to reboot the nano to get it to respond after locking.
I've installed Rockbox twice using the Installer and this has happened, even tried going from a stable install to the latest build but the problem persists.
Thanks in advance.
Title: Re: iPod nano 2g, hold switch isn't unlocking once locked but only in Rockbox
Post by: sweetfa on May 07, 2021, 11:29:26 AM
iPod nano 2g 8gb to be specific.

Tried some older firmwares with the same result, seems an odd bug to have.
Title: Re: iPod nano 2g, hold switch isn't unlocking once locked but only in Rockbox
Post by: sweetfa on May 08, 2021, 01:08:27 AM
Found an old post from 2008. Apparently you need to spin the scroll wheel a bit and press the centre button after unlocking. Insane that this never got fixed and the port is marked as stable! I love Rockbox but that's not great. Will see if I can remap Doom's buttons as pressing centre will launch a new game in the menu and there's no way to back up in the menu so you can't really use the menu at all.
Title: Re: iPod nano 2g, hold switch isn't unlocking once locked but only in Rockbox
Post by: sweetfa on May 08, 2021, 09:41:54 AM
Given up on it. You can change the in-game keys for Doom but has no impact on the menu keys so you can only select New Game when the keys start working again after using the hold button.
Title: Re: iPod nano 2g, hold switch isn't unlocking once locked but only in Rockbox
Post by: chris_s on May 08, 2021, 12:39:10 PM
The patch that was uploaded at the end of last year should have (finally) fixed this issue - or at least a very similar one – for iPod 4Gs and 5Gs, but apparently not for Nanos then, if you've tried the latest dev releases.

https://github.com/Rockbox/rockbox/commit/a5961c944b75d1fb9cacac9382f7f1d23351d74b

https://www.rockbox.org/tracker/task/5230

https://forums.rockbox.org/index.php/topic,21203.msg147950.html
Title: Re: iPod nano 2g, hold switch isn't unlocking once locked but only in Rockbox
Post by: sweetfa on May 10, 2021, 06:55:44 AM
Thanks, mine definitely isn't working.
My version is adff45ca21-210507 which is I guess from 7th May 2021.
The worst thing is that the only key that works following the spin the scroll wheel thing is select.
You can press other keys after that but by then it's done something you don't want - in Doom it's at the new game screen with no way of avoiding starting a new game as there's no key mapped to going back in the menu.
Means you can't save and load game progress.
Title: Re: iPod nano 2g, hold switch isn't unlocking once locked but only in Rockbox
Post by: sweetfa on May 11, 2021, 08:49:24 AM
I'll have a look at fixing it on my nano sometime.

I've got a linux environment and some programming skills, and nothing to lose from giving it a go :-)
Title: Re: iPod nano 2g, hold switch isn't unlocking once locked but only in Rockbox
Post by: sweetfa on May 13, 2021, 03:47:01 PM
Managed to fix it, just turned off the part of button-clickwheel.c that powers down the buttons when you do hold.

It still holds, just responds to keys straight after unholding.

Not really sure if i've broken anything by doing that but all seems ok.

If anyone wants my fix just send me a PM.