After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 349652 - Sync iPod's time when sync'ing
Sync iPod's time when sync'ing
Status: RESOLVED OBSOLETE
Product: rhythmbox
Classification: Other
Component: iPod
HEAD
Other Linux
: Normal normal
: ---
Assigned To: RhythmBox Maintainers
RhythmBox Maintainers
Depends on:
Blocks: 338564
 
 
Reported: 2006-08-02 10:27 UTC by Bastien Nocera
Modified: 2018-05-24 11:42 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Bastien Nocera 2006-08-02 10:27:39 UTC
My iPod's clock is always at the wrong time. It would be nice if Rhythmbox could set the iPod's time when syncing, like iTunes does:
http://macs.about.com/od/ipod/a/ipod_clock.htm

Note: I have absolutely no idea how iTunes "sets" the time.
Comment 1 Bastien Nocera 2006-08-02 10:43:29 UTC
Could it be using the iTunesLock file?
"
iTunesLock File

This file is created right before iTunes modifies or reads anything on the iPod, and is deleted when it is finished. Does not contain any data, and is probably only used to make sure only one program at a time tries accessing the important files on the iPod at one time. 
"
Comment 2 Christophe Fergeau 2009-03-17 15:45:40 UTC
From http://www.rockbox.org/twiki/bin/view/Main/IpodItunesCommunication#Setting_the_clock 

    *  Itunes sets the clock using a vendor specific WRITE BUFFER command.
    * To set the clock from a linux system, install sg3-utils, make a (binary) file containing (in hex here, date = 17 March 2009, 15:17:27) : 07 D9 00 4B 04 0F 11 1B 00 00 00 00
    * The fields are as follows:
          o Year 2 bytes
          o Days since 1 Jan 2 bytes
          o timezone 1 byte (0==London, 4==Paris, others still unknown)
          o hour 1 byte
          o minutes 1 byte
          o seconds 1 byte
          o four zero bytes 
    * run "sg_raw --send=12 -i datefile /dev/sdb 3b 01 00 0c 00 00 00 00 00 00" (as root, with of course the ipod being /dev/sdb here) 

Comment 3 Christophe Fergeau 2009-06-12 21:01:48 UTC
libgpod now has a command line tool to manually trigger a time synchronization. I'm not sure yet if I'll try to integrate this in the hal callout so that the time is sync'd automatically when the iPdo is plugged in or if it will be exposed to app writer somehow.
Comment 4 GNOME Infrastructure Team 2018-05-24 11:42:58 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to GNOME's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/rhythmbox/issues/217.