PowerTOP /etc/rc.local

I want to add my tunable power savings to startup script location /ect/rc.local. I’ve exported PowerTOP report to HTML file (which I assume will be in /home.) Where I fall over is pretty basic, trying to edit /ect/rc.local file as root in a text editor;

sudo kwrite /ect/rc.local
root's password:
kwrite: cannot connect to X server

Please be gentle! Once again, I’m used to Ubuntu. :stuck_out_tongue:

On 04/11/2013 05:46 PM, fleamour wrote:
>
> Please be gentle! Once again, I’m used to Ubuntu. :stuck_out_tongue:

ok, but please gently mention the desktop environment you use
(because we have more than one here–and often the correct will
change among the various desktops)…like:


kdesu kwrite /ect/rc.local
gnomesu kwrite /ect/rc.local

are correct, but i have no idea the right answers for Xfce or LXDE or
or or or

and, there are other changes that those “used to Ubuntu” find useful
around here: http://tinyurl.com/ubuntu-to-openSUSE

while there read up on the differences between using sudo and
actually being root–ubuntu doesn’t allow you to be root–here you
can make ‘grown up’ decisions…for good, or to murder your system in
one easy stroke :slight_smile:


dd
http://tinyurl.com/DD-Caveat

On Thu, 11 Apr 2013 15:46:02 +0000, fleamour wrote:

> Code: --------------------
> sudo kwrite /ect/rc.local
> root’s password:
> kwrite: cannot connect to X server
>
> --------------------

sudo won’t let you launch X applications.

Try:

kdesu kwrite /etc/rc.local

(note that it’s “etc” and not “ect” as well)

Note that if you’re using 12.3 (you don’t mention the version), then
modifying rc.local won’t work because that’s a sysvinit script, and 12.3
is completely systemd for startup.

Jim

Jim Henderson
openSUSE Forums Administrator
Forum Use Terms & Conditions at http://tinyurl.com/openSUSE-T-C

Duly noted. Will not use sudo so liberally next time. It’s all a learning curve.

Is there a systemd equivalent to etc/rc/local?

Using 12.3 Tumblweed repos. Been using sudo all over the place & have a rabbit warren spaghetti like mess of subscribed repos. MP3 playback broke today (see latest post) maybe a reinstall & more care is needed?

check to install TLP Linux Advanced Power Management

It is actually installed. PowerTOP still has tunable entries, though maybe I’m being pedantic.

On Thu, 11 Apr 2013 17:06:02 +0000, fleamour wrote:

> Is there a systemd equivalent to etc/rc/local?

Yes - but it looks like it’s basically creating a service definition
file. One option that looks promising (if you have an rc.local file
already that you want to use) is an rc.local service that calls it. I
found an example of this at:

http://citationneeded.me/posts/2012-08-04-switching-to-systemd.html

(Haven’t tried it myself, but it looks promising)

> Using 12.3 Tumblweed repos. Been using sudo all over the place & have a
> rabbit warren spaghetti like mess of subscribed repos. MP3 playback
> broke today (see latest post) maybe a reinstall & more care is needed?

Perhaps, though it’s possible it may not be difficult to fix. But I’ll
leave that for the other thread.

Jim


Jim Henderson
openSUSE Forums Administrator
Forum Use Terms & Conditions at http://tinyurl.com/openSUSE-T-C

seems this thread is long dead but I’m still here to try my luck. Did the OP get powertop suggestions to run automatically after every boot? I’ve been trying to achieve that but no luck yet. Can anyone help me out on this?
https://forums.opensuse.org/showthread.php/501602-run-sudo-usr-sbin-powertop-auto-tune-after-login

Thanks,
Hrudai.