Skip to content

Instantly share code, notes, and snippets.

View peppidesu's full-sized avatar

peppidesu peppidesu

View GitHub Profile
[LOG] | got iface: wl_seat v9
[LOG] > Bound to wl_seat v9
[LOG] | got iface: wl_data_device_manager v3
[LOG] | got iface: wl_compositor v6
[LOG] > Bound to wl_compositor v6
[LOG] | got iface: wl_subcompositor v1
[LOG] | got iface: wl_shm v1
[LOG] | got iface: wp_viewporter v1
[LOG] > Bound to wp_viewporter v1
[LOG] | got iface: wp_tearing_control_manager_v1 v1
@peppidesu
peppidesu / README.md
Last active March 11, 2024 21:12
List of common NVIDIA + Wayland fixes as of February 2024

1. Changing drivers with Steam installed natively

Because native Steam depends on nvidia-utils and lib32-nvidia-utils (provide vulkan-driver and lib32-vulkan-driver respectively), you cannot replace these packages without removing steam first. You can simply remove steam and then reinstall after everything works.

2. Hyprland NVIDIA surgery kit (can also work for other WMs/DEs)

Read https://wiki.hyprland.org/Nvidia/. Some important side notes:

  • "Fixing random flickering, nuclear method" is exactly what it says. It will nuke battery life and power usage, because your GPU will be forced to run in the highest power state.
  • for DRM kernel mode setting, I recommend following the instructions on the Arch wiki instead: https://wiki.archlinux.org/title/NVIDIA#DRM_kernel_mode_setting

3. Changing to 535 drivers

If you are experiencing issues with 545/550 drivers, you can try switching to nvidia-535xx-dkms (AUR).

@peppidesu
peppidesu / powersave.sh
Created February 8, 2024 01:27
hyprland powersaving script
#!/bin/sh
dir=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
last=""
while :; do
current="$(cat /sys/class/power_supply/BAT0/status)"
if [ "$current" != "$last" ]; then
last="$current"
else
sleep 1