Uyghurs
Rian Thum explored the concepts of identity among the ancestors of the modern Uyghurs in Altishahr (the native Uyghur name for eastern Turkestan or southern Xinjiang) before the adoption of the name "Uyghur" in the 1930s, referring to them by the name "Altishahri" in his article "Modular History: Identity Maintenance before Uyghur Nationalism". Thum indicated that Altishahri Turkis did have a sense that they were a distinctive group separate from the Turkic Andijanis to their west, the nomadic Turkic Kirghiz, the nomadic Mongol Qalmaq, and the Han Chinese Khitay before they became known as Uyghurs. There was no single name used by them to refer to themselves, the various native names Altishahris used to refer to themselves were Altishahrlik (Altishahr person), yerlik (local), Turki, and Musulmān (Muslim), the term Musulmān in this situation did not signify religious connotations, because the Altishahris would exclude other Muslim peoples like the Kirghiz when referring to themselves as Musulmān. Dr. Laura J Newby has also noted that the sedentary Altishahri Turkic people felt themselves as a separate group from other Turkic Muslims since at least the 19th century.
History of Turkmenistan
The origins of the Turkmen may be traced back to the Oghuz confederation of nomadic pastoral tribes of the early Middle Ages, which lived in present-day Mongolia and around Lake Baikal in present-day southern Siberia. Known as the Nine Oghuz, this confederation was composed of Turkic-speaking peoples who formed the basis of powerful steppe empires in Inner Asia. In the second half of the 8th century, components of the Nine Oghuz migrated through Jungaria into Central Asia, and Arabic sources located them under the term Guzz in the area of the middle and lower Syrdariya in the 8th century. By the 10th century, the Oghuz had expanded west and north of the Aral Sea and into the steppe of present-day Kazakhstan, absorbing not only Iranians but also Turks from the Kipchak and Karluk ethnolinguistic groups. In the 11th century, the renowned Muslim Turk scholar Mahmud al-Kashgari described the language of the Oghuz and Turkmen as distinct from that of other Turks and identified twenty-two Oghuz clans or sub-tribes, some of which appear in later Turkmen genealogies and legends as the core of the early Turkmen.