hdparm / apm level reset to 128 after suspend

Report Bugs, Issues and non- package Requests
Message
Author
yuul
Posts: 17
Joined: Fri Dec 15, 2017 9:05 am

Re: hdparm / apm level reset to 128 after suspend

#11 Post by yuul »

Good Morning, ...it's a laptop that is plugged in almost all of the time..

Code: Select all

apt-cache policy laptop-mode-tools
laptop-mode-tools:
  Installed: (none)
  Candidate: 1.71-2
  Version table:
     1.71-2 500
        500 http://ftp.de.debian.org/debian stretch/main amd64 Packages
        500 http://ftp.de.debian.org/debian stretch/main i386 Packages
:coffee:

male

Re: hdparm / apm level reset to 128 after suspend

#12 Post by male »

Ok, my question about the laptop-mode-tools was because of this limitation, "that the hdparm-script doesn't make any settings if the laptop-mode-tools are activated and therefore have the responsibility for the settings. Unfortunately, the hdparm script does not check if the Laptop Mode Tools actually make the APM level settings. By default, the laptop mode tools are only active in battery operation and therefore only take over the energy settings there. As a result, the script is never executed in mains operation."
Source

This here is my rc.local

Code: Select all

#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.

hdparm -B 254 /dev/sda
rfkill block bluetooth

exit 0
and my computer is always in mains operation. After waking up from suspend, this still works.

Check your procedure again. ;)

yuul
Posts: 17
Joined: Fri Dec 15, 2017 9:05 am

Re: hdparm / apm level reset to 128 after suspend

#13 Post by yuul »

well, idk what's causing this, ...and already spend so much time on it, that I just wanna leave it alone....

~If you're on antix and this is not happening to you, it might be connected to xfce...

male

Re: hdparm / apm level reset to 128 after suspend

#14 Post by male »

yuul wrote: ~If you're on antix and this is not happening to you, it might be connected to xfce...
No. This has nothing to do with the DE. It's probably because of the hard drive.
I quote again from the source:
"It is now incumbent on the notebook manufacturer, among other things, to use appropriate values for the "Advanced Power Management Level" of the hard disk in the notebook's settings so as not to let the so-called load cycle accounts rise immeasurably. The situation is further complicated by differing interpretations of the values depending on the hard disk manufacturer and model. These settings are often very radically chosen by the manufacturers and the load cycle accounts are correspondingly high."

Code: Select all

inxi -MD
Machine:   Device: laptop System: LENOVO product: 20564QG v: ThinkPad T500 serial: N/A
           Mobo: LENOVO model: 20564QG serial: N/A
           BIOS: LENOVO v: 6FET83WW (3.13 ) date: 03/15/2010
Drives:    HDD Total Size: 160.0GB (16.3% used)
           ID-1: /dev/sda model: HITACHI_HTS54501 size: 160.0GB

yuul
Posts: 17
Joined: Fri Dec 15, 2017 9:05 am

Re: hdparm / apm level reset to 128 after suspend

#15 Post by yuul »

hmm.. well, on MX17-beta3 it resets to '128', on mx17-final to 'off' ....I'd doubt the drivers changed much...but rather some mysterious setting, somewhere :poker:

~ . ~


=========================
:poke: :penguin: :supercool:
= ====================

Post Reply

Return to “Bugs and Non-Package Requests Forum”