LINUX LITE 7.2 FINAL RELEASED - SEE RELEASE ANNOUNCEMENTS SECTION FOR DETAILS


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Super Lite Mode for Lite Tweaks
#1
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:

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 Smile
Reply


Messages In This Thread
Super Lite Mode for Lite Tweaks - by Valtam - 06-11-2017, 10:15 AM
Re: Super Lite Mode for Lite Tweaks - by Valtam - 06-12-2017, 06:31 PM
Re: Super Lite Mode for Lite Tweaks - by Valtam - 06-12-2017, 07:07 PM
Re: Super Lite Mode for Lite Tweaks - by Valtam - 06-13-2017, 09:02 AM
Re: Super Lite Mode for Lite Tweaks - by Valtam - 06-14-2017, 01:02 PM
Re: Super Lite Mode for Lite Tweaks - by Valtam - 08-12-2017, 03:06 PM
Re: Super Lite Mode for Lite Tweaks - by Valtam - 08-12-2017, 03:40 PM
Re: Super Lite Mode for Lite Tweaks - by Valtam - 08-13-2017, 06:26 PM
Re: Super Lite Mode for Lite Tweaks - by skippy95 - 08-24-2017, 03:05 AM

Forum Jump:


Users browsing this thread: 4 Guest(s)