maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   SailfishOS (https://talk.maemo.org/forumdisplay.php?f=52)
-   -   Sailfish OS for the OnePlus 3/3T (https://talk.maemo.org/showthread.php?t=100117)

m4r0v3r 2018-03-07 12:13

Re: Sailfish OS for the OnePlus 3/3T
 
ive been doing some work with a device that has a ROME chip. its not going great :P

BluesLee 2018-03-12 09:52

Re: Sailfish OS for the OnePlus 3/3T
 
Quote:

Originally Posted by BluesLee (Post 1542118)
@delaya73: hi, several topics:
- any advantages of the new LOS base? i would need to reflash everything if it is of advantage
- you mentioned that we use a special debug kernel. will you provide a 'normal' one too? battery life could be improved, maybe.
- the only issue i encounter is with camera, it takes about 2 secs until a shot is taken, could be a general issue, don't know
- regarding BT i read that Mister Magister ported a device which uses BT rome chip, maybe you can check with him.

Anyone else who encounter the same issue with camera and a bad battery life?

I started with 2.1.3.7 and an old LOS 14.1 and did an OTA to 2.1.4.13. Any advantages of new LOS base?

BluesLee 2018-03-17 08:41

Re: Sailfish OS for the OnePlus 3/3T
 
Regarding bad battery life which was caused in my case by an underlying Android wlan diagnose process cnss_diag: You can kill it an observe that battery life is much improved and it has no negative side effects. As it is restarted as a service after reboot you need to comment all related lines within /init.qcom.rc to make it permanent.

Positive side effect beside improved battery life: browsing the internet is much faster now.

p.s. Within /data/misc/wifi there is a configuration file cnss_diag.conf which is used for dropping wlan logs to filesystem.

delaya73 2018-03-21 14:00

Re: Sailfish OS for the OnePlus 3/3T
 
Quote:

Originally Posted by BluesLee (Post 1542118)
@delaya73: hi, several topics:
- any advantages of the new LOS base? i would need to reflash everything if it is of advantage
- you mentioned that we use a special debug kernel. will you provide a 'normal' one too? battery life could be improved, maybe.
- the only issue i encounter is with camera, it takes about 2 secs until a shot is taken, could be a general issue, don't know
- regarding BT i read that Mister Magister ported a device which uses BT rome chip, maybe you can check with him.

Hi.
By LOS I do not know how it will affect, see commits: https://github.com/delaya73/android_...ommits/cm-14.1

Mister Magister - talk on #sailfishos-porters

[13:46] <delaya73> Mister_Magister: you up qca bluetooth rome?
[13:46] <Mister_Magister> what
[13:48] <delaya73> there are rumors that you managed to launch QCA BLUETOOTH device with rome ...
[13:49] <Mister_Magister> nah
[13:49] <Mister_Magister> and i dont have this device

;)

BluesLee 2018-03-21 14:30

Re: Sailfish OS for the OnePlus 3/3T
 
Thanks, i know BT will be tricky. Lets check the outcome of the new kernel.

It would be good if someone can reproduce my issues:
- camera, it takes about 2 secs until a shot is taken (unsolved)
- battery life could be better, about 30% end of the day (solved: network processes like conman daemon caused this, reflashed firmware beta19, before we used beta20, see XDA post of delaya73)

meemorph 2018-06-05 13:28

Re: Sailfish OS for the OnePlus 3/3T
 
Sailfish OS was on 2.1.4.14 and I did a
Code:

ssu re 2.2.0.29
version --dup

and rebooted my oneplus3 and it is working. Don't kill me if yours is not working after doing the same. ;-)

But I realy need bluetooth working. Is somebody here who can do it. I read it is a rome chip.

delaya73 2018-06-06 07:53

Re: Sailfish OS for the OnePlus 3/3T
 
Hello.

Does fingerprint exist and work?

p/s/ Soon I will continue to work on SFOS.

meemorph 2018-06-06 14:25

Re: Sailfish OS for the OnePlus 3/3T
 
No fingerprint working, none in settings.

Nice to hear, that you are back with a computer soon. :-)

delaya73 2018-07-21 17:27

Re: Sailfish OS for the OnePlus 3/3T
 
I'm back to working on SFOS!

BluesLee 2018-07-22 09:16

Re: Sailfish OS for the OnePlus 3/3T
 
Quote:

Originally Posted by delaya73 (Post 1546412)
I'm back to working on SFOS!

Welcome back.

Currently it looks like that sensors stop working with higher package versions, i.e. i need to downgrade to the versions before everytime i do zypper ref; zypper up

Code:

zypper in -f sensorfw-qt5-configs=0.9.7-1.4.1 sensorfw
-qt5=0.9.7-1.4.1

Maybe someone can countercheck. Using 2.2.0.29 here.

r0kk3rz 2018-09-22 11:18

Re: Sailfish OS for the OnePlus 3/3T
 
Quote:

Originally Posted by BluesLee (Post 1546432)
Welcome back.

Currently it looks like that sensors stop working with higher package versions, i.e. i need to downgrade to the versions before everytime i do zypper ref; zypper up

Code:

zypper in -f sensorfw-qt5-configs=0.9.7-1.4.1 sensorfw
-qt5=0.9.7-1.4.1

Maybe someone can countercheck. Using 2.2.0.29 here.

The newer sensorfw now requires hw-settings.ini to be populated

eg. like this

Also, i put together a gitlab job to build a new image for the Oneplus 3, it'd be great to see if it actually works :)

https://gitlab.com/sailfishos-porter...lus3-ci/-/jobs

BluesLee 2018-09-22 15:20

Re: Sailfish OS for the OnePlus 3/3T
 
Quote:

Originally Posted by r0kk3rz (Post 1548769)
The newer sensorfw now requires hw-settings.ini to be populated

eg. like this

Also, i put together a gitlab job to build a new image for the Oneplus 3, it'd be great to see if it actually works :)

https://gitlab.com/sailfishos-porter...lus3-ci/-/jobs

It would be great to know, yes.

A short howto with a link to the Sailfishos and underlying lineage os (right?) image is appreciated. I can give it a try.

r0kk3rz 2018-09-23 08:41

Re: Sailfish OS for the OnePlus 3/3T
 
Quote:

Originally Posted by BluesLee (Post 1548775)
It would be great to know, yes.

A short howto with a link to the Sailfishos and underlying lineage os (right?) image is appreciated. I can give it a try.

Sailfish image can be found here:
http://gitlab.com/sailfishos-porters...?job=run-build

Lineageos base should be whatever you were using for Delaya's builds.

This should be in theory be the same as if you took one of those builds and zypper dup'd your way to the latest version

BluesLee 2018-09-23 12:21

Re: Sailfish OS for the OnePlus 3/3T
 
Quote:

Originally Posted by r0kk3rz (Post 1548791)
Sailfish image can be found here:
http://gitlab.com/sailfishos-porters...?job=run-build

Lineageos base should be whatever you were using for Delaya's builds.

This should be in theory be the same as if you took one of those builds and zypper dup'd your way to the latest version

I used Delaya's instructions on XDA to flash your Sailfish image. It works.

Just checked my favorite bug "camera, it takes about 2 secs until a shot is taken (unsolved)", no changes here. I guess its not firmware and not LineageOs related as it works within LineageOS itself.

p.s. turning off annoying camera shutter sound using https://together.jolla.com/question/...shutter-sound/

BluesLee 2018-10-04 15:04

Re: Sailfish OS for the OnePlus 3/3T
 
@delaya73: as you are back, what's next? any chance to get bluetooth working on this device, camera / video could be better supported, what about anbox status? hopefully, oneplus 3/3t keeps supported well as in the past. Thank you.

BluesLee 2018-11-17 10:29

Re: Sailfish OS for the OnePlus 3/3T
 
@delaya73: After an update to 3.0.0.8 sensors stopped working again. I did a wget of your configuration file hw-settings.ini to the corresponding folder but without success. Whats going on?

delaya73 2018-12-25 06:04

Re: Sailfish OS for the OnePlus 3/3T
 
Hi
Sensors corrected. Now work.
Upgrade
# ssu re 3.0.0.8
# version --dup

meemorph 2019-01-15 14:31

Re: Sailfish OS for the OnePlus 3/3T
 
Is there some progress to use bluetooth with sfos on the op3?

delaya73 2019-01-16 06:14

Re: Sailfish OS for the OnePlus 3/3T
 
Hi.
Bluetooth now works.
Check.

Upgrade:
# ssu re 3.0.1.11
# version --dup

meemorph 2019-01-16 20:46

Re: Sailfish OS for the OnePlus 3/3T
 
Quote:

Originally Posted by delaya73 (Post 1552822)
Hi.
Bluetooth now works.
Check.

Upgrade:
# ssu re 3.0.1.11
# version --dup

I can confirm this. MAC address is missing at settings->About Product

Fix:
> devel-su
# echo "YourBtMACaddress" > /var/lib/bluetooth/board-address

... have fun.

meemorph 2019-01-16 21:01

Re: Sailfish OS for the OnePlus 3/3T
 
The hard back key is working too. Can I swap the hard keys? I like the back key on the right (not left).

BluesLee 2019-01-16 21:30

Re: Sailfish OS for the OnePlus 3/3T
 
Quote:

Originally Posted by delaya73 (Post 1552822)
Hi.
Bluetooth now works.
Check.

Upgrade:
# ssu re 3.0.1.11
# version --dup

Confirmed that bluetooth is working somehow. Turning bluetooth on/off does not give the corresponding toggle feedback within settings / bluetooth. It looks like its not turning on but a bluetooth loudspeaker is automatically connected after initial pairing. I observed sound dropouts here.

@all: Still open: camera bug, it takes about 2 secs until a shot is taken after sound feedback. Can someone confirm this issue?

delaya73 2019-01-17 09:21

Re: Sailfish OS for the OnePlus 3/3T
 
Hi.
About bluetooth.
Fixed getting bluetooth MAC address

Commits:
1. https://github.com/delaya73/droid-co...77e212b0a3ea5e
2. https://github.com/delaya73/droid-co...ab6a80ca59f024

delaya73 2019-01-17 09:24

Re: Sailfish OS for the OnePlus 3/3T
 
Quote:

Originally Posted by BluesLee (Post 1552884)
Confirmed that bluetooth is working somehow. Turning bluetooth on/off does not give the corresponding toggle feedback within settings / bluetooth. It looks like its not turning on but a bluetooth loudspeaker is automatically connected after initial pairing. I observed sound dropouts here.

@all: Still open: camera bug, it takes about 2 secs until a shot is taken after sound feedback. Can someone confirm this issue?

Hi.
All of these problems are known to me. I am working on their solution.

delaya73 2019-01-22 08:37

Re: Sailfish OS for the OnePlus 3/3T
 
Bluetooth turns on and off better from the top menu.
As an option to add the option exec_timeout = 2 to the /etc/qca_rome.conf file
It should help a little, but this is not a solution.

For some reason, bluetooth does not turn off.

strace -p <process bluetooth-rfkill-event.service>

Code:

ioctl(5, HCIDEVUP, 0)                  = -1 EALREADY (Operation already in progress)
close(5)                                = 0
poll([{fd=4, events=POLLIN|POLLHUP}], 1, -1) = 1 ([{fd=4, revents=POLLIN}])
read(4, "\5\0\0\0\2\1\0\0", 8)          = 8
poll([{fd=4, events=POLLIN|POLLHUP}], 1, -1) = 1 ([{fd=4, revents=POLLIN}])
read(4, "\6\0\0\0\2\0\0\0", 8)          = 8
open("/sys/class/rfkill/rfkill6/name", O_RDONLY) = 5
read(5, "hci0\n", 4095)                = 5
close(5)                                = 0
socket(AF_BLUETOOTH, SOCK_RAW, 1)      = 5
ioctl(5, HCIGETDEVINFO, 0xffe2f364)    = 0
close(5)                                = 0
poll([{fd=4, events=POLLIN|POLLHUP}], 1, -1) = 1 ([{fd=4, revents=POLLIN}])
read(4, "\0\0\0\0\2\2\1\0", 8)          = 8
gettimeofday({tv_sec=1548146004, tv_usec=363081}, NULL) = 0
send(3, "<30>Jan 22 13:33:24 bluetooth_rf"..., 111, MSG_NOSIGNAL) = 111
pipe([5, 6])                            = 0
pipe([7, 8])                            = 0
pipe([9, 10])                          = 0
fcntl64(5, F_GETFL)                    = 0 (flags O_RDONLY)
fcntl64(5, F_SETFL, O_RDONLY|O_NONBLOCK) = 0
fcntl64(6, F_GETFL)                    = 0x1 (flags O_WRONLY)
fcntl64(6, F_SETFL, O_WRONLY|O_NONBLOCK) = 0
fcntl64(7, F_GETFL)                    = 0 (flags O_RDONLY)
fcntl64(7, F_SETFL, O_RDONLY|O_NONBLOCK) = 0
fcntl64(8, F_GETFL)                    = 0x1 (flags O_WRONLY)
fcntl64(8, F_SETFL, O_WRONLY|O_NONBLOCK) = 0
fcntl64(9, F_GETFL)                    = 0 (flags O_RDONLY)
fcntl64(9, F_SETFL, O_RDONLY|O_NONBLOCK) = 0
fcntl64(10, F_GETFL)                    = 0x1 (flags O_WRONLY)
fcntl64(10, F_SETFL, O_WRONLY|O_NONBLOCK) = 0
clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0xf6c54278) = 8182
close(5)                                = 0
close(8)                                = 0
close(10)                              = 0
_newselect(10, [7 9], NULL, NULL, {tv_sec=1, tv_usec=0}) = 1 (in [7], left {tv_sec=0, tv_usec=968589})
read(7, "8124\n", 4096)                = 5
--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=8182, si_uid=0, si_status=0, si_utime=0, si_stime=2} ---
wait4(8182, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], WNOHANG, NULL) = 8182
close(6)                                = 0
close(7)                                = 0
close(9)                                = 0
pipe([5, 6])                            = 0
pipe([7, 8])                            = 0
pipe([9, 10])                          = 0
fcntl64(5, F_GETFL)                    = 0 (flags O_RDONLY)
fcntl64(5, F_SETFL, O_RDONLY|O_NONBLOCK) = 0
fcntl64(6, F_GETFL)                    = 0x1 (flags O_WRONLY)
fcntl64(6, F_SETFL, O_WRONLY|O_NONBLOCK) = 0
fcntl64(7, F_GETFL)                    = 0 (flags O_RDONLY)
fcntl64(7, F_SETFL, O_RDONLY|O_NONBLOCK) = 0
fcntl64(8, F_GETFL)                    = 0x1 (flags O_WRONLY)
fcntl64(8, F_SETFL, O_WRONLY|O_NONBLOCK) = 0
fcntl64(9, F_GETFL)                    = 0 (flags O_RDONLY)
fcntl64(9, F_SETFL, O_RDONLY|O_NONBLOCK) = 0
fcntl64(10, F_GETFL)                    = 0x1 (flags O_WRONLY)
fcntl64(10, F_SETFL, O_WRONLY|O_NONBLOCK) = 0
clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0xf6c54278) = 8183
close(5)                                = 0
close(8)                                = 0
close(10)                              = 0
_newselect(10, [7 9], NULL, NULL, {tv_sec=1, tv_usec=0}) = 0 (Timeout)
wait4(8183, 0xffe2d2ec, WNOHANG, NULL)  = 0
_newselect(10, [7 9], NULL, NULL, {tv_sec=1, tv_usec=0}) = 0 (Timeout)
wait4(8183, 0xffe2d2ec, WNOHANG, NULL)  = 0
_newselect(10, [7 9], NULL, NULL, {tv_sec=1, tv_usec=0}) = 0 (Timeout)
wait4(8183, 0xffe2d2ec, WNOHANG, NULL)  = 0
_newselect(10, [7 9], NULL, NULL, {tv_sec=1, tv_usec=0}) = 0 (Timeout)
wait4(8183, 0xffe2d2ec, WNOHANG, NULL)  = 0
_newselect(10, [7 9], NULL, NULL, {tv_sec=1, tv_usec=0}) = 0 (Timeout)
wait4(8183, 0xffe2d2ec, WNOHANG, NULL)  = 0
_newselect(10, [7 9], NULL, NULL, {tv_sec=1, tv_usec=0}) = 0 (Timeout)
wait4(8183, 0xffe2d2ec, WNOHANG, NULL)  = 0
_newselect(10, [7 9], NULL, NULL, {tv_sec=1, tv_usec=0}) = 0 (Timeout)

Link on code: https://github.com/delaya73/bluetoot...l_event.c#L935

delaya73 2019-01-25 19:20

Re: Sailfish OS for the OnePlus 3/3T
 
Hi.
On my Marshall Major III Bluetooth works out at all 200% ;)

meemorph 2020-05-15 11:19

Re: Sailfish OS for the OnePlus 3/3T
 
HI, I habe an old op3t and want to flash sfos. Can I find an image near to sfos version 3.3 somewhere?

coderus 2020-05-15 12:31

Re: Sailfish OS for the OnePlus 3/3T
 
probably here: https://forum.xda-developers.com/one...-3-3t-t3724264

meemorph 2020-05-15 13:07

Re: Sailfish OS for the OnePlus 3/3T
 
Thats are the old 2.1. Thanks, looks like I have to start with it and have the update fun. ;-)
edit: oh no, there is a 3.2.1.20 too. I will take that one. :)

meemorph 2020-05-19 12:26

Re: Sailfish OS for the OnePlus 3/3T
 
Quote:

Originally Posted by r0kk3rz (Post 1548791)
Sailfish image can be found here:
http://gitlab.com/sailfishos-porters...?job=run-build
...

I took this image and flashed it with lineageos-14 firmware and SFOS is alive. After that I dup'ed up to 3.3.0.16, worked so far.

Whats missing:
  • BT
  • video
  • cam live image
  • power management very strong (disturbes listening music)

I could fix BT with installing (downgrading to) bluetooth-rfkill-event-hciattach-1.0.6+master.20190118102602.2.g1ab3b06-1.10.1.jolla.armv7hl.rpm and installing bluez5-tools.

But I cannot fix the video and music issue. Looks to me like the video overlay could not be started/displayed. Thats why the cam live image is missing too. Taking a picture works.

Can somebody give me any hints for fixing?

edit: looks like the 3.3.0.16 is not finished atm.

meemorph 2020-05-28 12:47

Re: Sailfish OS for the OnePlus 3/3T
 
After flashing the 3.2.1.20 image again video and bt are working.

But there are newer packages in the repository that will be installed later automaticaly, ex.: if I install software from openrepos. After that new bluetooth packges are installed (from 'bluetooth-rfkill-event-hciattach-1.0.6' to 'bluetooth-rfkill-event-hciattach-1.0.8'). This breakes bt again.

After a reboot rfkill shows 'bluetooth bt_power' only. If I unblock bt via GUI, I'm able to attach a 'bluetooth hci0' manualy with 'devel-su hciattach /dev/ttyHS0 qca 3000000 flow sleep' and bt is usable, but not switchable.

Is somebody working on the port for oneplus3(t) or is it dead?

andybleaden 2020-11-30 12:36

Re: Sailfish OS for the OnePlus 3/3T
 
Is somebody working on the port for oneplus3(t) or is it dead?[/QUOTE]


Not sure it is "dead" but just not upgraded it seems since the 3.2.1.20 build which is a real shame as this flies on a OP3T (albeit with no bluetooth and camera issues)

I have seen some new commits here in

http://repo.merproject.org/obs/nemo:...lus:/oneplus3/

Which kind of look promising as this was mostly on bluetooth .

Need to reinstall it again on my OP3T and then point to these.

Last time I had it on my OP3T I upgraded it to 3.3.0.16 but like many had no viewfinder and also upgraded it to 3.4 but that broke - lots!

Maybe armed with new additions from here and using proper OBS upgrades too it might work

andybleaden 2020-11-30 17:25

Re: Sailfish OS for the OnePlus 3/3T
 
1 Attachment(s)
By the way of a quick update

Had some time over the weekend and tried to upgrade *(knowing the camera viewfinder would break of course!) to 3.4..0.24

I made sure though to update a little differently.

Firstly I made sure my device was still pointing at the Mer Oneplus 3 fixes that have been updated here:

http://repo.merproject.org/obs/nemo:...lus:/oneplus3/


I noticed someone kind had updated them recently in Nov 2020.

Backup your Sailfish OS user files.

Open a shell as user nemo preferably via ssh

Install something like nano (to edit text files)

devel-su
zypper in nano

Change the repositories for example for version 3.4.0.24:
nano /usr/share/ssu/features.d/adaptation-community.ini

and update the address

http://repo.merproject.org/obs/nemo:...atest_armv7hl/

press ctrl x to save
y to agree to save
return to agree the name

then

nano /usr/share/ssu/features.d/adaptation-community-common.ini and update the address again

http://repo.merproject.org/obs/nemo:...atest_armv7hl/

press ctrl x to save
y to agree to save
return to agree the name


Then I used the following

ssu release 3.4.0.24
zypper ref
zypper up
version --dup
sync
reboot

Unlike the last time I upgraded to 3.4.0.24 it did not break so much - browser/emails etc all work - bluetooth does not nor does the viewfinder and mtp support appears to be broken (again) but the camera does work which is promising even if you are shooting blindfolded!



Another bonus is that is now really really fast - We are talking a decent upgrade in speed....especially the browser.

It aint perfect but worth a try - I notice a few glitches here and there and will report back

xelo 2021-04-04 18:43

Re: Sailfish OS for the OnePlus 3/3T
 
I was gifted a Oneplus 3 these days. I revived the device from a softbrick I created ealier this day. (yeah!)

Later I managed to install SFOS 2.1.4.14 on it, @delaya73 thanks for your work.

Then I horribly failed in updating it and even flashed the original image multiple times to start again. Something tells me I have to do a lot of reading to get this to work.

Anyways, this is the story of my failure, I'm sharing it for those who are also starting to walk down this path and for my future self :)
Code:


# This is the place i started:
version
SailfishOS 2.1.4.14 (Lapuanjoki)

# I did this, to make sure I'm really on the OTA branch...
ssu re 2.1.4.14
version --dup


ssu re 2.2.1.18
version --dup
reboot

# This went great, let's try the next step:
ssu re 3.0.0.8
version --dup

# Alright, we are now on SFOS 3 that's easy....

ssu re 3.0.1.11
version --dup

## Uh-ooh... This leads to the following error:
Error: This request will break your system!
This request will break your system!
nothing provides libstdc++

# Ok, the system might now be broken anyway, let's try some foolish stuff, while reading the forums:

# Then:
ssu re 3.4.0.24
zypper ref
zypper up
version --dup

# This leads to this error:
Error: nothing provides pulseaudio >= 12.2+git9 needed by pulseaudio-modules-droid-glue-12.2.4-1.7.35.jolla.armv7hl

zypper ref
zypper up

# Doing a version --dup now results in
Error: This request will break your system!
This request will break your system!
nothing provides libstdc++.so.6(CXXABI_1.3.9) needed by qtscenegraph-adaptation-0.7.5-1.5.4.jolla.armv7hl

# dared to reboot. It was an mistake, notification led is white on, the screen stays black. At least the device can boot to recovery. It's time to start at 2.1.4.14. But there is this damn tutorial....



All times are GMT. The time now is 23:18.

vBulletin® Version 3.8.8