06-11-2017, 10:15 AM
I'm thinking of introducing a new feature to Lite Tweaks called Super Lite Mode.
What this effectively does is kill all but the necessary process on Linux Lite, including:
- All open windows and applications
- All unnecessary processes
- Copy & paste functions
What stays running:
- The desktop
- Sound services
- Graphics services
- Firewall (if enabled)
- Menu, Taskbar etc
This will be useful especially for older computers and gamers who want as few processes interfering with game performance as possible.
Before starting, please note how much ram is currently being used via Menu, System, Resource Usage, and please report back with the information next to 'Mem' eg. 259/1.95G
If you'd like to test this, please do the following:
Open a terminal, do:
Copy the following into the file and save it:
To run it in LL 3.4, just double click on the superlitemode file.
Then please ONLY open Menu, System, Resource Usage, and please report back with the information next to 'Mem' eg. 259/1.95G
WARNING: This will close all open windows including your web browser.
So, a typical reply to this thread would include:
Before superlitemode: 345/1.95G
After superlitemode: 259/1.95G (+ windows that remained open, if any)
Looking forward to all your feedback.
Many thanks
What this effectively does is kill all but the necessary process on Linux Lite, including:
- All open windows and applications
- All unnecessary processes
- Copy & paste functions
What stays running:
- The desktop
- Sound services
- Graphics services
- Firewall (if enabled)
- Menu, Taskbar etc
This will be useful especially for older computers and gamers who want as few processes interfering with game performance as possible.
Before starting, please note how much ram is currently being used via Menu, System, Resource Usage, and please report back with the information next to 'Mem' eg. 259/1.95G
If you'd like to test this, please do the following:
Open a terminal, do:
Code:
sudo apt-get install wmctrl
Code:
touch superlitemode
Code:
leafpad superlitemode
Copy the following into the file and save it:
Code:
#!/bin/bash
# Linux Lite - Super Lite Mode Script
# Developer - Jerry Bezencon
# Website - http://www.freecinema2022.gq
ps aux | grep -ie VBox | awk '{print $2}' | xargs kill -9
ps aux | grep -ie Thunar | awk '{print $2}' | xargs kill -9
ps aux | grep -ie blueman | awk '{print $2}' | xargs kill -9
ps aux | grep -ie applet.py | awk '{print $2}' | xargs kill -9
ps aux | grep -ie tumblerd | awk '{print $2}' | xargs kill -9
ps aux | grep -ie light-locker | awk '{print $2}' | xargs kill -9
ps aux | grep -ie xfce4-power-manager | awk '{print $2}' | xargs kill -9
ps aux | grep -ie obexd | awk '{print $2}' | xargs kill -9
# Close all open windows gracefully without closing the Desktop environment
# Credit - Guido van Steen: https://unix.stackexchange.com/questions/145752/how-to-kill-all-open-windows
WIN_IDs=$(wmctrl -l | grep -vwE "Desktop$|xfce4-panel$" | cut -f1 -d' ')
for i in $WIN_IDs; do wmctrl -ic "$i"; done
# Keep checking and waiting until all windows are closed (you probably don't need this section)
while test $WIN_IDs; do
sleep 0.1;
WIN_IDs=$(wmctrl -l | grep -vwE "Desktop$|xfce4-panel$" | cut -f1 -d' ')
done
Code:
chmod +x superlitemode
To run it in LL 3.4, just double click on the superlitemode file.
Then please ONLY open Menu, System, Resource Usage, and please report back with the information next to 'Mem' eg. 259/1.95G
WARNING: This will close all open windows including your web browser.
So, a typical reply to this thread would include:
Before superlitemode: 345/1.95G
After superlitemode: 259/1.95G (+ windows that remained open, if any)
Looking forward to all your feedback.
Many thanks