Enable battery level reporting for bluetooth devices on linux

Posted on Sun 10 July 2022 in Software • 1 min read

This is an experimental feature of BlueZ bluetooth stack. To enable the feature edit bluetooth.service and put the ExecStart to be /usr/libexec/bluetooth/bluetoothd --experimental.

The file bluetooth.service is present in /lib/systemd/system/ on debian. Otherwise, the file can be edited by issuing command sudo systemctl …


Continue reading

Create Encrypted Volume inside File

Posted on Sun 21 November 2021 in Software • 2 min read

Prerequisite: The system should have cryptsetup installed. On debian this can be achieved by sudo apt install cryptsetup.

At first creat the file that will act as encrypted drive/volume. Please ensure that the file should be >=100MB in size. The file will then be formatted with cryptsetup. This step …


Continue reading

Better sound quality in obs-studio

Posted on Mon 30 August 2021 in Software • Tagged with obs-studio, audio-recording • 1 min read

A extensive guide for audio mixing is presented at https://indiscipline.github.io/post/voice-sound-reference/.


Hardware-Accelerated Window capture (NVIDIA FBC) in OBS-Studio

Posted on Sat 28 August 2021 in Software • Tagged with obs-studio, nvidia, window-capture • 1 min read

For getting hardware-accelerated window capture on obs-studio, first we need to patch the nvidia-driver in using https://github.com/keylase/nvidia-patch. Please note that before applying the patch, please ensure that your driver version is supported. The installed driver version can be seen by issuing nvidia-smi command.

Next, we need …


Continue reading

Pass through to VM on Linux Host

Posted on Wed 07 July 2021 in Virtual Machine • 2 min read

Before enabling pass through we need to enable IOMMU (input–output memory management unit) by adding following kernel parameters in /etc/default/grub.

  • For intel systems: intel_iommu=on
  • For AMD system, IOMMU is by default enabled.

Additionally add iommmu=pt parameter to prevent linux kernel from touching devices which cannot …


Continue reading