ALS function lost after suspend/resume

Bug #1926280 reported by Kai-Chuan Hsieh
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OEM Priority Project
Fix Released
Undecided
Kai-Chuan Hsieh
iio-sensor-proxy (Ubuntu)
Fix Released
High
Unassigned
Focal
Fix Released
Undecided
Unassigned

Bug Description

[Impact]

 * Some Dell machine support ALS (ambient light sensor) will lost function after suspend/resume
   It originally only report iio-buffer-als by udev rule, but the buffer no longer update after
   suspend/resume, the issue can be eliminated by polling in_illuminance_raw node.

[Test Plan]

 * Boot a machine with ALS support, and check it by
   $ cat /sys/bus/iio/devices/iio:device*/name => see if it contains name als
 * do suspend/stress by
   $ sudo -s
   # for i in `seq 20`; do sleep 5; rtcwake -m mem -s 10; done
 * run monitor-sensor and cover your hand on the light sensor
   $ monitor-sensor
 * if the als function lost, there should be no update of the ambient light sensor anymore

[Where problems could occur]

 * The change add in_illuminance_raw check and add iio-poll-als to IIO_SENSOR_PROXY_TYPE for sensor using raw value.

 * It will keep original IIO_SENSOR_PROXY_TYPE and multiple IIO_SENSOR_PROXY_TYPE support, so risk is low for other hardware.

 * Checking on working hardware and run $ monitor-sensor
   it should keep popping Light changed event no matter what operations,
   close lid, suspend/resume, reboot...etc.

[Other Info]

 * The change is from upstream which has been in groovy and hirsute.
   https://gitlab.freedesktop.org/hadess/iio-sensor-proxy/-/commit/eb8fde8fd246ea6c30a8d4a29d6061b42f7012f2
   https://gitlab.freedesktop.org/hadess/iio-sensor-proxy/-/commit/de1e1ea35aea81a4b5c22cb2458e9686911fb383

tags: added: oem-priority originate-from-1921901 somerville
description: updated
description: updated
description: updated
description: updated
description: updated
description: updated
Revision history for this message
Kai-Chuan Hsieh (kchsieh) wrote :

Upload focal iio-sensor-proxy_2.8-1ubuntu1.debdiff.

Changed in oem-priority:
assignee: nobody → Kai-Chuan Hsieh (kchsieh)
description: updated
Revision history for this message
Sebastien Bacher (seb128) wrote :

Thanks, closing for the current serie, the changes have also been uploaded to focal now

Changed in iio-sensor-proxy (Ubuntu):
importance: Undecided → High
status: New → Fix Released
Revision history for this message
Kai-Chuan Hsieh (kchsieh) wrote :

@seb128

thanks for your quick response, may I know when will it be in update channel?

Thanks,

description: updated
description: updated
description: updated
Revision history for this message
Brian Murray (brian-murray) wrote : Please test proposed package

Hello Kai-Chuan, or anyone else affected,

Accepted iio-sensor-proxy into focal-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/iio-sensor-proxy/2.8-1ubuntu1 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, what testing has been performed on the package and change the tag from verification-needed-focal to verification-done-focal. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed-focal. In either case, without details of your testing we will not be able to proceed.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance for helping!

N.B. The updated package will be released to -updates after the bug(s) fixed by this package have been verified and the package has been in -proposed for a minimum of 7 days.

Changed in iio-sensor-proxy (Ubuntu Focal):
status: New → Fix Committed
tags: added: verification-needed verification-needed-focal
Revision history for this message
Kai-Chuan Hsieh (kchsieh) wrote :

Run on Dell machine with ALS and support in_illuminance_raw node.

$ monitor-sensor => to check the Light changed event
$ sudo -s
# for i in `seq 20`; do sleep 5; rtcwake -m mem -s 10; done

The light changed event keeps updating after the multiple suspend/resume operation.

Revision history for this message
Andy Chi (andch) wrote :

[Test Machine]
Dell XPS 9310

[OS Version]
Focal 20.04

[BIOS Version]
2.1.1

[Expect Result]
monitor-sensor keeps updating after suspend/resume 20 times.

tags: added: verification-done verification-done-focal
removed: verification-needed verification-needed-focal
Revision history for this message
Łukasz Zemczak (sil2100) wrote :

Please record the version number of the package used for verification next time.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package iio-sensor-proxy - 2.8-1ubuntu1

---------------
iio-sensor-proxy (2.8-1ubuntu1) focal; urgency=medium

  * Support polling for sensor using raw value (LP: #1926280)
    d/p/0001-light-Support-sensors-using-raw-values-as-well.patch
    d/p/0001-drivers-Support-multi-function-sensors.patch

 -- Kai-Chuan Hsieh <email address hidden> Tue, 27 Apr 2021 17:28:32 +0800

Changed in iio-sensor-proxy (Ubuntu Focal):
status: Fix Committed → Fix Released
Revision history for this message
Łukasz Zemczak (sil2100) wrote : Update Released

The verification of the Stable Release Update for iio-sensor-proxy has completed successfully and the package is now being released to -updates. Subsequently, the Ubuntu Stable Release Updates Team is being unsubscribed and will not receive messages about this bug report. In the event that you encounter a regression using the package from -updates please report a new bug using ubuntu-bug and tag the bug report regression-update so we can easily find any regressions.

Changed in oem-priority:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.