cat /etc/os-release
- Swipe four fingers right on the trackpad opens the Applications view
- Swipe four fingers left opens the Workspaces view
- Swipe four fingers up or down switches to another workspace
- Swipe (in any direction) with three fingers switches between open windows
See also pop keyboard shortcuts post for a complete list. Here are just a few that I like to use, but always forget.
Shortcut | Action |
---|---|
SUPER + HJKL | Switch window focus |
SUPER + ENTER | Window adjustment mode. Use direction keys (HJKL) to move window |
SUPER + g | Toggle window float |
SUPER + CTRL + JK | Navigate between work spaces |
SUPER + SHIFT + JK | Move active window between workspaces. |
SUPER + ESC | Lock |
SUPER + T | Open a terminal |
ALT + CTRL + SHIFT + R | Screen shot selection |
SUPER opens the launcher. ?
shows all the possible commands.
Shortcut | action |
---|---|
/ or ~/ | browse filesystem |
file filename | Search for a file |
t: | run command in terminal |
g search_term | search Google (ddg for duck duck go) |
Same thing as doing it through popshop, but here at least I can see the logging
sudo apt update && sudo apt upgrade -y && sudo apt autoremove -y && flatpak update -y
If you encounter issues like dependency conflicts, try instead
sudo apt full-upgrade
Sources are found in various files located in /etc/apt/sources.list.d/
For Pop_Os and Ubuntu install build-essential
. Contains things like G++/GCC,
GNU Debugger and other packages for compiling C/C++
sudo apt-get install build-essential
There are different types of logs and they’re all located in /var/log/
.
Sometimes applications will write logs here too.
In the kernel logs
tail -f /var/log/kern.log | grep usb
The following should work on other Linux distros.
grep . /sys/bus/usb/devices/*/power/wakeup
List all your device names, vendor ID, product ID along with the Bus number they are using:
- vendor ID is left side of the colon
- product ID is right side of the colon
lsusb
You can list devices by product name. Might be useful in some cases.
grep . /sys/bus/usb/devices/*/product
Create a udev rule to configure the device for wakeup
See https://github.com/apmiller108/scripts#wake-on-device-udev-rule See also https://wiki.archlinux.org/title/udev#Waking_from_suspend_with_USB_device
Sometimes I am unable to wake the computer up from suspend. There is often a
dmesg
log indicating something like:
psmouse serio1: elantech: elantech_send_cmd query 0x02 failed.
- Seems to have something to do with USB peripherals, especially mouse and keyboard (probably mouse?).
- Disable USB autosuspend: https://unix.stackexchange.com/a/175035. The post is very old, but it illustrates that it should be possible to disable autosuspend for USB devices. They will therefore stay on when the system goes into suspend.
cat /sys/module/usbcore/parameters/autosuspend
sudo kernelstub -a "usbcore.autosuspend=-1"
Boot into the recovery partition by pressing SPACE at splash screen. From here you can do
- Clean install
- Refresh install (user data is retained but apps not installed in user dir are removed)
- Repair something: mount the main partition and do stuff to it
TIP: use lsblk
to list drives and partitions
sudo cryptsetup luksOpen /dev/nvme0n1p3 cryptdata
sudo mount /dev/mapper/data-root /mnt
Run commands as root dir set to NEWROOT (as if the existing OS system has been booted). From here can fix issues with packages, etc.
- Mount the EFI partition
sudo mount /dev/nvme0n1p1 /mnt/boot/efi
- Mount the rest
for i in /dev /dev/pts /proc /sys /run; do sudo mount -B $i /mnt$i; done
- Change root to /mnt
sudo chroot /mnt
- When done
exit
andreboot
Follow the instructions to make a bootable flash drive and install the OS. Takes only a few minutes. The broadcom WiFi adapter will not work out of the box. To get it working, install the broadcom driver:
sudo apt update
sudo apt install bcmwl-kernel-source
sudo modprobe wl
sudo rbboot
This should just work out of the box. Test it with cheese.