Jerry Hopkins, a first-generation music writer for Rolling Stone magazine whose many books included biographies of Jim Morrison, Elvis Presley and Jimi Hendrix — as well as a memoir of his affair with a transsexual prostitute — died on Sunday in a hospital in Bangkok. He was 82.

His son, Nick, said the cause was heart failure.

Mr. Hopkins produced an eclectic range of work that was largely about rock music but that also included books and articles about exotic food, sex, travel and Hawaiian musical instruments.

But his most famous subject was undoubtedly Jim Morrison, who rose to fame as the charismatic lead singer of the Doors and was only 27 when he died in Paris in 1971.