Development > Linux Lite Software Development

Super Lite Mode for Lite Tweaks

<< < (4/4)

newtusmaximus:
I tried this on my HP desktop LL64 bit v3.4.   4GB RAM double channel.
Before installing, on fresh boot, 987 mb used ( green + red) of 3856mb
After installing  and double clicking superlitemode file - browser shuts down as does home folder  as expected etc - just desktop viewed..  Resource relatively unchanged 979 used  ( green+red) of 3850.
However I am running Sophos AV in the background so  this might explain things??

Will try on Fuji3405 32bit LL3.4

Jerry:
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
--- End code ---


--- Code: ---touch superlitemode
--- End code ---


--- Code: ---leafpad superlitemode
--- End code ---

Copy the following into the file and save it:


--- Code: ---#!/bin/bash

# Linux Lite - Super Lite Mode Script
# Developer - Jerry Bezencon
# Website - http://www.linuxliteos.com

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

--- End code ---


--- Code: ---chmod +x superlitemode
--- End code ---

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 :)

Navigation

[0] Message Index

[*] Previous page

Go to full version