General Linux Thread

Oh… and once the default sink is set then running alasmixer can be set through the command line with an ncurses based interface that DOES work via ssh to set the volume.

1 Like

Hello!

ledechaine@symphony:~$ uname -a
Linux symphony 5.4.0-3-amd64 #1 SMP Debian 5.4.13-1 (2020-01-19) x86_64 GNU/Linux

Debian testing. It’s been my main computer for years. I was waiting for “debian CUT” (constanty usable testing) but it never happened. So I’m using debian testing as a “rolling-release”.

ledechaine@symphony:~$ sudo tune2fs -l /dev/mapper/sdb1_crypt | grep 'Filesystem created:'
Filesystem created:       Sat Mar 26 22:36:58 2016

Random penguin/tux plush on computer. :stuck_out_tongue:

1 Like

So… neat but if you’re going to *nix flex then let me introduce you to neofetch.

Example:

1 Like
       _,met$$$$$gg.          ledechaine@symphony 
    ,g$$$$$$$$$$$$$$$P.       ------------------- 
  ,g$$P"     """Y$$.".        OS: Debian GNU/Linux bullseye/sid x86_64 
 ,$$P'              `$$$.     Host: SX2380 
',$$P       ,ggs.     `$$b:   Kernel: 5.4.0-3-amd64 
`d$$'     ,$P"'   .    $$$    Uptime: 8 days, 22 hours, 24 mins 
 $$P      d$'     ,    $$P    Packages: 3905 (dpkg) 
 $$:      $$.   -    ,d$$'    Shell: bash 5.0.16 
 $$;      Y$b._   _,d$P'      Resolution: 1920x1080 
 Y$$.    `.`"Y$$$$P"'         DE: MATE 
 `$$b      "-.__              WM: Metacity (Marco) 
  `Y$$                        WM Theme: Menta 
   `Y$$.                      Theme: TraditionalOk [GTK2/3] 
     `$$b.                    Icons: gnome [GTK2/3] 
       `Y$$b.                 Terminal: mate-terminal 
          `"Y$b._             Terminal Font: Monospace 13 
              `"""            CPU: AMD A8-5500 APU (4) @ 3.200GHz 
                              GPU: AMD ATI Radeon HD 7560D 
                              Memory: 6520MiB / 9409MiB 

Neat. :slight_smile:

1 Like

Yes, that’s a shitty all-in-one Gateway computer I got for sale.
(The joys of linux: It’s still “overkill” for all I do with it.)
Also no GPU, just integrated graphics – but I will receive a RX550-4G soon.

1 Like

If I need it… I’ll make a write up and automation for something like this with automation scripts:

But, Pulse Audio had the ability to list systems a “source” and a “sink”. Network was baked into it. So if anyone is curious, the computer part of a Sonos, Amazon Echo, Google home, etc… with the room control implements PulseAudio. If you want to play music in one place or separate channels of audio via network, THIS is what I would use. And yes, with Pulse Audio for windows it can stream to Pi’s (or anything like it). I recommend a DAC for each sink source however.

hello, what music players do you guys use? I’ve been using cmus for a while but I’m not really feeling it anymore. I’ve also heard it doesn’t have bit-perfect audio playback, but it’s not like I noticed. apparently setting output_plugin to alsa can solve that.

1 Like

I use citrus mostly, but I’ve played around with a few others.

“Deadbeef” is a music player with a weird name but fully customizable + plugins + easy bitperfect playback.

Also allows you to see the waveform like foobar2000, as in Zeos’s videos’s.

1 Like

I’m fairly clueless when it comes to audio, and paulseaudio, but I seem to recall fiddling with /etc/pulse/daemon.conf and setting default-sample-rate = 192000 to get my DX7s to go above 48kHz. Probably a better way to do it.

Personally I use moc; I used to use gooey players years ago, but I was always reluctant to waste screen real estate on them.

1 Like

So… want to update for how to update your pulse daemon.conf and leave a little pearl of wisdom myself.

FYI, on Pulse Audio, if you don’t know what sample rate or bit you’re running it’s 16 bit at 44.1k. Want to fix that? I got you. First, if you’ve heard any sound on linux then cd into a folder for your user ~/.config/pulse. Once there copy in a file like this: cp /etc/pulse/daemon.config .

Look inside that daemon.config uncomment and change anything you want. If you need a guide then look in man 5 pulse-daemon.conf for everything you might want/need for that file. Once you get the settings you want you simply reload just the service, but feel free to reload the socket too like this:

systemctl --user restart pulseaudio.service
systemctl --user restart pulseaudio.socket

That’s it!

Now if you want my ~/.config/pulse/daemon.conf file, here it is:

default-sample-format = s24le
default-sample-rate = 192000
alternate-sample-rate = 44100 
default-sample-channels = 2 

I really like Deadbeef player for this.
In the settings you just choose Plugin: ALSA, Output: (your output here) “direct hardware device without any software conversions”.
Then in the plug-ins, search ALSA → config: Disable resampling.

That’s it, that’s all, bitperfect playback! It will send 44.1khz when playing 44.1, 192khz when playing 192khz, etc.

P.S.: Be aware you chose “without any software conversions”. If your DAC can only do 192khz and you send it 384khz files, it will just play the file at half speed (yes – I mean, your DAC can’t do it).

And I did not even show what it looked like. D’oh. Voilà:

2 Likes

Then you can always use the setting in Pulse Audio version 13+ avoid-resampling = yes

 avoid-resampling=  If  set,  try to configure the device to avoid resampling. This only works on devices which
       support reconfiguring their rate, and when no other streams are already playing or capturing audio. The device
       will also not be configured to a rate less than the default and alternate sample rates.
1 Like

I don’t know why, either it did not work for me, or I used something similar in older pulseaudio versions when the “avoid-resampling” wasn’t available.

Also… I suspect this will cause all kinds of problems because if you pause a video on youtube, or start playing a 192khz song when two seconds of a youtube video is still playing in the background, with “avoid-resampling”, well, something will play slower/faster, or something will just break. I don’t think pulseaudio will immediately start to auto-resample the last 2 seconds of youtube-video in 192khz. With all the problems I had with pulseaudio (which I replaced with a 20-lines alsa config file…) I suspect it will just shit itself. :stuck_out_tongue:

With Deadbeef, set to “without any software conversions”, if something is playing in another bitrate, it just won’t play. You pause (or quit) the youtube video for bitperfect playback. It might be weird sometimes, but it’s the best way I’ve found to get reliable, bitperfect playback on linux, without any possibility of upsampling or downsampling.

And even with that I still don’t trust computers in general so I will get a DAC showing the Khz of the files playing, just to be 200% sure. :stuck_out_tongue:

I personally recommend the Holo Audio Spring 2… I’m not obsessed or anything.

1 Like

Also interesting, here’s a 5-channel waveform.

1 Like

Absolutely love Linux.

My audio player is cmus and I use cli-visualizer as well.

5 Likes

I really need to play around with cmus. Curses based interface for streamers are the way to go!

1 Like

My file explorer froze.
The joy of having to do… “sudo kill -9 2020.

Edit: Like, shutting down the year, not… killing more people. :grimacing:

7 Likes