Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
i9195/Qualcomm modem support #1314
I've tested with SMS. See f5e8e1f and
sudo service ofono start sudo dbus-send --print-reply --system --dest=org.ofono /gobi_0 org.ofono.Modem.SetProperty string:"Powered" variant:boolean:"true" sudo dbus-send --print-reply --system --dest=org.ofono /gobi_0 org.ofono.Modem.GetProperties sudo dbus-send --print-reply --system --dest=org.ofono /gobi_0 org.ofono.Modem.SetProperty string:"Online" variant:boolean:"true" sudo dbus-send --system --print-reply --dest=org.ofono /gobi_0 org.ofono.MessageManager.SendMessage string:"$PHONE_NUMBER" string:"Hello world! -postmarketOS" # receive SMS like this (might be spammy if you have other DBus apps): sudo dbus-monitor --system
ofono mainline doesn't have support for QMI device voicecalls last I saw, but Sysmocom and Alexander Couzens have patches here that I've successfully used in my Android oFono-based RIL. I have a couple of relevant patches here too. There might be some audio device initialization that needs to be done to route the mic to the phone or something, but it's probably not too hard to figure out since my fully open-source Android stack was working.
I also had data connections working on my Android system, so I anticipate that wouldn't be far away either. We'll need a patch to set something like
And of course, we need a UI to use the phone features... I tried getting Plasma Mobile running on software rendering, but it was extremely slow and crashing or something. Maybe I will try again when I get voicecalls working - I know it has a dialer but I'm not sure about SMS support.
@scintill: You did incredible work there, I am amazed and very grateful! Sending the first SMS with postmarketOS (on an Android device with ofono) is a great accomplishment!
The best part is, that this works without userspace blobs
Thanks for the feedback. I'm also really happy there are no blobs (other than baseband firmware.) The latest push should address all issues. I also made the qcom_rmtfs symlinks be a subpackage that only gets installed if qcom_rmtfs is installed.
@z3ntu Yes, I was able to send and receive SMS, albeit from the command line. Now someone package a UI for oFono SMS
Yeah, that doesn't work properly without hardware acceleration. The best fix we have is running the mainline kernel on it, and using and open source userspace drivers (together with the GPU blobs, no way around that right now, just like cellular modem firmware). This works well for the Sony Xperia Z2 Tablet for example. But of course mainlining is not an easy task (I would like to streamline the process and put up a step by step guide for that in the wiki in the future).
But basically if your SoC is supported in mainline already, and the peripherals are as well, then you would "only" need to write a device tree file that enables the peripherals properly. If you want to go down that path, people in #postmarketOS know about the process, and we have some information in the wiki.
I don't know on which stack that is based. If it is also QML, I guess we would run into the same performance problems (@bhush9, you probably know this?). Launchpad is down right now, so I can't look it up easily. However, packaging it shouldn't be much of a problem in either case.
@pavelmachek worked on a general phone functionality demo interface called unicsy_demo. It is not aimed at end users like the ones from Plasma Mobile, ubports, Hildon, LuneOS UI and I have not tested it myself (might be that it only works with the N900). But we have it packaged in postmarketOS (as
Mainlining... is not really an easy task. Often code needs to be significantly modified in the process. I can provide rough instructions, but I don't think step by step guide is easily doable. You don't have step by step guide for writing good code, and that's subset of the mainlining task.
If you have ofono running, then yes, unicsy-demo should provide sms functionality for you. You want to install it, then run /usr/share/unicsy/ofone/ofone as root. It should not be N900-specific, but will work better in landscape mode. There's environment variable you can use to switch to vertical mode. I'd really like to get ofone to work on more than N900, so yes, I'm willing to help. If ofono is already working ok (you can check -- it includes test scripts, see https://wiki.postmarketos.org/wiki/Nokia_N900) ofone should be easy to get into usable state. Pavel -- (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html