[Joke] What to do when the invalid sample rate is reached when using Mixxx on Ubuntu 20.04

environment

Event that occurred

--It works fine as a USB midi device, but there is no sound from the headphone jack of MixTrack Pro 2. --No sound from applications other than Mixxx from the headphone jack of MixTrack Pro2 --Invalid sample rate error occurs when trying to output sound from the headphone jack of MixTrack Pro 2 in the sound device settings.

Error opening "MixTrack Pro 2: USB Audio (hw:1,0)"
Invalid sample rate 

What I tried

--Check if lsusb recognizes MixTrack Pro2 --If snd-usb-audio is not loaded by lsmod, load it manually ([Source so far](https://www.linuxquestions.org/questions/linux-hardware-18/usb-soundcard-numark-] mixtrack-pro-2-does-not-work-4175612190 /)) --Start mixxx after changing the environment variable to use plughw without using HW of ALSA (Source)

$ sudo modprobe snd-usb-audio
$ export PA_ALSA_PLUGHW=1
$ pasuspeder mixxx  #pasuspender temporarily stops PulseAudio while Mixxx is running

Persistence

--Add `snd-usb-audio``` to / etc / modules and load kernel modules at boot time --Added alias mixxx ='export PA_ALSA_PLUGHW = 1 && pasuspender mixxx' `` to ~ / .bashrc --Changed the "Exec =" line in ~ / .local / share / applications / mixxx.desktop to ``` sh -c'export PA_ALSA_PLUGHW = 1 && pasuspender mixxx'

Recommended Posts

[Joke] What to do when the invalid sample rate is reached when using Mixxx on Ubuntu 20.04
ParseException: What to do when Unparseable date is reached
[Ubuntu 20.04] What to do if the external monitor is not recognized
[IOS] What to do when the image is filled with one color
Notes on what to do when EC2 is set up with t2.micro
What to do when is invalid because it does not start with a'-'
What to do when The SSL certificate has expired
What to do when booting Ubuntu on WSL2 and getting "Process terminated with code 1"
What to do when "Fail to load the JNI shared library" is displayed in Eclipse
What to do if audio is not available on discordrb
What to do if a SAX Parser error occurs when using Liferay 7 / DXP on AWS
What to do when Rails on Docker does not reflect controller changes in the browser
[Rails] What to do when the view collapses when a message is displayed with the errors method
What to do when you want to know the source position where the method is defined in binding.pry
What to do if the app is not created with the latest Rails version installed when rails new
What to do when javax.el.ELException: Not a Valid Method Expression: appears when the JSF screen is displayed
What to do when the changes in the Servlet are not reflected
What to do if Cloud9 is full in the Rails tutorial
What to do if the Eclipse Maven dependency Jar is wrong
What to do when javax.batch.operations.JobStartException occurs
What to do if Operation not permitted is displayed when you execute a command in the terminal
What to do if the background image is not applied after deployment
What to do if the prefix c is not bound in JSP
What to do when CentOS cannot be started with VirtualBox on Catalina
What to do when "npm ERR! Code ENOSELF" is displayed after npm install
What to do when Blocked Host: "host name" appears in Ruby on Rails
[Docker] How to build when the source code is bind-mounted on the container
What to do if tomcat process remains when tomcat is stopped in eclipse
What to do when "call'Hoge.connection' to establish a connection" appears on rails c
Notes on what to do when a WebView ClassNotFoundException occurs in JavaFX 12
[Rails] What to do when the Refile image is not displayed when writing the processing at the time of Routing Error
What to do when a javax.el.PropertyNotWritableException occurs
What to do if you get an "A server is already running." Error when you try to start the rails server
How to change the timezone on Ubuntu
What to do if you install Ubuntu
What to do when undefined method ʻuser_signed_in?'
What to do when you want to delete a migration file that is "NO FILE"
What to do when the value becomes null in the second getSubmittedValue () in JSF Validator
What to do when rails db: seed does not reflect in the database
[Grails] Error occurred running What to do when the Grails CLI does not start
[Swift] What to do if the app icon is set but not reflected
Androd: What to do about "The Realm is already in a write transaction in"
What to do when "Nil location provided. Can't build URI." Appears on CarrierWave
What to do if the rails server doesn't run out on AWS cloud9
[Ubuntu] What to do when MongoDB cannot be started due to a SocketException error
A memo of what I did from a blank state to searching for characters using the "grep command" on "Ubuntu"
Using JUnit from the command line on Ubuntu
What to do if the server tomcat dies
Tips for using the Spotify app on Ubuntu
What to do when debugging "Source not found"
What do you use when converting to String?
What to do when IllegalStateException occurs in PlayFramework
[React.useRef] What to do when the latest state cannot be referenced in the event listener
After installing'devise''bootstrap' of gemfile with rails, what to do when url is an error
What to do when rbenv says that there is no readline or lib history
What to do if you get a NoClassDefFoundError when trying to run eclipse on Java9
The story that did not disappear when I tried to delete mysql on ubuntu
What to do when Address already in use is displayed after executing rails s
What to do if you get a port error when docker-compose up on Mac
How to fix the problem that the upper half is cut off when using UITabBar
What to do if the breakpoint is shaded and does not stop during debugging