Skip to content

Latest commit

 

History

History
203 lines (177 loc) · 8.08 KB

20211126182001-pop_os.org

File metadata and controls

203 lines (177 loc) · 8.08 KB

Pop_os

System Information

cat /etc/os-release

Trackpad Gestures

  • 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

Shortcuts

See also pop keyboard shortcuts post for a complete list. Here are just a few that I like to use, but always forget.

ShortcutAction
SUPER + HJKLSwitch window focus
SUPER + ENTERWindow adjustment mode. Use direction keys (HJKL) to move window
SUPER + gToggle window float
SUPER + CTRL + JKNavigate between work spaces
SUPER + SHIFT + JKMove active window between workspaces.
SUPER + ESCLock
SUPER + TOpen a terminal
ALT + CTRL + SHIFT + RScreen shot selection

Launcher Shortcuts

SUPER opens the launcher. ? shows all the possible commands.

Shortcutaction
/ or ~/browse filesystem
file filenameSearch for a file
t:run command in terminal
g search_termsearch Google (ddg for duck duck go)

Update packages

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

APT sources

Sources are found in various files located in /etc/apt/sources.list.d/

Compiler toolchain

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

Logs

There are different types of logs and they’re all located in /var/log/. Sometimes applications will write logs here too.

USB logs

In the kernel logs

tail -f /var/log/kern.log | grep usb

Wake from suspend on USB device input

The following should work on other Linux distros.

Gathering Bus and device info

See which devices are wakeup disabled

grep . /sys/bus/usb/devices/*/power/wakeup

List devices and Buses

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

Issues waking up from suspend

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?).

Things to try

  • 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.

View the current configuration for usb autosuspend

cat /sys/module/usbcore/parameters/autosuspend

change usb autosuspend config

sudo kernelstub -a "usbcore.autosuspend=-1"

Recovery

Boot into the recovery partition by pressing SPACE at splash screen. From here you can do

  1. Clean install
  2. Refresh install (user data is retained but apps not installed in user dir are removed)
  3. Repair something: mount the main partition and do stuff to it

Unlock and mount the encrypted drive

TIP: use lsblk to list drives and partitions

sudo cryptsetup luksOpen /dev/nvme0n1p3 cryptdata
sudo mount /dev/mapper/data-root /mnt

chroot

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.

  1. Mount the EFI partition
    sudo mount /dev/nvme0n1p1 /mnt/boot/efi
        
  2. Mount the rest
    for i in /dev /dev/pts /proc /sys /run; do sudo mount -B $i /mnt$i; done
        
  3. Change root to /mnt
    sudo chroot /mnt
        
  4. When done exit and reboot

Installing

MacBook Air 2015

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

See also https://www.linux.org/threads/solved-cannot-get-wifi-recognized-when-installing-popos-22-04-on-2015-macbook-pro.40277/post-183971

Webcam

This should just work out of the box. Test it with cheese.

Resources