joshuagrisham / samsung-galaxybook-extras

Samsung Galaxybook Linux platform driver and accompanying utilities.
116 stars 15 forks source link

Installation steps - Mint 22 #18

Open opensrc-cloud opened 3 months ago

opensrc-cloud commented 3 months ago

Tested on Galaxy Book 3 Pro running Mint 22. Haven't figured out the webcam portion since the vendor ID referenced in samsung-galaxybook-extras/scripts/toggle-webcam.sh doesn't match what's in /sys/bus/usb/devices/*/idVendor on this system (8087, 1c7a, 1d6b).

Including steps here for other Mint users to at least get the keyboard backlight to work:

# installed pahole to address compile failure: "Skipping BTF generation for samsung-galaxybook.ko due to unavailability of vmlinux" apt install pahole cp /sys/kernel/btf/vmlinux /lib/modules/$(uname -r)/build/ cd samsung-galaxybook-extras/driver make -C /lib/modules/$(uname -r)/build M=$PWD make -C /lib/modules/$(uname -r)/build M=$PWD modules_install depmod

cd openssl req -new -x509 -newkey rsa:2048 -keyout MOK.key -outform DER -out MOK.crt -nodes -days 36500 -subj "/CN=samsung-driver/" /usr/src/linux-headers-$(uname -r)/scripts/sign-file sha256 MOK.key MOK.crt samsung-galaxybook-extras/driver/samsung-galaxybook.ko

# installed mokutil to sign new module for system running with SecureBoot enabled apt install mokutil

# will prompt for a password that will be used during next system boot to enroll certificate mokutil --import MOK.crt

reboot and select 'enroll MOK' during startup

cp samsung-galaxybook-extras/driver/samsung-galaxybook.ko /lib/modules/$(uname -r)/updates/samsung-galaxybook.ko

# i8042_filter=on to enable F9 functionality for keyboard backlight modprobe samsung-galaxybook debug=false kbd_backlight=on performance_mode=off fan_speed=off i8042_filter=on acpi_hotkeys=off wmi_hotkeys=off