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

update-grub

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