Bad memory page
I use this page as a notebook to keep solutions for problems that I have solved.
So it’s mainly a complement for bad memory, but also to help others with similar issues.
Broken keyboard on Asus Zenbook 14 with Linux
When installing Linux on a new Asus Zenbook 14 with Ryzen 7, (BX425QA), there was no respons from the keyboard.
It worked after the first reboot after a fresh install, and also after running an upgrade with apt update/upgrade.
But after a cold boot the keyboard stopped working again.
I have experienced the problem with Ubuntu 20.04, Ubuntu 22.04, Ubuntu 24.04 and Linux Mint Cinnamon 20.3
Error code during boot:
i8042: Can’t read CTR while initializing i8042
i8042 is the keyboard controller on this laptop and that device does not always seem to work correct on Unix/Linux systems.
Following fix solved my problem and now the keyboard works after a reboot or a cold boot.
Solution
Use a Terminal and do the following:
– Edit the the grub configuration file with the command:
sudo nano /etc/default/grub
-Change this line:
GRUB_CMDLINE_LINUX_DEFAULT=”quiet splash”
To this:
#GRUB_CMDLINE_LINUX_DEFAULT=”quiet splash”
GRUB_CMDLINE_LINUX_DEFAULT=”quiet splash i8042.probe_defer”
I prefer to do keep the old line with a # before to make it easier to revert
– Save the changes you did with the key combination Ctrl S
– Exit the editor with the key combination Ctrl X
– Update your bootloader with the command:
sudo update-grub
– Reboot your computer with the command:
sudo reboot
– Congratulations, you’re done!
Updates
2025-02-05
Did a fresh install of Ubuntu 24.04.1 LTS and the problem with the keyboard is still there.
My guide worked like a charm to get it working.
How to install Ubuntu from an USB-stick
For those who want to install and run Ubuntu from an USB stick:
https://linuxhint.com/install_an_entire_ubuntu_on_a_usb_flash_drive
Wrong time in windows with dual boot (Ubuntu-Windows11)
Windows showing the wrong time when using dual boot between Windows 11 and Ubuntu 22.04.
The problem occurred for me when booting to windows after using Ubuntu, (dual boot).
The time was not correct and “Set the time automatically” needed to be turned off and on to adjust the time again.
Solution number two solved the problem for me.
https://ubuntuhandbook.org/index.php/2021/06/incorrect-time-windows-11-dual-boot-ubuntu/
Show trash can on desktop Ubuntu 22.04 and 24.04
How to Show or hide the trash can on the desktop in Ubuntu 22.04
To show the trash can run this command:
gsettings set org.gnome.shell.extensions.ding show-trash true
To hide the trash can run this command:
gsettings reset org.gnome.shell.extensions.ding show-trash
You can remove the trash can from the dock in settings/Appearance/Configure dock behavior/Show Trash
Or run this command:
gsettings set org.gnome.shell.extensions.dash-to-dock show-trash false
Install LAMP Web Server with WordPress on Raspberry Pi
https://projects.raspberrypi.org/en/projects/lamp-web-server-with-wordpress
https://raspberrytips.com/wordpress-on-raspberry-pi/
BMW Navigator with Touratech handlebar mounting
BMW Navigator IV, V and VI with Touratech handlebar mounting V2.0 BMW
Some links regarding how to connect the cable to different motorcycles.
https://www.ukgser.com/forums/showthread.php/520829-Nav-6-cradle-wiring-to-non-BMW-bike
https://www.advrider.com/f/threads/installing-bmw-navigator-v-gps-on-ktm-1190.947084
https://www.online-parts.co.uk/bmw-spare-parts/83300413586_Repair-Plug-3-Pin.html
And the cradle from Touratech
https://se.touratech-nordic.com/handlebar-mounting-v2-0-bmw-navigator-iv-v-and-vi-lockable-black.html
No audio over HDMI Mac Mini 2012 with Linux
https://askubuntu.com/questions/1222600/sound-not-working-on-ubuntu/
Check OS kernel, architecture and other info
Linux version and OS name:
cat /etc/os-release
lsb_release -a
hostnamectl
Linux Kernel version:
uname -r
Linux architecture:
uname -a
dpkg –print-architecture
getconf LONG_BIT
arch
Linux info command:
cat /etc/linuxmint/info
cat /etc/issue
Amount of memory
free -h
top
Disable internal Wi-Fi on Raspberry Pi OS
This is how to disable internal Wi-Fi on Raspberry Pi OS and only use external Wi-Fi dongle connected via USB.
For Buster, (Debian 11)
sudo nano /boot/config.txt
For Bookworm, (Debian 12)
sudo nano /boot/firmware/config.txt
#Add following text at the end of file:
dtoverlay=disable-wifi
Save the changes you did with the key combination Ctrl S
Exit the editor with the key combination Ctrl X
FYI, this only disables Wi-Fi, Bluetooth will continue to work
Use Ghostscript to compress a PDF-file
#Install ghostscript:
sudo apt update
sudo apt install ghostscript poppler-utils
#Usage:
gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/screen -dNOPAUSE -dQUIET -dBATCH -sOutputFile=output.pdf input.pdf
-dPDFSETTINGS sets the compression, some alternatives: screen, ebook, default
Date and time in bash scripts
Install a deb package with the dpkg command
To install a .deb package, use the dpkg command with the -i flag along with the package name.
sudo dpkg -i application.deb
How To Recover Data From SD Card on Linux
https://recoverit.wondershare.com/memorycard-recovery/linux-sd-card-recovery.html
How To Recover Data From SD Card on Linux
https://recoverit.wondershare.com/memorycard-recovery/linux-sd-card-recovery.html
WordPress – Increase upload size
sudo nano /etc/php/8.2/apache2/php.ini
#8.2 is depending on what version of Php you have installed
#Change this row:
upload_max_filesize = 2M
#To this, or prefered size:
upload_max_filesize = 6M
Save the changes you did with the key combination Ctrl S
Exit the editor with the key combination Ctrl X
sudo service apache2 restart