Rockbox.org home
Downloads
Release release
Dev builds dev builds
Extras extras
themes themes
Documentation
Manual manual
Wiki wiki
Device Status device status
Support
Forums forums
Mailing lists mailing lists
IRC IRC
Development
Bugs bugs
Patches patches
Dev Guide dev guide
Search



Donate

Rockbox Technical Forums


Login with username, password and session length
Home Help Search Staff List Login Register
News:

Thank You for your continued support and contributions!

+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Audio Playback, Database and Playlists
| | |-+  Songs not pausing on headphone unplug
« previous next »
  • Print
Pages: [1]

Author Topic: Songs not pausing on headphone unplug  (Read 759 times)

Offline SuperHands111

  • Member
  • *
  • Posts: 29
Songs not pausing on headphone unplug
« on: August 06, 2019, 02:56:27 AM »
When I unplug my headphones/aux cord, my music doesn't pause even though I have set it to pause on headphone unplug. Should I just reset my iPod and start fresh?
What could be happening here?  It used to work fine until I replaced my battery one day.
Logged

Offline bobba_mosfet

  • Member
  • *
  • Posts: 52
Re: Songs not pausing on headphone unplug
« Reply #1 on: August 07, 2019, 03:11:18 AM »
Some of the devs will probably chime in, but to the best of my knowledge the iPod doesn't have headphone detection.
Logged

Offline Frankenpod

  • Member
  • *
  • Posts: 415
Re: Songs not pausing on headphone unplug
« Reply #2 on: August 07, 2019, 05:46:20 AM »
My understanding was that it does - at least I remember on one ipod a faulty headphone plug causing rockbox to constantly pause until I disabled 'pause on unplug'.

Gonna test this - now I think about it, recently I have noticed my rockboxed ipods don't pause upon accidental headphone unplugging, but I just kind of assumed I hadn't enabled that option.

Hmmm - just tried it and rockbox _does_ pause on headphone unplug when I set that option, I just hadn't previously set it.  But, oddly, it doesn't resume upon the headphone being plugged back, even though I've also selected that option ('pause and resume').  Confusing.
Logged

Offline SuperHands111

  • Member
  • *
  • Posts: 29
Re: Songs not pausing on headphone unplug
« Reply #3 on: August 22, 2019, 07:41:00 PM »
Should I just replace the headphone jack/ribbon cable etc?
It started happening when I replaced my backplate and battery. So I am guessing I damaged something somehow???
Logged

Offline bobba_mosfet

  • Member
  • *
  • Posts: 52
Re: Songs not pausing on headphone unplug
« Reply #4 on: August 24, 2019, 07:14:58 AM »
Is this an ipod6g?

YMMV But I tested this again last week, and neither my current or 2/3 ipod6gs before it have ever had this feature work.
Logged

Offline Frankenpod

  • Member
  • *
  • Posts: 415
Re: Songs not pausing on headphone unplug
« Reply #5 on: August 24, 2019, 07:41:45 AM »
Just this moment tested it (on a 7th gen) and it works as it should - unplug headphone and it pauses.  And this time 'pause and resume' also worked (plug headphone back in and it goes back to play mode).

I wonder if the headphone-detect feature is something that is particularly prone to mechanical failure on headphone jacks?

Edit - also works on a 5th gen.
« Last Edit: August 24, 2019, 07:44:02 AM by Frankenpod »
Logged

Offline bobba_mosfet

  • Member
  • *
  • Posts: 52
Re: Songs not pausing on headphone unplug
« Reply #6 on: August 25, 2019, 06:38:45 PM »
Code: [Select]
# .cfg file created by rockbox 9f551b09f6-190823 - http://www.rockbox.org
...
pause on headphone unplug: pause

With this setting enabled whenever I unplug the headphones it has no effect on playback.

I wonder how this is supposed to work - maybe something isn't grounded correctly - really have no idea.

If it helps its a slim headphone jack fitted into a fat case back. There is space behind the jack which is padded to support it in the bigger case.

Is your 7th gen unopened?
Logged

Offline Frankenpod

  • Member
  • *
  • Posts: 415
Re: Songs not pausing on headphone unplug
« Reply #7 on: August 26, 2019, 08:56:34 AM »
Nah, it's iflash modded, so opened (more than once).  All my ipods have been openned multiple times :)

So far every one I've tried it with, the pause-on-unplug has worked.

One oddity is that if the headphone jack is already unplugged but you then press 'play' it will start playing.  Seems to me it would be more logical that when pause-on-unplug is enabled, it will also be prevented from starting to play if there's no headphone jack plugged in to start with.  That would be a further protection from running down the battery with 'pocket playing' if you fail to engage the 'hold' switch when not using the ipod.

Or perhaps that should have it's own option, in case you are using the dock connector.

Which rockbox version are you using?  I'm using fairly recent dev versions.
« Last Edit: August 26, 2019, 08:59:04 AM by Frankenpod »
Logged

Offline bobba_mosfet

  • Member
  • *
  • Posts: 52
Re: Songs not pausing on headphone unplug
« Reply #8 on: August 26, 2019, 02:36:43 PM »
Quote from: Frankenpod on August 26, 2019, 08:56:34 AM
Which rockbox version are you using?  I'm using fairly recent dev versions.

I provided the build info in my post, at the top of the cfg snippet  ;)

OK, interesting that yours are opened too.

I'm never more than a week behind trunk/master.

Here is some potentially terrible bash code doing the leg work  ;D

Code: [Select]
function update_rockbox()
{
rockbox_info="$mount_point/.rockbox/rockbox-info.txt"
build_info=$(wget -qO - https://www.rockbox.org/dl.cgi?bin=ipod6g | grep "$(date +%F)" )
if [[ -z "$build_info" ]] # today's build doesn't exist yet?
then
## We'll take yesterday's build thank you very much
build_info=$(wget -qO - https://www.rockbox.org/dl.cgi?bin=ipod6g | grep "$(date --date yesterday +%F)" )
fi
latest_svn=$(echo "$build_info" | grep -Eo '[a-z0-9]{7}' | tail -n 1)
current_svn=$(grep 'Version' "$rockbox_info" | cut -c 10-16)
echo -e "\nLatest Rockbox SVN Revision: $latest_svn"
echo -e "Current Rockbox SVN Revision: $current_svn\n"

if [[ -n $current_svn && -n $latest_svn ]];
then
if [[ "$current_svn" != "$latest_svn" ]]
then
printf 'Updating iPod rockbox to latest revision...'
dl_url="http://download.rockbox.org/daily/ipod6g/rockbox-ipod6g.zip"
zip_name=$(basename "$dl_url")

if [[ ! -f "/tmp/$zip_name" ]]; then wget -q "$dl_url" -O "/tmp/$zip_name"; fi
unzip -qo "/tmp/$zip_name" -d "$mount_point/"
printf 'OK\n'
hex_edit_boot
else
echo -e "Rockbox is already up to date.\n"
fi
fi
}
Logged

Offline SuperHands111

  • Member
  • *
  • Posts: 29
Re: Songs not pausing on headphone unplug
« Reply #9 on: August 26, 2019, 08:24:20 PM »
Quote from: bobba_mosfet on August 24, 2019, 07:14:58 AM
Is this an ipod6g?

YMMV But I tested this again last week, and neither my current or 2/3 ipod6gs before it have ever had this feature work.

It's an iPod Video 5.5g
Logged

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Support and General Use
| |-+  Audio Playback, Database and Playlists
| | |-+  Songs not pausing on headphone unplug
 

  • SMF 2.0.17 | SMF © 2019, Simple Machines
  • Rockbox Privacy Policy
  • XHTML
  • RSS
  • WAP2

Page created in 0.076 seconds with 15 queries.