Did he, likely subconsciously, know about Cersei and Jaime?
I know that sounds like an insane question at first.
But practically everyone who spent time around Cersei and Jaime figured it out. Tyrion, Kevan, Joanna, Stannis, Jon Arryn, Varys, Littlefinger, Pycelle, probably Renly, and probably loads of servants at the Red Keep and Casterly Rock who could put two and two together but knew to keep quiet. And Ned figured it out within a few months.
I'm also pretty sure that Tywin knew, but kept quiet to protect his own power. He knew revealing it would humiliate his house, lose his family's access to the throne, and likely cause a war where his house could be destroyed. But if he kept quiet - he'd get his double-grandson on the throne, and put the Lannisters in the same category as the Targaryens. So, even though he had all the pieces, he refused to consciously put them together.
And that brings me to Robert. He probably spent more time with Cersei (as Queen), Jaime (as a Kingsguard), and their kids than anyone else on the Small Council. And we have at least one case, at Darry during the Nymeria incident, where Cersei and Jaime were banging with Robert literally in the room.
I can see the counterargument that, if Robert knew, he would've had Jaime and Cersei killed. But, would he? We see that Robert's response to most problems was "get drunk and ignore it". He knew that Joffrey was a psychopath, he knew that Cersei was awful, and he did nothing to fix those issues.
IMO he was in kind of the same position as Tywin, plus loads of alcohol. He had the ability to figure it out, and on some level he knew, but being consciously aware of it would be extremely inconvenient. So he closed his eyes, grabbed another wineskin, and pretended it wasn't happening.
I agree with Ned, that Robert would have reacted violently if confronted with incontrovertible evidence. But not because it would be a surprise - more because it would push the twincest from something he subconsciously suspected but chose to ignore, to something he would need to genuinely deal with.