Skip to content

Instantly share code, notes, and snippets.

@ctsdownloads
ctsdownloads / brightness-ubuntu-22-10
Created December 13, 2022 22:16
brightness-ubuntu-22-10.txt
# Fixing the brightness up/down behavior
# Opening the grub config file
gedit admin:///etc/default/grub &
# The line to edit in the grub config
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash module_blacklist=hid_sensor_hub"
# or if you also need the SSD power saving workaround
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash nvme.noacpi=1 module_blacklist=hid_sensor_hub"
# and then run:
sudo update-grub
@ctsdownloads
ctsdownloads / Ubuntu 22.04 LTS Additional steps
Last active January 11, 2023 05:57
Ubuntu 22.04 LTS Additional steps
# 22.04.1 and newer have recent enough kernels that 12th Gen Intel Core support is solid. If you want to move to a more recent kernel though, you can optionally update to the OEM kernel package.
sudo apt install linux-oem-22.04
# If you want to enable fractional scaling:
gsettings set org.gnome.mutter experimental-features "['scale-monitor-framebuffer']"
# Fixing the brightness up/down behavior
# Opening the grub config file
@ctsdownloads
ctsdownloads / Ubuntu 22.10 Additional steps
Last active January 5, 2023 00:53
Ubuntu 22.10 Additional steps
# If you want to enable fractional scaling:
gsettings set org.gnome.mutter experimental-features "['scale-monitor-framebuffer']"
# Fixing the brightness up/down behavior
# Opening the grub config file
gnome-text-editor admin:///etc/default/grub &
# The line to edit in the grub config
@ctsdownloads
ctsdownloads / Wi-Fi Troubleshooting Ubuntu 22.04
Last active January 5, 2023 00:23
Wi-Fi Troubleshooting Ubuntu 22.04
# If your wireless connection is dropping off, we recommend turning off powersave mode.
# It's a known issue with some kernels, so this will resolve the issue if you experience this.
sudo gedit /etc/NetworkManager/conf.d/default-wifi-powersave-on.conf
# change 3 into 2 as to disable this feature.
[connection]
wifi.powersave = 2
@ctsdownloads
ctsdownloads / Mic jack, kernel and Wi-Fi Troubleshooting Ubuntu 20.04
Last active January 4, 2023 21:49
Mic jack, kernel and Wi-Fi Troubleshooting Ubuntu 20.04Ubuntu 20.04
# How to get the microphone input on the 3.5mm jack working.
sudo gedit /etc/modprobe.d/alsa-base.conf
# add
options snd-hda-intel model=dell-headset-multi
# to the end of it, and then reboot.
@ctsdownloads
ctsdownloads / Wi-Fi Troubleshooting Ubuntu 22.10
Last active January 5, 2023 00:41
Wi-Fi Troubleshooting Ubuntu 22.10
# If your wireless connection is dropping off, we recommend turning off powersave mode.
# It's a known issue with some kernels, so this will resolve the issue if you experience this.
gnome-text-editor admin:///etc/NetworkManager/conf.d/default-wifi-powersave-on.conf
# change 3 into 2 as to disable this feature.
[connection]
wifi.powersave = 2
@ctsdownloads
ctsdownloads / Ubuntu 22.10 Completing Setup
Created January 5, 2023 00:56
Ubuntu 22.10 Completing Setup
# Make sure to update your packages to get the latest kernel
sudo apt update && sudo apt upgrade -y
# To enable headset mic input, edit /etc/modprobe.d/alsa-base.conf
echo "options snd-hda-intel model=dell-headset-multi" | sudo tee -a /etc/modprobe.d/alsa-base.conf
# On some SSDs (e.g. SN750 with older firmware), there is a workaround to improve suspend battery life
@ctsdownloads
ctsdownloads / pipewire.md
Created January 18, 2023 23:11 — forked from shakthizen/pipewire.md
Enable PipeWire on Ubuntu 22.04

Enable PipeWire on Ubuntu 22.04

This guide is only for original Ubuntu out-of-the-box packages. If you have added a custom PPA like pipewire-debian, you might get into conflicts.

Ubuntu 22.04 has PipeWire partially installed and enabled as it's used by browsers (WebRTC) for recoding the screeen under Wayland. We can enable remaining parts and use PipeWire for audio and Bluetooth instead of PulseAudio.

Starting from WirePlumber version 0.4.8 automatic Bluetooth profile switching (e.g. switching from A2DP to HSP/HFP when an application needs microphone access) is supported. Jammy (22.04) repos provide exactly version 0.4.8. So, we're good.

Based on Debian Wiki, but simplified for Ubuntu 22.04.

@ctsdownloads
ctsdownloads / pipewire.md
Created January 18, 2023 23:11 — forked from shakthizen/pipewire.md
Enable PipeWire on Ubuntu 22.04

Enable PipeWire on Ubuntu 22.04

This guide is only for original Ubuntu out-of-the-box packages. If you have added a custom PPA like pipewire-debian, you might get into conflicts.

Ubuntu 22.04 has PipeWire partially installed and enabled as it's used by browsers (WebRTC) for recoding the screeen under Wayland. We can enable remaining parts and use PipeWire for audio and Bluetooth instead of PulseAudio.

Starting from WirePlumber version 0.4.8 automatic Bluetooth profile switching (e.g. switching from A2DP to HSP/HFP when an application needs microphone access) is supported. Jammy (22.04) repos provide exactly version 0.4.8. So, we're good.

Based on Debian Wiki, but simplified for Ubuntu 22.04.

@ctsdownloads
ctsdownloads / 12th gen - Ubuntu 22.04 LTS Installation on the Framework Completing Setup
Last active April 5, 2023 23:40
12th gen - Ubuntu 22.04 LTS Installation on the Framework Completing Setup
# This is for 12th Gen ONLY.
# Copy the entire text block below, paste into the terminal, press enter and type your
user's password as prompted.
# This will:
# - Update your Ubuntu install's packages.
# - Install the recommended OEM kernel. Now recommending a new OEM kernel.
# - Workaround needed to get the best suspend battery life for SSD power drain.