Skip to content

Linux setup

December 2, 2023
January 23, 2015

ArchLinux has IMO the best Linux wiki.
Most of the Linux tricks can be found there.

Linux Toolkits
kernel - What is hardware enablement (HWE)? - Ask Ubuntu

Mounting Partitions on Startup

How to Automount a Storage Partition on Startup in Linux

HiDPI

HiDPI - ArchWiki
Xorg#Display_size_and_DPI - ArchWiki
What is HiDPI - elementary - Medium

How to find and change the screen DPI? - Ask Ubuntu
multiple monitors - Is it possible to have two different DPI configurations for two different screens? - Ask Ubuntu
[SOLVED] Openbox - setting different dpi on external monitor / Applications & Desktop Environments / Arch Linux Forums

Wayland allows different DPI on multihead setup

Battery

A Closer Look At The Linux Laptop Power Use Between Ubuntu, Fedora, Clear & Antergos - Phoronix
How to Maximize Your Linux Laptop’s Battery Life
7 Simple Tips to Improve Your Linux Laptop's Battery Life
7 Tips To Reduce Battery Usage On Linux

linrunner.de: TLP – Linux Advanced Power Management
TLP – Quickly Increase and Optimize Linux Laptop Battery Life

A Handy Battery Optimizer for Ubuntu Laptops - OMG! Ubuntu!

5 Ways To Check Laptop Battery Status And Level From Linux Terminal | 2daygeek.com
How to Check Your Laptop's Battery Health in Linux

sudo tlp-stat -b
sudo tlp-stat -s
batstat
gnome-power-statistics

upower -e
upower -i /org/freedesktop/UPower/devices/battery_BAT0

cat /sys/class/power_supply/BAT0/*

PowerTOP | 01.org
PowerTop - Monitors Total Power Usage and Improve Linux Laptop Battery Life

How to Monitor Laptop Battery Usage in Linux - Make Tech Easier

Battery life on linux systems : linux

Wifi

Category:Wireless adapter - WikiDevi
Top Linux Compatible USB Wireless Adapters | WirelesSHack

wireless - WiFi stops working after waking from suspend with a Broadcom 43225 - Ask Ubuntu
11.10 - Wireless doesn't connect after suspend on an Asus K52F - Ask Ubuntu
reload driver, add to /etc/pm/sleep.d/00_wireless_sleep

wpa_supplicant authentication timed out / Networking, Server, and Protection / Arch Linux Forums
How to Connect to WiFi from the Terminal in Ubuntu Linux

WifiDocs/Driver/bcm43xx - Community Help Wiki

netctl - ArchWiki wifi-menu
Accessing and Using the WiFi Menu – Enplug Support Center
How To Setup A WiFi Network In Arch Linux Using Terminal

iwconfig

sudo lshw -c network
sudo iwlist scan
iwd
iw dev
sudo iw dev wlp0s20u11 scan

rfkill list all  # toggle wireless devices

nmcli dev wifi list
nmcli device wifi connect "{{SSID}}" password "{{PASSPHRASE}}"
nmcli device wifi hotspot ssid "{{SSID}}" password "{{PASSPHRASE}}"

ifconfig wlan0 up
iwconfig wlan0 essid "{{SSID}}"
iwconfig wlan0 essid "{{SSID}}" key "{{WEP KEY}}"
iwconfig wlan0 essid "{{SSID}}" key s:"{{WPA/WPA2 KEY}}"
dhcpcd wlan0

wpa_supplicant -i wlp0s20u11 -c <(wpa_passphrase "{{SSID}}" "{{PASSPHRASE}}") -d

NetworkManager logs

Enable debugging of NetworkManager

sudo vi /usr/lib/systemd/system/NetworkManager.service
sudo journalctl -fu wpa_supplicant.service
sudo journalctl -fu NetworkManager # show logs
- ExecStart=/usr/sbin/NetworkManager --no-daemon
+ ExecStart=/usr/sbin/NetworkManager --no-daemon --log-level=debug

TL-WN823N (dongle)

clnhub/rtl8192eu-linux: Realtek rtl8192eu official Linux driver v5.2.19.1 better than Mange/rtl8192eu-linux-driver?

TP-Link TL-WN823N on Arch Linux – mheap
Mange/rtl8192eu-linux-driver: Drivers for the rtl8192eu chipset for wireless adapters (D-Link DWA-131 rev E1 included!)
Ubuntu 16.04 解决 TL-WN826N 的驱动问题 - CSDN 博客
How to compile Mange/rtl8192eu-linux-driver driver.. – Site Title

git clone https://github.com/Mange/rtl8192eu-linux-driver /usr/src/rtl8192eu-linux-driver
cd rtl8192eu-linux-driver
sudo dkms add .
sudo dkms install rtl8192eu/1.0

sudo dkms uninstall rtl8192eu/1.0
sudo dkms remove rtl8192eu/1.0 --all

ln -s /var/lib/dkms/rtl8192eu/1.0/source /usr/src/rtl8192eu-1.0
sudo dkms install rtl8192eu/1.0 -k 4.14.56-1-lts
sudo dkms install rtl8192eu/1.0 -k 5.8.7-arch1-1

rmmod rtl8xxxu

[SOLVED] rtl8192eu USB Wifi not working / Kernel & Hardware / Arch Linux Forums
I already installed the driver, but I can not connect to a wifi network · Issue #46 · Mange/rtl8192eu-linux-driver

Disable kernel rtl8xxxu driver:

sudo su
mkdir -p /etc/modprobe.d
cat << EOF > /etc/modprobe.d/rtl8xxxu-blacklist.conf
# Do not load the 'rtl8xxxu' module on boot.
blacklist rtl8xxxu
EOF

BCM3413 (Toshiba C660)

Using bcmwl-kernel-source proprietary driver on Ubuntu Mate 18.04

networking - Ubuntu 18.04 LTS wifi problems - Ask Ubuntu
networking - Installing Broadcom Wireless Drivers - Ask Ubuntu

sudo vi /etc/default/crda

REGDOMAIN=HK

linux - alternative to bcmwl-kernel-source package - Super User
vs linux-firmware-nonfree, firmware-b43-installer, b43-fwcutter?
Why Broadcom 802.11 Linux STA driver sucks, and how to fix it | pofHQ(2012)