LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Mobile
User Name
Password
Linux - Mobile This forum is for the discussion of all topics relating to Mobile Linux. This includes Android, Tizen, Sailfish OS, Replicant, Ubuntu Touch, webOS, and other similar projects and products.

Notices


Reply
  Search this Thread
Old 03-14-2010, 07:58 PM   #1
heavenly.park
LQ Newbie
 
Registered: Jun 2009
Posts: 6

Rep: Reputation: 0
Questions for Power Management Code in linux with ARM


hi there !
I am engineer in S.K concetrating in solving How P.M work in linux
As already written in this. I am stuck in P.M not to know How P.M works

I started with writing command to start standby
>echo standby > /sys/power/state <-- this is written in DOC in kernel Directory

After writing command I saw few message but this P.M is restarted
So I looked into the code to know Why ????

enter_state{
...
susped_devices_and_enter(state);
..
}

int suspend_device_and_enter(state){
...
suspend_enter(state) <--- all device and file systems is suspeded : OK
..
Resume_devices:
device_resume();
Resume_console:
resume_console();
return error; <--- return which I saw is only one
}

at this point I really Qurious about if code is correct All device is not suspend because of as soon as suspending All deivce is wakeup because of calling resume_devices

??????

Why ??????


this is What my Device says
[root@IRISID proc]# echo standby > /sys/power/state
Syncing filesystems ... done.
PM: Preparing system for standby sleep
Freezing user space processes ... (elapsed 0.00 seconds) done.
Freezing remaining freezable tasks ... (elapsed 0.00 seconds) done.
PM: Entering standby sleep
Suspending console(s)
mmc1: card 5b02 removed
MMC: killing requests for dead queue
K 764, s3c6410_pm_entertimer tcon=00600000, tcnt 103c3, tcfg 00000400,00000000, usec 00001340
s3c2410-rtc s3c2410-rtc: rtc disabled, re-enabling
s3c2410-i2c s3c2410-i2c: slave address 0x10
s3c2410-i2c s3c2410-i2c: bus frequency set to 129 KHz
s3c2410-wdt: watchdog disabled
irisa_gps_resume: resuming GPS...
irisa_gps_resume: done.
LCD TYPE :: AMGA005 will be initialized
s3cfb_set_gpio(): gpio setting, backlight control, LCD reset etc...
PM: Finishing wakeup.
Restarting tasks ... <4>mmc1: host does not support reading read-only switch. assuming write-enable.
mmc1: new high speed SDHC card at address 5b02
done.
[root@IRISID proc]# mmcblk0: mmc1:5b02 SD04G 3870720KiB
mmcblk0: p1

[root@IRISID proc]#

Thanks in advance
}
 
  


Reply

Tags
arm, management, power



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how to configuring Code-Blocks IDE for arm-linux-gcc golden_boy615 Programming 5 02-22-2010 10:59 PM
Power Management on Linux tahaarifali Linux - General 1 01-21-2006 01:50 PM
Newbie - Power Management Questions kalvadar Linux - Laptop and Netbook 1 02-08-2005 04:41 PM
Power Management and questions excaliber Slackware 5 07-31-2003 05:13 AM
Power Management In Linux rch Linux - Hardware 0 05-18-2003 12:09 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Mobile

All times are GMT -5. The time now is 07:08 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration