From: Pavel Machek <pavel@suse.cz>
To: Benoit Boissinot <bboissin@gmail.com>
Cc: romano@dea.icai.upco.es, dtor_core@ameritech.net,
linux-kernel@vger.kernel.org, Andrew Morton <akpm@osdl.org>
Subject: noresume breaks next suspend [was Re: 2.6.12-rc1 swsusp broken]
Date: Fri, 1 Apr 2005 00:25:31 +0200 [thread overview]
Message-ID: <20050331222531.GE1802@elf.ucw.cz> (raw)
In-Reply-To: <40f323d005033110292934aa1d@mail.gmail.com>
Hi!
> > Yes! With this it works ok.
> >
> > > Also, could you please try sticking psmouse_reset(psmouse) call at the
> > > beginning of drivers/input/mouse/alps.c::alps_reconnect() and see if
> > > it can suspend _without_ the patch above.
> >
>
> Both patches are working for me (Dell D600). before i was unable to
> suspend to disk on this laptop (it was stuck in alps code).
>
> By the way, i have an unrelated problem:
> if the kernel was booted with the "noresume" option, it cannot be
> suspended, it fails with:
>
> swsusp: FATAL: cannot find swap device, try swapon -a!
Uh, okay, logic error, probably introduced by resume-from-initrd
patch. Does this fix it?
OTOH, perhaps refusing suspend is right thing to do. If user is
running in "safe mode" (with noresume), we don't want him to be able
to suspend...
Pavel
--- clean/kernel/power/swsusp.c 2005-03-19 00:32:32.000000000 +0100
+++ linux/kernel/power/swsusp.c 2005-04-01 00:23:15.000000000 +0200
@@ -1376,16 +1371,6 @@
{
int error;
- if (!swsusp_resume_device) {
- if (!strlen(resume_file))
- return -ENOENT;
- swsusp_resume_device = name_to_dev_t(resume_file);
- pr_debug("swsusp: Resume From Partition %s\n", resume_file);
- } else {
- pr_debug("swsusp: Resume From Partition %d:%d\n",
- MAJOR(swsusp_resume_device), MINOR(swsusp_resume_device));
- }
-
resume_bdev = open_by_devnum(swsusp_resume_device, FMODE_READ);
if (!IS_ERR(resume_bdev)) {
set_blocksize(resume_bdev, PAGE_SIZE);
--- clean/kernel/power/disk.c 2005-03-19 00:32:32.000000000 +0100
+++ linux/kernel/power/disk.c 2005-04-01 00:23:09.000000000 +0200
@@ -233,6 +237,16 @@
{
int error;
+ if (!swsusp_resume_device) {
+ if (!strlen(resume_file))
+ return -ENOENT;
+ swsusp_resume_device = name_to_dev_t(resume_file);
+ pr_debug("swsusp: Resume From Partition %s\n", resume_file);
+ } else {
+ pr_debug("swsusp: Resume From Partition %d:%d\n",
+ MAJOR(swsusp_resume_device), MINOR(swsusp_resume_device));
+ }
+
if (noresume) {
/**
* FIXME: If noresume is specified, we need to find the partition
--
People were complaining that M$ turns users into beta-testers...
...jr ghea gurz vagb qrirybcref, naq gurl frrz gb yvxr vg gung jnl!
next prev parent reply other threads:[~2005-03-31 22:28 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-03-29 11:03 swsusp not working for me on a PREEMPT 2.6.12-rc1 and 2.6.12-rc1-mm3 kernel Romano Giannetti
2005-03-29 13:20 ` Romano Giannetti
2005-03-29 17:02 ` Romano Giannetti
2005-03-29 18:15 ` Pavel Machek
2005-03-31 14:47 ` 2.6.12-rc1 swsusp broken [Was Re: swsusp not working for me on a PREEMPT 2.6.12-rc1 and 2.6.12-rc1-mm3 kernel] Romano Giannetti
2005-03-31 15:15 ` Dmitry Torokhov
2005-03-31 15:41 ` Romano Giannetti
2005-03-31 16:50 ` Romano Giannetti
2005-03-31 18:09 ` Dmitry Torokhov
2005-04-01 16:14 ` Benoit Boissinot
2005-04-01 16:28 ` Dmitry Torokhov
2005-04-01 16:43 ` Touchpad does not work anymore Benoit Boissinot
2005-04-01 17:00 ` Dmitry Torokhov
2005-04-01 17:29 ` Benoit Boissinot
2005-04-05 2:21 ` Benoit Boissinot
2005-03-31 18:29 ` 2.6.12-rc1 swsusp broken [Was Re: swsusp not working for me on a PREEMPT 2.6.12-rc1 and 2.6.12-rc1-mm3 kernel] Benoit Boissinot
2005-03-31 22:25 ` Pavel Machek [this message]
2005-04-01 0:50 ` noresume breaks next suspend [was Re: 2.6.12-rc1 swsusp broken] Nigel Cunningham
2005-04-01 3:04 ` Nigel Cunningham
2005-04-01 9:45 ` Pavel Machek
[not found] ` <20050525212520.419ee442.akpm@osdl.org>
[not found] ` <20050603094448.GA3218@pern.dea.icai.upco.es>
[not found] ` <20050603105010.GA7300@pern.dea.icai.upco.es>
2005-06-03 12:35 ` swsusp, preempt, input and 2.6.12-rc5-mm2 Re: swsusp not working for me on a PREEMPT 2.6.12-rc1 and 2.6.12-rc1-mm3 kernel Romano Giannetti
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=20050331222531.GE1802@elf.ucw.cz \
--to=pavel@suse.cz \
--cc=akpm@osdl.org \
--cc=bboissin@gmail.com \
--cc=dtor_core@ameritech.net \
--cc=linux-kernel@vger.kernel.org \
--cc=romano@dea.icai.upco.es \
/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
Powered by JetHome