devd(8) Rule for Coldcard (mk3)

The following is in /usr/local/etc/devd/hardware_wallet.conf

# Coldcard MK3
notify 301 {
        match "system"          "USB";
        match "subsystem"       "DEVICE";
        match "vendor"          "0xd13e";
        match "product"         "0xcc10";
        match "type"            "ATTACH";
        action "/bin/chmod g=rw /dev/$cdev";
};
Posted in Uncategorized | Leave a comment

How to Search GIT Commits!

git log -S STRING --source --all

Where STRING is what your want to find in the commits.

Posted in Uncategorized | Leave a comment

FreeBSD 14 CURRENT on Lenovo Legion 5 (15, AMD)

Overall this machine runs really great with FreeBSD 14-CURRENT.

Audio

The audio needs a bit of work. You want to have in /boot/device.hints

hint.hdac.1.cad0.nid20.config="as=1 seq=0"
hint.hdac.1.cad0.nid33.config="as=1 seq=15 device=Headphones"

This will group together the nid 33 (the jack on the left) with nid 20, the audio output on the internal speakers.

Touchpad

Works out of the box with the driver ig4.

Graphics

Set the laptop to switchable graphics in the BIOS, and run a recent branch of drm-kmod for the integrated chip.

TODO.

Posted in Uncategorized | Leave a comment

Civilization VI: Void Linux libfontconfig Fix

Trying to launch the great Civilization 6 under Linux Void results in the following on my machine.

./Civ6
./GameGuide/Civ6: symbol lookup error: /usr/lib/libfontconfig.so.1: undefined symbol: FT_Done_MM_Var

I solved this issue by adding LD_PRELOAD=/usr/lib/libfreetype.so.6 %command% to the launch options.

Posted in Uncategorized | Leave a comment

How to Run a Command Periodically

Linux: there’s the watch command.

watch date

FreeBSD: you will need the package gnu-watch.

pkg install gnu-watch;  gnu-watch date
Posted in Uncategorized | Leave a comment