Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

/* Halley */ (Halley's comment.)


computers / alt.os.linux.mageia / Re: Making a Powertop tunable permanent

SubjectAuthor
* Making a Powertop tunable permanentAr
+- Re: Making a Powertop tunable permanentWilliam Unruh
`- Re: Making a Powertop tunable permanentDavid W. Hodgins

1
Making a Powertop tunable permanent

<sd6s8c$mie$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=3943&group=alt.os.linux.mageia#3943

  copy link   Newsgroups: alt.os.linux.mageia
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: Ar...@127.0.0.1 (Ar)
Newsgroups: alt.os.linux.mageia
Subject: Making a Powertop tunable permanent
Date: Tue, 20 Jul 2021 17:05:31 +0100
Organization: -
Lines: 9
Message-ID: <sd6s8c$mie$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Tue, 20 Jul 2021 16:05:32 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="efcfde58559355bce29229c4f426d81f";
logging-data="23118"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/y0K4sNi+VrkC3EEjS2OnE"
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101
Thunderbird/78.12.0
Cancel-Lock: sha1:0c5S+AO/IAOaYaqK8pBpSrFCdYw=
Content-Language: en-GB
X-Mozilla-News-Host: news://news.eternal-september.org:119
 by: Ar - Tue, 20 Jul 2021 16:05 UTC

After every reboot (new kernel), I have to go in to Powertop to change
the USB receiver for laptop mouse and stop it going to sleep. Is there
any way of making the change permanent?

When I make the temporary change, it flashes up at the top of the console...

>> echo 'on' > '/sys/bus/usb/devices/5-2/power/control';

It changes from echo 'auto' before changing the device to "bad".

Re: Making a Powertop tunable permanent

<sd6vb2$s5k$1@dont-email.me>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=3944&group=alt.os.linux.mageia#3944

  copy link   Newsgroups: alt.os.linux.mageia
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: unr...@invalid.ca (William Unruh)
Newsgroups: alt.os.linux.mageia
Subject: Re: Making a Powertop tunable permanent
Date: Tue, 20 Jul 2021 16:58:11 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 13
Message-ID: <sd6vb2$s5k$1@dont-email.me>
References: <sd6s8c$mie$1@dont-email.me>
Injection-Date: Tue, 20 Jul 2021 16:58:11 -0000 (UTC)
Injection-Info: reader02.eternal-september.org; posting-host="766d8fa00f36bae6d6431a234fa131b6";
logging-data="28852"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18GCRokds8ts32c/AmgG2Pv"
User-Agent: slrn/1.0.3 (Linux)
Cancel-Lock: sha1:F4xyMVwEzYk2HneTSEf6Vp14fJE=
 by: William Unruh - Tue, 20 Jul 2021 16:58 UTC

On 2021-07-20, Ar <Ar@127.0.0.1> wrote:
> After every reboot (new kernel), I have to go in to Powertop to change
> the USB receiver for laptop mouse and stop it going to sleep. Is there
> any way of making the change permanent?
>
> When I make the temporary change, it flashes up at the top of the console...
>
> >> echo 'on' > '/sys/bus/usb/devices/5-2/power/control';
>
> It changes from echo 'auto' before changing the device to "bad".
If that is all it does then you could put that line into
/etc/rc.d/rc.local (making sure rc.local is executable as owner-group)

Re: Making a Powertop tunable permanent

<op.06t9m4bea3w0dxdave@hodgins.homeip.net>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=3945&group=alt.os.linux.mageia#3945

  copy link   Newsgroups: alt.os.linux.mageia
Path: i2pn2.org!i2pn.org!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail
From: dwhodg...@nomail.afraid.org (David W. Hodgins)
Newsgroups: alt.os.linux.mageia
Subject: Re: Making a Powertop tunable permanent
Date: Tue, 20 Jul 2021 13:02:54 -0400
Organization: A noiseless patient Spider
Lines: 26
Message-ID: <op.06t9m4bea3w0dxdave@hodgins.homeip.net>
References: <sd6s8c$mie$1@dont-email.me>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes
Content-Transfer-Encoding: 8bit
Injection-Info: reader02.eternal-september.org; posting-host="42a82d989f98b4f5efda3052527cb111";
logging-data="2719"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/we9yvaTlcVX1f2XeGeAhl1ExRFnGuuU4="
User-Agent: Opera Mail/12.16 (Linux)
Cancel-Lock: sha1:eTtxLePqzISGuIg/OoPFU0PSe6s=
 by: David W. Hodgins - Tue, 20 Jul 2021 17:02 UTC

On Tue, 20 Jul 2021 12:05:31 -0400, Ar <Ar@127.0.0.1> wrote:

> After every reboot (new kernel), I have to go in to Powertop to change
> the USB receiver for laptop mouse and stop it going to sleep. Is there
> any way of making the change permanent?
>
> When I make the temporary change, it flashes up at the top of the console...
>
> >> echo 'on' > '/sys/bus/usb/devices/5-2/power/control';
>
> It changes from echo 'auto' before changing the device to "bad".

Off hand, I think the easiest way would be to use rc.local.

As root, "touch /etc/rc.d/rc.local" "chmod a+x /etc/rc.d/rc.local", then edit
the file and append the line ...
echo 'on' > '/sys/bus/usb/devices/5-2/power/control'
to that file so the script is executed on every boot.

There are probably other ways to accomplish the same thing.

Regards, Dave Hodgins

--
Change dwhodgins@nomail.afraid.org to davidwhodgins@teksavvy.com for
email replies.

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor