Skip to content

Instantly share code, notes, and snippets.

@lluis
Created July 6, 2025 07:47
Show Gist options
  • Save lluis/7973a127d31875b3da20cc3009344642 to your computer and use it in GitHub Desktop.
Save lluis/7973a127d31875b3da20cc3009344642 to your computer and use it in GitHub Desktop.
Debian 13 on Slimbook Creative Laptop

Debian 13 on Slimbook Creative Laptop

  • Add the Slimbook repository
wget https://raw.githubusercontent.com/Slimbook-Team/slimbook-base-files/main/sources/slimbook.list
wget https://raw.githubusercontent.com/Slimbook-Team/slimbook-base-files/main/keys/slimbook.gpg
sudo mv slimbook.gpg /etc/apt/trusted.gpg.d/
sudo mv slimbook.list /etc/apt/sources.list.d/
sudo apt update
  • Install the Slimbook packages
sudo apt install libslimbook1 python3-slimbook ryzenadj slimbook-meta-common slimbook-meta-plasma \
                 slimbook-qc71-dkms slimbook-rgb-keyboard slimbook-service python3-pyudev \
                 slimbook-yt6801-dkms slimbookrgbkeyboard 
  • Fix laptop waking up immediately after going into sleep mode
cat > /etc/default/grub.d/slimbook-gpiowake-fix.cfg << EOF
GRUB_CMDLINE_LINUX_DEFAULT="$GRUB_CMDLINE_LINUX_DEFAULT gpiolib_acpi.ignore_wake=AMDI0030:00@6"
EOF
sudo update-grub
# reboot
  • Enable Dual Screen (Nvidia propietary drivers + HDMI screen)
cat > /etc/default/grub.d/nvidia.cfg << EOF
# https://forums.developer.nvidia.com/t/second-monitor-not-detected-by-debian-settings-is-detected-by-nvidia/241599/7
GRUB_CMDLINE_LINUX_DEFAULT="$GRUB_CMDLINE_LINUX_DEFAULT nvidia-drm.modeset=1"
EOF
sudo update-grub
# reboot

# After reboot, this should list two monitors:
xrandr --listmonitors
# Enable the 2nd monitor:
xrandr --setprovideroutputsource 1 0 && xrandr --auto

# On a X11 session, you can't set distinct screen scale on each screen, change the resolution as workaround if needed
# I don't want to use Wayland, as I can't use system clipboard on Vim:
#  https://github.com/vim/vim/issues/5157
#  https://github.com/jasonccox/vim-wayland-clipboard
  • Fix bluetooth not connecting to a speaker
# src/service.c:btd_service_connect() a2dp-sink profile connect failed for XX:XX:XX:XX:XX:XX: Protocol not available
sudo apt install libspa-0.2-bluetooth
systemctl --user restart pulseaudio
  • pipewire errors on logs
# kpipewire_logging: Failed to create PipeWire context
# received error while creating the stream "Ha fallat en crear el context del PipeWire" Media monitor will not work.
# pw.conf: can't load config client.conf: No such file or directory

sudo apt install pipewire-pulse
systemctl --user restart pulseaudio
  • rtkit message spam on logs
# Supervising 4 threads of 2 processes of 1 users.

cat > systemd/system/rtkit-daemon.service.d/override.conf << EOF
[Service]
LogLevelMax=6
EOF
sudo systemctl restart rtkit-daemon.service
  • To write ~ char with single AltGr+ñ key press, enable keyboard dispositions on KDE keyboard settings and add "Spanish (dead tilde)"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment