Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Drop legacy logic for direct proximity and ambient light sensor control #261

Merged
merged 3 commits into from Mar 15, 2015
Merged

Drop legacy logic for direct proximity and ambient light sensor control #261

merged 3 commits into from Mar 15, 2015

Conversation

spiiroin
Copy link
Contributor

No description provided.

In maemo/meego times mce controlled proximity sensor directly via kernel
interfaces and sensorfw asked mce to start/stop sensor via dbus interface.
Nowadays it is the other way around, but old unused proximity sensor code
is still littering mce code base.

Remove unused sensor control code and drop support dbus method calls.

[mce] Remove legacy proximity sensor logic. Contributes to JB#27286
In maemo/meego times mce controlled ambient light sensor directly via
kernel interfaces and sensorfw asked mce to start/stop sensor via dbus
interface. The legacy logic for direct sensor control has already been
removed earlier, but the unneeded dbus methods for starting/stopping
the sensor are still littering mce code base.

Drop support starting/stopping ambient light sensor via dbus method calls.

[mce] Remove legacy ambient light sensor logic. Contributes to JB#27286
…tional

The legacy sensor control methods are removed, only sensorfw can be used
for starting/stopping sensors. If sensord is not running on the device
or does not support some of the expected to be available sensors, mce
will still function and uses sensible fallback values for sensors.

Remove the build time configuration for disabling sensorfw usage.

[mce] Using sensorfw for ambient light / proximity sensor control is not optional. Fixes JB#27286
@lpotter
Copy link

lpotter commented Mar 15, 2015

LGTM

1 similar comment
@saukko
Copy link

saukko commented Mar 15, 2015

LGTM

@filippz
Copy link

filippz commented Mar 15, 2015

Tried these on N9 running Nemo and everything appears to be working (for PS, call was simulated with mcetool -c ringing:normal -B1 -c active:normal -B and covering/uncovering PS)

In other words LGTM

spiiroin added a commit that referenced this pull request Mar 15, 2015
Drop legacy logic for direct proximity and ambient light sensor control
@spiiroin spiiroin merged commit a5eda36 into nemomobile:master Mar 15, 2015
@spiiroin spiiroin deleted the jb27286_remove_legacy_sensor_code branch March 15, 2015 20:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants