You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

51 lines
2.1 KiB

  1. # Gnokii Tips
  2. *Posted 2007-05-22, updated 2021-07-01.*
  3. I own a Nokia 6102i phone (provided by Cingular). [gnokii](http://gnokii.org) is a Linux program that lets me interface with the phone. Here are some recipes:
  4. ## File I/O
  5. `gnokii --getfilelist "A:\\predefgallery\\predeftones\\predefringtones\\*"`
  6. `gnokii --putfile WiiSports.mp3 "A:\\predefgallery\\predeftones\\predefringtones\\WiiSports.mp3"`
  7. ## Ring Tones
  8. Voice mail picks up in 20 seconds, so a ring tone should be about 20 seconds long.
  9. The easiest way to chop an MP3 in Linux is with dd; the drawback is that you need to specify length in KB, not time. To chop an MP3 to be 200 KB long, do:
  10. `dd if=Mii\ Channel.mp3 of=MiiChan2.mp3 bs=1k count=200`
  11. ## Phonebook
  12. To make a Phonebook.ldif file from the phone (suitable for import into Thunderbird):
  13. `gnokii --getphonebook ME 1 end --ldif > Phonebook.ldif`
  14. To add the entries in Phonebook.ldif to the phone:
  15. `cat Phonebook.ldif | gnokii --writephonebook -m ME --find-free --ldif`
  16. You can specify `--overwrite` instead of `--find-free` if you want to overwrite all the entries, but this will lose some data (e.g. speed dial, preferred numbers).
  17. ## Multimedia
  18. You can get photos like this:
  19. `gnokii --getfile "A:\\predefgallery\\predefphotos\\Image000.jpg"`
  20. They are 640x480 JPG files. (You can also configure the camera so that it takes pictures at 80x96.)
  21. You can also store files:
  22. `gnokii --putfile silly.jpg "A:\\predefgallery\\predefphotos\\silly.jpg"`
  23. These show up on the phone in `My Stuff/Images`. The files don't need to be any specific size; they are autoscaled. GIFs probably also work.
  24. Videos live here:
  25. `gnokii --getfile "A:\\predefgallery\\predefvideos\\Video000.3gp"`
  26. VLC seems to be able to play `.3gp` files, but the audio doesn't work.
  27. Audio recordings live here:
  28. `gnokii --getfile "A:\\predefgallery\\predefrecordings\\Audio000.amr"`
  29. Unfortunately, nothing I knew of in 2007 (when this page was first written) would play `.amr` files, but these days (2021) perhaps `ffmpeg input.amr output.mp3` would work. You might have to use the `-ar` flag to specify the audio rate. I haven't actually tried this though!