Posts: 1,849
Threads: 21
Joined: Sep 2015
Reputation:
0
02-06-2019, 11:12 PM
(This post was last modified: 02-06-2019, 11:34 PM by firenice03.)
[member=8170]MS[/member]
To keep swappiness..
you can vi/nano as root
Then change/add the line -
You'll need to reboot to take effect..
Can do while running with
Code:
sysctl vm.swappiness=10
As for the Overclocking, I would suggest similarly editing the files (vi/nano - most likely as root) directly vs. echoing the desired input..
*Added - on a second thought - you could go to 'session and startup' the 'application autostart' tab to add the script... Remember to make the script executable.
Also instead of vi/nano, one can open the folder(s) as administrator(rt click) and edit the files with leadpad...
LL4.8 UEFI 64 bit ASUS E402W - AMD E2 (Quad) 1.5Ghz - 4GB - AMD Mullins Radeon R2
LL5.8 UEFI 64 bit Test UEFI Kangaroo (Mobile Desktop) - Atom X5-Z8500 1.44Ghz - 2GB - Intel HD Graphics
LL4.8 64 bit HP 6005- AMD Phenom II X2 - 8GB - AMD/ATI RS880 (HD4200)
LL3.8 32 bit Dell Inspiron Mini - Atom N270 1.6Ghz - 1GB - Intel Mobile 945GSE Express -- Shelved
BACK LL5.8 64 bit Dell Optiplex 160 (Thin) - Atom 230 1.6Ghz - 4GB-SiS 771/671 PCIE VGA - Print Server
Running Linux Lite since LL2.2
Posts: 301
Threads: 55
Joined: Oct 2018
Reputation:
0
02-07-2019, 12:07 AM
(This post was last modified: 02-07-2019, 12:11 AM by MS.)
I have read something somewhere about putting the scripts to /etc/init.d/ location, is that any way to go?
Attempted to issue the commands without prior root prefixes at the "session and startup", but understandably, it did not go. I am uncertain how this "session and startup" works, I mean, are these programs initiated after the first logging in - which would mean, too late - or does the first logging in already unlock the root access needed to start the applications requiring it? If so, it would make sense to issue the commands with root prefixes.
Posts: 1,527
Threads: 144
Joined: Mar 2016
Reputation:
1
All opinions expressed and all advice given by Trinidad Cruz on this forum are his responsibility alone and do not necessarily reflect the views or methods of the developers of Linux Lite. He is a citizen of the United States where it is acceptable to occasionally be uninformed and inept as long as you pay your taxes.
Posts: 1,849
Threads: 21
Joined: Sep 2015
Reputation:
0
This may give some insight to running a script at resume.... Not sure about the overclocking... But for a script...
https://askubuntu.com/questions/92218/ho...om-suspend
Script should be executable and not just an .sh extension (if globally needed) - same as a startup
Code:
chmod uga +x NameOfFile
LL4.8 UEFI 64 bit ASUS E402W - AMD E2 (Quad) 1.5Ghz - 4GB - AMD Mullins Radeon R2
LL5.8 UEFI 64 bit Test UEFI Kangaroo (Mobile Desktop) - Atom X5-Z8500 1.44Ghz - 2GB - Intel HD Graphics
LL4.8 64 bit HP 6005- AMD Phenom II X2 - 8GB - AMD/ATI RS880 (HD4200)
LL3.8 32 bit Dell Inspiron Mini - Atom N270 1.6Ghz - 1GB - Intel Mobile 945GSE Express -- Shelved
BACK LL5.8 64 bit Dell Optiplex 160 (Thin) - Atom 230 1.6Ghz - 4GB-SiS 771/671 PCIE VGA - Print Server
Running Linux Lite since LL2.2
Posts: 301
Threads: 55
Joined: Oct 2018
Reputation:
0
02-09-2019, 05:29 AM
(This post was last modified: 02-09-2019, 05:32 AM by MS.)
Thanks [member=5414]firenice03[/member], but having looked up the answers you have linked and the proposed conditions required to make a competent looking script for the system resume from suspend, I thought that I would not know what am I doing with it, so I guess that I will just pass on this.