Active Topics

 


Reply
Thread Tools
Community Council | Posts: 4,920 | Thanked: 12,867 times | Joined on May 2012 @ Southerrn Finland
#831
Yesterday something pretty odd happened to my Nexus5/SFOS;
The device shut down as I lost power due to forgetting that I had a half-way dry battery and left home without a charger.

After recharging and booting the device I find out that sensors are no longer working...
Noticed it immediately as orientation stays portrait all the time and when I checked the whole sensory array with Messwerk I noticed that none of the bunch work...

So, any suggestions how should I investigate this further, or should I just try to reflash sensors3.zip on top of the system and hope it helps the situation?

Oh, and I am on 2.0.4.14 currently.

Unfortunately I have no logs from the state where sensors did work, but here's what's in the logs currently when I reboot the device:

dmesg;
Code:
[    0.444614] ocmem: Client sensors (id: 6) not allowed to use OCMEM
[    6.515775] systemd[1]: sensorfwd.service has a D-Bus service name specified, but is not of type dbus. Ignoring.
[   14.841211] msm_sensor_config:1751 sensor state 1
[   14.908185] msm_sensor_config:1779 sensor state 0
[   15.028778] msm_sensor_config:1751 sensor state 1
[   15.049161] msm_sensor_config_mt9m114b:1340 [CMD_POLLING] success (cnt=2) 
[   15.075190] msm_sensor_config_mt9m114b:1340 [CMD_POLLING] success (cnt=2) 
[   15.141793] msm_sensor_config_mt9m114b:1340 [CMD_POLLING] success (cnt=9) 
[   15.287215] msm_sensor_config:1779 sensor state 0

journal;
Code:
Dec 07 09:11:05 Sailfish DSME[686]: thermal sensor generic: No thermal config files found
Dec 07 09:11:05 Sailfish systemd[1]: Starting Sensor daemon for sensor framework...
Dec 07 09:11:05 Sailfish sensorfwd[716]: Created a daemon 
Dec 07 09:11:05 Sailfish sensorfwd[730]: int HybrisManager::handleForType(int) No sensor of type: 5 
Dec 07 09:11:05 Sailfish sensorfwd[730]: Node ' "alsadaptor" ' state changed to invalid 
Dec 07 09:11:05 Sailfish sensorfwd[730]: SensorManagerError:  "adaptor 'alsadaptor' can not be started" 
Dec 07 09:11:05 Sailfish sensorfwd[730]: Node ' "alssensor" ' state changed to invalid 
Dec 07 09:11:05 Sailfish sensorfwd[730]: "alssensor instantiation failed" 
Dec 07 09:11:05 Sailfish sensorfwd[730]: SensorManagerError:  "sensor has not been instantiated" 
Dec 07 09:11:05 Sailfish systemd[1]: Started Sensor daemon for sensor framework.
Dec 07 09:11:05 Sailfish sensorfwd[730]: int HybrisManager::handleForType(int) No sensor of type: 8 
Dec 07 09:11:05 Sailfish sensorfwd[730]: Node ' "proximityadaptor" ' state changed to invalid 
Dec 07 09:11:05 Sailfish sensorfwd[730]: SensorManagerError:  "adaptor 'proximityadaptor' can not be started" 
Dec 07 09:11:05 Sailfish sensorfwd[730]: Node ' "proximitysensor" ' state changed to invalid 
Dec 07 09:11:05 Sailfish sensorfwd[730]: "proximitysensor instantiation failed" 
Dec 07 09:11:05 Sailfish sensorfwd[730]: SensorManagerError:  "sensor has not been instantiated" 
Dec 07 09:11:05 Sailfish sensorfwd[730]: SensorManagerError:  "requested sensor id 'alssensor' not registered" 
Dec 07 09:11:05 Sailfish sensorfwd[730]: int HybrisManager::handleForType(int) No sensor of type: 1 
Dec 07 09:11:05 Sailfish sensorfwd[730]: Node ' "accelerometeradaptor" ' state changed to invalid 
Dec 07 09:11:05 Sailfish sensorfwd[730]: SensorManagerError:  "adaptor 'accelerometeradaptor' can not be started" 
Dec 07 09:11:05 Sailfish sensorfwd[730]: QObject::connect: Cannot connect (null)::propertyChanged(const QString&) to AccelerometerChain::propertyChanged(const QString&)
Dec 07 09:11:05 Sailfish sensorfwd[730]: QObject::connect: Cannot connect (null)::propertyChanged(const QString&) to AccelerometerChain::propertyChanged(const QString&)
Dec 07 09:11:05 Sailfish sensorfwd[730]: Node ' "orientationchain" ' state changed to invalid 
Dec 07 09:11:05 Sailfish sensorfwd[730]: Node ' "orientationsensor" ' state changed to invalid 
Dec 07 09:11:05 Sailfish sensorfwd[730]: "orientationsensor instantiation failed" 
Dec 07 09:11:05 Sailfish sensorfwd[730]: SensorManagerError:  "sensor has not been instantiated" 
Dec 07 09:11:09 Sailfish sensorfwd[730]: SensorManagerError:  "requested sensor id 'orientationsensor' not registered" 
Dec 07 09:11:09 Sailfish lipstick[939]: [D] SensorManagerInterface::interface:78 - Requested sensor id ' "orientationsensor" ' interface not granted 
Dec 07 09:11:09 Sailfish sensorfwd[730]: SensorManagerError:  "requested sensor id 'orientationsensor' not registered" 
Dec 07 09:11:09 Sailfish lipstick[939]: [D] SensorManagerInterface::interface:78 - Requested sensor id ' "orientationsensor" ' interface not granted 
Dec 07 09:11:09 Sailfish lipstick[939]: [W] LipstickCompositor::LipstickCompositor:93 - Could not start the orientation sensor 
Dec 07 09:12:07 Sailfish [1351]: [D] Sensor::activate:36 - Sensor started 
Dec 07 09:12:07 Sailfish sensorfwd[730]: int HybrisManager::handleForType(int) No sensor of type: 2 
Dec 07 09:12:07 Sailfish sensorfwd[730]: Node ' "magnetometeradaptor" ' state changed to invalid 
Dec 07 09:12:07 Sailfish sensorfwd[730]: Attempting to define invalid default data rate:  50 
Dec 07 09:12:07 Sailfish sensorfwd[730]: SensorManagerError:  "adaptor 'magnetometeradaptor' can not be started" 
Dec 07 09:12:07 Sailfish sensorfwd[730]: QObject::connect: Cannot connect (null)::propertyChanged(const QString&) to MagCalibrationChain::propertyChanged(const QString&)
Dec 07 09:12:07 Sailfish sensorfwd[730]: QObject::connect: Cannot connect (null)::propertyChanged(const QString&) to MagCalibrationChain::propertyChanged(const QString&)
Dec 07 09:12:07 Sailfish sensorfwd[730]: Node ' "magnetometersensor" ' state changed to invalid 
Dec 07 09:12:07 Sailfish sensorfwd[730]: "magnetometersensor instantiation failed" 
Dec 07 09:12:07 Sailfish sensorfwd[730]: SensorManagerError:  "sensor has not been instantiated" 
Dec 07 09:12:07 Sailfish [1351]: [D] SensorManagerInterface::interface:78 - Requested sensor id ' "magnetometersensor" ' interface not granted 
Dec 07 09:12:07 Sailfish sensorfwd[730]: SensorManagerError:  "requested sensor id 'magnetometersensor' not registered" 
Dec 07 09:12:07 Sailfish [1351]: [D] SensorManagerInterface::interface:78 - Requested sensor id ' "magnetometersensor" ' interface not granted 
Dec 07 09:12:48 Sailfish [1646]: [D] Sensor::activate:36 - Sensor started 
Dec 07 09:12:48 Sailfish sensorfwd[730]: SensorManagerError:  "requested sensor id 'alssensor' not registered" 
Dec 07 09:12:48 Sailfish [1646]: [D] SensorManagerInterface::interface:78 - Requested sensor id ' "alssensor" ' interface not granted 
Dec 07 09:12:48 Sailfish sensorfwd[730]: SensorManagerError:  "requested sensor id 'alssensor' not registered" 
Dec 07 09:12:48 Sailfish [1646]: [D] SensorManagerInterface::interface:78 - Requested sensor id ' "alssensor" ' interface not granted 
Dec 07 09:12:48 Sailfish [1646]: [D] Sensor::activate:36 - Sensor started 
Dec 07 09:12:48 Sailfish sensorfwd[730]: SensorManagerError:  "requested sensor id 'proximitysensor' not registered" 
Dec 07 09:12:48 Sailfish [1646]: [D] SensorManagerInterface::interface:78 - Requested sensor id ' "proximitysensor" ' interface not granted 
Dec 07 09:12:48 Sailfish sensorfwd[730]: SensorManagerError:  "requested sensor id 'proximitysensor' not registered" 
Dec 07 09:12:48 Sailfish [1646]: [D] SensorManagerInterface::interface:78 - Requested sensor id ' "proximitysensor" ' interface not granted 
Dec 07 09:12:55 Sailfish [1646]: [D] Sensor::activate:36 - Sensor started 
Dec 07 09:12:55 Sailfish sensorfwd[730]: int HybrisManager::handleForType(int) No sensor of type: 4 
Dec 07 09:12:55 Sailfish sensorfwd[730]: Node ' "gyroscopeadaptor" ' state changed to invalid 
Dec 07 09:12:55 Sailfish sensorfwd[730]: Attempting to define invalid default data rate:  50 
Dec 07 09:12:55 Sailfish sensorfwd[730]: SensorManagerError:  "adaptor 'gyroscopeadaptor' can not be started" 
Dec 07 09:12:55 Sailfish sensorfwd[730]: Node ' "gyroscopesensor" ' state changed to invalid 
Dec 07 09:12:55 Sailfish sensorfwd[730]: "gyroscopesensor instantiation failed" 
Dec 07 09:12:55 Sailfish sensorfwd[730]: SensorManagerError:  "sensor has not been instantiated" 
Dec 07 09:12:55 Sailfish [1646]: [D] SensorManagerInterface::interface:78 - Requested sensor id ' "gyroscopesensor" ' interface not granted 
Dec 07 09:12:55 Sailfish sensorfwd[730]: SensorManagerError:  "requested sensor id 'gyroscopesensor' not registered" 
Dec 07 09:12:55 Sailfish [1646]: [D] SensorManagerInterface::interface:78 - Requested sensor id ' "gyroscopesensor" ' interface not granted 
Dec 07 09:13:00 Sailfish [1646]: [D] Sensor::activate:36 - Sensor started 
Dec 07 09:13:00 Sailfish sensorfwd[730]: Node ' "accelerometersensor" ' state changed to invalid 
Dec 07 09:13:00 Sailfish sensorfwd[730]: "accelerometersensor instantiation failed" 
Dec 07 09:13:00 Sailfish sensorfwd[730]: SensorManagerError:  "sensor has not been instantiated" 
Dec 07 09:13:00 Sailfish [1646]: [D] SensorManagerInterface::interface:78 - Requested sensor id ' "accelerometersensor" ' interface not granted 
Dec 07 09:13:00 Sailfish sensorfwd[730]: SensorManagerError:  "requested sensor id 'accelerometersensor' not registered" 
Dec 07 09:13:00 Sailfish [1646]: [D] SensorManagerInterface::interface:78 - Requested sensor id ' "accelerometersensor" ' interface not granted 
Dec 07 09:13:04 Sailfish [1646]: [D] Sensor::activate:36 - Sensor started 
Dec 07 09:13:04 Sailfish sensorfwd[730]: int HybrisManager::handleForType(int) No sensor of type: 3 
Dec 07 09:13:04 Sailfish sensorfwd[730]: Node ' "orientationadaptor" ' state changed to invalid 
Dec 07 09:13:04 Sailfish sensorfwd[730]: SensorManagerError:  "adaptor 'orientationadaptor' can not be started" 
Dec 07 09:13:04 Sailfish sensorfwd[730]: Node ' "compasschain" ' state changed to invalid 
Dec 07 09:13:04 Sailfish sensorfwd[730]: Node ' "compasschain" ' state changed to invalid 
Dec 07 09:13:04 Sailfish sensorfwd[730]: Unable to use compass for z-axis rotation. 
Dec 07 09:13:04 Sailfish sensorfwd[730]: Attempting to define invalid default data rate:  100 
Dec 07 09:13:04 Sailfish sensorfwd[730]: Invalid interval requested for node ' "accelerometerchain" ' by session ' 7 ':  50 
Dec 07 09:13:07 Sailfish [1646]: [D] Sensor::deactivate:58 - Sensor stopped 
Dec 07 09:13:09 Sailfish [1646]: [D] Sensor::activate:36 - Sensor started 
Dec 07 09:13:09 Sailfish sensorfwd[730]: Invalid interval requested for node ' "accelerometerchain" ' by session ' 7 ':  50 
Dec 07 09:13:13 Sailfish [1646]: [D] Sensor::deactivate:58 - Sensor stopped
 

The Following User Says Thank You to juiceme For This Useful Post:
Posts: 635 | Thanked: 1,535 times | Joined on Feb 2014 @ Germany
#832
Have you tried restarting the sensors service?
Code:
systemctl restart sensorsfwd
Or reinstall sensorsfix.
 

The Following 2 Users Say Thank You to mautz For This Useful Post:
Community Council | Posts: 4,920 | Thanked: 12,867 times | Joined on May 2012 @ Southerrn Finland
#833
Thanks, It seems to be running but there's errors associated with it;

Code:
[root@Sailfish nemo]# 
[root@Sailfish nemo]# systemctl status sensorfwd
sensorfwd.service - Sensor daemon for sensor framework
   Loaded: loaded (/lib/systemd/system/sensorfwd.service; disabled)
   Active: active (running) since Wed 2016-12-07 09:11:05 EET; 2h 49min ago
  Process: 716 ExecStart=/usr/sbin/sensorfwd -c=/etc/sensorfw/primaryuse.conf -d --log-level=warning --no-magnetometer-bg-calibration (code=exited, status=0/SUCCESS)
 Main PID: 730 (sensorfwd)
   CGroup: /system.slice/sensorfwd.service
           └─730 /usr/sbin/sensorfwd -c=/etc/sensorfw/primaryuse.conf -d --log-level=warning --no-magnetometer-bg-calibration

Dec 07 09:13:04 Sailfish sensorfwd[730]: int HybrisManager::handleForType(int) No sensor of type: 3 
Dec 07 09:13:04 Sailfish sensorfwd[730]: Node ' "orientationadaptor" ' state changed to invalid 
Dec 07 09:13:04 Sailfish sensorfwd[730]: SensorManagerError:  "adaptor 'orientationadaptor' can not be started" 
Dec 07 09:13:04 Sailfish sensorfwd[730]: Node ' "compasschain" ' state changed to invalid 
Dec 07 09:13:04 Sailfish sensorfwd[730]: Node ' "compasschain" ' state changed to invalid 
Dec 07 09:13:04 Sailfish sensorfwd[730]: Unable to use compass for z-axis rotation. 
Dec 07 09:13:04 Sailfish sensorfwd[730]: Attempting to define invalid default data rate:  100 
Dec 07 09:13:04 Sailfish sensorfwd[730]: Invalid interval requested for node ' "accelerometerchain" ' by session ' 7 ':  50 
Dec 07 09:13:09 Sailfish sensorfwd[730]: Invalid interval requested for node ' "accelerometerchain" ' by session ' 7 ':  50 
Dec 07 09:22:19 Sailfish sensorfwd[730]: Invalid interval requested for node ' "accelerometerchain" ' by session ' 8 ':  50 
[root@Sailfish nemo]#
Indeed, restarting the sensorfwd daemon helped!

Code:
[root@Sailfish nemo]# 
[root@Sailfish nemo]# systemctl restart sensorfwd
[root@Sailfish nemo]# 
[root@Sailfish nemo]# 
[root@Sailfish nemo]# systemctl status sensorfwd
sensorfwd.service - Sensor daemon for sensor framework
   Loaded: loaded (/lib/systemd/system/sensorfwd.service; disabled)
   Active: active (running) since Wed 2016-12-07 12:02:45 EET; 4s ago
  Process: 13869 ExecStart=/usr/sbin/sensorfwd -c=/etc/sensorfw/primaryuse.conf -d --log-level=warning --no-magnetometer-bg-calibration (code=exited, status=0/SUCCESS)
 Main PID: 13870 (sensorfwd)
   CGroup: /system.slice/sensorfwd.service
           └─13870 /usr/sbin/sensorfwd -c=/etc/sensorfw/primaryuse.conf -d --log-level=warning --no-magnetometer-bg-calibration

Dec 07 12:02:45 Sailfish systemd[1]: Starting Sensor daemon for sensor framework...
Dec 07 12:02:45 Sailfish sensorfwd[13869]: [SocketHandler]: Unlinked stale socket "/var/run/sensord.sock" 
Dec 07 12:02:45 Sailfish sensorfwd[13869]: Created a daemon 
Dec 07 12:02:45 Sailfish systemd[1]: Started Sensor daemon for sensor framework.
[root@Sailfish nemo]#
Now Messwerk also finds life with all the sensors, however screen rotation didn't work until I restarted lipstick
 

The Following 3 Users Say Thank You to juiceme For This Useful Post:
Posts: 171 | Thanked: 337 times | Joined on Jul 2010
#834
Just wondering, do you keep restarting sensorfwd after each and every reboot? Or have you found a more persistent solution?
 

The Following User Says Thank You to dubliner For This Useful Post:
Community Council | Posts: 4,920 | Thanked: 12,867 times | Joined on May 2012 @ Southerrn Finland
#835
Originally Posted by dubliner View Post
Just wondering, do you keep restarting sensorfwd after each and every reboot? Or have you found a more persistent solution?
I only ever had this problem once, after that it has been just fine.
 

The Following User Says Thank You to juiceme For This Useful Post:
Posts: 163 | Thanked: 279 times | Joined on Feb 2017 @ Tbilisi, Georgia (caucasus)
#836
Originally Posted by dubliner View Post
Just wondering, do you keep restarting sensorfwd after each and every reboot? Or have you found a more persistent solution?
I have this problem too, after i flashed sensorfix3.zip i had to restart sensors on every reboot, so i made service for it.

Also i have a problem with wifi, it forgets password and i have to enter it on every reboot. Please answer if you have the same problem with wifi.
 

The Following User Says Thank You to matemana For This Useful Post:
Posts: 387 | Thanked: 707 times | Joined on May 2015 @ Italy
#837
I don't have this problem, with sensorfix flashed and your same Sailfish image
 

The Following 2 Users Say Thank You to claustn For This Useful Post:
Posts: 1,196 | Thanked: 1,413 times | Joined on Aug 2011
#838
Hi,

On Nexus 5x 4gb RAM.
Is sailfish OS work with 4gb RAM motherboard?
How to install sfos on multiboot?
Is it possible to install Android app on sfos Nexus 5x? How to?

Thank you
 

The Following User Says Thank You to n950 For This Useful Post:
Posts: 635 | Thanked: 1,535 times | Joined on Feb 2014 @ Germany
#839
 

The Following User Says Thank You to mautz For This Useful Post:
Reply


 
Forum Jump


All times are GMT. The time now is 09:20.