ALT Linux kernel packages development
 help / color / mirror / Atom feed
From: Alex Yustasov <snmon@server.by>
To: devel-kernel@altlinux.ru
Subject: Re: [d-kernel] Re: I: new -wks26 kernel
Date: Wed, 5 Jan 2005 14:38:35 +0200
Message-ID: <20050105123835.GA3034@server.by> (raw)
In-Reply-To: <20050104174125.GD8119@lks.home>

[-- Attachment #1: Type: text/plain, Size: 940 bytes --]

On Tue, Jan 04, 2005 at 08:41:25PM +0300, Konstantin A. Lepikhov wrote:
> интересно, есть способ сделать это культурно (раньше можно было сказать
> service sound stop, как сейчас?)

Если звуковые модули не заняты, то работает (или service sound stop или
выгружаются все модули). Если что-то использует эти модули (xmms например),
тогда звук ломается.

Сейчас посмотрел на swsusp-2.4.28-2.1.5.7 трезвым взглядом - оказывается 
он не посылает PM_SUSPEND/PM_RESUME никому.

Вообщем
Для 2.4.28 на http://snmon.at.tut.by/swsusp-2.4.28-2.1.5.7.tar.bz2

5b3f0b0a1b15f8260ca73a8ea38fcd0c  swsusp-2.4.28-2.1.5.7.tar.bz2

плюс патч в аттаче. Исправляет только звук.

> 
> > Похоже alsa-1.0.7 не поможет.
> > 
> > Прошу прощения за вопрос, но как работать с cvs?
> это к rider@ наверное, он доступом туда рулит.

Помнится, доступ он обещал всем, кто для ядра что-то делает.
Вот как что-то положить, а то страшно что поломаю.

[-- Attachment #2: 63-swsusp-devices-alt.patch --]
[-- Type: text/plain, Size: 1173 bytes --]

--- old/kernel/power/suspend.c	2004-11-25 13:51:15 +0200
+++ new/kernel/power/suspend.c	2004-11-25 13:51:45 +0200
@@ -53,6 +53,7 @@
 #include <linux/module.h>
 #include <linux/console.h>
 #include <linux/version.h>
+#include <linux/pm.h>
 #include <asm/uaccess.h>
 
 #include "suspend.h"
@@ -91,6 +91,8 @@
 	SUSPEND_DRIVERS_PRE_POWERDOWN,
 };
 
+static int pm_suspend_state = 0;
+
 void suspend_drivers_resume(int stage)
 {
 	switch (stage) {
@@ -100,6 +102,12 @@
 
 		case SUSPEND_DRIVERS_USED_DEVICES_IRQS_ENABLED:
 			BUG_ON(irqs_disabled());
+			if (pm_suspend_state) {
+				if (pm_send_all(PM_RESUME,(void *)0))
+					printk(name_suspend
+					  "Problem while sending resume event\n");
+				pm_suspend_state=0;
+			}
 			break;
 
 		case SUSPEND_DRIVERS_UNUSED_DEVICES_IRQS_DISABLED:
@@ -140,6 +148,14 @@
 
 		case SUSPEND_DRIVERS_USED_DEVICES_IRQS_ENABLED:
 			BUG_ON(irqs_disabled());
+			if (!pm_suspend_state) {
+				if (pm_send_all(PM_SUSPEND,(void *)3)) {
+					printk(name_suspend
+						"Problem while sending suspend event\n");
+					result=1;
+				}
+				pm_suspend_state=1;
+			}
 			break;
 
 		case SUSPEND_DRIVERS_PRE_POWERDOWN: /* Power down system */

  reply	other threads:[~2005-01-05 12:38 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-01-03 10:20 [d-kernel] " Konstantin A. Lepikhov
2005-01-03 14:59 ` Alex Yustasov
2005-01-03 18:22   ` [d-kernel] " Konstantin A. Lepikhov
2005-01-04  9:09     ` Alex Yustasov
2005-01-04 17:41       ` Konstantin A. Lepikhov
2005-01-05 12:38         ` Alex Yustasov [this message]
2005-01-04 15:01 ` [d-kernel] " Maxim Tyurin
2005-01-04 17:01   ` Alex Yustasov
2005-01-04 17:35     ` Maxim Tyurin
2005-01-04 17:20   ` [d-kernel] " Konstantin A. Lepikhov
2005-01-04 18:18     ` Maxim Tyurin

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=20050105123835.GA3034@server.by \
    --to=snmon@server.by \
    --cc=devel-kernel@altlinux.ru \
    /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

ALT Linux kernel packages development

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/devel-kernel/0 devel-kernel/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 devel-kernel devel-kernel/ http://lore.altlinux.org/devel-kernel \
		devel-kernel@altlinux.org devel-kernel@altlinux.ru devel-kernel@altlinux.com
	public-inbox-index devel-kernel

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.devel-kernel


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git