During the last couple of weeks I noticed that my 3G would for no reason go into headphone mode without the headphones even being plugged in.

Two days ago, I tried inserting and removing the headphones many times which did nothing. I then noticed the jack was dirty and removed any lint that was in there (using a paper clip) and tried again.......no dice.

I then performed a hard reset (Home+Power buttons) and it got fixed. Now the phone is back in headphone mode and I have not placed the headphones in since I tried the above .

Any help/suggestions would be great.

Thanks in advance.