GNOME Bugzilla – Bug 349652
Sync iPod's time when sync'ing
Last modified: 2018-05-24 11:42:58 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.
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. "
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)
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.
-- 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.