You are Here:
Linux Lite 6.6 FINAL Released - Support for 22 Languages Added - See Release Announcement Section



Super Lite Mode for Lite Tweaks

Author (Read 12930 times)

0 Members and 1 Guest are viewing this topic.

Re: Super Lite Mode for Lite Tweaks
« Reply #2 on: June 12, 2017, 02:27:46 PM »
 

newtusmaximus

  • Gold Level Poster
  • *******
  • 682
    Posts
  • Reputation: 67
  • Paypal Supporter.
    • View Profile

  • CPU: Intel Core duo 6300 1.86GHz

  • MEMORY: 4Gb

  • VIDEO CARD: Intel 82Q963/Q965

  • Kernel: 5.x
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
2006 - HP DC7700p ultraslim Desktop Intel 6300 cpu  4GB Ram LL3.8 64bit.
2007 - Fujitsu Siemens V3405 Laptop  2 GB Ram LL3.6 32bit. Now 32bit Debian 9 + nonfree.
2006 - Fujitsu Siemens Si1520 Laptop Intel T720 cpu 3GB Ram   LL5.6 64 Bit
2014 - Fujitsu Siemens Lifebook E754 Intel i7 4712MQ 16GB Ram LL6.6
2003 - RETIRED Toshiba Satellite Pro A10 1 GB RAM LL2.8 32bit
 

Super Lite Mode for Lite Tweaks
« Reply #1 on: June 11, 2017, 06:15:11 AM »
 

Jerry

  • Linux Lite Creator
  • Administrator
  • Platinum Level Poster
  • *****
  • 8777
    Posts
  • Reputation: 801
  • Linux Lite Member
    • View Profile
    • Linux Lite OS

  • CPU: Intel Core i9-10850K CPU @ 3.60GHz

  • MEMORY: 32Gb

  • VIDEO CARD: nVidia GeForce GTX 1650

  • Kernel: 5.x
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: [Select]
sudo apt-get install wmctrl
Code: [Select]
touch superlitemode
Code: [Select]
leafpad superlitemode
Copy the following into the file and save it:

Code: [Select]
#!/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

Code: [Select]
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 :)
« Last Edit: June 11, 2017, 07:15:50 AM by Jerry »
 

 

-->
X Close Ad

Linux Lite 6.6 FINAL Released - Support for 22 Languages Added - See Release Announcement Section