Reply
Thread Tools
Posts: 236 | Thanked: 223 times | Joined on Apr 2011 @ switzerland
#1
This is now available as a patch from coderus, see THIS LINK
!You Have to uninstall ofonotwk if you want to install his patch!

You'll get an error at package install if not
You can now access/compile/review source files from there: https://github.com/CODeRUS/ofono/commits/force_fix
Thanks Coderus!
----------------------------------------------------------------------------------------------------------------------------------------------
I finally got it, thanks to jare and nieldk hints.



I have to say that this was a pain in the ..s to get through. It was my first hands on with compile and everything.
But i did it! Yay!

I modified ofono and jolla settings to better suit network mode to my needs.
I think this would interess some other people, so here is a little explaination on how to install it.

But before reading it, you need to know some little things:

Only GSM, WCDMA and LTE technology are used. There are mode to use EVDO and CDMA. But they do not seem much in use so i did not include them. This may cause issue for some of you.

Every settings are provided "as is". You can adjust by yourself, i'll be glad to give all needed information.

If something goes wrong, the phone will still boot and connect to 2G by default.

TechnologyPreference settings:
"any" Radio access technology selection is done automatically, based on reception and availability.
"gsm" Only GSM used for radio access.
"umts" Only UMTS used for radio access.
"lte" Only LTE used for radio access.
"gsmumts" Dual mode, 2G/3G
"umtslte" Dual Mode, 3G/4G

I am not responsible in any way for any problem caused by this tweak. You install it at your own risks!

Here we go!

Ofono Tweak Installation How to:

- Copy ofonotwk3.zip to Downloads
- In terminal as root (devel-su):
Code:
cd /home/nemo/Downloads

unzip ofonotwk3.zip

pkcon install-local ofonotwk3/ofono-1.14+git61-1.16.1.twk.armv7hl.rpm
*accept the update*

cp /usr/share/jolla-settings/pages/mobilenetworking/mainpage.qml /usr/share/jolla-settings/pages/mobilenetworking/mainpage.qml.bak

cp ofonotwk3/mainpage.qml /usr/share/jolla-settings/pages/mobilenetworking/
*accept to owerwrite*
- Close everything
- Reboot

Done!

To Remove Ofono Tweak:

- In terminal as root (devel-su):
Code:
cp /usr/share/jolla-settings/pages/mobilenetworking/mainpage.qml.bak /usr/share/jolla-settings/pages/mobilenetworking/mainpage.qml

zypper install -f ofono
*accept the change*
- Close everything
- Reboot

Done!

Release Notes:

03.02.15
This is now available as a patch from coderus, see THIS LINK
!You Have to uninstall ofonotwk if you want to install his patch!


ofonotwk3 (Vaarainjärvi) 19.12.14
- Update ofono to 1.14+git61-1.16.1

21.10.14
- Coderus was kind enough to fork this and patch the modif there. So from now on you can access/compile/review source file from:
https://github.com/CODeRUS/ofono/commits/force_fix
- Added source of modified files only, full archive is too big to be attached.

ofonotwk2 (Tahkalampi) 15.07.14
- Update ofono to 1.14+git35-1.11.1
- Back to default TechnologyPreference settings name as refered at:http://git.kernel.org/cgit/network/o...ttings-api.txt (don't know why i changed them at first...)
- Update mainpage.qml
- Update "installation/remove how to" following error detection

ofonotwk1 (Saapunki)
original release, ofono1.14+git26.2-1.10.1


-ORIGINAL POST-
Hello,

Does anyone know if it is possible to force 3G only mode in the Jolla phone?

Prefer 3G actually switch a lot to 2G and this is not good for my everyday use.
There is already a thread about this on together, but there are no hint if this is possible via script or config file.

I am a bit lost about mer/nemo/jolla layers so i don't know where to start to search for this.

Any advice would be greatly appreciated.

Best regards.
Attached Files
File Type: zip ofonotwk3.zip (467.1 KB, 123 views)
File Type: zip ofonotwk-1.14+git61-1.16.1-src.zip (32.6 KB, 120 views)

Last edited by Mitrigol; 2015-02-15 at 11:51.
 

The Following 19 Users Say Thank You to Mitrigol For This Useful Post:
Posts: 26 | Thanked: 97 times | Joined on Dec 2011
#2
Ofono is used for controlling the cellular modem and it can be configured via dbus. The relevant properties are accessible through the RadioSettings interface: http://git.kernel.org/cgit/network/o...ttings-api.txt. However "Prefer 3G" sets the TechnologyPreference to "umts", which leads to automatic 3G/2G. So forcing 3G doesn't seem to be directly possible. As a workaround, you could try to set the GsmBand to some band that is not used in your country.
 

The Following User Says Thank You to Jare For This Useful Post:
Posts: 236 | Thanked: 223 times | Joined on Apr 2011 @ switzerland
#3
I think Prefer 3G actually set TechnologyPreference to "any", as it switches between 2G/3G and it is specified that "umts" is only for umts.

i'll update if i'm able to confirm
 
Posts: 26 | Thanked: 97 times | Joined on Dec 2011
#4
Well i already checked it before i wrote my answer... The mode is set to the modem here. There is even a note about it:
Code:
case OFONO_RADIO_ACCESS_MODE_UMTS:
                pref = PREF_NET_TYPE_GSM_WCDMA_AUTO; /* according to UI design */
And as you can see here there are a lot of choices available, so it is just a question of bringing them user configurable.
 

The Following 5 Users Say Thank You to Jare For This Useful Post:
Posts: 324 | Thanked: 739 times | Joined on Jun 2009 @ São Paulo, Brazil
#5
Thank you SO much!
 
Posts: 2,076 | Thanked: 3,268 times | Joined on Feb 2011
#6
Nice one, though from description sounds a bit risky, I wonder if modifying radio switcher app wouldn't be safer
 
Posts: 236 | Thanked: 223 times | Joined on Apr 2011 @ switzerland
#7
Thanks to mention it,

Radio Switcher will not work with this mod (only with ofonotwk1).

I modified the settings name and it uses the "vanilla" ones.

All the mode i added, are already present in ofono. See Jare links.
I only added case so we can configure them in Jolla settings (/usr/share/jolla-settings/pages/mobilenetworking/mainpage.qml).

But yes, this can/may cause issue as if Jolla did not add them yet, it may be because they are not fully tested.

I use it since days now and the only "problem" i face is that when you switch from any of the "only" modes, the data connection has to be disabled before you switch. You get "connection problem" message if not.


EDIT: to tell radio switcher does not work only with ofonotwk1

Last edited by Mitrigol; 2014-07-15 at 17:54.
 

The Following User Says Thank You to Mitrigol For This Useful Post:
Posts: 236 | Thanked: 223 times | Joined on Apr 2011 @ switzerland
#8
Updated following Tahkalampi
 

The Following User Says Thank You to Mitrigol For This Useful Post:
HtheB's Avatar
Moderator | Posts: 3,715 | Thanked: 7,419 times | Joined on Dec 2009 @ Bize Her Yer Trabzon
#9
Just what I needed, works great! Thanks!
An installer would be great though for the noobs
__________________
www.HtheB.com
Please donate if you think I'm doing a good job.
 
coderus's Avatar
Posts: 6,436 | Thanked: 12,699 times | Joined on Nov 2011 @ Ängelholm, Sweden
#10
sources, please?
__________________
Telegram | Openrepos | GitHub | Revolut donations
 
Reply


 
Forum Jump


All times are GMT. The time now is 07:09.