sailfishos-sony-tama / main

Documentation, releases, and issues
MIT License
36 stars 7 forks source link

NFC doesn't turn on (xz3) #158

Open pagism opened 3 years ago

pagism commented 3 years ago

from settings nfc can be enabled but it doesn't seem to work, not that can do much in sfos in general.

nfc logs app shows: 2021-07-20 07:21:39.812 Parsing /proc/4421/status 2021-07-20 07:21:39.813 NFC enabled 2021-07-20 07:21:39.813 dbus-neard: Enabled: true 2021-07-20 07:21:39.823 Wrote /var/lib/nfcd/settings 2021-07-20 07:21:54.853 Name ':1.162' timed out 2021-07-20 07:22:09.854 Name ':1.51' timed out

and dmesg [ 2731.080071] dsi-ctrl:[dsi_ctrl_handle_error_st atus] tx timeout error: 0x40

rinigus commented 3 years ago

Haven't checked it out at AOSP10, unfortunately.

In README, NFC support was carried over from earlier versions and it did use to work at some point. Maybe already at later SFOS versions with AOSP9 we somehow lost it - I remember there were reports about it. Never checked it further as not much can be done with NFC on SFOS anyway.

Should drop NFC support from README and restore that if it will be available and shown to be working.

As for figuring out what's wrong - would be good to do so. Just priority is low(ish) due to lack of clear functional advantage.

pagism commented 3 years ago

Pity NFC is almost unusable in SFOS, remember when J1 was launched TOH was based on NFC.

In earlier versions of this AOSP9 port NFC used to work, it's a low priority issue anyway, good to be listed tho.

ApostolosB commented 3 years ago

On AOSP9 -at some point at least- when i was putting my debit card near the phone it used to vibrate. After some point it stopped but have no idea if it was something that changed in SFOS or AOSP. Same behavior with AOSP10. Doesn't seem to work.

AFAI understand there is only one app that uses NFC on SFOS?

teleshoes commented 2 years ago

NFC is still not working on my XZ2c. unsurprising if not in AOSP10, of course, but figured id check anyway

Pity NFC is almost unusable in SFOS

what do you mean? i use NFC daily on Xperia X Compact. (maybe you mean that only a handful of native apps use it? i actually have no idea what other people use NFC on their phones for, aside from 2FA)

it's a low priority issue anyway

:'( personally, its my last issue stopping me switching to XZ2c as my daily driver

rinigus commented 2 years ago

I don't know if NFC works on AOSP10 itself. I hope it does, but someone needs to establish it. @teleshoes - want to test it?

If it does work on AOSP10 then it is a matter of checking out whether we are missing something in SFOS side. Would be good to start and check if any AOSP10-based SFOS port has NFC working. But that would make sense after we know about AOSP10 itself

teleshoes commented 2 years ago

@rinigus i tried to flash this:

aosp-10.0-20200818_aosp_h8314.zip https://androidfilehost.com/?w=files&flid=299805

and i got:

> fastboot flash system_a system.img
Invalid sparse file format at header magic
Sending sparse 'system_a' 1/2 (768005 KB)          OKAY [ 23.230s]
Writing 'system_a'                                 OKAY [  0.001s]
Sending sparse 'system_a' 2/2 (470299 KB)          FAILED (remote: 'Error: Last flash failed : Volume Full')
fastboot: error: Command failed

is there another image i can use? or am i supposed to resize partitions or something after flashing SFOS? (ive never used or flashed android before, only maemo/meego/sfos)

rinigus commented 2 years ago

Sorry, I am not up to date with those images. In principle, you can build one using AOSP guides. Otherwise it could be difficult to find AOSP10 image these days.

You could also ask at corresponding thread. Maybe image is buggy? Or download failed?