tag: Linux

PipeWire Media Session: Disable auto port switching on device connect

27 Dec, 2021 - 4 minutes
Intro My 10 years old laptop has basically touch and look sensitive connectors, audio jack included. This means that the headphones plugged status is changed at random and with default settings in PulseAudio and PipeWire it will cause constant switching to speakers and I will be unable to enjoy my music (the soundcard is not great but the USB hub is also out of question since USB ports are also often touch sensitive).

Once again, I moved to ALSA

10 May, 2021 - 3 minutes
When I got a new computer a while ago I installed PulseAudio (PA) on it since I wanted to comfortably use USB headset and switching between it and my system soundcard. PA worked somehow fine but there where some problems with my favourite music player (Music On Console) but it could be to some degree mitigated with a patch. Later Archlinux pushed PipeWire as hard dependency of few packages I had installed (namely kwin and PulseEffects).

My view on systemd

11 Apr, 2021 - 2 minutes
In mt opinion systemd is a huge pain. SystemD in my eyes is a tool developed by corporation (RedHat) for other corporations (their customers). RedHat guys (and other kinds) have many things (tools, configs, manuals, trainings, webinars…) prepared for it and thus it would be pain for them to stop using it. Other corporations like it because it has support from other corporation which they can call when there is a problem and it is mostly one package which contains almost all basic stuff they will need.

RTFM - How to split audio wave file

6 Jan, 2021 - 2 minutes
Few years ago (4 or 5 I think) when I was downloading music in a hope of a higher quality the content was delivered in a 3 files, flac, cue and log. The flac file contains whole CD or album, cue is to describe where/when each song starts, ends, its name and author etc and log is a log from the program which made it. This is all nice and great if you are using some more complicated music player with library function which can create index of the songs contained in such files and play them accordingly from its UI.

Estimate installed size of pacman repository

4 Jan, 2021 - 3 minutes
Some time ago on #artix IRC channel popped up a question on how to get the installed size of all packages in given repository and I together with other people on the channel created a one liner in shell to do exactly that. But before I have to mention that Pacman prints the “Installed size” value when we try to install packages. So one way is to try to install all packages but this can also include dependencies and may require some pacman magic which I am not aware of.

Protecting my sleep

8 Dec, 2020 - 2 minutes
My another attempt to break the habit of being up until very late into the night and as such very tired the next day. For years I thought of configuring my computer to suspend at around night time so I will be somehow forced to go to sleep. Well, the main problem with this was that I only thought about it and never actually did any research on this subject.