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

Linux accelerometer facade #68

Merged
merged 1 commit into from
Aug 4, 2014
Merged

Conversation

trivedigaurav
Copy link
Member

Cleaned up version of @Davideddu's pull request: #51

@trivedigaurav trivedigaurav mentioned this pull request Jun 28, 2014
@depau
Copy link
Contributor

depau commented Jul 6, 2014

Thanks for the clean up!

@trivedigaurav
Copy link
Member Author

@Davideddu Sure! Np. I am waiting for some one to review this and merge.

@depau
Copy link
Contributor

depau commented Jul 6, 2014

I'm glad they added the new features. If I have enough time I'll work on it again and add the SMS feature on Linux through ModemManager/NetworkManager (I made some cool python/bash scripts to mess with USB modems last year, I still have to push them though :/ )
I'll also see what I can do with the picture taking thing... I'm pretty sure guvcview has a command line interface that we can easily use.

@depau
Copy link
Contributor

depau commented Jul 6, 2014

I just need to see how both the facades work, their API and the expected behavior on the already supported platforms.

@depau
Copy link
Contributor

depau commented Jul 6, 2014

It seems that FreeDesktop totally revolutioned ModemManager's DBus API, and I cannot understand how to port the existing scripts created by Novell for the previous API...

EDIT: @trivedigaurav actually with D-Feet and an old Nokia phone (in which I miraculously managed to insert my MicroSIM) I kind of managed to explore the new DBus interface...

I want to test it a little bit and port the old utilities to ModemManager1, then create the new Linux facade.

@depau
Copy link
Contributor

depau commented Aug 4, 2014

Why is this not getting merged? @tito

trivedigaurav added a commit that referenced this pull request Aug 4, 2014
@trivedigaurav trivedigaurav merged commit 98a9002 into kivy:master Aug 4, 2014
@trivedigaurav
Copy link
Member Author

@Davideddu I think I will go ahead and merge this since there seems to be no comments on this. Thanks for the reminder.

@depau
Copy link
Contributor

depau commented Aug 4, 2014

Now Linux looks as good as OSX :D

@trivedigaurav
Copy link
Member Author

That's nice! This thread also talks about your ModemManager feature. You might want to open a separate issue for that so that we don't forget about it.

@depau
Copy link
Contributor

depau commented Aug 5, 2014

Yeah I want to work on it, but the new modem manager implementation is either not up to date or it doesn't sent texts through my old Nokia phone. I asked the CyanogenMod maintainer for my phone to enable USB modem in the kernel but he hasn't answered yet.
I'll try to see if there's a modemmanager ppa, otherwise I'll downgrade it and develop the api for the old implementation.

@depau
Copy link
Contributor

depau commented Nov 21, 2014

Today I found this interesting code: https://github.com/willcast/hp-touchpad-ubuntu/blob/master/rotationd.c

I think I will implement it soon, as I think most of the accelerometers work this way to minimize power consumption.

@depau
Copy link
Contributor

depau commented Dec 2, 2018

This should be re-written using the SensorProxy API:

https://developer.gnome.org/iio-sensor-proxy/stable/gdbus-net.hadess.SensorProxy.html

@KeyWeeUsr
Copy link
Contributor

KeyWeeUsr commented Dec 3, 2018

@depau if the current implementation returns the correct results and is only marked as deprecated (or only as old or something), feel free to add a new implementation, but leave the current one in place as a fallback or add the reasoning for using dbus, please.

I got 503 from that website. :/

Edit: From what I see this approach uses kernel's sysclass, so this is the most desired approach in my opinion since the only software problem (excluding python + our implementation) is perhaps an issue with the kernel alone + it does not depend on 3rd party stuff.

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.

3 participants