Skip to content

Instantly share code, notes, and snippets.

@bademux
Last active February 6, 2026 00:18
Show Gist options
  • Select an option

  • Save bademux/a32ea0651045b5e5a0aa0729bce6c2fa to your computer and use it in GitHub Desktop.

Select an option

Save bademux/a32ea0651045b5e5a0aa0729bce6c2fa to your computer and use it in GitHub Desktop.
GPD Pocket 4 fix collection

Rotate boot screen

echo 'GRUB_CMDLINE_LINUX="quiet splash fbcon=rotate:1 video=eDP-1:panel_orientation=right_side_up"'>>/etc/default/grub && update-grub
echo "amdgpu" >> /etc/initramfs-tools/modules && update-initramfs -u

Update set orientation index with 1 value for Screen Rotate Gnome extention

BIOS tuning

Set battery charger level to 90%
Advanced - NBIO:
 GFX Configuration:
  iGPU Advanced = enabled 
  Dedicated Graphics Memory= 4G

 SMU:
  System Configuration= 20W
  Tjmax = 90C

Fix idiotic keuboard layout

sudo apt install keyd
echo -e "[ids]\n*\n[main]\nsemicolon = overload(altgr, semicolon)\napostrophe = overload(control, apostrophe)" | sudo tee /etc/keyd/default.conf
sudo systemctl restart keyd

Hack for Missing USB4/Thunderbolt Pre-Boot Support

GRUB_CMDLINE_LINUX_DEFAULT="quiet splash thunderbolt.host_reset=0"

and then update-grub

Fingerprint scaner (seems to work for Ubuntu 25.10 out of the box)

wget https://github.com/ftfpteams/focaltech-linux-fingerprint-driver/raw/refs/heads/main/Ubuntu_Debian/x86/libfprint-2-2_1.94.4+tod1-0ubuntu1~22.04.2_amd64_20250219.deb -O libfprint-ftfp.deb
deb-reversion -s ftfp -v 1:1.94.9+tod1-1ubuntu1~25.04 libfprint-ftfp.deb
dpkg -i libfprint-2-2_1.94.9+tod1-1ubuntu1~25.04_amd64.deb
cp /usr/share/polkit-1/rules.d/50-default.rules /etc/polkit-1/rules.d/

Run pam-auth-update and select Fingerprint sensor

Use fprintd-enroll $USER to add new finger

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment