maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   SailfishOS (https://talk.maemo.org/forumdisplay.php?f=52)
-   -   Sailfish OS on Sony Xperia Tama devices (XZ2, XZ2c, XZ3) (https://talk.maemo.org/showthread.php?t=100877)

maximilian1st 2020-11-12 18:21

Re: Sailfish OS on Sony Xperia Tama devices (XZ2, XZ2c, XZ3)
 
Quote:

Originally Posted by lfc22 (Post 1570161)
... Are there any safe instructions on how to downgrade back to Android 9 if that's the requirement?

Hi, I had upgraded my device to Android 10 and flashed SailfishOS on it. The camera was so crappy that I thought I give it a second try in Android. I just used the Sony Emma software because it did not work under Ubuntu using newflasher.

My XZ2C is now flashed with Android 9 and the camera is great. I will flash Sailfish on it tonight. Because, who wants a great camera?! haha ;-p

On Sailfish I had way better results with Piggz's Advanced Camera app. The battery is also a huge problem for me in this port. I used Android three weeks and battery life was way better.

With all it's problems, I am very thankful to the porters.

rinigus 2020-11-12 18:45

Re: Sailfish OS on Sony Xperia Tama devices (XZ2, XZ2c, XZ3)
 
maximilian1st: What was the battery issue? does it suspend for you? or was it indexing of some huge collections?

JoOppen 2020-11-12 18:56

Re: Sailfish OS on Sony Xperia Tama devices (XZ2, XZ2c, XZ3)
 
Quote:

Originally Posted by lfc22 (Post 1570161)
rinigus, thank you for the port!

I recently purchased XZ2 (H8216) with the sole purpose of installing SFOS, and it came pre-loaded with Android 10.

Is there a path to installing SFOS with Android 10? All instructions I see here and on XDA refer to AOSP9 as seed (and Android 10 as a future possibility only if porting happens). Are there any safe instructions on how to downgrade back to Android 9 if that's the requirement?

I am not sure what exactly the question is:

Do you want know whether you should downgrade to Android 9 before flashing SFOS?

I guess, the answer is "no", because that is what is written in the instrauction "Update device to the last Android version before unlocking. You can update to Android 10 if offered and flash Sailfish over it directly. Check that all works before flashing Sailfish. If something doesn't work, it will be possible to claim the warranty on device.", see the Instructions on GitHub I did so with my XZ3 and everything is fine. This is diferent from what I learned about flashing Jolla's SFOS on an Xperia 10 where it was recommended not to flash over Android 10.

Should your question refer to kernel 4.14 that comes with Android 10, then I don't know.

maximilian1st 2020-11-12 19:00

Re: Sailfish OS on Sony Xperia Tama devices (XZ2, XZ2c, XZ3)
 
I have 4000 photos on an SDCard but I guess the indexing will take maybe 24 hours maximum. I might be wrong, just a wild guess. The phone did not pass the day. It came warm out of my pocket, it's cold outside... Sometimes I fired up top in the terminal but it only showed fingerterm and nothing really cpu intesive.

Also, I forgot to mention that apps crashed frequently. The phone app, messaging app and so on. I use to open 6 or 7 apps and when I take my phone out of my pocket, some apps are just greyed out. Something I never had with my X Compact.

That is not of much help unfortunately. The phone will be back on sailfish tonight and I'll post how it works after a few days of usage. This is my main phone.

maximilian1st 2020-11-12 21:16

Re: Sailfish OS on Sony Xperia Tama devices (XZ2, XZ2c, XZ3)
 
OK, I took the SDCard out of the phone and moved most photos on my laptop. Card back in phone and the gallery complains about missing photos haha ;-)
Let's see if that can help get more battery out of the phone and less crashes.

After flashing and booting for the first time, one cannot create the Jolla account for some reason. It complains about network connection error. Even after that, trying to create the account from the settings menu does not work for me. Neither does the Fruux account. I have to reboot the phone, wait for the 4G sign to appear and then only can I create the accounts and it works.

JoOppen 2020-11-13 15:40

Re: Sailfish OS on Sony Xperia Tama devices (XZ2, XZ2c, XZ3)
 
Quote:

Originally Posted by maximilian1st (Post 1570169)
OK, I took the SDCard out of the phone and moved most photos on my laptop. Card back in phone and the gallery complains about missing photos haha ;-)
Let's see if that can help get more battery out of the phone and less crashes.

After flashing and booting for the first time, one cannot create the Jolla account for some reason. It complains about network connection error. Even after that, trying to create the account from the settings menu does not work for me. Neither does the Fruux account. I have to reboot the phone, wait for the 4G sign to appear and then only can I create the accounts and it works.

Same here ..

But once I had the accounts set up everythimg was fine

maximilian1st 2020-11-14 15:42

Re: Sailfish OS on Sony Xperia Tama devices (XZ2, XZ2c, XZ3)
 
Don't insert an SDCard full of photos in a Sailfish OS phone haha. I deleted most photos and the battery is behaving as I remember from my Xperia X Compact. Thank you Rinigus for the tip.

maximilian1st 2020-11-29 21:14

Re: Sailfish OS on Sony Xperia Tama devices (XZ2, XZ2c, XZ3)
 
The github repository is seeing some love :-) 3.4.0.4 could be around the corner \o/

rinigus 2020-11-29 21:27

Re: Sailfish OS on Sony Xperia Tama devices (XZ2, XZ2c, XZ3)
 
Started working on it this weekend. Delay was mainly caused by some technical issues with OBS (new targets for 3.4.0 were added maybe a week or bit more ago) and a wish to release Pure Maps work without interrupting it.

I expect it would take few days more before release, unless I hit some major issue. But getting closer, indeed.

levone1 2020-12-02 14:13

Re: Sailfish OS on Sony Xperia Tama devices (XZ2, XZ2c, XZ3)
 
Fun fact - sliding your finger over the fingerprint scanner on the back causes a scroll. Up and down scrolls left to right, and left to right scrolls up and down. It's a tiny bit, so not useful for anything, but figured I'd just point it out...

maximilian1st 2020-12-03 13:54

Re: Sailfish OS on Sony Xperia Tama devices (XZ2, XZ2c, XZ3)
 
Quote:

Originally Posted by levone1 (Post 1570364)
Fun fact - sliding your finger over the fingerprint scanner on the back causes a scroll. Up and down scrolls left to right, and left to right scrolls up and down. It's a tiny bit, so not useful for anything, but figured I'd just point it out...

I was about to flash Android back on the phone because of this erratic behaviour! The focus goes mad while typing and touching both the display and the fingerprint sensor.

Thank you for pointing this out. How do I disable the fingerprint sensor?

levone1 2020-12-03 15:51

Re: Sailfish OS on Sony Xperia Tama devices (XZ2, XZ2c, XZ3)
 
Quote:

Originally Posted by maximilian1st (Post 1570381)
I was about to flash Android back on the phone because of this erratic behaviour! The focus goes mad while typing and touching both the display and the fingerprint sensor.

Thank you for pointing this out. How do I disable the fingerprint sensor?

Maybe try...
devel-su zypper rm sailfish-fpd-community-test sailfish-fpd-community sailfish-devicelock-fpd ?
(I can't guarantee that is safe, it's just the opposite command of installing fingerprint support from documentation. Check with @rinigus...)

rinigus 2020-12-03 16:42

Re: Sailfish OS on Sony Xperia Tama devices (XZ2, XZ2c, XZ3)
 
Quote:

Originally Posted by maximilian1st (Post 1570381)
I was about to flash Android back on the phone because of this erratic behaviour! The focus goes mad while typing and touching both the display and the fingerprint sensor.

Thank you for pointing this out. How do I disable the fingerprint sensor?

it is enabled deep in android stack. no easy way I am aware of to disable it. easiest is to keep the finger away from FP reader while you use the device. it is general rule regarding any sensor - don't engage it when you don't want to use it.

JoOppen 2020-12-03 20:18

Re: Sailfish OS on Sony Xperia Tama devices (XZ2, XZ2c, XZ3)
 
Quote:

Originally Posted by rinigus (Post 1570336)
Started working on it this weekend. Delay was mainly caused by some technical issues with OBS (new targets for 3.4.0 were added maybe a week or bit more ago) and a wish to release Pure Maps work without interrupting it.

I expect it would take few days more before release, unless I hit some major issue. But getting closer, indeed.

All the sudden I have this exiting feeling I used to have before christmas when I was younger ...

rinigus 2020-12-03 20:55

Re: Sailfish OS on Sony Xperia Tama devices (XZ2, XZ2c, XZ3)
 
Release 3.4.0.24 is out. See release notes at https://github.com/sailfishos-sony-t...s/tag/3.4.0.24

Right now it is available via OTA only. OTA instructions have been updated and it is important to ensure that you have package jolla-configuration-DEVICE_CODE installed corresponding to your device! Read the instructions fully before updating or you may get into trouble.

I will create images in the upcoming days for those who prefer to flash fresh.

Note that while I have tested it for few days, it has not been tested extensively. So, as usual, for those who want to be on the safe side, wait bit longer and see if issues will start popping up in github repository or forum threads (TMO and XDA).

In addition to the expected SFOS update features, notice that this SFOS update brings support to OpenGLES 3. On web browsers side (stock and Angelfish), this translates to webgl2 support. Just don't forget to update runtime if you use Flatpaks (using flatpak-runner).

For Tama port, this release brings recovery image that can be used to make filesystem-based backups on your SD card. You would need the release image to use it, so wait few days. To use it, you have to login through telnet into recovery boot and follow the instructions provided in separate document of the main repository.

The help of several developers is appreciated: Thaodan has joined as a team member and worked on different aspects of the port, updated repos and adjusted the structure. During update testing, I hit an issue with MCE refusing to restart right after OTA making it impossible to use power button for restarting the phone. That issue was resolved by mal and spiiroin, thanks to them as well!

JoOppen 2020-12-03 21:24

Re: Sailfish OS on Sony Xperia Tama devices (XZ2, XZ2c, XZ3)
 
I didn't expect Christmas that early ;-)
Thank you to all of you!

levone1 2020-12-03 22:01

Re: Sailfish OS on Sony Xperia Tama devices (XZ2, XZ2c, XZ3)
 
Quote:

Originally Posted by rinigus (Post 1570384)
it is enabled deep in android stack. no easy way I am aware of to disable it. easiest is to keep the finger away from FP reader while you use the device. it is general rule regarding any sensor - don't engage it when you don't want to use it.

I wonder if it could be remapped and used for something useful... Last-app switcher would be nice.

levone1 2020-12-04 04:22

Re: Sailfish OS on Sony Xperia Tama devices (XZ2, XZ2c, XZ3)
 
ota update went smoothly, and working great - thanks ...

If anyone else is using Aliendalvik et al from another device, I found that you need to update:
For Aliendalvik: aliendalvik, aliendalvik-configs, and aliendalvik-system
For Exchange Activesync - sailfish-eas, libsailfish-eas, and libsailfish-eas-common

Xt9 seems to be working fine...

JoOppen 2020-12-04 07:48

Re: Sailfish OS on Sony Xperia Tama devices (XZ2, XZ2c, XZ3)
 
Update went smoothly. No problems (yet?) - and fingerprint sensor for XZ3 is working too, now.
Thank you a lot!

JoOppen 2020-12-04 11:45

Re: Sailfish OS on Sony Xperia Tama devices (XZ2, XZ2c, XZ3)
 
Ok, I found some minor issue: apparently audio routing to USB does not work. I tried to feed an external DAC with the XZ3 via USB. When the DAC is plugged into USB, audio is still routed to the XZ3 speakers.

When I do the same with the XA2, audio data is routed to USB and thus to the DAC. The XA2 speakers remain silent when playing music and the DAC is connected to USB

EDIT: Audio-out to USB is fine as far a the analog signal is concerned. Thus using the passive USB-TRS adapter works fine The issue only concerns the digital audio data

And: USB OTG also works fine - USB sticks are well recognized

pagis 2020-12-04 13:13

Re: Sailfish OS on Sony Xperia Tama devices (XZ2, XZ2c, XZ3)
 
Thanks for the upgrade, it seems to work really well on XZ3, I had a minor issue as I had to run first

devel-su zypper refresh

maybe that needs to be added in the instructions as an optional initial step.

rinigus 2020-12-04 16:43

Re: Sailfish OS on Sony Xperia Tama devices (XZ2, XZ2c, XZ3)
 
Quote:

Originally Posted by pagis (Post 1570403)
Thanks for the upgrade, it seems to work really well on XZ3, I had a minor issue as I had to run first

devel-su zypper refresh

maybe that needs to be added in the instructions as an optional initial step.

has been added, thanks

JoOppen 2020-12-05 08:59

Re: Sailfish OS on Sony Xperia Tama devices (XZ2, XZ2c, XZ3)
 
For some reason systemd/journald (?) stops writing the logs afzer a while. Accordingly, no recent logs are found and journalctl -f does render no results.

This different from the behaviour under 3.4 on the XA2 and the Xperia 10.

After a reboot, there is log for about two or three hours and then.the logging stops.

I was investigating the behaviour when a USB device is connected to the XZ3. That is why I used journalctl and found the strange behaviour

rinigus 2020-12-05 09:43

Re: Sailfish OS on Sony Xperia Tama devices (XZ2, XZ2c, XZ3)
 
Images are uploaded to Github now, for those who prefer them.

Re journal: haven't seen that. Since update uptime on my main device is ~40 hours and journal is working fine. So, something is off in your case. Try to check out state of systemd, maybe some service is crashing?

Re USB sound: never checked and cannot comment on it. Did it work earlier on Tama? XA2 version is the same - 3.4.0.24? Try to open a topic on the forum and I will ask for help - Jolla devs will probably prefer to help via official forum. Then you will be able to test their solutions.

USB to analog works for me, that I test.

JoOppen 2020-12-05 12:53

Re: Sailfish OS on Sony Xperia Tama devices (XZ2, XZ2c, XZ3)
 
This is the log from the XA2 when an USB DAC is connected to the phone:

Code:

Dez 05 13:24:51 Sailfish kernel: usbpd usbpd0: Type-C Sink connected
Dez 05 13:24:51 Sailfish kernel: PMI: smblib_get_apsd_result: APSD not done yet.
Dez 05 13:24:51 Sailfish kernel: PMI: smblib_get_apsd_result: APSD not done yet.
Dez 05 13:24:53 Sailfish kernel: msm-dwc3 a800000.ssusb: DWC3 exited from low power mode
Dez 05 13:24:53 Sailfish kernel: xhci-hcd xhci-hcd.0.auto: xHCI Host ControllerDez 05 13:24:53 Sailfish kernel: xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 1
Dez 05 13:24:53 Sailfish kernel: xhci-hcd xhci-hcd.0.auto: hcc params 0x0230fe65 hci version 0x110 quirks 0x00010010
Dez 05 13:24:53 Sailfish kernel: xhci-hcd xhci-hcd.0.auto: irq 517, io mem 0x0a800000
Dez 05 13:24:53 Sailfish kernel: usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
Dez 05 13:24:53 Sailfish kernel: usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
Dez 05 13:24:53 Sailfish kernel: usb usb1: Product: xHCI Host Controller
Dez 05 13:24:53 Sailfish kernel: usb usb1: Manufacturer: Linux 4.4.194 xhci-hcd
Dez 05 13:24:53 Sailfish kernel: usb usb1: SerialNumber: xhci-hcd.0.auto
Dez 05 13:24:53 Sailfish kernel: hub 1-0:1.0: USB hub foundDez 05 13:24:53 Sailfish kernel: hub 1-0:1.0: 1 port detected
Dez 05 13:24:53 Sailfish kernel: xhci-hcd xhci-hcd.0.auto: xHCI Host Controller
Dez 05 13:24:53 Sailfish kernel: xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 2
Dez 05 13:24:53 Sailfish kernel: usb usb2: We don't know the algorithms for LPM for thishost, disabling LPM.
Dez 05 13:24:53 Sailfish kernel: usb usb2: New USB device found, idVendor=1d6b, idProduct=0003Dez 05 13:24:53 Sailfish kernel: usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
Dez 05 13:24:53 Sailfish kernel: usb usb2: Product: xHCI Host Controller
Dez 05 13:24:53 Sailfish kernel: usb usb2: Manufacturer: Linux 4.4.194 xhci-hcd
Dez 05 13:24:53 Sailfish kernel: usb usb2: SerialNumber: xhci-hcd.0.auto
Dez 05 13:24:53 Sailfish kernel: hub 2-0:1.0: USB hub found
Dez 05 13:24:53 Sailfish kernel: hub 2-0:1.0: 1 port detected
Dez 05 13:24:53 Sailfish kernel: usb 1-1: new high-speed USB device number 2 using xhci-hcd
Dez 05 13:24:53 Sailfish kernel: usb 1-1: New USB device found, idVendor=22e1, idProduct=e202
Dez 05 13:24:53 Sailfish kernel: usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=6
Dez 05 13:24:53 Sailfish kernel: usb 1-1: Product: SONATA HD Audio
Dez 05 13:24:53 Sailfish kernel: usb 1-1: Manufacturer: Tempotec
Dez 05 13:24:53 Sailfish kernel: usb 1-1: SerialNumber: 5000000001
Dez 05 13:24:53 Sailfish kernel: input: Tempotec SONATA HD Audio as /devices/soc/a800000.ssusb/a800000.dwc3/xhci-hcd.0.auto/usb1/1-1/1-1:1.0/0003:22E1:E202.0006/input/input13
Dez 05 13:24:53 Sailfish kernel: hid-generic 0003:22E1:E202.0006: input,hidraw0: USB HIDv1.00 Device [Tempotec SONATA HD Audio] on usb-xhci-hcd.0.auto-1/input0
Dez 05 13:24:53 Sailfish mce[2876]: modules/audiorouting.c: audio_route_sink(): unknown audio sink device = 'usbaudio'
Dez 05 13:24:53 Sailfish mce[2876]: modules/audiorouting.c: audio_route_sink(): unknown audio sink device = 'usbaudio'
Dez 05 13:24:56 Sailfish fingerterm[2600]: [D] unknown:0 - unknown special key:  6710886405 13:24:41 Sailfish kernel: PMI: smblib_get_apsd_result: APSD not done yet.
Dez 05 13:24:51 Sailfish kernel: usbpd usbpd0: Type-C Sink connected
Dez 05 13:24:51 Sailfish kernel: PMI: smblib_get_apsd_result: APSD not done yet.
Dez 05 13:24:51 Sailfish kernel: PMI: smblib_get_apsd_result: APSD not done yet.
Dez 05 13:24:53 Sailfish kernel: msm-dwc3 a800000.ssusb: DWC3 exited from low power mode
Dez 05 13:24:53 Sailfish kernel: xhci-hcd xhci-hcd.0.auto: xHCI Host Controller
Dez 05 13:24:53 Sailfish kernel: xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 1
Dez 05 13:24:53 Sailfish kernel: xhci-hcd xhci-hcd.0.auto: hcc params 0x0230fe65 hci version 0x110 quirks 0x00010010
Dez 05 13:24:53 Sailfish kernel: xhci-hcd xhci-hcd.0.auto: irq 517, io mem 0x0a800000
Dez 05 13:24:53 Sailfish kernel: usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
Dez 05 13:24:53 Sailfish kernel: usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
Dez 05 13:24:53 Sailfish kernel: usb usb1: Product: xHCI Host ControllerDez 05 13:24:53 Sailfish kernel: usb usb1: Manufacturer: Linux 4.4.194 xhci-hcd
Dez 05 13:24:53 Sailfish kernel: usb usb1: SerialNumber: xhci-hcd.0.auto
Dez 05 13:24:53 Sailfish kernel: hub 1-0:1.0: USB hub found
Dez 05 13:24:53 Sailfish kernel: hub 1-0:1.0: 1 port detected
Dez 05 13:24:53 Sailfish kernel: xhci-hcd xhci-hcd.0.auto: xHCI Host Controller
Dez 05 13:24:53 Sailfish kernel: xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 2
Dez 05 13:24:53 Sailfish kernel: usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
Dez 05 13:24:53 Sailfish kernel: usb usb2: New USB device found, idVendor=1d6b, idProduct=0003
Dez 05 13:24:53 Sailfish kernel: usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
Dez 05 13:24:53 Sailfish kernel: usb usb2: Product: xHCI Host Controller
Dez 05 13:24:53 Sailfish kernel: usb usb2: Manufacturer: Linux 4.4.194 xhci-hcd
Dez 05 13:24:53 Sailfish kernel: usb usb2: SerialNumber: xhci-hcd.0.auto
Dez 05 13:24:53 Sailfish kernel: hub 2-0:1.0: USB hub found
Dez 05 13:24:53 Sailfish kernel: hub 2-0:1.0: 1 port detected
Dez 05 13:24:53 Sailfish kernel: usb 1-1: new high-speed USB device number 2 using xhci-hcd
Dez 05 13:24:53 Sailfish kernel: usb 1-1: New USB device found, idVendor=22e1, idProduct=e202Dez 05 13:24:53 Sailfish kernel: usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=6
Dez 05 13:24:53 Sailfish kernel: usb 1-1: Product: SONATA HD Audio
Dez 05 13:24:53 Sailfish kernel: usb 1-1: Manufacturer: Tempotec
Dez 05 13:24:53 Sailfish kernel: usb 1-1: SerialNumber: 5000000001
Dez 05 13:24:53 Sailfish kernel: input: Tempotec SONATA HD Audio as /devices/soc/a800000.ssusb/a800000.dwc3/xhci-hcd.0.auto/usb1/1-1/1-1:1.0/0003:22E1:E202.0006/input/input13
Dez 05 13:24:53 Sailfish kernel: hid-generic 0003:22E1:E202.0006: input,hidraw0: USB HIDv1.00 Device [Tempotec SONATA HD Audio] on usb-xhci-hcd.0.auto-1/input0
Dez 05 13:24:53 Sailfish mce[2876]: modules/audiorouting.c: audio_route_sink(): unknown audio sink device = 'usbaudio'
Dez 05 13:24:53 Sailfish mce[2876]: modules/audiorouting.c: audio_route_sink(): unknown audio sink device = 'usbaudio'

The log from the XZ3 looks very similar except for the last two lines where mce steps in and apparently re-routs the digital audio signal to USB

This weekend I plan to flash another Tama device and will report whether I encounter issues with journald and USB

My present XZ3 is just too good (despite the minor issues) to do a reset

rinigus 2020-12-05 12:59

Re: Sailfish OS on Sony Xperia Tama devices (XZ2, XZ2c, XZ3)
 
> My present XZ3 is just too good (despite the minor issues) to do a reset

not that I want you to prevent flashing other Tama - this is a correct way of spreading the port - but we have now ability to make filesystem backup using sdcard. That way I am able to flash/restore development device quite fast to test OTA, for example. That works via telnet and usb connection to the phone, so not trivial. But nice to have such backups

JoOppen 2020-12-06 09:08

Re: Sailfish OS on Sony Xperia Tama devices (XZ2, XZ2c, XZ3)
 
Another passenger (i.e. non-developing Sailfish user) found that MTP over USB (and thus SSH) does not work on the XZ2c under 3.4.0.24 after the OTA update.

I can confirm the same isdue with the XZ3:

Quote:

Dez 05 19:17:24 XperiaXZ3 mce[3140]: modules/battery-udev.c: mcebat_update(): charger_type: none -> usb
Dez 05 19:17:24 XperiaXZ3 usb_moded[3139]: /config/usb_gadget/g1/UDC: write failure: Value too large for defined data type
Dez 05 19:17:24 XperiaXZ3 usb_moded[3139]: Neither configured rndis0 nor fallback usb0 interface exists. Check your config!
Dez 05 19:17:24 XperiaXZ3 usb_moded[3139]: mode setting failed, try charging_only
Dez 05 19:17:24 XperiaXZ3 usb_moded[3139]: /config/usb_gadget/g1/functions/mass_storage.usb0: mkdir failed: No such file or directory
Dez 05 19:17:24 XperiaXZ3 usb_moded[3139]: function mass_storage.usb0 is not registered
Dez 05 19:17:24 XperiaXZ3 usb_moded[3139]: switch to charging mode failed
Dez 05 19:17:24 XperiaXZ3 usb_moded[3139]: failed to activate charging, all bets are off
Dez 05 19:17:24 XperiaXZ3 usb_moded[3139]: mode setting failed, fallback to undefined
Dez 05 19:17:24 XperiaXZ3 healthd: battery l=76 v=3932 t=24.5 h=2 st=3 c=388 fc=2971000 chg

rinigus 2020-12-06 10:13

Re: Sailfish OS on Sony Xperia Tama devices (XZ2, XZ2c, XZ3)
 
Quote:

Originally Posted by JoOppen (Post 1570415)
Another passenger (i.e. non-developing Sailfish user) found that MTP over USB (and thus SSH) does not work on the XZ2c under 3.4.0.24 after the OTA update.

I can confirm the same isdue with the XZ3:

Did it work before?

JoOppen 2020-12-06 10:32

Re: Sailfish OS on Sony Xperia Tama devices (XZ2, XZ2c, XZ3)
 
Quote:

Originally Posted by rinigus (Post 1570419)
Did it work before?

Sorry, I did not try :-(

rinigus 2020-12-06 10:41

Re: Sailfish OS on Sony Xperia Tama devices (XZ2, XZ2c, XZ3)
 
Based on README, it did. I wonder what changed...

rinigus 2020-12-06 10:51

Re: Sailfish OS on Sony Xperia Tama devices (XZ2, XZ2c, XZ3)
 
Broken on 3.3 already, as it looks.

JoOppen 2020-12-06 18:33

Re: Sailfish OS on Sony Xperia Tama devices (XZ2, XZ2c, XZ3)
 
I just learned that MTP and SSH over USB was working with 3.3

rinigus 2020-12-06 18:35

Re: Sailfish OS on Sony Xperia Tama devices (XZ2, XZ2c, XZ3)
 
3.3 - maybe. Tested with 3.2.1 and it worked, but not from the first try. Only starting from the second try. So, maybe I was too quick with 3.3, cannot be sure.

rinigus 2020-12-07 20:51

Re: Sailfish OS on Sony Xperia Tama devices (XZ2, XZ2c, XZ3)
 
With the help of mal, USB issue is fixed.

To get the fix, as root (devel-su), just update usb-moded and few extra packages depending on it:

devel-su zypper ref
devel-su zypper up

Korkkiruuvi 2020-12-12 15:39

Re: Sailfish OS on Sony Xperia Tama devices (XZ2, XZ2c, XZ3)
 
I found out that audio routing via Xperia xz3 usb port clipping/cuts often(randomly between 10-15 seconds interval) like cd player in car. this happened in sailfish 3.3 and 3.4. I been reverted back to android and tested out music plays without any problem. And then back to sailfish and sound keeps cutting. I tested with bluetooth headphones and that works fine. So what could cause that?

I opened terminal and watched top, cpu utilization wasn't quite high at least. Also tried different audio files (flac, mp3, ogg) and different headphones (low and high ohm). This is very unacceptable. Anyone else?

lal 2020-12-12 15:40

Re: Sailfish OS on Sony Xperia Tama devices (XZ2, XZ2c, XZ3)
 
Interesting devices, and great port. Thanks to @rinigus and everyone else involved. I have been trying to get hold of one of these, especially the XZ2 Compact, but didn't succeed at all yet.

Out of curiosity, how well does the battery keep up on the XZ2 and XZ2 Compact with Sailfish OS 3.4 release. Heard some reports (mixed opinions though) that 3.4 has been a bit hard on battery on at least the officially supported Sony devices.

rinigus 2020-12-12 16:23

Re: Sailfish OS on Sony Xperia Tama devices (XZ2, XZ2c, XZ3)
 
@Korkkiruuvi: when you compare with Android, is it with AOSP9 or something else? I don't know whether AOSP9 is available for download, but that would be closest to compare with. Although, I haven't worked on USB audio and don't plan to as there is no hardware to test it nor use it.

@lal: while I have XZ2c for development/backup, haven't used it as a daily driver and cannot comment on battery life. XZ2, with my usage, can probably last 2 days. Frequently, I don't swing from 100->20, but keep it in the range 30-80. Looking at the stats, it is about 40% battery per 24h with my usage

Korkkiruuvi 2020-12-12 18:34

Re: Sailfish OS on Sony Xperia Tama devices (XZ2, XZ2c, XZ3)
 
Quote:

Originally Posted by rinigus (Post 1570479)
@Korkkiruuvi: when you compare with Android, is it with AOSP9 or something else? I don't know whether AOSP9 is available for download, but that would be closest to compare with. Although, I haven't worked on USB audio and don't plan to as there is no hardware to test it nor use it.

@lal: while I have XZ2c for development/backup, haven't used it as a daily driver and cannot comment on battery life. XZ2, with my usage, can probably last 2 days. Frequently, I don't swing from 100->20, but keep it in the range 30-80. Looking at the stats, it is about 40% battery per 24h with my usage

I meaned latest Sony stock android 9. Aosp would be reasonable to test out indeed. I will report back when tested. Need to find out is it already reported in AOSP. As there are custom roms with AOSP 10 are you ready to upgrade sailfish to it?

rinigus 2020-12-12 18:51

Re: Sailfish OS on Sony Xperia Tama devices (XZ2, XZ2c, XZ3)
 
Quote:

Originally Posted by Korkkiruuvi (Post 1570480)
I meaned latest Sony stock android 9. Aosp would be reasonable to test out indeed. I will report back when tested. Need to find out is it already reported in AOSP. As there are custom roms with AOSP 10 are you ready to upgrade sailfish to it?

I am planning to move the port over to AOSP10 & 64-bit, when corresponding support for SFOS ports will be available. That should improve camera and allow us to use latest flatpak aarch64 KDE platform.

As it is now, Jolla is working on AOSP10 and 64-bit support. So, I can work on other projects meanwhile.

vaskas 2020-12-13 22:55

Re: Sailfish OS on Sony Xperia Tama devices (XZ2, XZ2c, XZ3)
 
Quote:

Originally Posted by JoOppen (Post 1570409)
This is the log from the XA2 when an USB DAC is connected to the phone:

Code:

Dez 05 13:24:51 Sailfish kernel: usbpd usbpd0: Type-C Sink connected
Dez 05 13:24:51 Sailfish kernel: PMI: smblib_get_apsd_result: APSD not done yet.
Dez 05 13:24:51 Sailfish kernel: PMI: smblib_get_apsd_result: APSD not done yet.
Dez 05 13:24:53 Sailfish kernel: msm-dwc3 a800000.ssusb: DWC3 exited from low power mode
Dez 05 13:24:53 Sailfish kernel: xhci-hcd xhci-hcd.0.auto: xHCI Host ControllerDez 05 13:24:53 Sailfish kernel: xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 1
Dez 05 13:24:53 Sailfish kernel: xhci-hcd xhci-hcd.0.auto: hcc params 0x0230fe65 hci version 0x110 quirks 0x00010010
Dez 05 13:24:53 Sailfish kernel: xhci-hcd xhci-hcd.0.auto: irq 517, io mem 0x0a800000
Dez 05 13:24:53 Sailfish kernel: usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
Dez 05 13:24:53 Sailfish kernel: usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
Dez 05 13:24:53 Sailfish kernel: usb usb1: Product: xHCI Host Controller
Dez 05 13:24:53 Sailfish kernel: usb usb1: Manufacturer: Linux 4.4.194 xhci-hcd
Dez 05 13:24:53 Sailfish kernel: usb usb1: SerialNumber: xhci-hcd.0.auto
Dez 05 13:24:53 Sailfish kernel: hub 1-0:1.0: USB hub foundDez 05 13:24:53 Sailfish kernel: hub 1-0:1.0: 1 port detected
Dez 05 13:24:53 Sailfish kernel: xhci-hcd xhci-hcd.0.auto: xHCI Host Controller
Dez 05 13:24:53 Sailfish kernel: xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 2
Dez 05 13:24:53 Sailfish kernel: usb usb2: We don't know the algorithms for LPM for thishost, disabling LPM.
Dez 05 13:24:53 Sailfish kernel: usb usb2: New USB device found, idVendor=1d6b, idProduct=0003Dez 05 13:24:53 Sailfish kernel: usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
Dez 05 13:24:53 Sailfish kernel: usb usb2: Product: xHCI Host Controller
Dez 05 13:24:53 Sailfish kernel: usb usb2: Manufacturer: Linux 4.4.194 xhci-hcd
Dez 05 13:24:53 Sailfish kernel: usb usb2: SerialNumber: xhci-hcd.0.auto
Dez 05 13:24:53 Sailfish kernel: hub 2-0:1.0: USB hub found
Dez 05 13:24:53 Sailfish kernel: hub 2-0:1.0: 1 port detected
Dez 05 13:24:53 Sailfish kernel: usb 1-1: new high-speed USB device number 2 using xhci-hcd
Dez 05 13:24:53 Sailfish kernel: usb 1-1: New USB device found, idVendor=22e1, idProduct=e202
Dez 05 13:24:53 Sailfish kernel: usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=6
Dez 05 13:24:53 Sailfish kernel: usb 1-1: Product: SONATA HD Audio
Dez 05 13:24:53 Sailfish kernel: usb 1-1: Manufacturer: Tempotec
Dez 05 13:24:53 Sailfish kernel: usb 1-1: SerialNumber: 5000000001
Dez 05 13:24:53 Sailfish kernel: input: Tempotec SONATA HD Audio as /devices/soc/a800000.ssusb/a800000.dwc3/xhci-hcd.0.auto/usb1/1-1/1-1:1.0/0003:22E1:E202.0006/input/input13
Dez 05 13:24:53 Sailfish kernel: hid-generic 0003:22E1:E202.0006: input,hidraw0: USB HIDv1.00 Device [Tempotec SONATA HD Audio] on usb-xhci-hcd.0.auto-1/input0
Dez 05 13:24:53 Sailfish mce[2876]: modules/audiorouting.c: audio_route_sink(): unknown audio sink device = 'usbaudio'
Dez 05 13:24:53 Sailfish mce[2876]: modules/audiorouting.c: audio_route_sink(): unknown audio sink device = 'usbaudio'
Dez 05 13:24:56 Sailfish fingerterm[2600]: [D] unknown:0 - unknown special key:  6710886405 13:24:41 Sailfish kernel: PMI: smblib_get_apsd_result: APSD not done yet.
Dez 05 13:24:51 Sailfish kernel: usbpd usbpd0: Type-C Sink connected
Dez 05 13:24:51 Sailfish kernel: PMI: smblib_get_apsd_result: APSD not done yet.
Dez 05 13:24:51 Sailfish kernel: PMI: smblib_get_apsd_result: APSD not done yet.
Dez 05 13:24:53 Sailfish kernel: msm-dwc3 a800000.ssusb: DWC3 exited from low power mode
Dez 05 13:24:53 Sailfish kernel: xhci-hcd xhci-hcd.0.auto: xHCI Host Controller
Dez 05 13:24:53 Sailfish kernel: xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 1
Dez 05 13:24:53 Sailfish kernel: xhci-hcd xhci-hcd.0.auto: hcc params 0x0230fe65 hci version 0x110 quirks 0x00010010
Dez 05 13:24:53 Sailfish kernel: xhci-hcd xhci-hcd.0.auto: irq 517, io mem 0x0a800000
Dez 05 13:24:53 Sailfish kernel: usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
Dez 05 13:24:53 Sailfish kernel: usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
Dez 05 13:24:53 Sailfish kernel: usb usb1: Product: xHCI Host ControllerDez 05 13:24:53 Sailfish kernel: usb usb1: Manufacturer: Linux 4.4.194 xhci-hcd
Dez 05 13:24:53 Sailfish kernel: usb usb1: SerialNumber: xhci-hcd.0.auto
Dez 05 13:24:53 Sailfish kernel: hub 1-0:1.0: USB hub found
Dez 05 13:24:53 Sailfish kernel: hub 1-0:1.0: 1 port detected
Dez 05 13:24:53 Sailfish kernel: xhci-hcd xhci-hcd.0.auto: xHCI Host Controller
Dez 05 13:24:53 Sailfish kernel: xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 2
Dez 05 13:24:53 Sailfish kernel: usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
Dez 05 13:24:53 Sailfish kernel: usb usb2: New USB device found, idVendor=1d6b, idProduct=0003
Dez 05 13:24:53 Sailfish kernel: usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
Dez 05 13:24:53 Sailfish kernel: usb usb2: Product: xHCI Host Controller
Dez 05 13:24:53 Sailfish kernel: usb usb2: Manufacturer: Linux 4.4.194 xhci-hcd
Dez 05 13:24:53 Sailfish kernel: usb usb2: SerialNumber: xhci-hcd.0.auto
Dez 05 13:24:53 Sailfish kernel: hub 2-0:1.0: USB hub found
Dez 05 13:24:53 Sailfish kernel: hub 2-0:1.0: 1 port detected
Dez 05 13:24:53 Sailfish kernel: usb 1-1: new high-speed USB device number 2 using xhci-hcd
Dez 05 13:24:53 Sailfish kernel: usb 1-1: New USB device found, idVendor=22e1, idProduct=e202Dez 05 13:24:53 Sailfish kernel: usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=6
Dez 05 13:24:53 Sailfish kernel: usb 1-1: Product: SONATA HD Audio
Dez 05 13:24:53 Sailfish kernel: usb 1-1: Manufacturer: Tempotec
Dez 05 13:24:53 Sailfish kernel: usb 1-1: SerialNumber: 5000000001
Dez 05 13:24:53 Sailfish kernel: input: Tempotec SONATA HD Audio as /devices/soc/a800000.ssusb/a800000.dwc3/xhci-hcd.0.auto/usb1/1-1/1-1:1.0/0003:22E1:E202.0006/input/input13
Dez 05 13:24:53 Sailfish kernel: hid-generic 0003:22E1:E202.0006: input,hidraw0: USB HIDv1.00 Device [Tempotec SONATA HD Audio] on usb-xhci-hcd.0.auto-1/input0
Dez 05 13:24:53 Sailfish mce[2876]: modules/audiorouting.c: audio_route_sink(): unknown audio sink device = 'usbaudio'
Dez 05 13:24:53 Sailfish mce[2876]: modules/audiorouting.c: audio_route_sink(): unknown audio sink device = 'usbaudio'

The log from the XZ3 looks very similar except for the last two lines where mce steps in and apparently re-routs the digital audio signal to USB

This weekend I plan to flash another Tama device and will report whether I encounter issues with journald and USB

My present XZ3 is just too good (despite the minor issues) to do a reset


I have got the same SONATA HD dongle and which works on an XA2 but does nothing on XZ2. What is the command you are using to extract the logs? I can't see anything in journalctl, and all dmesg shows is the new USB HID device..


All times are GMT. The time now is 10:25.

vBulletin® Version 3.8.8