Turbo Frequency and Power Consumption

I use a PicoPSU-like solution with a 120W external adapter. Sometimes the i5-9400F PC consumes up to 96W. I feel uncomfortable about it and decide to lower power consumption by setting a new turbo frequency limit.

Continue reading “Turbo Frequency and Power Consumption”

Ubuntu with nVIDIA’s Proprietary Driver won’t Wake Up from Suspend

The Ubuntu 20.04LTS running on my i5-9400F and nVIDIA GT720 won’t wake up from suspend mode. It’s related to the proprietary driver nvidia-driver-470. Disabling nvidia-suspend solves this issue but the authentication dialog will pop up twice from suspend every time.

To disable:

$sudo systemctl disable nvidia-suspend

To check if these related services are still running:

$sudo systemctl status nvidia-suspend nvidia-hibernate nvidia-resume

● nvidia-suspend.service - NVIDIA system suspend actions
     Loaded: loaded (/lib/systemd/system/nvidia-suspend.service; disabled; vend>
     Active: inactive (dead)

● nvidia-hibernate.service - NVIDIA system hibernate actions
     Loaded: loaded (/lib/systemd/system/nvidia-hibernate.service; enabled; ven>
     Active: inactive (dead)

● nvidia-resume.service - NVIDIA system resume actions
     Loaded: loaded (/lib/systemd/system/nvidia-resume.service; enabled; vendor>
     Active: inactive (dead)


  1. nVidia: [FIXED] Suspend / Resume issues with the driver version 470
  2. nVidia: Ubuntu 20.04 with nvidia-460 driver freezes randomly after resume from suspend/hibernate
  3. askUbuntu: Ubuntu 20.04 doesn’t wake up after suspend

Turn Off LED on msi Motherboard

Table of Contents

  1. Quick Guide
  2. Install msi-rgb
  3. Turn Off Immediatedly
  4. Turn Off on Start
  5. Turn Off After Resume
  6. Reference

Quick Guide

  1. Get and install nagisa’s msi-rgb utlity for msi motherboards.
  2. OpenRGB is an alternative solution and supports more motherboards.
  3. Turn off by running ‘sudo /home/amigo/msi-rgb/target/release/msi-rgb -x 00000000 00000000 00000000‘.
  4. Use crontab to turn off after boot.
  5. Create a shell script in /lib/systemd/system-sleep/ to turn off after resume.
Continue reading “Turn Off LED on msi Motherboard”

Prepare the LAMP Development Environment with VisualStudio Code and VirtualBox

For PHP development, I preferred to code in the host and run in the guest OS. It helps to keep the host clean and stable. Because PHP and APEX[1] are both required, I switch from NetBeans to Visual Studio Code.

  1. Install and Configure Visual Studio Code and PHP Extensions
  2. Import and Configure TurnKey LAMP Stack
Continue reading “Prepare the LAMP Development Environment with VisualStudio Code and VirtualBox”

Manage Ubuntu Kernels

Display and peripheral issues are always related to the kernel drivers and modules. Upgrade to a newer kernel version might help.

There are many tools to manage kernels[1]:

  1. Manage with the ubuntu-mainline-kernel.sh[2]
  2. Manage with the Ubuntu Mainline Kernel Installer[3]
  3. Manage with dpkg[4]
  4. Low Latency vs Generic Kernel
  5. Upgrade to a Low Latency Kernel
  6. The GRUB[5] Configuration
  7. Remove Unused Kernel
Continue reading “Manage Ubuntu Kernels”

Share USB Tethering to WiFi and Ethernet Devices

I have an Android with 4G Internet access. I connect it to Ubuntu via a USB cable and enable the USB Tethering in Android. The Ubuntu identify it in “Ethernet Connected” → “Wired connection 2” immediately.

My next step is to share internet from Ubuntu notebook through its built-in Ethernet and WiFi. Here is how.

Continue reading “Share USB Tethering to WiFi and Ethernet Devices”

Linux Becomes Slow After Resume / Suspend

Recently, I built a new computer with ASRock J3455-ITX which has a Apollo Lake processor build-in to run Force.com IDE and VisualStudio Code. I have to use OpenSuSE Tumbleweed to replace my favorite Leap because it requires the latest kernel to support Apollo Lake.

Everything seems fine but it becomes very slow after resume / suspend. I have tested many power-related settings in UEFI (Unified Extensible Firmware Interface) and none of them help. If I logout GNOME and login again, I regain my normal speed.

I try to google “linux slow after resume” and found some useful information. It seems related to

Doug Smythies and jat255 provide detail explain and a solution to restore CPU frequency as a service in Slowdown after resume from suspend on ArchLinux.

Continue reading “Linux Becomes Slow After Resume / Suspend”

Files Contain Windows Invalid Characters Transferred from QNAP to Asustor Using rsync

I want to copy files from QNAP TS-119P II to Asustor AS-5102T directly. There are many solutions: including ftp, rsync, or mount a shared folder.In my case, rsync is the easiest solution.

TS-119P II runs QTS 4.3.3 while AS-5102T is ADM 2.7.1. Details steps might be different if you are using different firmware versions.

I will also talk about invalid characters in names and how ADM handle it. A must read for non-Windows users.

Continue reading “Files Contain Windows Invalid Characters Transferred from QNAP to Asustor Using rsync”

How to Remove Unwanted SSH Keys

After re-install my Synology DSM, I cannot use ssh to login DSM. It prompts for following warning message:

Last login: Thu Jun 16 10:11:39 on console
Amigos-Mac-mini:~ Amigo$ ssh admin@
Someone could be eavesdropping on you right now (man-in-the-middle attack)!
It is also possible that a host key has just been changed.
The fingerprint for the ECDSA key sent by the remote host is
Please contact your system administrator.
Add correct host key in /Users/Amigo/.ssh/known_hosts to get rid of this message.
Offending ECDSA key in /Users/Amigo/.ssh/known_hosts:1
ECDSA host key for has changed and you have requested strict checking.
Host key verification failed.
Amigos-Mac-mini:~ Amigo$ 

In short, I have to remove my previous key. It’s saved in different location with different tools.

Continue reading “How to Remove Unwanted SSH Keys”