NodeMCU with MicroPython
/boot.py
:
# This file is executed on every boot (including wake-boot from deepsleep) #import esp #esp.osdebug(None) import gc import network import time import webrepl sta = network.WLAN(network.STA_IF) sta.active(True) sta.connect('SSID', 'Passphrase') retries = 3 if retries > 0 or not sta.isconnected(): time.sleep(1) retries -= 1 webrepl.start() gc.collect()
Airsoft
Eight month ago I started playing Airsoft. In the future I will try to post about the games I have participated. In addition I will let you know about, what equipment I have and how it is modified. It is still a draft, but by the time everything will be documented. Additionally, I will keep keep track about gun internals, which are compatible.
For now, this is everything I wrote down so far.
Stupid DNS problems
I misconfigured my DNS, so none of my domains seem to work…
Blog RSS
I am sorry for the past crapy looking, disasterious posts on planet.dokuwiki.org. I hope it is fixed now.
PulseAudio Equalizer sink selection
Recent pulseaudio versions provide an equalizer. The tool can be started by running:
$ qpaeq
If the tool fails to start, certain modules have to be loaded first. All information needed can be found here PulseAudio - ArchWiki.
Depending on how many audio devices you have connected, the equalizer might be initialized using the wrong sink, but you can change the sink the equalizer should work with. At first unload - if loaded - the module
module-equalizer-sink
.
$ pactl unload-module module-equalizer-sink
Now get the sink name you want to use. The command (with output example) will give you a brief overview of your sinks:
$ pactl list sinks short 0 alsa_output.pci-0000_01_00.1.hdmi-stereo module-alsa-card.c s16le 2ch 48000Hz RUNNING 1 alsa_output.pci-0000_00_1b.0.analog-stereo module-alsa-card.c s16le 2ch 48000Hz RUNNING 3 rtp module-null-sink.c s16be 2ch 44100Hz IDLE 4 combined module-combine-sink.c s16le 2ch 48000Hz IDLE 5 alsa_output.usb-Logitech_Logitech_G930_Headset-00-Headset.analog-stereo module-alsa-card.c s16le 2ch 48000Hz RUNNING
In my case, I wanted the equalizer to work with the “G930 Headset” instead of the “Built-in Audio”. This is achieved by naming the sink_master as module argument on load. For example, considering the above sample output of pactl list sinks short
, we will load the module:
$ pactl load-module module-equalizer-sink sink_name="equalizer" sink_master="alsa_output.usb-Logitech_Logitech_G930_Headset-00-Headset.analog-stereo"
Update #1
It is not necessary to unload the module first, this will most likey result in crashing pulseaudio. Just execute the command
$ pactl load-module module-equilizer-sink sink_name=<name> sink_master=<audio device name to use>