Bug 1270838 - [udisks2] APM level reset to default value 128 after resume from suspend
Summary: [udisks2] APM level reset to default value 128 after resume from suspend
Keywords:
Status: CLOSED EOL
Alias: None
Product: Fedora
Classification: Fedora
Component: udisks2
Version: 25
Hardware: x86_64
OS: Linux
unspecified
unspecified
Target Milestone: ---
Assignee: Vojtech Trefny
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-10-12 13:40 UTC by Joachim Frieben
Modified: 2017-12-12 11:12 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-12-12 11:12:07 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
FreeDesktop.org 94618 0 None None None 2016-03-18 21:02:03 UTC

Description Joachim Frieben 2015-10-12 13:40:16 UTC
Description of problem:
After setting the APM level of my hard disk to 255 by means of gnome-disk-utility, the APM level is actually set to 255 as verifified by means of executing 'hdparm -B /dev/sda'. However, after suspend and resume, the APM level is set to 128 as verified by executing 'hdparm -B /dev/sda' again.

Version-Release number of selected component (if applicable):
udisks2-2.1.6-1.fc23

How reproducible:
Always.

Steps to Reproduce:
1. Set APM level to 255.
2. Suspend and resume.
3. Run 'hdparm -B /dev/sda'.

Actual results:
The APM level is 128.

Expected results:
The APM level is 255.

Additional info:
- The hard disk is a Hitachi HTS723216L9SA60 installed in a Lenovo ThinkPad T400.
- Moreover, after resume from suspend, gnome-disk-utility erroneously reports the target value 255 instead of the real value 128.

Comment 1 Joachim Frieben 2016-03-18 06:13:03 UTC
It seems that udisk2 needs to provide systemd support with a script in /usr/lib/systemd/system-sleep/ similar to the following which resets the APM level to 254 after resume from suspend:

--
#!/bin/sh
[ "$1" = "post" ] && exec /usr/sbin/hdparm -B 254 /dev/sda
exit 0
--

Comment 2 Joachim Frieben 2016-03-18 06:15:19 UTC
This issue affects Fedora 23 but likewise Fedora 24 including package udisks2-2.1.7-1.fc24.

Comment 3 Michael Catanzaro 2016-03-18 18:40:18 UTC
Do you have a freedesktop Bugzilla account? This would be good to report upstream. Ideally you would do that, so you stay CCed on the issue, but I can forward it if you prefer.

Comment 4 Michael Catanzaro 2016-09-02 19:07:38 UTC
udisks is retired. Reassigning to storaged maintainers to assess whether the bug might affect storaged.

Comment 5 Joachim Frieben 2016-09-03 03:26:02 UTC
Fedora 24 is using udisks2 by default unlike Fedora 25 which is why I have reported the present issue a second time for storaged and Fedora 25 (storaged just behaves the same): bug 1270838 for udisks2 and Fedora 24 and bug 1357190 for storaged and Fedora 25.
What is needed for Fedora 24 is a new build of the existing package storaged which obsoletes udisks2; only then it is justified to set the component from udisks2 to storaged.

Comment 6 Fedora Admin XMLRPC Client 2016-10-03 13:15:08 UTC
This package has changed ownership in the Fedora Package Database.  Reassigning to the new owner of this component.

Comment 7 Tomas Smetana 2016-10-04 06:18:36 UTC
There's been some discussion about this upstream: I have even created some workaround in storaged to re-set the APM level on resume. However storaged/udisks2 is a D-Bus activated service and nothing guarantees it would be running at the time tha APM level needs to be set (e.g., on boot).

Comment 8 Joachim Frieben 2016-10-04 07:00:44 UTC
(In reply to Tomas Smetana from comment #7)
According to my comment from 2016-07-22 at https://github.com/storaged-project/storaged/issues/72, the test build storaged-2.6.2-2.6.fc23  does restore the correct APM level after resume from suspend. However, there was an issue regarding the precise moment when drive settings got applied.

Comment 9 Fedora End Of Life 2017-07-25 19:21:33 UTC
This message is a reminder that Fedora 24 is nearing its end of life.
Approximately 2 (two) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 24. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as EOL if it remains open with a Fedora  'version'
of '24'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version'
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not
able to fix it before Fedora 24 is end of life. If you would still like
to see this bug fixed and are able to reproduce it against a later version
of Fedora, you are encouraged  change the 'version' to a later Fedora
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's
lifetime, sometimes those efforts are overtaken by events. Often a
more recent Fedora release includes newer upstream software that fixes
bugs or makes them obsolete.

Comment 10 Fedora End Of Life 2017-11-16 19:19:24 UTC
This message is a reminder that Fedora 25 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 25. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as EOL if it remains open with a Fedora  'version'
of '25'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version'
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not
able to fix it before Fedora 25 is end of life. If you would still like
to see this bug fixed and are able to reproduce it against a later version
of Fedora, you are encouraged  change the 'version' to a later Fedora
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's
lifetime, sometimes those efforts are overtaken by events. Often a
more recent Fedora release includes newer upstream software that fixes
bugs or makes them obsolete.

Comment 11 Fedora End Of Life 2017-12-12 11:12:07 UTC
Fedora 25 changed to end-of-life (EOL) status on 2017-12-12. Fedora 25 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
bug.

Thank you for reporting this bug and we are sorry it could not be fixed.


Note You need to log in before you can comment on or make changes to this bug.