Neither peaceful demonstrations, not violent actions can be explained without keeping in mind that ‘revolutions cannot do without the word “justice” and the sentiment it arouses. (…) People feel that government is just or unjust, legitimate or illegitimate (…) by what it does. If its actions (…) violate their basic values, they may conclude, (…) that “a government without justice is a great robbery”’.  People’s views and perceptions are needed to understand both their relation to power (obedience, legitimacy among others) as well as the relations between foreign aid and legitimacy. Negative perceptions on their governments’ performance and their ‘illegitimate’ foreign alliances will lead to decreasing feeling of community between the masses and the elites as well as decreasing legitimacy of the regime. Even if measuring legitimacy is difficult, the Arab Barometer may help us understand how people think about their own obligations to obey. When (in 2010 or 2011, check Arab Barometer codebook) asked about the necessity of support to be provided to their governments (even if they do not agree with it), ca 40-60% of the respondents in most countries were ready to show (belief in the necessity of) obedience:
Michael C. Hudson, investigating the origins of legitimacy in the Arab world, points to the fact that “Islam was a complete social system; membership (…) created a certain brotherhood above the immediate ties of kinship. It also conferred a stability, an equilibrium, on society as a whole, even to the point of supporting the passive acceptance of wrongs committed by the ruler who nonetheless deferred (theoretically) to the sanctity of the Shari’a.” 
Sources and further reading: Arab Barometer, wave II (2010-2011, question 216): http://www.arabbarometer.org/instruments-and-data-files; other (see biblio data in earlier posts):  Citing Eckstein and Gurr (1975) Razi emphasizes that it is people’s “positive or negative judgment of what is perceived” about the behavior of the regime that must be investigated to know the level of legitimacy. If the majority of the population is more or less satisfied with the government’s performance and actions in areas of “identity, participation, distribution, equality and sovereignty according to the norms they believe in, there is no crisis of legitimacy.” Razi, ‘Legitimacy, religion’, 70.;  Michael C. Hudson (1977): Arab Politics. The search for Legitimacy. New Haven: Yale University Press, p50.