GNU/LINUX@AUDIO ~ /Wiki $ Howto.Info

Mission statement, forum posting guides, and our vision for LM.

Moderators: MattKingUSA, khz

Post Reply
User avatar
khz
Established Member
Posts: 1648
Joined: Thu Apr 17, 2008 6:29 am
Location: German
Has thanked: 42 times
Been thanked: 91 times

GNU/LINUX@AUDIO ~ /Wiki $ Howto.Info

Post by khz »

    • Warm welcome to the LM Forum. Have a good conversation/... and/or/... share your knowledge/.. . Don't ask if you may ask anything, ask your question.
      The first ~5 posts from a new user in this forum will be unlocked manually by the moderators, this is our additional spam protection.
      Since we are not always online, there may be delays between the creation of the post and the activation by a moderator.
      We ask for your understanding! Thank you very much.
      <The forum has a 'report this post' button that you can use to call for moderator attention and also a 'Thanks for post' button.> With this you can actively co-moderate -shape the forum. In addition, you can under viewforum.php?f=10 your wishes/criticism/... express. ... You are LM!
      The sound, the rhythm and the space in between makes the music! :D
      We are not perfect. ^^

:arrow: Different cultures, language misunderstandings, technical misunderstandings, ... . And we musicians may think too perfectly in the realization. ;-)
Our Mission Statement, Values, and Vision - viewtopic.php?f=26&t=271; Forum Posting Guidelines - viewtopic.php?f=26&t=270

Linux is talkative. No panik! 42@--all
>> The kernel contains the Modules (= drivers). Current kernel == current/additional Modules (= drivers). <<

A) # You have installed the unfree drivers (AMD/Nvidia( && RT~?)/WIFI/...) and the Processor microcode? If not then install as needed.
If "dmesg" something indicates, then install the missing packages.

Code: Select all

Yours@LAW/DAW ~ $ dmesg | grep failed
B) Console: Use the tab key - press 2 times in a row - to complete the path or program name.
Help:

Code: Select all

Yours@LAW/DAW ~ $ man program_name
Yours@LAW/DAW ~ $ program_name --help
C) If there are problems, start the appropriate $program from the console.
Read error messages.

Code: Select all

Yours@LAW/DAW ~ $ program_name
D) killall - kill processes by name

Code: Select all

Yours@LAW/DAW ~ $ killall -9 program_name

####
>> Regular, (automatic) update of the distribution is important! <<
>> Use a good root password! <<
####


<< How much RT optimization is still needed? >> viewtopic.php?p=121734#p121734 >>


  1. Gentoo
    1. make.conf >> https://wiki.gentoo.org/wiki//etc/portage/make.conf
    2. USE_flag >> https://wiki.gentoo.org/wiki/USE_flag
    3. Portage & Overlays >> https://gpo.zugaina.org/Overlays
    4. Device driver Check page >> https://kmuto.jp/debian/hcl/
  2. Linux audio workstation
    1. How do I get an out-of-the-box working Linux audio workstation? >> https://wiki.linuxaudio.org/wiki/system_configuration
  3. Real-Time
    1. Real-Time related information, articles, distributions, etc. >> https://wiki.linuxaudio.org/wiki/real_time_info
    2. Welcome to the Linux Real Time Manual. >> http://linuxrealtime.org/index.php/Main_Page
    3. Latency: Myths and Facts. Part 3: A look at a quantitative study >> https://thecrocoduckspond.wordpress.com ... ive-study/
    4. FAQ_and_Myths >> https://github.com/jackaudio/jackaudio. ... -and-myths
    5. JACK Latency tests >> https://wiki.linuxaudio.org/wiki/jack_latency_tests
    6. xruncounter.c >> https://github.com/Gimmeapill/xruncounter >> viewtopic.php?p=81037#p81037, compile >> viewtopic.php?p=100500#p100500
    7. Packages of your distribution. ~Example >> https://gpo.zugaina.org/sys-kernel/rt-sources
    8. rtirq >> https://wiki.linuxaudio.org/wiki/system ... tion#rtirq
    9. jackfreqd >> https://gareus.org/oss/jackfreqd/start
    10. music-daw >> viewtopic.php?p=121543#p121543 >> https://github.com/joao4linux/music-daw
    11. Disabling the irqbalance daemon >> https://access.redhat.com/documentation ... ss_binding
    12. Disabling GNOME Tracker >> https://blog.larskasper.de/2017/11/23/t ... bschalten/, https://gist.github.com/vancluever/d34b41eb77e6d077887c
    13. Timers >> http://wiki.linuxaudio.org/wiki/system_ ... ion#timers
    14. rtmidi >> https://github.com/thestk/rtmidi
    15. Both Jack1 and Jack2 uses shm (RAM-backed storage) by default. Verifiable with: "du -h /dev/shm/*", "df -h | grep shm", "ls -alFh /dev/shm", "mount | grep shm" >> https://wiki.linuxaudio.org/wiki/system ... ilesystems. Resizing is possible by "size=" >> viewtopic.php?p=93108#p93108
  4. Linux && Audio --help
    1. JACK – A Beginners Guide to Getting Started with JACK >> https://linuxaudio.github.io/libremusic ... -jack.html; https://web.archive.org/web/20200811001 ... -jack.html
      1. FAQ: what are the differences between JACK 1 and JACK2 >> https://github.com/jackaudio/jackaudio. ... -and-jack2
    2. The Linux Audio Anatomy >> https://thecrocoduckspond.wordpress.com ... o-anatomy/
    3. Workflow >> https://linuxaudio.github.io/libremusic ... kflow.html; https://web.archive.org/web/20200823151 ... kflow.html
    4. How Linux Audio Works vs. Windows Audio in 2017 >> https://www.learndigitalaudio.com/how-l ... audio-2017
    5. From Windows to Linux >> https://hlubenow.lima-city.de/winlin.html
    6. How do I prepare Manjaro KDE for audio production? >> https://www.youtube.com/watch?v=vgrqMv3Lzfk
    7. Compiling Software from Source on Linux >> https://hlubenow.lima-city.de/compiling.html
    8. Getting Started with Music Production on Linux >> https://hlubenow.lima-city.de/linux_audio.html
    9. Linux Audio Overview >> https://wiki.linuxaudio.org/wiki/linux_audio_overview
    10. Stop Pulseaudio/Pipewire temporarily >> viewtopic.php?p=103154#p103154
    11. Understanding recording hardware >> https://linuxaudio.github.io/libremusic ... dware.html; https://web.archive.org/web/20200811020 ... dware.html
    12. Linux Hardware support >> https://wiki.linuxaudio.org/wiki/hardware
    13. Thunderbolt >> https://wiki.archlinux.org/index.php/Thunderbolt
    14. Linux Audio User FAQ (Frequently Asked Questions) >> https://wiki.linuxaudio.org/faq/start
    15. Things and Stuff Wiki - Audio setup >> https://wiki.thingsandstuff.org/Audio_setup
    16. Multiple Soundcards/Interfaces >> viewtopic.php?p=95025#p95025
    17. Jack Resampling with q0 ... q4? >> viewtopic.php?p=96511#p96511
    18. NetJackTrip >> viewtopic.php?p=95720#p95720
    19. Sonoj 2019: Past, Present and Future of the JACK Audio Connection Kit >> https://www.youtube.com/watch?v=Zpvkn8DOScI
    20. alsa-midi-latency-test >> https://github.com/koppi/alsa-midi-latency-test
    21. jack_midi_latency >> https://github.com/x42/jack_midi_latency
  5. Audio Software
    1. Linux Audio and Sound - Application and Software Index >> https://wiki.linuxaudio.org/apps/start
    2. A list of software and resources for professional audio/video/live events production on Linux.
      >> https://github.com/nodiscc/awesome-linuxaudio
    3. Linux Digital Audio and Music Workstation Comparison Matrix >> https://docs.google.com/spreadsheets/d/ ... edit#gid=0
    4. Just some of the software synthesizers available for linux. >> http://linuxsynths.com/index.html
    5. Linux Music Rocks >> http://linuxmusic.rocks/
    6. JACK/LV2 CV >> viewtopic.php?p=112242#p112242
    7. Things and Stuff Wiki - Audio >> https://wiki.thingsandstuff.org/Audio
    8. Quarterly Release Pact >> https://libreav.org/updates
    9. Software >> https://libreav.org/software
    10. VST/VSTi Plugins For Linux >> http://linux-sound.org/linux-vst-plugins.html
    11. This is a collection of some VSTs tested under Linux with Wine and LinVst >> https://github.com/Sangeppato/wine-vst
    12. LinVST - working plugs / libraries you use for compatibility (March 2019) >> viewtopic.php?p=103495#p103495
    13. Exhastive List of Free Native Linux Plugins >> viewtopic.php?p=112661#p112661
    14. kvraudio search >> https://www.kvraudio.com/plugins/linux/ ... are/newest
  6. Manual Wiki
    1. Welcome to the Linux Audio Wiki >> https://wiki.linuxaudio.org/wiki/start
    2. AV Linux User Manual >> http://bandshed.net/pdf/
    3. KXStudio Manual >> https://wiki.linuxaudio.org/wiki/kxstudio_manual
    4. Ubuntu Studio Audio Handbook >> https://help.ubuntu.com/community/Ubunt ... ioHandbook
    5. Bullseye with KDE Audio Workstation install guide >> viewtopic.php?p=129228#p129228
    6. A Pro Audio Tuning Guide for Ubuntu (and other Ubuntu/Debian-based distros) >> https://github.com/ElizabethHarmon/UbuntuProAudio
    7. A Pro Audio Tuning Guide for Manjaro (and other Arch-based distros) >> https://github.com/ElizabethHarmon/ManjaroProAudio
    8. Professional audio >> https://wiki.archlinux.org/index.php/Professional_audio
    9. Linux Documentation Project - The Linux MIDI-HOWTO >> http://www.tldp.org/HOWTO/MIDI-HOWTO.html
    10. The Penguin Producer >> http://www.penguinproducer.com/
    11. Things and Stuff Wiki - Audio >> https://wiki.thingsandstuff.org/Audio
    12. LV2 wiki >> https://github.com/drobilla/lv2/wiki
    13. Book about programming DSP algorithms >> viewtopic.php?p=108336#p108336
    14. LinuxQuestions - where Linux users come for help >> https://www.linuxquestions.org/questions/
    15. GNU/Linux Debian Users' Manuals >> https://www.debian.org/doc/user-manuals
  7. Community
    1. Linux musician's video meeting >> viewtopic.php?p=129803#p129803 >> https://fairmeeting.net/alinuxmusiciansvideomeeting
    2. Chat@IRC: #opensourcemusicians on libera.chat >> https://libera.chat/ >> http://opensourcemusician.com
    3. Linux Audio Social and Community Guide >> https://wiki.linuxaudio.org/wiki/places1
    4. Linux audio forums, IRC channels, mailing lists, and wikis >> https://wiki.linuxaudio.org/wiki/places2
    5. Linux User Groups >> https://en.wikipedia.org/wiki/Linux_user_group; https://linux-events.org/SL_LUGs
    6. Linux Audio Conference >> http://lac.linuxaudio.org/
    7. Sonoj Convention >> https://www.sonoj.org
    8. RSS-NEWS @Linux && Audio >> http://planet.linuxaudio.org/


####
# #KXStudio repository >> http://kxstudio.linuxaudio.org/Repositories
# Carla won't find VST >> viewtopic.php?p=98708#p98708
#
# Distributions >> https://wiki.linuxaudio.org/wiki/distributions
# Linux Audio Bundles and Distributions >> https://wiki.linuxaudio.org/apps/catego ... tributions
# Pro Audio Linux Distributions >> https://thecrocoduckspond.wordpress.com ... ributions/
# Search Distributions ([X] Multimedia) >> https://distrowatch.com/search.php#advanced
#
# Window managers and desktop environments for The X Window System >> http://www.xwinman.org/
#
## Le Biniou >> https://biniou.net/index.php
#
# rt-tests >> https://git.kernel.org/pub/scm/utils/rt-tests/;
# cyclictest - High resolution test program >> https://manpages.debian.org/testing/rt- ... .8.en.html;
# Using and Understanding the Real-Time Cyclictest Benchmark >> https://events.static.linuxfound.org/si ... ictest.pdf

#
# PowerTOP is a Linux tool to diagnose issues with power consumption and power management. >> https://01.org/powertop
#
# The Code: Story of Linux documentary >> https://archive.org/details/youtube-XMm0HsmOTFI
####



##

# If a hardware component is obsolete (for example CPU/GPU/...) and the desired program requires new/more technology/performance, the computer/operating system may experience problems. You can do magic with Linux, but you can't improve the hardware.
Use good hardware. :-)

##

# Compatible soundcards: Or use menuconfig to look directly in the kernel - you can also do this online albeit with an older kernel https://menuconfig.org .config - Linux/x86_64 4.17.3 Kernel Configuration
> Device Drivers > Sound card support > Advanced Linux Sound Architecture > PCI sound devices;
> Device Drivers > Sound card support > Advanced Linux Sound Architecture > USB sound devices;
> Device Drivers > Thunderbolt support.

##

Which kernel should be installed? You can install/uninstall multiple kernels using the package manager. The kernel to be started can be selected (and tested) in the boot manager (Grub/...).
Overview@Kernel Configuration

Code: Select all

linuxmusicians /usr/src/linux # make menuconfig

Code: Select all

General setup    ---> 
    Preemption Model (Preemptible Kernel (Low-Latency Desktop))    --->
 
( ) No Forced Preemption (Server)
( ) Voluntary Kernel Preemption (Desktop)
( ) Preemptible Kernel (Low-Latency Desktop)
(X) Complete Preemption (Real-Time)

Code: Select all

Processor type and features    --->
    Timer frequency (1000 HZ)    ---> 
    
( ) 100 HZ
( ) 250 HZ
( ) 300 HZ
(X) 1000 HZ
##

(I think one of many good possibilities of all this is that everyone is individual, depending on LAW focus(s), ... and hardware, the combinations of optimizations, distribution desktop selection,... relatively easy to implement.
Since there are - advantages and disadvantages at the same time - relatively many possible combinations, this can be tested out....:pcsuxx: ....
How well all the optimizations are coordinated with each other (or not)... .

Test individually and take what works best for you. Everything - amongst other things 100 % RT - does not have to be better.
It is good to go step by step. Then one recognizes the possible problem originator and can undo thereby the last made.
All audio optimizations are optional. There are several possibilities. It's about understanding and learning. Use the distribution that you personally like best and supports your hardware best as well as providing the software dependencies/needs best.
https://en.wikipedia.org/wiki/KISS_principle)

##

Image
Picture from: Ted's Linux MIDI Guide >> http://www.tedfelix.com/linux/linux-midi.html

##

# ==> Do you use a sound server? If so, which one? Several? >> viewtopic.php?f=27&t=18864

##
  • Jack is only magic when you have several
    • ..
    • DAW's
    • Audio/MIDI Programs
    • Audio/MIDI Intreface's
    • Intranet Audio/MIDI Intreface's / Jam
    • Internet Audio/MIDI Intreface's / Jam
    • ...
    would like/needed.
  • If all^this is not needed ALSA is the first choice
    • ..
    • direct access to&to Audio/MIDI Intreface's
    • no useless further programs
    • ...
    == 100% audio/MIDI performance.
  • Pulseaudio has been running in the background for a long time for all multimedia audio.
    • With ALSA everything ~automatically.
    • With Jack: Either stop pulseaudio or bridge it with a bridge, e.g. "pulseaudio-module-jack" ("a2jmididid" (Alsa2Jack MIDI)).
##

# Git Access https://qjackctl.sourceforge.io/qjackct ... s.html#Git
# Installation https://qjackctl.sourceforge.io/qjackct ... stallation
# start it as a user in the terminal without installing with:

Code: Select all

L@M ~/Path_to/qjackctl-git/src $ ./qjackctl
# or

Code: Select all

L@M ~ $ /home/USERNAME/Path_to/qjackctl-git/src/qjackctl
##

Instantly share code, notes, and snippets. For example, with: ##

# Differences between the individual operating systems >> viewtopic.php?p=95083#p95083

Linux != Windows (Linux is Not Windows) >> https://linux.oneandoneis2.org/LNW.htm

##

# For example: DeepL develops artificial intelligence for understanding and translating texts. >> https://www.deepl.com/translate

##

As an example Debian, but you can transfer to all other GNU/Linux distributions:
GNU/Linux Debian installing >> Linux Audio Workstation LAW >> viewtopic.php?p=92293#p92293

##

## !vote KLANG \o/ >> http://klang.eudyptula.org/
KLANG: A New Linux Audio System For The Kernel >> https://www.phoronix.com/forums/forum/s ... #post31568; PaulDavis >> https://www.phoronix.com/forums/forum/s ... post363357

##

### GNU Kind Communications Guidelines >> https://www.gnu.org/philosophy/kind-communication.html

##
  • GNU/Linux != freeware
: Please participate in some way (e.g. good documentation is so helpful!) to keep GNU/Linux alive and possibly even grow GNU/Linux^Audio! Thank you! :
  • GNU/Linux != wareZ
##

If you find outdated, further, new, ... entries you can report it immediately. You are invited to contribute. >> Wiki update >> viewtopic.php?p=98325#p98325

####
THX
####

###############################################
# ~Whatsapp >> https://matrix.org/blog/home/
# ~Twitter >> https://mastodon.social/about
# ~Facebook >> https://diasporafoundation.org/
# ~Youtube >> https://github.com/Chocobozzz/PeerTube
###############################################


#### Warriors of the Net >> https://archive.org/details/Hack_-_How_ ... fic_works_ ####
. . . FZ - Does humor belongs in Music?
. . GNU/LINUX@AUDIO ~ /Wiki $ Howto.Info && GNU/Linux Debian installing >> Linux Audio Workstation LAW
  • I don't care about the freedom of speech because I have nothing to say.
User avatar
khz
Established Member
Posts: 1648
Joined: Thu Apr 17, 2008 6:29 am
Location: German
Has thanked: 42 times
Been thanked: 91 times

Re: LINUX@AUDIO ~ /Wiki $ Howto.Info

Post by khz »

. . . FZ - Does humor belongs in Music?
. . GNU/LINUX@AUDIO ~ /Wiki $ Howto.Info && GNU/Linux Debian installing >> Linux Audio Workstation LAW
  • I don't care about the freedom of speech because I have nothing to say.
Post Reply