Re: [linux-pm] [demo patch/RFC] sleepy linux
From: Pavel Machek <hidden>
Date: 2008-02-28 18:13:42
Also in:
lkml
Hi!
Is this limited to UP and only one disk?
Yes... for now.
[comments below]
Thanks!
quoted
--- /dev/null +++ b/Documentation/power/sleepy.txt@@ -0,0 +1,55 @@ + Sleepy Linux + ~~~~~~~~~~~~ + +Copyright 2007 Pavel Machek <pavel@suse.cz> + GPLv2 + +Current Linux versions can enter suspend-to-RAM just fine, but only +can do it on explicit request. But suspend-to-RAM is important, eatingUsually "can only do it" AFAIK.quoted
+something like 10% of power needed for idle system. Starting suspend +manually is not too convinient; it is not an option on multiuserconvenient;
Spelling applied.
quoted
+Then, enable SCSI powersave by something like: + +mount /sysIsn't /sys auto-mounted by kernel?
No.
quoted
+/* The host and its devices are all idle so we can autosuspend */ +static int autosuspend(struct Scsi_Host *host) +{ + if (my_pdev && autosuspend_enabled) { + printk("ahci: should autosuspend\n");Use printk() KERN_* levels (multiple places).
Well, code obviously needs a lot of work... I said it was ugly ;-).
quoted
@@ -1820,6 +1858,10 @@ static void ahci_thaw(struct ata_port *a static void ahci_error_handler(struct ata_port *ap) { + struct ata_host *host = ap->host; + int rc; + extern int slept;Eh?
Pavel in hack mode ;-). Yes, I'll clean it up once I fix the fundamental issues -- like UP only etc... Pavel -- (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html