Rockbox Technical Forums

Support and General Use => Hardware => Topic started by: PeppeNT on April 14, 2021, 03:15:52 PM

Title: LCD backlight still on even iPod shutdown
Post by: PeppeNT on April 14, 2021, 03:15:52 PM
Hi.
I'm not sure that i'm in the right section, but i have a problem with my iPod.
I'm talking about iPod video.
I installed latest rockbox version and it works perfect except one thing that make my ipod unusable: when i turn it off, effectively it seems to be shutted down except lcd backlight, which remains active.
I tried to put backlight off when rockbox is booted and then shut down my device and in this case, after the power off, backlight remains off, but it's a long procedure that everytime i have to shut down my device, i have to disable backlight to prevent my screen to remains backlighted.
Is there a solution to this issue?
I tried to ignore and leave lcd backlight on even with iPod shutted down but it drains more battery (about 5%/hour) and it force to recharge my device about 2 times/day.
Thanks and sorry for bad english
Title: Re: LCD backlight still on even iPod shutdown
Post by: Frankenpod on April 14, 2021, 08:15:57 PM
Are you saying that after long-pressing 'play' to shut it down, the screen remains lit-up, even though there's nothing displayed on it?  So just a bright, all-white, screen?

I haven't encountered that issue, though I might not have installed the very latest development version.  What I have found is that sometimes the auto-turnoff of the backlight (when the ipod is not shut down, but just no buttons have been pressed recently) doesn't happen.
Title: Re: LCD backlight still on even iPod shutdown
Post by: PeppeNT on April 15, 2021, 05:07:43 AM
Yes. I have to put backlight off manually and then shutdown (long press play) to shut down properly. Otherwise it remains a white lit screen with its consequential battey drain.
I tried with latest stable version and dev
Title: Re: LCD backlight still on even iPod shutdown
Post by: Frankenpod on April 15, 2021, 06:11:35 AM
Odd.  I haven't had that happen. Not on a dozen different rockboxed ipods 5th and 7th gen, all using recent rockbox versions.  Possibly there is a hardware issue with your ipod?

Does it shut down correctly with the original firmware?

I had an ipod a long time ago that thought it was constantly connected to a USB charger, which caused it not to shut down properly and to drain battery quickly.  I think it was something amiss with the 30-pin port.

If yours works with the original firmware, then that is a puzzle.  But I have several in front of me right now, with recent rockbox builds, and they are all correctly shut down with the screen dark - so I can't see that it's a rockbox issue.

Edit - unless it's a _very_ recently introduced bug, like the very latest dev build - I think these are all using builds from a few days ago.
Title: Re: LCD backlight still on even iPod shutdown
Post by: Frankenpod on April 15, 2021, 06:27:03 AM
OK, just tested the very latest dev version with an ipod video and it works correctly - screen goes off when shut down.  Can only suggest it might be a hardware issue with your ipod.
Title: Re: LCD backlight still on even iPod shutdown
Post by: PeppeNT on April 15, 2021, 08:50:41 AM
Yep, with original firmware it works normally.
But i can do this workaround as i said: turn off backlight before shutting down left screen off. But the problem is that every time i have to turn off manually and when i turn in my ipod i have to enable also manually.
Is there a way, in rockbox, to script commands, so i can script to disabile backlight when shutting down device and reenable automatically when turning on?
Title: Re: LCD backlight still on even iPod shutdown
Post by: speachy on April 15, 2021, 10:28:10 AM
Is your iPod modded in any way (eg an SSD?)

Also you didn't seem to mention what version of rockbox you are using. 

Please make sure you are using the latest nightly build, because this sounds like an issue, fixed about a month ago, that only affected SSD-modified iPods.
Title: Re: LCD backlight still on even iPod shutdown
Post by: PeppeNT on April 15, 2021, 02:13:11 PM
Is your iPod modded in any way (eg an SSD?)

Also you didn't seem to mention what version of rockbox you are using. 

Please make sure you are using the latest nightly build, because this sounds like an issue, fixed about a month ago, that only affected SSD-modified iPods.
Yes. My ipod has an ssd. Now i'm using latest development build, installed yesterday, but this issue happens also with latest stable 3.15
Title: Re: LCD backlight still on even iPod shutdown
Post by: PeppeNT on April 15, 2021, 05:41:44 PM
Specs are:
Disk: CF Card
Version installed: 42dba708e3-210414
Title: Re: LCD backlight still on even iPod shutdown
Post by: speachy on April 15, 2021, 08:07:23 PM
Specs are:
Disk: CF Card
Version installed: 42dba708e3-210414

Please go to  rockbox / debug / dump ata identify info, and send me the /identify_info.bin that is created.

I suspect what's going on is that the CF card you're using doesn't properly implement power saving functions, so the shutdown is hanging while waiting for the CF card to acknowledge a clean shutdown.
Title: Re: LCD backlight still on even iPod shutdown
Post by: PeppeNT on April 16, 2021, 05:58:37 AM
Specs are:
Disk: CF Card
Version installed: 42dba708e3-210414

Please go to  rockbox / debug / dump ata identify info, and send me the /identify_info.bin that is created.

I suspect what's going on is that the CF card you're using doesn't properly implement power saving functions, so the shutdown is hanging while waiting for the CF card to acknowledge a clean shutdown.

Sent message with the dump you requested me.
If could help, these days i'm disabling backlight before shutting down ipod, to prevent battery drain.
Only yesterday evening i tried, after update, to leave backlight on, without resolving issue.
Title: Re: LCD backlight still on even iPod shutdown
Post by: PeppeNT on April 22, 2021, 03:02:34 AM
Solved. I made it faster to do myself before waiting your support. I edited source code and added function backlight_set_timeout(-1); before lcd shutdown in powermgmt.c and compiled. This solved my issue.
Please when an user asked help, and you do not want to help him, say it, because, even if this is an open source project and nobody must do nothing, is appreciated to say if you do not have much time to help, so users do not have to wait infinitely an help that won't arrive.
Thanks much.

PS. it wasn't a power saving feature
Title: Re: LCD backlight still on even iPod shutdown
Post by: speachy on April 22, 2021, 06:09:54 AM
Solved. I made it faster to do myself before waiting your support. I edited source code and added function backlight_set_timeout(-1); before lcd shutdown in powermgmt.c and compiled. This solved my issue.

The backlight does not block shutdown.  In other words, the player is still _on_, and still draining the battery, only more slowly.

An apparently-identical issue arose with an older ipod version due to ATA powermgmt code that the iflash adapters bypass.  The ipod6g+ series use a different ATA driver that currently has no awareness of the iflash adapters and the need to disable power management on those things.

Please when an user asked help, and you do not want to help him, say it, because, even if this is an open source project and nobody must do nothing, is appreciated to say if you do not have much time to help, so users do not have to wait infinitely an help that won't arrive.

So it's a good thing you managed to support yourself, eh?
Title: Re: LCD backlight still on even iPod shutdown
Post by: speachy on April 22, 2021, 07:19:41 AM
An apparently-identical issue arose with an older ipod version due to ATA powermgmt code that the iflash adapters bypass.  The ipod6g+ series use a different ATA driver that currently has no awareness of the iflash adapters and the need to disable power management on those things.

 https://www.shaftnet.org/~pizza/ipod6g-test1.zip

Please try this and see if it shuts down cleanly.
Title: Re: LCD backlight still on even iPod shutdown
Post by: speachy on April 22, 2021, 07:39:25 AM
Oh, one more thing that occurred to me.  Can you also send me the .rockbox/config.cfg too?