Skip to contentSkip to conversation

MACHINE_FEATURE changes

DISCUSSION Koen Kooi 7 participants 16 messages Nov 20, 2009 – Nov 21, 2009

lore
Share & tools
lore
#2 lore raw
In reply to Koen Kooi
Quoted 5 lines · Koen Kooi

Can someone please explain to me what

http://cgit.openembedded.org/cgit.cgi/openembedded/commit/?id=1bfa409a3a28cee60c4800d3caf33ce3f100d4ca
is trying to accomplish? It looks like this makes task-base unusable on om-gta0X, am I right?

FSO/SHR based distros use fso-apm rather than "apm".
Using PROVIDES in fso-apm however means that it's pulled into other distros too.
We could do this with a virtual/apm but that would mean we need to set a preferred provider for all other distros too.

So the least intrusive change seemed to remove apm from om-gtaX. Mickey (informally) agreed with me, and as this change is very limited in scope, it went in. It is more distro than machine-specific I have to admit.

Better suggestions on how to achieve this are welcome.

spaetz

#3 lore raw

Dnia piątek, 20 listopada 2009 o 15:24:39 Sebastian Spaeth napisał(a):

Quoted 1 line

Better suggestions on how to achieve this are welcome.

In distro config:

MACHINE_FEATURES_om-gta01 = "this that those butnoapm"

This way your distro has what you want and others have what was set in machine config.

Regards,

Signature · 3 lines
JID:      [email protected]
Website:  http://marcin.juszkiewicz.com.pl/
LinkedIn: http://www.linkedin.com/in/marcinjuszkiewicz
#4 lore raw

Am Freitag, den 20.11.2009, 15:30 +0100 schrieb Marcin Juszkiewicz:

Quoted 10 lines

Dnia piątek, 20 listopada 2009 o 15:24:39 Sebastian Spaeth napisał(a):

Quoted 1 line

Better suggestions on how to achieve this are welcome.

In distro config:

MACHINE_FEATURES_om-gta01 = "this that those butnoapm"

This way your distro has what you want and others have what was set in machine config.

Good idea.

For the records though, I would consider it being the machine maintainer's call to define the machine config. If he decides that apm is very misleading on said machine, perhaps because without taking special care about the peripheral devices there will no be proper suspend in the first place, then I might be inclined to follow this reasoning and leave apm out there...

:M:

#5 lore raw
Quoted 13 lines · On Fri, 20 Nov 2009 15:39:41 +0100 Michael 'Mickey' Lauer…

Am Freitag, den 20.11.2009, 15:30 +0100 schrieb Marcin Juszkiewicz:

Quoted 11 lines

Dnia piątek, 20 listopada 2009 o 15:24:39 Sebastian Spaeth napisał(a):

Quoted 1 line

Better suggestions on how to achieve this are welcome.

In distro config:

MACHINE_FEATURES_om-gta01 = "this that those butnoapm"

This way your distro has what you want and others have what was set in machine config.

Quoted 9 lines

Good idea.

For the records though, I would consider it being the machine maintainer's call to define the machine config. If he decides that apm is very misleading on said machine, perhaps because without taking special care about the peripheral devices there will no be proper suspend in the first place, then I might be inclined to follow this reasoning and leave apm out there...

That indicates to me that FSO is broken. The last I checked any application which has opened /dev/apm_bios can choose to hold off the suspend until it has finished doing stuff(tm)

Turning off machine features for a broken DISTRO sounds wrong.

Graeme

#6 lore raw

Am Freitag, den 20.11.2009, 14:46 +0000 schrieb Graeme Gregory:

Quoted 26 lines
Quoted 13 lines · On Fri, 20 Nov 2009 15:39:41 +0100 Michael 'Mickey' Lauer…

Am Freitag, den 20.11.2009, 15:30 +0100 schrieb Marcin Juszkiewicz:

Quoted 11 lines

Dnia piątek, 20 listopada 2009 o 15:24:39 Sebastian Spaeth napisał(a):

Quoted 1 line

Better suggestions on how to achieve this are welcome.

In distro config:

MACHINE_FEATURES_om-gta01 = "this that those butnoapm"

This way your distro has what you want and others have what was set in machine config.

Quoted 9 lines

Good idea.

For the records though, I would consider it being the machine maintainer's call to define the machine config. If he decides that apm is very misleading on said machine, perhaps because without taking special care about the peripheral devices there will no be proper suspend in the first place, then I might be inclined to follow this reasoning and leave apm out there...

Quoted 1 line

That indicates to me that FSO is broken.

On the contrary, dearest friend. FSO is actually one of the few things which get suspend and resume right on these machines.

Quoted 3 lines

The last I checked any
application which has opened /dev/apm_bios can choose to hold off the suspend until it has finished doing stuff(tm)

It's not about /dev/apm_bios, it about cooperation with userland that needs to do certain things like configuring the modem and the gps devices to get the suspend to work in a deterministic way.

If someone wants to write apm.d script that do the same, they can go for it and then enable apm per DISTRO or as Koen indicated, per TASK_APM.

:M:

author
#7 lore raw
In reply to Michael 'Mickey' Lauer
Quoted 12 lines · Michael 'Mickey' Lauer

Am Freitag, den 20.11.2009, 15:30 +0100 schrieb Marcin Juszkiewicz:

Quoted 10 lines

Dnia piątek, 20 listopada 2009 o 15:24:39 Sebastian Spaeth napisał(a):

Quoted 1 line

Better suggestions on how to achieve this are welcome.

In distro config:

MACHINE_FEATURES_om-gta01 = "this that those butnoapm"

This way your distro has what you want and others have what was set in machine config.

Quoted 8 lines

Good idea.

For the records though, I would consider it being the machine maintainer's call to define the machine config. If he decides that apm is very misleading on said machine, perhaps because without taking special care about the peripheral devices there will no be proper suspend in the first place, then I might be inclined to follow this reasoning and leave apm out there...

If that's the case, it should be at least noted in the commit message clearly. In this case it was a commit from someone very new to OE and it didn't include any explanation or SOBs or ACKs.

Since this is about the machine the is the default in our GettingStarted wiki, a mail to this list would have been nice as well, if only to increase the google juice :)

regards,

Koen

#8 lore raw

Am Freitag, den 20.11.2009, 15:47 +0100 schrieb Koen Kooi:

Quoted 22 lines · Michael 'Mickey' Lauer
Quoted 12 lines

Am Freitag, den 20.11.2009, 15:30 +0100 schrieb Marcin Juszkiewicz:

Quoted 10 lines

Dnia piątek, 20 listopada 2009 o 15:24:39 Sebastian Spaeth napisał(a):

Quoted 1 line

Better suggestions on how to achieve this are welcome.

In distro config:

MACHINE_FEATURES_om-gta01 = "this that those butnoapm"

This way your distro has what you want and others have what was set in machine config.

Quoted 8 lines

Good idea.

For the records though, I would consider it being the machine maintainer's call to define the machine config. If he decides that apm is very misleading on said machine, perhaps because without taking special care about the peripheral devices there will no be proper suspend in the first place, then I might be inclined to follow this reasoning and leave apm out there...

Quoted 3 lines

If that's the case, it should be at least noted in the commit message clearly. In this case it was a commit from someone very new to OE and it didn't include any explanation or SOBs or ACKs.

True.

Since according to the MAINTAINERS file I seem to be the maintainer of this machine I think i will reserve my right to change it then. Distros which absolutely want apm on those Openmoko devices can still include it.

Quoted 3 lines

Since this is about the machine the is the default in our GettingStarted wiki, a mail to this list would have been nice as well, if only to increase the google juice :)

Heh, right.

:M:

#9 lore raw
In reply to Michael 'Mickey' Lauer
Quoted 4 lines · On Friday 20 November 2009 15:39:41 Michael 'Mickey' Lauer wrote:

Am Freitag, den 20.11.2009, 15:30 +0100 schrieb Marcin Juszkiewicz:

Quoted 3 lines

Dnia piątek, 20 listopada 2009 o 15:24:39 Sebastian Spaeth napisał(a):

Quoted 1 line

Better suggestions on how to achieve this are welcome.

Quoted 8 lines
Quoted 6 lines

In distro config:

MACHINE_FEATURES_om-gta01 = "this that those butnoapm"

This way your distro has what you want and others have what was set in machine config.

Good idea.

Stupid question. What is fso-apm and what does it provide?

#10 lore raw

Am Freitag, den 20.11.2009, 19:46 +0100 schrieb Holger Hans Peter Freyther:

Quoted 1 line

Stupid question. What is fso-apm and what does it provide?

An apm utility that has the same UI as apm, but uses FSO's DBus API to do its job.

:M:

#11 lore raw
Quoted 7 lines · On Friday 20 November 2009 19:54:22 Michael 'Mickey' Lauer wrote:

Am Freitag, den 20.11.2009, 19:46 +0100 schrieb Holger Hans Peter

Freyther:

Quoted 1 line

Stupid question. What is fso-apm and what does it provide?

An apm utility that has the same UI as apm, but uses FSO's DBus API to do its job.

Ah that is a bit unfortunate. You should be able to open /dev/apm_bios more than once so you should be able to have the real APM running and then open it again in the fso daemon. Didn't this work?

regards
holger

#12 lore raw
Quoted 3 lines · Holger Hans Peter Freyther

Ah that is a bit unfortunate. You should be able to open /dev/apm_bios more than once so you should be able to have the real APM running and then open it again in the fso daemon. Didn't this work?

The apm_bios interface is not exactly a paragon of good design: it's only become as widespread as it has by historical accident, it represents a weird in-kernel combination of IPC and actual hardware control, and it isn't available cross-platform in any reliable fashion.

Rather than seeking to perpetuate the use of /dev/apm_bios by random applications, I think we should encourage other distros to follow FSO's example and replace it with other mechanisms that are better suited to the 21st century. If we could standardise on a single D-Bus API for user-facing power management, with some kind of daemon responsible for arbitrating those requests and converting them into whatever operations are most suitable for the underlying kernel support (which might be /dev/apm_bios in some circumstances) then that would be perfect.

p.

author
#13 lore raw
In reply to Sebastian Spaeth
Quoted 10 lines · Sebastian Spaeth
Quoted 5 lines · Koen Kooi

Can someone please explain to me what

http://cgit.openembedded.org/cgit.cgi/openembedded/commit/?id=1bfa409a3a28cee60c4800d3caf33ce3f100d4ca
is trying to accomplish? It looks like this makes task-base unusable on om-gta0X, am I right?

FSO/SHR based distros use fso-apm rather than "apm". Using PROVIDES in fso-apm however means that it's pulled into other distros too.

Which we do not want.

Quoted 2 lines

We could do this with a virtual/apm but that would mean we need to set a preferred provider for all other distros too.

So instead you just broke all other distros.

Quoted 1 line

So the least intrusive change seemed to remove apm from om-gtaX.

Except that you just broke all other distros.

Quoted 5 lines

Mickey (informally) agreed with me, and as this change is very limited in scope, it went in. It is more distro than machine-specific I have to admit.

Better suggestions on how to achieve this are welcome.

Change task-base and task-boot to use APM =? "apm" and set APM = "fso-apm" in your distro.

Please revert the cset since it breaks every distro except SHR[1].

annoyed,

Koen

#14 lore raw
Quoted 1 line · Koen Kooi

Please revert the cset since it breaks every distro except SHR[1].

done

#15 lore raw
Quoted 4 lines · On Friday 20 November 2009 15:41:36 Sebastian Spaeth wrote:
Quoted 1 line · Koen Kooi

Please revert the cset since it breaks every distro except SHR[1].

done

One thing with the revert... you have a PR that went backwards. You will have to figure out if that is a problem for your distro or not.

holger