All of lore.kernel.org
 help / color / mirror / Atom feed
* [Powertop] Some settings can not be set back from "Good" to "Bad"
@ 2016-04-23 22:33 Martin Walch
  0 siblings, 0 replies; 2+ messages in thread
From: Martin Walch @ 2016-04-23 22:33 UTC (permalink / raw)
  To: powertop

[-- 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
-- 


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [Powertop] Some settings can not be set back from "Good" to "Bad"
@ 2016-04-26 20:13 Joe Konno
  0 siblings, 0 replies; 2+ messages in thread
From: Joe Konno @ 2016-04-26 20:13 UTC (permalink / raw)
  To: powertop

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

Hi Martin,

It is possible-- it's just a matter of time and scarcity thereof (in
my case, anyway). If you'd like to file a bug report (doesn't have to be
elaborate), we could see how the community may be able to help:

https://app.devzing.com/powertopbugs/bugzilla

Cheers, hth

On Sun, Apr 24, 2016 at 12:33:59AM +0200, Martin Walch wrote:
> 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
> -- 
> 
> _______________________________________________
> PowerTop mailing list
> PowerTop(a)lists.01.org
> https://lists.01.org/mailman/listinfo/powertop

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-04-26 20:13 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-04-23 22:33 [Powertop] Some settings can not be set back from "Good" to "Bad" Martin Walch
  -- strict thread matches above, loose matches on Subject: below --
2016-04-26 20:13 Joe Konno

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.