Re: [Zaurus-devel] [suspend/resume] Re: userspace notification from module

2010-01-16 Thread Rafael J. Wysocki
On Friday 15 January 2010, Pavel Machek wrote: > On Sat 2010-01-09 14:40:46, Rafael J. Wysocki wrote: > > On Saturday 09 January 2010, Pavel Machek wrote: > > > > > Perhaps I don't understand correctly what you're trying to achieve, but > > > > at the > > > > moment suspend is always started from

Re: [Zaurus-devel] [suspend/resume] Re: userspace notification from module

2010-01-16 Thread Stanislav Brabec
Eric Miao wrote: > And the other way we may need to look into what API the current userland > apps on zaurus is depending on this 2.4 compatibility and make changes > slowly to those apps. I guess that 2.4 compatibility is not an issue. Most modern Zaurus distributions are even unable to run Shar

Re: [Zaurus-devel] [suspend/resume] Re: userspace notification from module

2010-01-16 Thread Pavel Machek
Hi! > > > I wasn't aware of this. > > > > > > That may be a good reason for adding kernel-based suspend notification, > > > although I'd prefer ARM to notify the user space about the critical > > > battery > > > status allowing it to decide what to do. > > > > Hard to do, without breaking compa

Re: [Zaurus-devel] [suspend/resume] Re: userspace notification from module

2010-01-16 Thread Pavel Machek
Hi! > >> > That may be a good reason for adding kernel-based suspend notification, > >> > although I'd prefer ARM to notify the user space about the critical > >> > battery > >> > status allowing it to decide what to do. > >> > >> Hard to do, without breaking compatibility that goes down to 2.4.X

Re: [Zaurus-devel] [suspend/resume] Re: userspace notification from module

2010-01-16 Thread Pavel Machek
On Sat 2010-01-16 18:00:58, Stanislav Brabec wrote: > Eric Miao wrote: > > > And the other way we may need to look into what API the current userland > > apps on zaurus is depending on this 2.4 compatibility and make changes > > slowly to those apps. > > I guess that 2.4 compatibility is not an i

Re: [Zaurus-devel] [suspend/resume] Re: userspace notification from module

2010-01-16 Thread Rafael J. Wysocki
On Saturday 16 January 2010, Pavel Machek wrote: > On Sat 2010-01-16 18:00:58, Stanislav Brabec wrote: > > Eric Miao wrote: > > > > > And the other way we may need to look into what API the current userland > > > apps on zaurus is depending on this 2.4 compatibility and make changes > > > slowly t

Re: [Zaurus-devel] [suspend/resume] Re: userspace notification from module

2010-01-16 Thread Rafael J. Wysocki
On Saturday 16 January 2010, Pavel Machek wrote: > Hi! > > > > > I wasn't aware of this. > > > > > > > > That may be a good reason for adding kernel-based suspend notification, > > > > although I'd prefer ARM to notify the user space about the critical > > > > battery > > > > status allowing it

Re: [Zaurus-devel] [suspend/resume] Re: userspace notification from module

2010-01-16 Thread Pavel Machek
Hi! > > Agreed, but so what? On PC, machine would power off at that > > point. That would surprise the apps, too. > > > > Basically new enough userland should not make battery run low enough > > for either emergency power off or emergency suspend. > > I wonder how it is supposed to achieve that

Re: [Zaurus-devel] [suspend/resume] Re: userspace notification from module

2010-01-16 Thread Pavel Machek
On Sat 2010-01-16 23:05:56, Rafael J. Wysocki wrote: > On Saturday 16 January 2010, Pavel Machek wrote: > > On Sat 2010-01-16 18:00:58, Stanislav Brabec wrote: > > > Eric Miao wrote: > > > > > > > And the other way we may need to look into what API the current userland > > > > apps on zaurus is de

Re: [Zaurus-devel] [suspend/resume] Re: userspace notification from module

2010-01-16 Thread Rafael J. Wysocki
On Saturday 16 January 2010, Pavel Machek wrote: > Hi! > > > > Agreed, but so what? On PC, machine would power off at that > > > point. That would surprise the apps, too. > > > > > > Basically new enough userland should not make battery run low enough > > > for either emergency power off or emerg

Re: [Zaurus-devel] [suspend/resume] Re: userspace notification from module

2010-01-16 Thread Rafael J. Wysocki
On Saturday 16 January 2010, Pavel Machek wrote: > On Sat 2010-01-16 23:05:56, Rafael J. Wysocki wrote: > > On Saturday 16 January 2010, Pavel Machek wrote: > > > On Sat 2010-01-16 18:00:58, Stanislav Brabec wrote: > > > > Eric Miao wrote: > > > > > > > > > And the other way we may need to look in

Re: [Zaurus-devel] [suspend/resume] Re: userspace notification from module

2010-01-16 Thread Pavel Machek
> > IMHO it should just plain shutdown in that case. Suspending doesn't really > > solve the problem, because the battery is going to drain still. Unless you > > mean suspend=hibernate, but I guess you don't. BTW I was talking spitz before, but there's collie, too. It was shipped in configuratio

Re: [Zaurus-devel] [suspend/resume] Re: userspace notification from module

2010-01-16 Thread Rafael J. Wysocki
On Saturday 16 January 2010, Pavel Machek wrote: > > > IMHO it should just plain shutdown in that case. Suspending doesn't > > > really > > > solve the problem, because the battery is going to drain still. Unless > > > you > > > mean suspend=hibernate, but I guess you don't. > > BTW I was talk

Re: [Zaurus-devel] [suspend/resume] Re: userspace notification from module

2010-01-16 Thread Russell King - ARM Linux
On Sat, Jan 16, 2010 at 11:05:56PM +0100, Rafael J. Wysocki wrote: > On Saturday 16 January 2010, Pavel Machek wrote: > > On Sat 2010-01-16 18:00:58, Stanislav Brabec wrote: > > > Eric Miao wrote: > > > > > > > And the other way we may need to look into what API the current userland > > > > apps o