Solution to iPod Touch 4 Location Services Bug

Discussion in 'iPod touch' started by Raiderz8418, Oct 12, 2010.

  1. Raiderz8418

    Raiderz8418 Member

    Joined:
    May 13, 2008
    Messages:
    142
    Likes Received:
    0
    Device:
    4G iPod touch
    This is a temporary solution to users having there location services not working. You will have to do this every time you REBOOT. If you dont reboot it will keep on working.

    Open up mobile terminal or SSH and type the following commands in order.

    launchctl unload /System/Library/LaunchDaemons/com.apple.locationd.plist

    launchctl load /System/Library/LaunchDaemons/com.apple.locationd.plist

    Your location services should be working and will keep on working until you reboot your iPod.
    ____________________________________________________________________________________

    AUTO RUN method created by xcript

    Create a new file called "locationd.sh" on your computer, put the following in it:


    Copy it to /usr/local/bin/ on your iPod (using FileZilla, WinSCP or whatever you use) and make sure it's executable.

    Now create another file called "net.xcript.locationd.plist" and put the following in it:


    Copy it to /Library/LaunchDaemons on your iPod.

    Now reboot. That should do it.

    Note, you can change "xcript" (in the plist) to something else. Also, you can do all this directly via SSH if you want with cat, nano or whatever.
  2. xcript

    xcript New Member

    Joined:
    Aug 22, 2010
    Messages:
    22
    Likes Received:
    0
    Device:
    4G iPod touch
    Yeah, restarting locationd allows it to work when I have OpenSSH installed & running (OpenSSH is what was killing it for me).

    I put the above commands in a shellscript and have it autorun on startup via a plist in /Library/LaunchDaemons.
  3. Raiderz8418

    Raiderz8418 Member

    Joined:
    May 13, 2008
    Messages:
    142
    Likes Received:
    0
    Device:
    4G iPod touch
    Can you please explain how to do that? thank you
  4. tinyman392

    tinyman392 Super Moderator Staff Member

    Joined:
    Jul 10, 2008
    Messages:
    16,012
    Likes Received:
    1,380
    Device:
    iPhone 6
    Same here... Would like to know this too.

    Please Register or Log in to view images

  5. TouchFaith

    TouchFaith New Member

    Joined:
    Sep 12, 2010
    Messages:
    95
    Likes Received:
    0
    Device:
    4G iPod touch
    ssh root@ipod

    root# cd /Library/LaunchDaemons
    root# nano location.sh

    (CTRL+X, then Y to save)

    Autorun? No idea.
  6. xcript

    xcript New Member

    Joined:
    Aug 22, 2010
    Messages:
    22
    Likes Received:
    0
    Device:
    4G iPod touch
    Create a new file called "locationd.sh" on your computer, put the following in it:

    Copy it to /usr/local/bin/ on your iPod (using FileZilla, WinSCP or whatever you use) and make sure it's executable.

    Now create another file called "net.xcript.locationd.plist" and put the following in it:

    Copy it to /Library/LaunchDaemons on your iPod.

    Now reboot. That should do it.

    Please Register or Log in to view images



    Note, you can change "xcript" (in the plist) to something else. Also, you can do all this directly via SSH if you want with cat, nano or whatever.
  7. tinyman392

    tinyman392 Super Moderator Staff Member

    Joined:
    Jul 10, 2008
    Messages:
    16,012
    Likes Received:
    1,380
    Device:
    iPhone 6
    Doesn't work for me. Weird.
  8. xcript

    xcript New Member

    Joined:
    Aug 22, 2010
    Messages:
    22
    Likes Received:
    0
    Device:
    4G iPod touch
    Strange.

    Please Register or Log in to view images



    I've verified the script is being executed by appending "echo `date` >>/usr/local/bin/foo" to the end. When I reboot "foo" is updated.

    Edit: Actually, it seems to only work sporadically for me (did a few reboots to test).

    Please Register or Log in to view images

  9. TheDoctah

    TheDoctah Member

    Joined:
    Jun 25, 2008
    Messages:
    126
    Likes Received:
    1
    Device:
    iPad mini
    Whenever location services fails on me, i just head into Settings - General - Location Services and toggle the On/Off button for location services.

    Everything comes right back to life!
  10. InfinitiProject

    InfinitiProject Active Member

    Joined:
    Sep 23, 2010
    Messages:
    695
    Likes Received:
    33
    Device:
    Samsung Galaxy S3
    Wish I had known this before I restored 8 times trying to fix this with Limera1n.
    Mines seem to work right once I jailbroke with Greenpois0n even after installing OpenSSH and after reboots.

Share This Page