mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Peter Osterlund <petero2@telia.com>
To: Pavel Machek <pavel@ucw.cz>
Cc: Grzegorz Piotr Jaskiewicz <gj@pointblue.com.pl>,
	Hamie <hamish@travellingkiwi.com>,
	linux-kernel@vger.kernel.org
Subject: Re: uspend to Disk - Kernel 2.6.4 vs. r50p
Date: 04 May 2004 22:55:00 +0200	[thread overview]
Message-ID: <m2pt9j29qz.fsf@p4.localdomain> (raw)
In-Reply-To: <20040503192940.GA3531@elf.ucw.cz>

Pavel Machek <pavel@ucw.cz> writes:

> Hi!
> 
> > >Use echo 4 > /proc/acpi/sleep, and vanilla kernels.
> > >
> > >			
> > >
> > What If it happends that I have T22 Thinkpad, and it doesn't work with 
> > ACPI in 2.6 (causes problems with network cards for some reason, long 
> > and not yet fixed bug in ACPI), and I don't have /proc/acpi. How can I 
> > use swsusp than ?
> 
> I added entry to FAQ:
> 
> Q: My machine doesn't work with ACPI. How can I use swsusp than ?
> 
> A: Do reboot() syscall with right parameters. Warning: glibc gets in
> its way, so check with strace:
> 
> reboot(LINUX_REBOOT_MAGIC1, LINUX_REBOOT_MAGIC2, 0xd000fce2)
> 
> Ouch, and when you code that trivial program, send me source, I lost
> mine.

#include <unistd.h>
#include <syscall.h>

#define	LINUX_REBOOT_MAGIC1	0xfee1dead
#define	LINUX_REBOOT_MAGIC2	672274793
#define	LINUX_REBOOT_CMD_SW_SUSPEND	0xD000FCE2

int main()
{
    syscall(SYS_reboot, LINUX_REBOOT_MAGIC1, LINUX_REBOOT_MAGIC2,
	    LINUX_REBOOT_CMD_SW_SUSPEND, 0);
    return 0;
}

-- 
Peter Osterlund - petero2@telia.com
http://w1.894.telia.com/~u89404340

  parent reply	other threads:[~2004-05-04 20:55 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-04-29  6:41 Hamie
2004-05-03 12:31 ` Pavel Machek
2004-05-03 14:56   ` Grzegorz Piotr Jaskiewicz
2004-05-03 19:29     ` Pavel Machek
2004-05-03 20:07       ` Grzegorz Piotr Jaskiewicz
2004-05-03 20:09         ` Pavel Machek
2004-05-04 20:55       ` Peter Osterlund [this message]
2004-05-05  1:18   ` Rob Landley
2004-05-06 15:43     ` Romano Giannetti
2004-05-06 16:22       ` Rob Landley
2004-05-08 22:54     ` Pavel Machek
2004-05-09  4:31       ` Rob Landley
2004-05-09 21:49         ` Pavel Machek
2004-05-11 17:49           ` Rob Landley
2004-05-09 22:31       ` Nigel Cunningham
2004-05-09 22:43         ` Pavel Machek
2004-05-09 22:48         ` Pavel Machek
2004-05-09 22:50           ` Nigel Cunningham
2004-05-09 22:51         ` Pavel Machek

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m2pt9j29qz.fsf@p4.localdomain \
    --to=petero2@telia.com \
    --cc=gj@pointblue.com.pl \
    --cc=hamish@travellingkiwi.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=pavel@ucw.cz \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®