From mboxrd@z Thu Jan 1 00:00:00 1970 From: haojian.zhuang@gmail.com (Haojian Zhuang) Date: Tue, 17 May 2011 23:02:19 +0800 Subject: How to debug /sys/power/state? In-Reply-To: References: Message-ID: To: kernelnewbies@lists.kernelnewbies.org List-Id: kernelnewbies.lists.kernelnewbies.org On Tue, May 17, 2011 at 10:40 PM, Joy Sun wrote: > Hi, > > I'm a newbie, and trying to understand the power control over linux. > > It looks that the basic power control would be achieved by /sys/power/state, > but I can't find the starting point to look at it. > > Could somebody help me to find where takes the input from /sys/power/state > in linux kernel code, please? > > (I've posted this before, but it doesn't look it appear in the list, so I > re-post again.) > $LINUX/kernel/power/main.c