Skip to content
This repository has been archived by the owner on Oct 17, 2021. It is now read-only.

API for other applications #21

Closed
Lekensteyn opened this issue Aug 17, 2011 · 11 comments
Closed

API for other applications #21

Lekensteyn opened this issue Aug 17, 2011 · 11 comments

Comments

@Lekensteyn
Copy link
Member

bumblebee-ui reads from config files directly, checking existence of some files, etc.

We should add an API which provides:

  • check whether the X server is available
  • retrieve configuration values
  • (for the future) if the card is enabled
  • ...

Something event-based would be great. Maybe dbus or something?

@Samsagax
Copy link
Member

I don't see a way to do an event-based thing on bash. But that will really be great

@glyptostroboides
Copy link

Maybe possible in python ?

@Samsagax
Copy link
Member

we can wrap around some bash scripts and functions. Python AFAIK can execute bash scripts with arguments and capture output.

@Lekensteyn
Copy link
Member Author

Before implementing, we need a list of features that must be available in the API.

@Samsagax
Copy link
Member

  • Check for daemon present

- (maybe) driver used

@glyptostroboides
Copy link

The indicator script need to know :
-if the card is on or off : later with acpi_call
-if bumblebee is in use or not
-driver can also be displayed on mouse over the active icon

@glyptostroboides
Copy link

To know if the card is on a simple will be really helpfull to remove the check of existing /tmp/.X%s-lock file made by the indicator every two seconds : Please add this somewhere :
dbus-send --session --dest=org.bumblebee.indicator /org/bumblebee/indicator org.bumblebee.indicator.BumblebeeStarted
dbus-send --session --dest=org.bumblebee.indicator /org/bumblebee/indicator org.bumblebee.indicator.BumblebeeStopped

@glyptostroboides
Copy link

For now this call will help to now if the server is launched and later an other call could be made depending on the state of the nvidia card.

@ArchangeGabriel
Copy link
Member

Task: Devs people around there, please give us a list of things you would like to have in this API.

@ArchangeGabriel
Copy link
Member

Maybe dbus #39 on bumblebee 3.0 ?

@Lekensteyn
Copy link
Member Author

And issue #31, since it's tracked in the new tracker I'm closing this one.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants