Sony Nagara (Xperia 1IV and 5IV) port

Thanks @vlagged for workaround document. I thought only I have this issue.

Also several times caught issue with black unlock screen after reboot. It stuck with loading indicator. The phone seems work. I can swipe left/right (swipe to event view, unlock view and swipe down top panel). When I swipe to unlock view - see black screen, but when I touch number area where numbers for enter pin code are located - the phone is vibrating on touch. One time I was able to unlock the phone. But when I locked phone again the loading indicator still there.

Hey, folks. I know this is made for Android, but could something like this be beneficial to SFOS as well?

2 Likes

I am pretty sure this is a generic Sailfish OS bug as I also have it on my previous device and I remember it from Xperia 10 (mark1). Powering down the screen and re-lighting it (power button clicks) fixes it.

LE Sorry I skipped the

part. This, in my experience, is ofono or connman not starting. Do you manage to boot in the end, and does it connect to any type of network? If so, can you ssh and get some journalctl -b logs?
I can detail some steps based on your answers

That will probably be a nice addition to gstreamer quirks for camera, whenever camera2 API is possible in the future, but it sounds like a lot of params to test and some need camera HUD changes, so I wouldn’t think more than some defaults tweaked for everyone would be doable even then. But thanks for the link, now the back of my mind is even heavier ;p

1 Like

For users in the USA, after tossing some legal foo at T-Mobile, these devices should join the GSM-T network, register volte and work without getting banned. Fyi, MMS send is quirky but seems unrelated to intentional blocking by the carrier. This port works extremely well on US Mobile Lightspeed network (GSM-T) in and around Austin, San Antonio and the surrounding semi-rural and rural areas. Red Pocket, Google-Fi and other MVNO on GSM-T all also work great.

Absolutely excellent work to everyone involved in making this port happen. By far the best port for a phone that can work well in the USA.

I’m battling with AT&T next. They’re a much harder nut to crack.

5 Likes

Yes, I’ve managed to boot in the end. It looks like the issue was in connman. Unfortunately, I didn’t save any logs :frowning:If this problem happens to me again, I’ll post the logs here. Thanks

can somebody check if video recording has normal volume on lineageos image?
I wonder if it’s LOS or SFOS issue

Hi,
I think I might have something new… I flashed LOS, then SFOS, it booted, I could set an hardware encryption password, restored a backup from a cyphered SDcard, got my contacts back from a NextCloud instance…

Then I tried to install Storeman, but the icon disappeared from the application menu soon after the installation (within the same second it appeared).

I then tried to reboot the phone, I could send my hardware encryption password but I end up stuck with a spinning circle and never reached the application desk again…

I can connect via SSH, there is a load of 3.xx but nothing evident. What should I look for ?

(also I noticed that the flash light is surprisingly weak compared to the X10III one)

indeed

mandatory 20 chars

I think that the hardware could be configured.

By any chance, wouldn’t it be possible for you to also trigger the 1 IV kernel getting rebuilt with the config tweaks needed for networking, even just as a temporary test build for the brave ones until rinigus is able to look into this? I am ready to accept all the risks as my 10 III has started acting up and it seems that it is giving up its ghost so I’m in real need to be able to fully switch to the 1 IV asap…. I guess that also all the other guys owning the 1 IV (e.g. bundyo) would be very happy if it could be done…

1 Like

I wanted to reflash an empty system (for a fresh start) but could not flash the LOS boot and vendor_boot :

 # fastboot flash boot boot.img
fastboot: error: Failed to identify current slot
# fastboot flash vendor_boot vendor_boot.img
Warning: skip copying vendor_boot image avb footer (vendor_boot partition size: 0, vendor_boot image size: 100663296).
Sending 'vendor_boot' (98304 KB)                   FAILED (Status read failed (No such device))
fastboot: error: Command failed

I’m using the same USB cable, the LED is blue…

Not sure which spinning wheel is that - the decryption or the homescreen. Maybe set the the console to infinite scrollack and paste all you got in a pastebin-like service? (Next time - I know you’re reflashing).

Sometimes issuing the fastboot command before the phone is connected works (or even if connected, but before it reboots with the cable connected, your volume up button held and the command issues).

All I can tell is that I can unroll the top menu (showing my locked SIM card) and I can start the camera app sliding from the bottom.

Ok, so the spinner on the homescreen. Do you have this if you somehow remove the pin from the sim card? (e.g using another phone?)

I have a proposed fix for video playback, if you

zypper ref -r adaptation-community
zypper up -r adaptation-community

you should see gstreamer1.0-droid-0.20251025.0+mediabuffers.nnnn

Let me know if it works for you (you need to re-enable avc if you disabled it from gstdroidcodec.conf)

2 Likes

Seems to be working!

But still can’t play the file I’ve created with ffmpeg -i src.mkv -c:v libx264 -pix_fmt yuv420p -filter:v scale="720:trunc(ow/a/2)*2" out.mp4 (to test: WDfiles — файлообменник бесплатный - Š·Š°Š³Ń€ŃƒŠ·ŠøŃ‚ŃŒ файл), though MpvQml plays it.

PS Is there a similar path to patch for aliendalvik video play?

$ exiftool -a /tmp/111/123.mp4
ExifTool Version Number         : 12.76
File Name                       : 123.mp4
Directory                       : /tmp/111
File Size                       : 8.3 MB
File Modification Date/Time     : 2026:05:04 13:10:01+05:00
File Access Date/Time           : 2026:05:04 13:10:34+05:00
File Inode Change Date/Time     : 2026:05:04 13:10:01+05:00
File Permissions                : -rw-rw----
File Type                       : MP4
File Type Extension             : mp4
MIME Type                       : video/mp4
Major Brand                     : MP4 Base Media v1 [IS0 14496-12:2003]
Minor Version                   : 0.2.0
Compatible Brands               : isom, iso2, avc1, mp41
Media Data Size                 : 8276508
Media Data Offset               : 48
Movie Header Version            : 0
Create Date                     : 0000:00:00 00:00:00
Modify Date                     : 0000:00:00 00:00:00
Time Scale                      : 1000
Duration                        : 0:01:25
Preferred Rate                  : 1
Preferred Volume                : 100.00%
Matrix Structure                : 1 0 0 0 1 0 0 0 1
Preview Time                    : 0 s
Preview Duration                : 0 s
Poster Time                     : 0 s
Selection Time                  : 0 s
Selection Duration              : 0 s
Current Time                    : 0 s
Next Track ID                   : 4
Track Header Version            : 0
Track Create Date               : 0000:00:00 00:00:00
Track Modify Date               : 0000:00:00 00:00:00
Track ID                        : 1
Track Duration                  : 0:01:25
Track Layer                     : 0
Track Volume                    : 0.00%
Matrix Structure                : 1 0 0 0 1 0 0 0 1
Image Width                     : 717
Image Height                    : 298
Chapter List Track ID           : 3
Media Header Version            : 0
Media Create Date               : 0000:00:00 00:00:00
Media Modify Date               : 0000:00:00 00:00:00
Media Time Scale                : 13978
Media Duration                  : 0:01:25
Media Language Code             : eng
Handler Type                    : Video Track
Handler Description             : VideoHandler
Graphics Mode                   : srcCopy
Op Color                        : 0 0 0
Compressor ID                   : avc1
Source Image Width              : 720
Source Image Height             : 298
X Resolution                    : 72
Y Resolution                    : 72
Compressor Name                 : Lavc60.31.102 libx264
Bit Depth                       : 24
Pixel Aspect Ratio              : 10579:10620
Buffer Size                     : 0
Max Bitrate                     : 384786
Average Bitrate                 : 384786
Video Frame Rate                : 23.976
Track Header Version            : 0
Track Create Date               : 0000:00:00 00:00:00
Track Modify Date               : 0000:00:00 00:00:00
Track ID                        : 2
Track Duration                  : 0:01:25
Track Layer                     : 0
Track Volume                    : 100.00%
Matrix Structure                : 1 0 0 0 1 0 0 0 1
Chapter List Track ID           : 3
Media Header Version            : 0
Media Create Date               : 0000:00:00 00:00:00
Media Modify Date               : 0000:00:00 00:00:00
Media Time Scale                : 48000
Media Duration                  : 0:01:25
Media Language Code             : rus
Handler Type                    : Audio Track
Handler Description             : SoundHandler
Balance                         : 0
Audio Format                    : mp4a
Audio Channels                  : 6
Audio Bits Per Sample           : 16
Audio Sample Rate               : 48000
Buffer Size                     : 0
Max Bitrate                     : 394066
Average Bitrate                 : 394066
Track 2 Name                    : Dub
Track Header Version            : 0
Track Create Date               : 0000:00:00 00:00:00
Track Modify Date               : 0000:00:00 00:00:00
Track ID                        : 3
Track Duration                  : 0:01:25
Track Layer                     : 0
Track Volume                    : 0.00%
Matrix Structure                : 1 0 0 0 1 0 0 0 1
Media Header Version            : 0
Media Create Date               : 0000:00:00 00:00:00
Media Modify Date               : 0000:00:00 00:00:00
Media Time Scale                : 1000
Media Duration                  : 0:01:25
Handler Type                    : Text
Handler Description             : SubtitleHandler
Gen Media Version               : 0
Gen Flags                       : 0 0 0
Gen Graphics Mode               : ditherCopy
Gen Op Color                    : 32768 32768 32768
Gen Balance                     : 0
Other Format                    : text
Font Table                      : 
Warning                         : [minor] The ExtractEmbedded option may find more tags in the media data
Handler Type                    : Metadata
Handler Vendor ID               : Apple
Encoder                         : Lavf60.16.100
Chapter List                    : [0:00:00.000] 00:26:19.119, [0:01:18.518] 00:31:34.518
Image Size                      : 717x298
Megapixels                      : 0.214
Avg Bitrate                     : 779 kbps
Rotation                        : 0

… I reflashed LOS, tried the flashlight : Flash light surprisingly dim Ā· Issue #72 Ā· sailfishos-sony-nagara/main Ā· GitHub

Then reflashed SFOS, redo the welcome and got the spinner !
At this point, I also got a (not so dim) light in my head : this spinner is simply waiting for my fingerprint.

Problem solved.

I re-installed Storeman (install successful) but still no icon on the desk…

Fatal error: nothing provides 'libsailfishsecrets.so.0()(64bit) necessary for harbour-storeman-0.7.4-1.26.1.bso.aarch64

(translation is mine)

1 Like

Sorry for late reply. After installing gstreamer1.0-droid-0.20251025.0+mediabuffers and re-enabling avc in gstdroidcodec.conf most avc videos (including those which previously didn’t work) now play correctly in Gallery. But still not all. As reported by @remote above, his sample video still doesn’t play at all in Gallery (while it plays just fine in e.g. Sailfish web browser or in MpvQml), and there are also numerous avc videos which do play but with distorted colors, artefacts, etc. Most common issues are green lines and/or large bars all around the screen. I also encountered one video only showing solid green screen with audio. All those videos do play entirely OK in the web brower, MpvQml, VLC in AAS, etc.

Anyway, I’ve just seen on Github that there are changes to droidmedia in progress, making it possible to force media buffers in gst-droid like in gecko-camera via quirks in gstdroidcodec.conf. So, quite possibly, it’ll soon further improve avc playback to a really good level.

This, and hopefully also the 1 IV kernel soon getting rebuilt with the networking config tweaks enabling mobile data in AAS (like it already is the case on the 5 IV), would give this port already at this point a 100% usability, with no doubt the most powerful SFOS devices ever available.

2 Likes

Is 5 IV already daily-driveable with AAS, comparable to X10III? As in, are papercuts actively getting in the way, or not really.

1 Like