All of lore.kernel.org
 help / color / mirror / Atom feed
From: Martin Walch <walch.martin at web.de>
To: powertop@lists.01.org
Subject: [Powertop] Some settings can not be set back from "Good" to "Bad"
Date: Sun, 24 Apr 2016 00:33:59 +0200	[thread overview]
Message-ID: <1794735.5a5bPLbTgx@tacticalops> (raw)

[-- Attachment #1: Type: text/plain, Size: 800 bytes --]

Hi,

it is possible to toggle some settings like "Enable Audio codec power 
management" from "Bad" to "Good" and back again. However, when exiting 
powertop while it is set to "Good", and then re-running powertop, the value is 
stuck at "Good", i.e. it is not possible to toggle it to "Bad". When trying to 
do so, the status line only shows ">> (null)" instead of something like "echo 
'' > '/sys/module/snd_hda_intel/parameters/power_save';".

This is probably because sysfs_tunable::bad_value is initialized with "\0" and 
does not change its value if it is already set to "Good" when starting up 
powertop. When now calling sysfs_tunable::toggle(void), strlen(bad_value) is 0 
and the write_sysfs line is not executed.

Is it possible to fix this?

Regards,
Martin Walch
-- 


             reply	other threads:[~2016-04-23 22:33 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-04-23 22:33 Martin Walch [this message]
  -- strict thread matches above, loose matches on Subject: below --
2016-04-26 20:13 [Powertop] Some settings can not be set back from "Good" to "Bad" Joe Konno

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1794735.5a5bPLbTgx@tacticalops \
    --to=powertop@lists.01.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.