After the death of Vytautas, he supported Grand Duke Švitrigaila and represented him in negotiations with Poland 1431 and 1432 and with the Teutonic Order in 1432 (see Lithuanian Civil War (1432–1438) for political background). Gedvilas was of nine Lithuanian noble witnesses of the Treaty of Christmemel (June 1431) and was at Švitrigaila's side when he was deposed in a coup on 1 August 1432. He was one of the few Lithuanian nobles supporting Švitrigaila after the coup. He was one of the commanders of the Battle of Ashmyany (December 1432) and was taken prisoner. He switched sides to support Sigismund Kęstutaitis and was able to retain his wealth and influence (his son even received Mir from Sigismund in 1434). In May 1434, Gedgaudas witnessed Sigismund's privilege to Catholic and Eastern Orthodox nobility though at that time he did not hold any posts.