Skip to contentSkip to conversation

Wishlist: print the commands executed by 'toggle tunables'

Powertop Richard Neill 3 participants 4 messages Jul 17, 2012 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

Richard Neill

author
#1 lore raw

Dear All,

I wonder if I might make a request for a new feature for powertop.

When I run it, I can toggle various tunable options from within the Powertop interface. As I understand it, the effect of these to invoke an underlying system command such as:
echo value > /sys/device/power/something

But powertop never actually tells me what these commands are. This means I can't easily append them to my own startup scripts, or make them persistent across reboots.

So my wish is as follows:

When powertop actually modifies the system, it should print the commands, to stderr, when it exits.

Thanks very much,

Richard

P.S. Powertop 2.0 also has no manpage. May I recommend help2man.

#2 lore raw
Quoted 13 lines · Richard Neill

Dear All,

I wonder if I might make a request for a new feature for powertop.

When I run it, I can toggle various tunable options from within the Powertop interface. As I understand it, the effect of these to invoke an underlying system command such as:
echo value > /sys/device/power/something

But powertop never actually tells me what these commands are. This means I can't easily append them to my own startup scripts, or make them persistent across reboots.

Quoted 7 lines

So my wish is as follows:

When powertop actually modifies the system, it should print the commands, to stderr, when it exits.

Thanks very much,

Hi,

on the normal screen, there is not really enough real estate to put the full command there.
however, if you run the --html report, it will give you these commands!

(the html page has a lot more space to put stuff)

author
#3 lore raw
Quoted 7 lines
Quoted 5 lines

When I run it, I can toggle various tunable options from within the Powertop interface. As I understand it, the effect of these to invoke an underlying system command such as:
echo value > /sys/device/power/something

Quoted 6 lines

on the normal screen, there is not really enough real estate to put the full command there.
however, if you run the --html report, it will give you these commands!

(the html page has a lot more space to put stuff)

Dear Arjan,

Thanks for your reply - that is indeed helpful.

I see what you mean that there is less space on the ncurses gui. But using the html report is rather "non-discoverable".

For maximum friendliness, might I suggest:

1. When the user exits the ncurses gui, a log of the commands that were actually invoked should be printed to stderr.

2. The command that was just run could perhaps be put into the status bar at the bottom of the ncurses gui?

Thanks

Richard

#4 lore raw
Quoted 20 lines · Richard Neill
Quoted 6 lines
Quoted 4 lines

When I run it, I can toggle various tunable options from within the Powertop interface. As I understand it, the effect of these to invoke an underlying system command such as:
echo value > /sys/device/power/something

Quoted 6 lines

on the normal screen, there is not really enough real estate to put the full command there.
however, if you run the --html report, it will give you these commands!

(the html page has a lot more space to put stuff)

Dear Arjan,

Thanks for your reply - that is indeed helpful.

I see what you mean that there is less space on the ncurses gui. But using the html report is rather "non-discoverable".

Quoted 8 lines

For maximum friendliness, might I suggest:

1. When the user exits the ncurses gui, a log of the commands that were actually invoked should be printed to stderr.

2. The command that was just run could perhaps be put into the status bar at the bottom of the ncurses gui?

Hello,

not all toggle actions are just one liners.

	-ss