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”Tag: Linux
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)
Reference
Turn Off LED on msi Motherboard
Table of Contents
Quick Guide
- Get and install nagisa’s msi-rgb utlity for msi motherboards.
- OpenRGB is an alternative solution and supports more motherboards.
- Turn off by running ‘
sudo /home/amigo/msi-rgb/target/release/msi-rgb -x 00000000 00000000 00000000
‘. - Use crontab to turn off after boot.
- Create a shell script in /lib/systemd/system-sleep/ to turn off after resume.
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.
- Install and Configure Visual Studio Code and PHP Extensions
- Import and Configure TurnKey LAMP Stack
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]:
- Manage with the ubuntu-mainline-kernel.sh[2]
- Manage with the Ubuntu Mainline Kernel Installer[3]
- Manage with dpkg[4]
- Low Latency vs Generic Kernel
- Upgrade to a Low Latency Kernel
- The GRUB[5] Configuration
- Remove Unused Kernel
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”
Fix Slow Boot with Linux
After upgrading to a new release, my ThinkPad x131e becomes considerable slower while booting into Linux. Because everything works normally after login, I didn’t pay too much attention. Now I found the reason is related to waiting for resume.
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.
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@192.168.1.142 @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY! 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 SHA256:cq9E1KQyJ5Nq3ktPpZ/K1GFydg741lEZKQ3DJxF2DJA. 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 192.168.1.142 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.