By 1925, Sosnkowski and Piłsudski parted ways. Sosnkowski was not informed by Piłsudski about his plans for the 1926 coup. When President Stanisław Wojciechowski demanded during the coup that military forces come to the government's aid, Sosnkowski dispatched the units under his command accordingly. On 13 May he tried to commit suicide, which he felt was the only honorable way out of his predicament. After recuperation, he returned to military service in 1927. Despite the cooling of relations with Piłsudski, Sosnkowski retained his trust. In 1927 he was appointed inspector of Army Podole and Army Wołyń, and in 1928 of Army Polesie. He became head of the Committee for Matters of Armaments and Equipment and remained in that position until the outbreak of World War II. After Piłsudski's death in 1935 Sosnkowski, unable to reconcile his differences with Marshal Rydz-Śmigły, was pushed aside. In the Sanation camp, he favored dialogue with opposition groups. This approach was rejected by Rydz-Śmigły and President Ignacy Mościcki. Sosnkowski strongly criticized their policies, including the annexation of Zaolzie in 1938, which he steadfastly opposed. Sosnkowski was not assigned a military role in the plans for the 1939 defense of the country.