Homelab, Linux, JS & ABAP (~˘▾˘)~
 

[Hardware] Monitor Firmware Update on my Samsung CHG90 (2017)

A few years ago, I bought a used Samsung CHG90 (LC49HG90DMUXEN) monitor on eBay. After I got the device, I learned that this model series had a hardware issue (see here or here). Fortunately, the problems only occurred every few weeks. Since some people on Reddit wrote that a firmware update had improved the situation, even though it was a hardware issue, I tried updating the firmware as well. There is a generic update guide from Samsung, but it is not detailed enough to actually do the update…

The required firmware update can be found on the Samsung website under support > user manuals and guide and by searching with the model code: LC49HG90DMUXEN

https://www.samsung.com/de/support/user-manuals-and-guide

Although the latest firmware version is from September 2020, I was able to perform an update because my monitor was still running version 1017.2. The hardest part was figuring out how to find the software updater in the monitor menu, but after a quick search in the documentation, I found the right section. The trick was to open the menu and hold down the arrow key for 5 seconds.

https://downloadcenter.samsung.com/content/UM/202103/20210305193233676/BN46-00699A-Eng.pdf

The update took only a few seconds and completed successfully. Let’s see if this improves anything…

[Firefox] Handy shortcuts I’ve learned recently

Over the past few months, I’ve picked up a few handy Firefox tricks.

Address Bar

  • Find open tabs: Press Ctrl + L (or Ctrl + T) to focus the address bar, then type @tabs or %, hit space, and start typing the tab’s name.
  • Search browsing history: Press Ctrl + L, type @history, hit space followed by your search term.
  • Duplicate the current tab: Focus the address bar with Ctrl + L, then press Ctrl + Shift + Enter. (It opens the same page in a new tab, but without keeping the original tab’s history.)

Tab Management

  • Quickly duplicate a tab: Hold Ctrl and drag a tab to another spot on the tab bar, or just middle‑click the refresh button.
  • Select multiple tabs: Use Ctrl + click to select specific tabs, or Shift + click to select a whole range.
  • Move selected tabs to a new window: After selecting tabs, simply drag them out of the tab bar.

[Firefox] Speichernutzung einzelner Tabs anzeigen

Mittels about:unloads kann man in Firefox eine Übersichtsseite aufrufen, die einem auflistet, welche Tabs wie viel Speicher verbrauchen. Hier können inaktive Tabs mit hohem RAM verbrauch auch entladen werden. Seit Firefox 140 kann man mit einem Rechtsklick auf einen Tab oder eine Tabgruppe und der Funktion Unload Tab dies nun auch manuell für bestimmte Tabs erledigen.

[Git] Bundle/export a git repository as a single file

# run command inside the root directory of the project to bundle including all branches
git bundle create reponame.bundle --all

#  to bundle only the main branch
git bundle create reponame.bundle main

# to unbundle, use the following command
git clone reponame.bundle

# after cloning, you will see the bundle is set as default remote repository origin
git remote -v
> origin  /home/user/projects/reponame.bundle (fetch)
> origin  /home/user/projects/reponame.bundle (push)

# if you want to add a new remote repo as origin, you first have to remove the current origin repository, but this means loosing access to your branches etc.
git remote rm origin

# alternatively, you can provide a new name while cloning
git clone --origin <new_name> reponame.bundle

[Hardware] ASUS TUF GAMING B550M-PLUS (WIFI) – Bluetooth broken

Somehow the onboard Bluetooth of my Motherboard stopped working, but the Wi-Fi was still working fine. This confused me because both are provided by the Intel Wi-Fi 6 AX200 card. The blueman-manager simply could not find the Bluetooth device anymore. Also, when running the command rfkill, it was just listing the Wi-Fi device. The second entry was missing (I took the screenshot, after Bluetooth was working again).

Since I had recently upgraded to a new kernel, I assumed this must be the problem. After testing many different kernels, it still didn’t work. Even on a kernel where it definitely worked before.

Then I stumbled across this thread Intel Wi-Fi 6 AX200 Bluetooth Stopped Working Yet Wifi is still fine. The last commenter solved his issue by unplugging the Intel Wi-Fi Card from his Motherboard and plugging it back in. To be honest, I’m not even sure if this is possible on my motherboard, as it is some onboard thing directly on the board. But this post leads me to reconnect the external antenna, which is connected with two cables on the back of the PC. Since Wi-Fi was still working all along, I did not expect anything from it, but after turning the PC back on, suddenly Bluetooth was working again. WTF! No idea how this is possible, as I have used Bluetooth and WI-FI for many months without the external antenna. Fortunately, however, it works again.

[Linux Mint] Start Applications minimized (start in tray)

The fact that some applications do not start minimized (in tray) at system startup has been annoying me for quite some time. I find it even more annoying that you can’t simply set this directly via a checkbox in the Startup Applications for each application. The problem seems to be that each application has a different parameter for this, and therefore it cannot be done generally by the operating system (at least that’s my guess). I have therefore researched the necessary parameters for the applications I use. Simply add the parameter at the end of the Startup Applications command. For some applications, you can also activate it directly in the specific settings.

ApplicationSetting / Command
Bitwarden (Flatpack)File ⇾ Settings ⇾ App Settings ⇾ Start to tray icon
Netxcloud–background
SignalFile ⇾ Preferences ⇾ General ⇾ System ⇾ Start minimized to system tray
Steam-silent
Syncthing GTK–background
Telegram-autostart -startintray
Transmission remote GUI-hidden

Helpful discussion: https://askubuntu.com/questions/663187/how-can-i-run-a-program-on-startup-minimized

[Terminal] Bash script to add leading season and episode numbers by parsing from file names

I had some videos in the format “My Episode #01.mkv” which I wanted to rename to “S01E01 My Episode #01.mkv“. This little script did the job for me:

# Specify the directory containing the files. For current directory use: $(dirname "$0")
directory="/path/to/your/directory"	

# Loop through all .mkv files in the directory
for file in "$directory"/*.{webm,mkv}; do
    # Check if the file exists to avoid errors when no files match
    [ -e "$file" ] || continue
    
    # Extract the base filename (without the directory path)
    filename=$(basename "$file")

    # Use regex to find the episode number (e.g., #01, #02)
    if [[ $filename =~ \#([0-9]+) ]]; then
        episode_number=${BASH_REMATCH[1]}

        # Pad the episode number with a leading zero if it's a single digit
        if [ ${#episode_number} -eq 1 ]; then
            episode_number="0$episode_number"
        fi  
		
        # Construct the new filename
        new_filename="S01E${episode_number} $filename"
        
        # Rename the file
        mv "$file" "$directory/$new_filename"
        echo "Renamed: $filename -> $new_filename"
    fi
done