Also present were Wimbledon champion and two-time US Open winner Novak Djokovic, as well as Marin Cilic, the champion in New York in 2014.
Kyrgios, 23, reached the third round by defeating Frenchman Pierre-Hugues Herbert 4-6, 7-6 (8/6), 6-3, 6-0.
However, the game created a big storm after the respected referee Mohamed Lahyani lost patience with the 30th seed and got off his chair to tell the Australian, who lost by 0-3, try more.
"I want to help you", you could hear Lahyani say. "This is not you, I know, you're great for tennis."
A Furious Herbert said that Lahyani had surpassed the mark.
"The referee does not have to talk to him, he can only tell him to pay attention, because if he continues like this, I'll give him a warning," the 27-year-old said. .
"You can tell him from the chair, he does not need to get off, he does not need to say the words he said in the video, that's not his job, I do not think he's a coach, he's a referee."
Kyrgios, however, played down the incident.
"He said he liked him, I'm not sure if that was a boost," said the Australian, who nevertheless won 19 of the last 25 games after Lahyani's unprecedented intervention.
"He just said it's not a good look, I know what I was doing there was not good."
Penalty of two points
The US Open chiefs did not help matters by saying that Lahyani was forced to get out of the chair because the noise of the crowd meant that Kyrgios could not hear him.
"Lahyani was worried that Kyrgios might need medical attention," tournament referee Brian Earley said.
"He also informed Kyrgios that if his apparent lack of interest in the party continued, that as presiding judge, he would have to take action."
Djokovic defeated Tennys Sandgren of the United States 6-1, 6-3, 6-7 (2/7), 6-2.
"I thought I played very well for the first two and a half sets and then I just lost it mentally, I got mad," said 2011 and 2015 champion Djokovic.
"I'm not happy with the way I lost my concentration and composure, but I managed to regroup in the room."
The next for the sixth seed Djokovic is the Serbian compatriot Laslo Djere or Richard Gasquet from France.
The third German favorite Alexander Zverev made the third round for the first time in four attempts after a 6-4, 6-4, 6-2 victory over the lucky French loser, Nicolas Mahut.
"I'm doing a lot of different things, I'm not going out at all," said the 21-year-old who will face compatriot Philipp Kohlschreiber.
Seventh seed Cilic had an easy second straight day with a 6-2, 6-0, 6-0 loss by Polish qualifier Hubert Hurkacz. Cilic connected 34 winners and 13 aces in a quick 79-minute victory.
Wimbledon champion Angelique Kerber maintained her bid for a second US Open title on the track, beating Sweden's Johanna Larsson 6-2, 5-7, 6-4.
"I think we both really play at a very high level from the first point," said 2016 champion Kerber, who led by a set and 5-2 at one point.
Kerber will face the fourth finalist of 2010, Dominika Cibulkova, after the Slovak beat the Taiwanese Hsieh Su-Wei by 7-6 (7/3), 4-6, 6-4 despite beating two points for returning afternoon of a heat break.
Twenty-sixth seed of Belarus, Aryna Sabalenka, continued her hot summer by beating 2010 finalist Vera Zvonareva 6-3, 7-6 (9/7).
Sabalenka, who won the New Haven tournament last week and reached the semi-finals in Cincinnati, reached the third round of a Slam for the first time.
Later on Thursday, former champion Maria Sharapova plays under the lights of Arthur Ashe Stadium against Romania's Sorana Cirstea.
Second seed Caroline Wozniacki, twice runner-up and current Australian Open champion, tackles Lesia Tsurenko of Ukraine.