We have moved to a new Sailfish OS Forum. Please start new discussions there.

[XA2] NFC auto-enabled after restart [answered]

Tracked by Jolla (In release)

asked 2019-07-04 15:14:27 +0300

Direc gravatar image

updated 2019-08-06 10:44:56 +0300

jovirkku gravatar image

Hi all,

I have XA2 and XA2 Ultra running, and I noticed this: If I restart my XA2, NFC is re-enabled after reboot (at least when Bluetooth is enabled, but I'm pretty sure the same thing happens with both Bluetooth and NFC disabled). For some reason, my XA2 Ultra does not do this; it remembers the state.

The only difference besides XA2/XA2U is that XA2 was flashed with 3.0.3, whereas XA2U was flashed with 3.0.1 (I think) and then upgraded.

Could someone test this? It's quite quick to do ;)

What about XA2 Plus?

edit retag flag offensive reopen delete

The question has been closed for the following reason "the question is answered, an answer was accepted" by Direc
close date 2020-05-24 22:49:26.037014


I noticed this on my xa2.NFC is turned on automatically after every restart. Flashed with

babo ( 2019-07-04 15:24:14 +0300 )edit

Can confirm on XA2 Plus also does this on which i flashed to. Guess that's another thing to keep mind of.

Mhaylowe ( 2019-07-04 15:36:24 +0300 )edit

Confirm this behaviour at XA2plus with

mitterberger ( 2019-07-11 11:10:28 +0300 )edit

I confirm this XA2plus with

manu007 ( 2019-07-11 11:34:33 +0300 )edit

@Direc Tanks for reporting. I confirm this too on my XA2 Plus Dual-SIM with

chris_bavaria ( 2019-07-11 14:20:32 +0300 )edit

5 Answers

Sort by » oldest newest most voted

answered 2019-07-13 17:28:04 +0300

Direc gravatar image

updated 2019-07-13 17:29:31 +0300

As @slava suggested in comments of the question, the folder /var/lib/nfcd/ was owned by root, so I changed the owner to nfc:nfc. In addition there was no settings file in that directory, so I created an empty file of that name, changed the owner, toggled NFC off and the file now contains the setting:


NFC now stays off when I just rebooted the device.

Sailors, could you also have a look at this? Thanks!

Edit: brainfart fix in settings content.

edit flag offensive delete publish link more



So to make it easy to check; this is correct:

[root@Sailfish nemo]# ls -la /var/lib/nfcd/
total 12
drwx------  2 nfc  nfc  4096 2019-07-03 15:38 .
drwxr-xr-x 33 root root 4096 2019-05-01 15:26 ..
-rw-------  1 nfc  nfc    25 2019-07-03 15:38 settings
Direc ( 2019-07-13 17:33:33 +0300 )edit

It's weird. For me, installing nfcd package changes ownership of /var/lib/nfcd directory to nfc:nfc according to %dir %attr(700,nfc,nfc) in the spec file:


slava ( 2019-07-13 18:18:52 +0300 )edit

Then I suspect that the permissions are wrong in the flashed image file instead... I didn't try reinstalling nfcd package.

Direc ( 2019-07-15 14:30:29 +0300 )edit

Thanks, worked fine for my Xperia 10.

May ( 2020-03-29 19:57:09 +0300 )edit

answered 2019-08-01 13:43:25 +0300

jovirkku gravatar image

Thank you for reporting. A bug was filed on this.

edit flag offensive delete publish link more


Seems fixed after 3.1.0 update atleast for me. Tested when I saw @Direc 's qestion. 17B vendor binaries. Can't recall flashed version. Have to check that later.

Edit 2019-08-02 Definetly flashed 3.0.2. Command: devel-su tune2fs -l /dev/sailfish/root | grep 'Filesystem created' gives Filesystem created: Mon May 6 15:25:48 2019. Remeber that flash script didn't let use 16 binaries.

mSorvisto ( 2019-08-01 22:41:49 +0300 )edit

Fixed for me with 3.2.0 EA upgrade. Was too lazy to do the woraround.

binutzu ( 2019-11-03 23:38:04 +0300 )edit

XA2 plus with NFC automatically turns on after reboot.

zuyev ( 2019-11-13 16:41:22 +0300 )edit

FYI, this also affects my newly flashed Xperia 10 wlth Torronsuo I can turn off NFC for a session, but it is always reenabled after a reboot.

flow ( 2019-12-05 14:12:34 +0300 )edit

i had this behaviour when flashing my xa2 but nowadays it's gone . i didn't change anything but a sw update

NuklearFart ( 2019-12-25 10:12:19 +0300 )edit

answered 2020-04-27 11:12:08 +0300

jovirkku gravatar image

Fixed in OS release

edit flag offensive delete publish link more

answered 2020-01-12 11:24:40 +0300

updated 2020-01-13 02:03:49 +0300

I'm bumping this as I have the same problem on Xperia 10 with latest release The problem doesn't occur anymore on XA2 Plus, but on X10 it still does.

There is no settings file in /var/lib/nfcd/, and the nfcd directory is owned by radio:radio and have no permissions for others drwx------

edit flag offensive delete publish link more


you can create empty file with touch /var/lib/nfcd/settings and you can change ownership with chown nfc:nfc ... both require devel-su

manu ( 2020-01-13 09:38:04 +0300 )edit

Try to see the accepted answer for help, perhaps the issue is the same for you...

As for a proper fix; this issue is still "Tracked by Jolla" so it isn't fixed yet.

Direc ( 2020-01-19 11:52:18 +0300 )edit

answered 2020-04-02 21:37:48 +0300

Sebix gravatar image

Citing the release notes for 3.3.0:

NFC setting keeps its value over device restart

edit flag offensive delete publish link more


Yes, fixed in 3.3.0

jovirkku ( 2020-04-21 09:35:46 +0300 )edit

Question tools



Asked: 2019-07-04 15:14:27 +0300

Seen: 1,143 times

Last updated: Apr 27 '20