You are not logged in.

#1 2023-03-22 20:46

vanquishedangel
Member
Registered: 2023-02-11
Posts: 70

setting up low power computer, chromebook, old computer update 5/2/25

So I am creating this post to help others and also remember what I did because I have done so much tweaking. This may also help other computers from this era.

1. I installed Q4os Trinity desktop pure
2. installed gufw and turned it on (needed for due diligence, i work with medical records)
3. installed chromium as the default Browser (flatpak)
4. installed Evolution from flatpak
5. install clamtk (needed for due diligence, I work in medical records, flatpak)
6. Logging uses Onenote,onedrive, excel, and word online. Through chrome browser install these sites as an app.
7. install  slack (flatpak)
8. install zram-tools
9. install teamviewer (flatpak)
10. install tlp-gui, you will need to download it and learn to use it (flatpak)
11. install irqbalance (this has a lot of negative reviews but it seems to work great on this computer, I suspect this was made for early dual cores). Sped things up.
12. install tlp. This helps save battery, but it also helps regulate temperature, this prevents throttling.
13. apply hard drive tweaks, in my case for an ssd with a pata connection. https://askubuntu.com/questions/1400/ho … s-for-ssds. less writes also helps regular hard drives and can speed them up to. enable trim for older SSD.
14. minimize swap usage by changing swappiness.
15 install libreoffice for writing up forms for staff and residents. (flatpak)
16. turn on zswap https://www.addictivetips.com/ubuntu-li … -on-linux/
17 keep a small black thumbnail to use as wall paper, the smallest I have ever found is attached. works for cell phones as well.
18. Enabled badmemory in grub.
19. installed prelink and execstack (debian stretch version)! prelink is obsoleted on newer devices due to SSD, faster ram, and faster CPUs, however when a device gets old, it is useful still as it reduces ram usage and speeds up loading time for apps. On this device it greatly helps. Run "Sudo prelink -amf". I could not attach prelink (https://pkgs.org/download/prelink)
20 copy ACTION=="change|add", SUBSYSTEM=="net", KERNEL=="your connection name", RUN+="/sbin/ip link set dev %k txqueuelen 10000" in /etc/udev/rules.d/99-persistent-network.rules. To get you connection name run "ip link" in a terminal.
21. applied a lighter weight font to everything Bitstream Charter and bitstream vera sans.
22. Tried to apply lightweight icons. picked waterleaf
23. went through the control panel and set backgrounds to no wall paper or no picture.
24. installed these plugings in chromium, TamperMonkey.
25. installed these scripts into tampermonkey/grease monkey; web access accelerator, Disable youtube 60 fps, ad blocker, youtube-adb, gpu acceleration of flash player
26. install haveged
27. install rng-tools5
28. use lz4 for swap compression (https://baronhk.wordpress.com/2021/10/0 … gnu-linux/) Also add lz4 and lz4_compress to initramfs modules script.
29. Set up and use earlyoom sudo apt install earlyoom && sudo systemctl enable earlyoom https://baronhk.wordpress.com/2021/10/0 … gnu-linux/
30. Install MPV as a light weight media player.
31. Change cpu governor to schedutil in /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
32. Enable ksm "sudo kwrite /sys/kernel/mm/ksm/run" and change the value from 0 to 1
33. Increase the number of pages ksm scans at a time (its default setting is very weak with minimal benefits) however, this comes at a cost of more CPU cycles, "sudo kwrite /sys/kernel/mm/ksm/pages_to_scan" and I changed the number to 10000.

Last edited by vanquishedangel (2025-05-05 02:45)


Attachments:
jpeg image0.jpeg, Size: 775 B, Downloads: 321
deb execstack_0.0.20131005-1+b10_amd64.deb, Size: 86.31 KiB, Downloads: 371

Offline

#2 2023-03-23 07:25

bin
Member
From: U.K.
Registered: 2016-01-28
Posts: 1,407

Re: setting up low power computer, chromebook, old computer update 5/2/25

You've obviously worked hard to get all this running - congratulations.

Just a thought on the swap stuff. If you've installed zram and have moved swap to an external(ish) drive, have you set the priorities in fstab?

You might want to look at zswap as an alternative. An SD card will be appalling slow for swapping, PCMCIA not a whole lot faster.

Offline

#3 2023-03-24 01:24

vanquishedangel
Member
Registered: 2023-02-11
Posts: 70

Re: setting up low power computer, chromebook, old computer update 5/2/25

bin wrote:

You've obviously worked hard to get all this running - congratulations.

Just a thought on the swap stuff. If you've installed zram and have moved swap to an external(ish) drive, have you set the priorities in fstab?

You might want to look at zswap as an alternative. An SD card will be appalling slow for swapping, PCMCIA not a whole lot faster.


Yes I zram installed and running, but sometimes (rare though) it needs a bit more. I have also changed a few things on the list as I get more working and configured properly.

Offline

#4 2023-03-25 04:11

vanquishedangel
Member
Registered: 2023-02-11
Posts: 70

Re: setting up low power computer, chromebook, old computer update 5/2/25

bin wrote:

You've obviously worked hard to get all this running - congratulations.

Just a thought on the swap stuff. If you've installed zram and have moved swap to an external(ish) drive, have you set the priorities in fstab?

You might want to look at zswap as an alternative. An SD card will be appalling slow for swapping, PCMCIA not a whole lot faster.


I am sorry, I miss read your post initially. Thank you for the suggestion of zswap! it helped a lot and it did speed it up it seems. Yes the priority was set in fstab and zram comes before use of swap, but now thanks to you, zswap will reduce the swap time when using the sd card. having to interact with office 365 consumes a lot of ram smile

I Also stress tested it and it was amazing. initially having 3 tabs open (onenote, calendar, search results) p3x-onenote,  and Thunderbird slowed it to a crawl without zswap.

Now I had 5 tabs open ( 365 calander, word document editing, youtube, 2 searches) p3x-onenote, evolution, 2 terminals htop and swapon -s, and ran slack. While the programs slowed to respond or completely open (slack took about 10 minutes), they all ran and windows were way more responsive! I used 1 gig of swap (zram 256, the rest on the sd card). I could move the mouse and close windows. While may windows popped up unresponsive, I clicked continue and they did continue. It was faster to close windows as well when I closed them to reclaim memory. This is a game changer.

Last edited by vanquishedangel (2023-03-25 05:10)

Offline

#5 2023-03-25 07:08

bin
Member
From: U.K.
Registered: 2016-01-28
Posts: 1,407

Re: setting up low power computer, chromebook, old computer update 5/2/25

Good stuff - glad it helped. I admire your tenacity. smile

Offline

#6 2023-04-07 00:22

vanquishedangel
Member
Registered: 2023-02-11
Posts: 70

Re: setting up low power computer, chromebook, old computer update 5/2/25

So I am close to done with modifying things and I am pretty happy. This will work for work tasks really well.


Attachments:
Screenshot2, Size: 74 KiB, Downloads: 502

Offline

#7 2024-02-06 02:52

Germ
Member
From: Bushyhead, Oklahoma
Registered: 2023-06-30
Posts: 46

Re: setting up low power computer, chromebook, old computer update 5/2/25

How did I miss this...

Good job, vanquishedangel!  Thanks for sharing!


Calm down, it's only ones and zeroes

Offline

#8 2024-02-08 22:04

seb3773
Member
Registered: 2023-11-01
Posts: 147

Re: setting up low power computer, chromebook, old computer update 5/2/25

Yes, this is a very good guideline for optimising a q4os installation. In fact, this was my main reference when I started to work on my qperf script, I found some other optimisations to do, but there are some very good ideas here smile

I've got a question for you vanquishedangel, about the prelink and execstack part. Did you success using these tools on a bookworm installation, and is it relevant for bookworm in first place ? (don't know why not, but I notice you can't find these tools too for bookworm)


My Q4OS scripts: win10/osx theming, perfs optimisation, laptop configuration, ...  for trinity users -->  https://github.com/seb3773/q4osXpack

Offline

#9 2024-03-24 00:59

vanquishedangel
Member
Registered: 2023-02-11
Posts: 70

Re: setting up low power computer, chromebook, old computer update 5/2/25

seb3773 wrote:

Yes, this is a very good guideline for optimising a q4os installation. In fact, this was my main reference when I started to work on my qperf script, I found some other optimisations to do, but there are some very good ideas here smile

I've got a question for you vanquishedangel, about the prelink and execstack part. Did you success using these tools on a bookworm installation, and is it relevant for bookworm in first place ? (don't know why not, but I notice you can't find these tools too for bookworm)

Sorry I was on vacation to spain/paris/amsterdam and did not see this until now. Also I lost my chromebook in amsterdam and I am trying to get it back from TSA lol. Anyway yes I was able to use them in bookworm. Some places may say that it is not relevant due to newer parts of the kernel handling the task however, the benefit was in reducing memory usage.

Offline

Board footer

Powered by FluxBB