public inbox for linux-acpi@vger.kernel.org
 help / color / mirror / Atom feed
From: Pavel Machek <pavel-AlSwsSmVLrQ@public.gmane.org>
To: Alan Hourihane <alanh-ASBjxr/nLg+TY6FTCsQk+9Bc4/FLrbF6@public.gmane.org>
Cc: Patrick Mochel <mochel-3NddpPZAyC0@public.gmane.org>,
	Karol Kozimor <sziwan-DETuoxkZsSqrDJvtcaxF/A@public.gmane.org>,
	Ducrot Bruno <ducrot-kk6yZipjEM5g9hUCZPvPmw@public.gmane.org>,
	acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
Subject: Re: Applications & ACPI events
Date: Wed, 15 Oct 2003 01:55:51 +0200	[thread overview]
Message-ID: <20031014235550.GE20789@elf.ucw.cz> (raw)
In-Reply-To: <20031014234538.GD1918-ASBjxr/nLg+TY6FTCsQk+9Bc4/FLrbF6@public.gmane.org>

Hi!

> > > Patch looks reasonable, but:
> > > 
> > > STATE= should really be more finegrained. ACPI s3 is really differnent
> > > from apm -s, and it looks to me like you'll only tell userspace 'mem'.
> > 
> > Well, it depends on what X (and in general userspace) needs to know on a 
> > power-state transition. Alan, how does/will X behave differently for each 
> > power state that we can enter? 
>  
> Not normally, but it can. X has two functions called EnterVT() and LeaveVT()
> when switching VT's, but we can also define a function called PMEvent() in
> each driver to do specific things based on the PM event type. Now back
> in the days of APM we can handle various things, and the only driver that
> implements the extended functionality of PMEvent() currently is the Intel
> i830 driver. Traditionally though, during an APM event we'd normally just
> called the drivers EnterVT()/LeaveVT() function.
> 
> So with APM we could open /proc/apm & /dev/apm_bios and X could get
> events itself and deal with them in different ways.
> 
> Currently I've got X opening /proc/acpi/events and acting upon them, but
> obviously this race condition is with the kernel shutting us down before
> X has a chance to catch up. This is where the stickling point is on
> how to signal X from the kernel.
> 
> I'm keen to hear anymore opinions on this.

Kernel really should call LeaveVT() before suspend, and EnterVT()
after suspend [And it does now, with exception of apm.]. That should
get rid of 99% of problems... The rest of them can be handled by
Patrick's hotplug patch. (Ouch, it makes X depend on
/sbin/hotplug... :-( )



								Pavel
-- 
When do you have a heart between your knees?
[Johanka's followup: and *two* hearts?]


-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
SourceForge.net hosts over 70,000 Open Source Projects.
See the people who have HELPED US provide better services:
Click here: http://sourceforge.net/supporters.php

  parent reply	other threads:[~2003-10-14 23:55 UTC|newest]

Thread overview: 46+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-09-30 16:59 Applications & ACPI events Alan Hourihane
     [not found] ` <20030930165926.GH1921-ASBjxr/nLg+TY6FTCsQk+9Bc4/FLrbF6@public.gmane.org>
2003-09-30 17:36   ` Ducrot Bruno
     [not found]     ` <20030930173646.GF11391-kk6yZipjEM5g9hUCZPvPmw@public.gmane.org>
2003-10-03 19:38       ` Pavel Machek
     [not found]         ` <20031003193814.GE205-u08AdweFZfgxtPtxi4kahqVXKuFTiq87@public.gmane.org>
2003-10-06 12:49           ` Ducrot Bruno
     [not found]             ` <20031006124935.GQ11391-kk6yZipjEM5g9hUCZPvPmw@public.gmane.org>
2003-10-06 13:05               ` Pavel Machek
     [not found]                 ` <20031006130533.GA311-I/5MKhXcvmPrBKCeMvbIDA@public.gmane.org>
2003-10-08 10:27                   ` Ducrot Bruno
     [not found]                     ` <20031008102745.GF11391-kk6yZipjEM5g9hUCZPvPmw@public.gmane.org>
2003-10-08 19:16                       ` Pavel Machek
     [not found]                         ` <20031008191610.GB1035-I/5MKhXcvmPrBKCeMvbIDA@public.gmane.org>
2003-10-08 21:53                           ` Alan Hourihane
     [not found]                             ` <20031008215342.GE1920-ASBjxr/nLg+TY6FTCsQk+9Bc4/FLrbF6@public.gmane.org>
2003-10-08 21:58                               ` Pavel Machek
     [not found]                                 ` <20031008215850.GF1238-I/5MKhXcvmPrBKCeMvbIDA@public.gmane.org>
2003-10-09 12:36                                   ` Karol Kozimor
     [not found]                                     ` <20031009123620.GD13739-DETuoxkZsSqrDJvtcaxF/A@public.gmane.org>
2003-10-09 21:32                                       ` Applications & ACPI eventse Pavel Machek
     [not found]                                         ` <20031009213245.GB365-I/5MKhXcvmPrBKCeMvbIDA@public.gmane.org>
2003-10-09 23:56                                           ` Karol Kozimor
     [not found]                                             ` <20031009235607.GA13514-DETuoxkZsSqrDJvtcaxF/A@public.gmane.org>
2003-10-10  7:12                                               ` Pavel Machek
     [not found]                                                 ` <20031010071231.GA285-I/5MKhXcvmPrBKCeMvbIDA@public.gmane.org>
2003-10-10 11:19                                                   ` Karol Kozimor
     [not found]                                                     ` <20031010111934.GA10620-DETuoxkZsSqrDJvtcaxF/A@public.gmane.org>
2003-10-10 12:37                                                       ` Bas Mevissen
     [not found]                                                         ` <3F86A7F7.6090406-Y9IUUvl1dgU0Iwp8Nzs06g@public.gmane.org>
2003-10-10 13:17                                                           ` Karol Kozimor
     [not found]                                                             ` <20031010131739.GA24389-DETuoxkZsSqrDJvtcaxF/A@public.gmane.org>
2003-10-10 13:57                                                               ` Bas Mevissen
2003-10-10  7:43                                               ` Pavel Machek
2003-10-09 14:06                                   ` Applications & ACPI events Alan Hourihane
     [not found]                                     ` <20031009140648.GH1922-ASBjxr/nLg+TY6FTCsQk+9Bc4/FLrbF6@public.gmane.org>
2003-10-09 21:35                                       ` Pavel Machek
     [not found]                                         ` <20031009213504.GC365-I/5MKhXcvmPrBKCeMvbIDA@public.gmane.org>
2003-10-13 13:10                                           ` Ducrot Bruno
     [not found]                                             ` <20031013131022.GN11391-kk6yZipjEM5g9hUCZPvPmw@public.gmane.org>
2003-10-13 13:38                                               ` Karol Kozimor
     [not found]                                                 ` <20031013133837.GA9178-DETuoxkZsSqrDJvtcaxF/A@public.gmane.org>
2003-10-13 15:28                                                   ` Pavel Machek
     [not found]                                                     ` <20031013152807.GD15441-I/5MKhXcvmPrBKCeMvbIDA@public.gmane.org>
2003-10-13 16:14                                                       ` Karol Kozimor
     [not found]                                                         ` <20031013161445.GA32511-DETuoxkZsSqrDJvtcaxF/A@public.gmane.org>
2003-10-13 16:19                                                           ` Pavel Machek
     [not found]                                                             ` <20031013161937.GF15441-I/5MKhXcvmPrBKCeMvbIDA@public.gmane.org>
2003-10-13 17:01                                                               ` Karol Kozimor
     [not found]                                                                 ` <20031013170119.GB18363-DETuoxkZsSqrDJvtcaxF/A@public.gmane.org>
2003-10-13 17:05                                                                   ` Pavel Machek
2003-10-13 17:09                                                   ` Patrick Mochel
     [not found]                                                     ` <Pine.LNX.4.44.0310130958540.17450-100000-L1xM/EEGAB4@public.gmane.org>
2003-10-13 17:17                                                       ` Pavel Machek
     [not found]                                                         ` <20031013171704.GH15441-I/5MKhXcvmPrBKCeMvbIDA@public.gmane.org>
2003-10-13 18:59                                                           ` Karol Kozimor
     [not found]                                                             ` <20031013185914.GB1958-DETuoxkZsSqrDJvtcaxF/A@public.gmane.org>
2003-10-13 19:08                                                               ` Pavel Machek
2003-10-14 23:04                                                           ` Patrick Mochel
     [not found]                                                             ` <Pine.LNX.4.44.0310141556320.803-100000-L1xM/EEGAB4@public.gmane.org>
2003-10-14 23:45                                                               ` Alan Hourihane
     [not found]                                                                 ` <20031014234538.GD1918-ASBjxr/nLg+TY6FTCsQk+9Bc4/FLrbF6@public.gmane.org>
2003-10-14 23:55                                                                   ` Pavel Machek [this message]
     [not found]                                                                     ` <20031014235550.GE20789-I/5MKhXcvmPrBKCeMvbIDA@public.gmane.org>
2003-10-15  0:01                                                                       ` Karol Kozimor
2003-10-15 16:20                                                                   ` Patrick Mochel
     [not found]                                                                     ` <Pine.LNX.4.44.0310150907450.953-100000-bi+AKbBUZKY6gyzm1THtWbp2dZbC/Bob@public.gmane.org>
2003-10-15 17:07                                                                       ` Alan Hourihane
2003-10-14 23:52                                                               ` Hardware state saving & X Pavel Machek
     [not found]                                                                 ` <20031014235240.GD20789-I/5MKhXcvmPrBKCeMvbIDA@public.gmane.org>
2003-10-15 16:32                                                                   ` Patrick Mochel
     [not found]                                                                     ` <Pine.LNX.4.44.0310150924400.953-100000-bi+AKbBUZKY6gyzm1THtWbp2dZbC/Bob@public.gmane.org>
2003-10-15 19:13                                                                       ` Pavel Machek
2003-10-16  0:10                                                                       ` Alan Hourihane
     [not found]                                                                         ` <20031016001001.GH1921-ASBjxr/nLg+TY6FTCsQk+9Bc4/FLrbF6@public.gmane.org>
2003-10-16 15:38                                                                           ` Patrick Mochel
2003-10-13 15:26                                               ` Applications & ACPI events Pavel Machek
     [not found]                                                 ` <20031013152637.GC15441-I/5MKhXcvmPrBKCeMvbIDA@public.gmane.org>
2003-10-13 16:21                                                   ` Ducrot Bruno
  -- strict thread matches above, loose matches on Subject: below --
2003-10-15 17:01 Grover, Andrew
     [not found] ` <F760B14C9561B941B89469F59BA3A8470255EF4E-sBd4vmA9Se4Lll3ZsUKC9FDQ4js95KgL@public.gmane.org>
2003-10-15 16:59   ` Patrick Mochel

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=20031014235550.GE20789@elf.ucw.cz \
    --to=pavel-alswssmvlrq@public.gmane.org \
    --cc=acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org \
    --cc=alanh-ASBjxr/nLg+TY6FTCsQk+9Bc4/FLrbF6@public.gmane.org \
    --cc=ducrot-kk6yZipjEM5g9hUCZPvPmw@public.gmane.org \
    --cc=mochel-3NddpPZAyC0@public.gmane.org \
    --cc=sziwan-DETuoxkZsSqrDJvtcaxF/A@public.gmane.org \
    /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