Skip to content

Instantly share code, notes, and snippets.

View baatochan's full-sized avatar
😫
What is sleep anyway...

Bartosz Rodziewicz baatochan

😫
What is sleep anyway...
  • Wroclaw, Poland
View GitHub Profile
@baatochan
baatochan / power_usage_analysis.py
Last active March 5, 2024 13:56
Simple python script for battery power usage analysis on Linux.
#!/usr/bin/env python3
"""
Script for battery power usage analysis on Linux. The analysis lasts 1min and reads value every 1s.
Author: baatochan
"""
import os
import statistics
import sys
import time
@baatochan
baatochan / README.md
Last active February 18, 2024 18:57
Differentiate a Linux installation after cloning it to a different machine

Differentiate a Linux installation after cloning it to a different machine

Recently I started a habit of cloning my personal Linux installation instead of installing it clean because I don't wanna spend a time of setting my whole workspace, again and again. However this solution results in an unwanted drawback of having everything the same on two machines (surprising, I know).

When I started to use the KDE Connect app I encountered issues with it because 3 machines had the same key and it didn't work properly. Then I started to think about a list of things that should be changed/regenerated after cloning Linux installation. Just to make it clear - none of the things beside KDE Connect that I describe here are needed for the system to work. I never experienced any other issues related to running three machines with the exact cloned OS but I wanted to do it to mitigate any possible problems that may arise in the future.

Note: Before removing any files, you may do a backup of them in case something goes

@baatochan
baatochan / README.md
Created January 29, 2024 22:03
Linux (Manjaro [Arch]) on a Thinkpad X390 with Intel i5

Linux (Manjaro [Arch]) on a Thinkpad X390 with Intel i5

These are my notes from the installation of Manjaro linux on a Thinkpad X390 with Intel i5-8365U. This is my new personal laptop and as it is a true laptop (not ultraportable with passive-cooled m7 cpu) I wanted to install on it Manjaro as a main OS, as well as Windows 11 for stuff that can't be easily done on Linux (I'm pretty sure it won't be often used xD). As for now I only installed Linux and prepared an SSD for Windows installation.

Detailed specs

  • Host: Lenovo Thinkpad X390
  • Resolution: 1920x1080 (touch)
  • CPU: 8th gen Intel Core i5-8365U
  • GPU: Intel UHD Graphics 620
@baatochan
baatochan / README.md
Created January 29, 2024 18:06
Linux (Manjaro [Arch]) on an HP EliteBook 840 G3 with Intel i5

Linux (Manjaro [Arch]) on an HP EliteBook 840 G3 with Intel i5

This are my notes from the installation of Manjaro Linux on an HP EliteBook 840 G3 with Intel i5-6300U. I've used Manjaro on this PC for 3 years already, but recently I had to reinstall an OS on this PC (I bought it from the company I work for and the PC had to be erased).

Detailed specs

  • Host: HP EliteBook 840 G3
  • Resolution: 1920x1080
  • CPU: 6th gen Intel Core i5-6300U
  • GPU: Intel HD Graphics 520
@baatochan
baatochan / README.md
Last active July 30, 2024 01:24
How to remove a custom UEFI/BIOS logo on HP laptops

How to remove a custom UEFI/BIOS logo on HP laptops

Tested on HP Elitebook 840 G3. You may also use this tool to change the logo to your own custom one.

Why am I writing this gist?

Recently I acquired an used HP Elitebook 840 G3. Everything was fine with it, but it had a custom UEFI logo when starting the OS - it was branded by the company that owned this laptop before.

As it became my personal laptop I didn't want it to be branded by them and I tried to find a way to restore the original HP/Windows logo (it had the custom logo during POST and during the OS startup as well).

@baatochan
baatochan / README.md
Last active April 8, 2024 10:38
Living with a faulty RAM in 2023

Living with a faulty RAM in 2023

How to blacklist particular defective RAM areas on a machine with Linux?

Why do I even write this gist?

Well, the first and main reason which you probably guessed is because recently my laptop turned out to have a defective RAM and I had to do something with it as it became unstable to work on. The second reason is because I didn't even know that there is another way than just replacing the RAM (for the record if you can just simply replace the RAM stick then I don't recommend using a PC with a faulty RAM; however in my case the laptop has a soldered-in RAM which makes replacing the RAM impossible for me and pretty expensive in a repair shop). The third reason is the fact that even tho I learned from a friend what I should use to "fix" my issue I couldn't really find any reliable info how to do it now because in 2023 no one does it anymore (it was vastly more popular 20 years ago when RAM was expensive).

Disclaimer

@baatochan
baatochan / README.md
Last active January 29, 2024 17:04
Linux (Debian 12.1/Kubuntu 22.04) on an HP EliteBook Folio G1 with Intel m7

Linux (Debian 12.1/Kubuntu 22.04) on an HP EliteBook Folio G1 with Intel m7

These are my notes from installing Debian and Kubuntu on HP EliteBook Folio G1 with Intel Core m7-6Y75. This is a second gist for this machine (I've already described my experience with Manjaro installation).

Detailed specs

  • Host: HP EliteBook Folio G1 (P2C90AV)
  • Resolution: 1920x1080
  • CPU: 6th gen Intel Core m7-6Y75
  • GPU: Intel HD Graphics 515
@baatochan
baatochan / README.md
Last active August 8, 2024 17:33
Linux (Manjaro [Arch]) on an HP Elite x2 1012 G2 with Intel i5

Linux (Manjaro [Arch]) on an HP Elite x2 1012 G2 with Intel i5

This are my notes from the installation of Manjaro Linux on an HP Elite x2 1012 G2 with Intel Core i5-7200U. This was meant to be a fast installation for basic internet things so more advanced stuff like docking station or virtualization are not covered. However this installation differs a little from my other ones as I installed Windows on this device as well and this is convertible Tablet PC so I was playing around with touch a little.

Detailed specs

  • Host: HP Elite x2 1012 G2
  • Resolution: 2736x1824 (best used with 150% scaling as this is only 12" screen)
  • CPU: 7th gen Intel Core i5-7200U
  • GPU: Intel HD Graphics 620
@baatochan
baatochan / README.md
Last active April 13, 2024 03:17
Linux (Manjaro [Arch]) on an HP EliteBook Folio G1 with Intel m7

Linux (Manjaro [Arch]) on an HP EliteBook Folio G1 with Intel m7

These are my notes from the installation of Manjaro linux on an HP EliteBook Folio G1 with Intel Core m7-6Y75. This was meant to be a fast installation for basic internet things so more advanced stuff like docking station or virtualization are not covered. I also haven't even tried to install Windows on it so I don't know the performance difference between Linux and Windows.

Detailed specs

  • Host: HP EliteBook Folio G1 (P2C90AV)
  • Resolution: 1920x1080
  • CPU: 6th gen Intel Core m7-6Y75
  • GPU: Intel HD Graphics 515
@baatochan
baatochan / controller-review.md
Last active January 30, 2023 15:20
My review of the NexiGo NS32 Switch controller which tries to be a replacement of Pro Controller.

NexiGo NS32 Switch wireless controller review

My review of the NexiGo NS32 Switch controller which tries to be a replacement of Pro Controller.

Reason for the review

I'm not really a type fo guy to write a review for the product and even when I do it's short review for something like Amazon. However in this case I tried to find a lot of reviews for this controller before buying. Turns out there is no many of them in the Internet or I couldn't find them. I only found the reviews on Amazon and this one article which was very positive about this controller. So I decided to but it and try it. Unfortunately I can't agree with it as this is one of the worst controller I've ever used. This review is gonna be mostly a comparison of this pad with the official Nintendo Pro controller.

TLDR