TP-Link Archer T9UH v1 [Realtek RTL8814AU] driver is at https://github.com/aircrack-ng/rtl8814au.git
Monday, November 15, 2021
TP-Link Archer T9UH v1 [Realtek RTL8814AU] driver
Monday, November 1, 2021
Thinkbook 13s ITL G2 headphones hissing sound, noise fix
Kubuntu 20.04 LTS
Problem: wired headphones reproduce constant hissing sound, noise changes with the cursor movement etc.
Solution:
sudo hda-verb /dev/snd/hwC0D0 0x1d SET_PIN_WIDGET_CONTROL 0x0
Sources:
https://www.reddit.com/r/thinkpad/comments/8j8208/audio_crackling_through_both_headphone_jack_and/
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1805079/comments/20
Saturday, July 24, 2021
Thinkbook 13s G2 ITL battery conservation mode in Linux
https://wiki.archlinux.org/title/Laptop/Lenovo#Battery_Conservation_Mode_on_IdeaPad_laptops
echo 1 >/sys/bus/platform/drivers/ideapad_acpi/VPC2004:00/conservation_mode
Thursday, July 22, 2021
Skyrim Special Edition steam fix
Launch options to fix sound issue:
WINEDLLOVERRIDES="xaudio2_7=n,b" %command%
https://github.com/ValveSoftware/Proton/issues/289
Friday, July 9, 2021
Digikam settings
Set photos and db location on first start to ~/Pictures/digikam-photos
Configure digikam:
Metadata page:
Behaviour:
Write this information to the Metadata:
Image tags
Rating
Pick label
Reading and writing metadata:
Update file modification timestamp when files are modified
Rescan file when files are modified
Sidecars:
Read from sidecar files
Write to sidecar files
Write XMP sidecar only
Rotation:
Rotate by only setting a flag
Luks partitioning
Partition Table: gpt
Disk Flags:
Number Start End Size File system Name Flags
1 1049kB 211MB 210MB fat32 boot, esp
2 211MB 735MB 524MB ext4 legacy_boot
3 735MB 512GB 511GB
Partition 1 mount point = /boot/efi
Partition 2 mount point = /boot
Partition 3 = luks
GRUB string:
sudo
vim
/etc/default/grub
linux /vmlinuz-5.12-x86_64 root=UUID=xxx-uuid-of-root-ext4-fs-xxx rw quiet cryptdevice=UUID=luks-partition-uuid:mapped-to-name:allow-discards
root=/dev/mapper/mapped-to-name udev.log_priority=3 rd.luks.options=discard
Thursday, July 8, 2021
fix sddm (kde mankaro) keyboard layout on unlock
/usr/share/sddm/scripts/Xsetup
#!/bin/sh
# Xsetup - run as root before the login dialog appears
setxkbmap us
Wednesday, July 7, 2021
Fix SDDM keyboard layout for password (KDE Manjaro)
sudo vim /usr/share/sddm/scripts/Xsetup
setxkbmap us
Wednesday, June 23, 2021
Text templates, code generation
Python: wheezy.template
@def indent(lines, sep):
@sep.join(lines.split('\n'))
@end
@def body():
function body;
statement2;
@end
@def func(name):
func @name {
@body()
@indent('1\n2\n3\n', '\n ')
@indent(body(), '\n ')
}
@end
@func('hello')
Java: StringTemplate4
Sunday, March 28, 2021
gpg encryption/decryption
Encrypt:
gpg --no-symkey-cache -c cd2.iso
Decrypt:
gpg --no-symkey-cache -o cd2.iso -d cd2.iso.gpg
Monday, March 8, 2021
Old dos/windows archive files decompression with correct file names
unar -o temp -encoding cp866 my-old-arch.zip
Tuesday, February 9, 2021
Thoughts on photo/video files organizing
Directory structure pattern: "YYYY/YYYY-MM-DD-tag1-tag2/xxxxx.jpg"
Should the files be renamed on copying from the camera? If necessary rename only once -- before working with the files, importing them into darktable/digikam.
Do not use stars, flags, color labels, use text tags instead, store tags in .xmp files.
Use two tags like "edit" and "edit-TIMESTAMP" when tagging photos for a special temporary/one-time task like "print" and "print-20200109"... Keep those tags to track history.
Tag photos as "printed", "shared", "published", and with a the same word but with a timestamp "printed-20200109" etc.
Tag photos to delete with "delete" tag, rather than using digikam's delete function.
Put videos into a subdirectory.
Mark for culling:
Certain to keep: "pick-best" > "pick-good" > "pick-keep"
Tentative: "pick-uncertain" > "pick-bad" > "pick-delete"
Sunday, February 7, 2021
Julia programming language notes
julialang.org
https://docs.julialang.org/en/v1/manual/unicode-input/
https://benlauwens.github.io/ThinkJulia.jl/latest/book.html
Documentation is not clear, big memory footprint (125MB RAM), slow to start first time on Windows.
The language is dynamic, no way to specify exactly function arguments and return value for a type (e.g. as a type of an argument to another function, or a type of a variable holding a function object).
An error can be spotted only during execution, e.g. if the return type does not match the type of the expression returned from the function.
Manjaro/archlinux drive encryption notes
https://wiki.archlinux.org/index.php/Dm-crypt/System_configuration
Need to have normal ext4 boot partition, vfat EFI partition, and an encrypted partition.
Kernel boot image must have dmcrypt support:
/etc/mkinitcpio.conf
...
HOOKS=(base udev autodetect keymap modconf block encrypt filesystems keyboard fsck)
...
/etc/default/grub:
GRUB_CMDLINE_LINUX="cryptdevice=UUID=88.-..888:cryptroot:allow-discards"
/etc/fstab:
# /dev/mapper/cryptroot
UUID=111-11-... / ext4 rw,noatime 0 0
# /dev/nvme0n1p6
UUID=222-22-... /boot ext4 rw,relatime 0 0
# /dev/nvme0n1p2
UUID=333.. /boot/efi vfat rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro
0 0