Re: [PATCH 1/1] Add /sys/power/last_state support

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, 7 Dec 2009 18:17:36 -0600
Victor Lowther <victor.lowther@xxxxxxxxx> wrote:
> On Dec 7, 2009, at 3:41 PM, "Rafael J. Wysocki" <rjw@xxxxxxx> wrote:
> > Can't you just use the error code returned by "echo mem > /sys/power/ 
> > state"?
> 
> I can, now that I know about it - I did not see anything about error  
> codes when scanning the documentation.

Note that "echo" only will return 0 or 1, not a real error code. You'll
need a 5-line C program to get the errno that's returned from the
kernel.
It might be interesting to know *why* it failed (e.g. no swap
partition or not enough space in there).
-- 
Stefan Seyfried

"Any ideas, John?"
"Well, surrounding them's out."
_______________________________________________
linux-pm mailing list
linux-pm@xxxxxxxxxxxxxxxxxxxxxxxxxx
https://lists.linux-foundation.org/mailman/listinfo/linux-pm

[Index of Archives]     [Linux ACPI]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [CPU Freq]     [Kernel Newbies]     [Fedora Kernel]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux