public inbox for linux-pm@vger.kernel.org
 help / color / mirror / Atom feed
* Re: [suspend/resume] Re: userspace notification from module
@ 2010-01-03 23:17 Bartłomiej Zimoń
  0 siblings, 0 replies; 38+ messages in thread
From: Bartłomiej Zimoń @ 2010-01-03 23:17 UTC (permalink / raw)
  To: linux-kernel; +Cc: linux-pm

Dnia 3 stycznia 2010 22:29 "Rafael J. Wysocki" <rjw@sisk.pl> napisał(a):
> > > To put it in a different way, you apparently want the kernel to notify the user
> > > space of an event originating from the user space and my question is why not
> > > to set up the user space to generate the notification without relying on the
> > > kernel to do that.
> > 
> > Because now kernel know better what is going on.
> 
> That's because it's just been told by the user space about that.
> 
> Basically, you want something like this to happen:
> 
> process A ->(suspend) kernel
> kernel ->(suspending) process B
> 

Yes.

> where the kernel won't wait for process B to do whatever it has to do before
> suspending.  In my opinion it'd be better to do something like this
> 
> process A ->(suspending) process B
> process B ->(ack) process A
> process A ->(suspend) kernel
> 
> ... 

Please forget for a moment about pm-utils.

I was thinking about sf like this:
pm-notify is registered in pm_notifier_chain or called before pm_notifiers_chain
pm-notify -> (suspending) all registerd processes
some processes ->(ack) pm-notify
to consider - after timeout ( 1s. could be ok) pm-notify will send NOTIFY_OK, kernel will cont. suspending

It could be even UIO module but there are no pm events reachable there?

I cant understand why kernel cant be simple power manager.

Consider this: add one more signal (SIGPREFREEZ, SIGPOSTFREEZ) and send this before/after suspend to processes.
It could be simplest way and we have notified processes.

If pm-notify idea is not clean, we must extend pm-utils or write something new
(with backends dbus, ipc, scripts, ...)
But You see? We still have no information from kernel about events 
(especialy resume) or maybe i dont see this ;/

Thanks for your understanding Rafael :)

Best regards.
Bartłomiej Zimoń
PLD Linux, Kadu Team, FreeRunner user
http://kadu-im.blogspot.com/


_______________________________________________
linux-pm mailing list
linux-pm@lists.linux-foundation.org
https://lists.linux-foundation.org/mailman/listinfo/linux-pm

^ permalink raw reply	[flat|nested] 38+ messages in thread
* Re: [suspend/resume] Re: userspace notification  from module
@ 2010-01-06  1:05 Bartłomiej Zimoń
  0 siblings, 0 replies; 38+ messages in thread
From: Bartłomiej Zimoń @ 2010-01-06  1:05 UTC (permalink / raw)
  To: linux-kernel; +Cc: awalls, aeriksson, linux-pm, danborkmann, stefan.seyfried

Dnia 6 stycznia 2010 0:05 	"Rafael J. Wysocki" <rjw@sisk.pl> napisał(a):
> Well, I think you have some specific issue with pm-utils, but you're not
> telling us what it is.  So, why exactly is pm-utils not suitable for your
> needs?
> 

Rafael to be honest it's more dbus specific. I'm talking about 
dbus as it is standard for system<->apps communication.

But please understand if we'll create kernel device with simple pm notification
It could be hooked by udev and next ... by DeviceKit-power/upower and after that
we have real standard. But to have this we must export "power" device - something 
like my proof-of-concept module. This could be realy good start.

Best regards.
Bartłomiej Zimoń
PLD Linux, Kadu Team, FreeRunner user
http://kadu-im.blogspot.com/


_______________________________________________
linux-pm mailing list
linux-pm@lists.linux-foundation.org
https://lists.linux-foundation.org/mailman/listinfo/linux-pm

^ permalink raw reply	[flat|nested] 38+ messages in thread
[parent not found: <1df13dac.5ba05e5c.4b43e1e2.120e@o2.pl>]

end of thread, other threads:[~2010-01-15 20:02 UTC | newest]

Thread overview: 38+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <686edb2c.6263643a.4b3f4a3b.b60b3@o2.pl>
     [not found] ` <201001022201.04281.rjw@sisk.pl>
     [not found]   ` <7cf4f51f.5fc2a5cd.4b3fc3ad.c849c@o2.pl>
2010-01-02 23:29     ` [suspend/resume] Re: userspace notification from module Rafael J. Wysocki
2010-01-03  1:03       ` Bartłomiej Zimoń
2010-01-03  9:30         ` Daniel Borkmann
     [not found]         ` <4B4063AB.7080401@gmail.com>
2010-01-03 10:06           ` Daniel Borkmann
     [not found]           ` <4B406C14.2070907@gmail.com>
2010-01-03 11:01             ` Bartłomiej Zimoń
2010-01-03 21:49               ` Rafael J. Wysocki
     [not found]               ` <201001032249.11510.rjw@sisk.pl>
2010-01-04 13:38                 ` Stefan Seyfried
2010-01-03 21:33           ` Rafael J. Wysocki
2010-01-03 21:29         ` Rafael J. Wysocki
     [not found]         ` <201001032229.53221.rjw@sisk.pl>
2010-01-03 22:53           ` Bartłomiej Zimoń
2010-01-03 23:30             ` Rafael J. Wysocki
     [not found]             ` <201001040030.01256.rjw@sisk.pl>
2010-01-03 23:35               ` Bartłomiej Zimoń
     [not found]               ` <54ac764e.502c1a33.4b4129c3.9dc1b@o2.pl>
2010-01-03 23:45                 ` Rafael J. Wysocki
     [not found]                 ` <201001040045.39517.rjw@sisk.pl>
2010-01-04  0:51                   ` Bartłomiej Zimoń
2010-01-04 12:46                   ` Daniel Borkmann
     [not found]                   ` <a522f3c.3bab16d1.4b413b9c.ec43@o2.pl>
2010-01-04 19:43                     ` Rafael J. Wysocki
     [not found]                     ` <201001042043.27037.rjw@sisk.pl>
2010-01-05  9:07                       ` Anders Eriksson
     [not found]                       ` <20100105090706.751D233C4B0@tippex.mynet.homeunix.org>
2010-01-05 21:02                         ` Bartłomiej Zimoń
2010-01-05 21:23                           ` Rafael J. Wysocki
     [not found]                           ` <201001052223.21964.rjw@sisk.pl>
2010-01-05 22:12                             ` Bartłomiej Zimoń
     [not found]                             ` <16a1b165.2fdc37c6.4b43b943.c6733@o2.pl>
2010-01-05 23:03                               ` Rafael J. Wysocki
     [not found]                               ` <201001060003.23419.rjw@sisk.pl>
2010-01-05 23:37                                 ` Bartłomiej Zimoń
2010-01-06 14:35                                   ` Anders Eriksson
     [not found]                                   ` <20100106143534.A7EEA33C5F5@tippex.mynet.homeunix.org>
2010-01-06 20:37                                     ` [suspend/resume] Re: userspace notific ation " Bartłomiej Zimoń
     [not found]                                     ` <5c33d92a.63a2de8c.4b44f47a.8762@o2.pl>
2010-01-06 20:49                                       ` Roland Dreier
     [not found]                                       ` <adatyuzt0vg.fsf@roland-alpha.cisco.com>
2010-01-06 20:56                                         ` Roland Dreier
2010-01-15 20:02                                     ` [suspend/resume] Re: userspace notification " Pavel Machek
2010-01-05 21:26                         ` Stefan Seyfried
     [not found]                         ` <20100105222657.27218c4c@strolchi.home.s3e.de>
2010-01-05 22:22                           ` Bartłomiej Zimoń
2010-01-05 23:05                             ` Rafael J. Wysocki
     [not found]                             ` <201001060005.17246.rjw@sisk.pl>
2010-01-06  0:43                               ` Bartłomiej Zimoń
2010-01-06 10:10                             ` Stefan Seyfried
     [not found]                   ` <4B41E318.4050809@gmail.com>
2010-01-04 19:45                     ` Rafael J. Wysocki
2010-01-03 17:20       ` Bartłomiej Zimoń
     [not found]       ` <ff72e3e.3b5092ec.4b40d1ec.54407@o2.pl>
2010-01-03 21:50         ` Rafael J. Wysocki
2010-01-03 23:17 Bartłomiej Zimoń
  -- strict thread matches above, loose matches on Subject: below --
2010-01-06  1:05 Bartłomiej Zimoń
     [not found] <1df13dac.5ba05e5c.4b43e1e2.120e@o2.pl>
2010-01-06 22:48 ` Rafael J. Wysocki

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox