The inventor has to be named on the patent, so there's that.
But I think your question relates more to the scientific acknowledgment of an invention. Your example showshows one great scientific invention (inventor known) and one great idea which didn't contribute to science (maybe a little, but not like the blue diode or relativity theory -> inventor unknown).
I don't think anyone can tell you what exactly makes an inventor famous, maybe writing a paper after the patent helps, maybe not. In the end, I think it boils down to the scientific community noticing you.
The chance is there, you have to be listed as an inventor, but nobody can promise that you will be noticed.
If you don't care about the money, patenting or yourself shouldn't be an option - it doesn't matter if your name is on the patent once or twice and you'll spare yourself the trouble and money.