You are not logged in.
It should not be difficult to fix sound problems with "devuanpi". Start a new topic for it.
And a new topic for this:
the alsa plugin would only function for regulating the volume
If you are not a masochist, you may better try MATE Desktop.
To make a copy of "asoundrc", run
cp -v $HOME/.asoundrc $HOME/.asoundrc-copy1"-v" means "verbose"
Check the result
ls -a ~/ | grep asoundTo replace "asoundrc" with another one (named, for example, "asoundrc-copy2"), run
cp -v $HOME/.asoundrc-copy2 $HOME/.asoundrcTo read, edit, or create a text file, you may try commands like these:
mousepad $HOME/.asoundrcmousepad $HOME/.asoundrc-copy2alsamixer:
alsamixer -c <Name of the card (id)>Try
alsamixer -c Headphonesalsamixer -c vc4hdmi0alsamixer -c vc4hdmi1speaker-test:
speaker-test -D hw:<Name of the card (id)>,0 --channels 2Try
speaker-test -D hw:Headphones,0 --channels 2speaker-test -D hw:vc4hdmi0,0 --channels 2speaker-test -D hw:vc4hdmi1,0 --channels 2The very old versions of "alsamixer" did allow to select a card, but to start "alsamixer", you had to use the name of card (or number), for example:
alsamixer -c 0alsamixer -c PCHYes, of course. It was his infamous article in LWN.net about Linux audio.
"Pulse my audio" was a response to that article:
I was saving this one until this article became free on LWN.net. It's awesomeness is truly unparalleled.
Another post was about bug trackers:
One bug report to rule them all
Posted Monday, August 4, 2008 @ 1:32 PM. ? FLAMES
Whatup y'all. I hope I haven't worn out all those refresh buttons on your browsers. Just because I don't post for a few days, y'all want to declare the death of this blog? You wish.
Anyways, today I'm talkin' about one of the community's crown jewels: bug trackers. We've heard it all before. Open bug tracking increases collaboration, transparency, and saves lives of poor, hungry children, etc.
But guess what? take a look at the bug trackers out there. They're mostly full of hogwash. Most of the bug reports go something like this...
Johnny User writes...
Hi. I'm trying to use ellipticaljerk-0.3.2, but my speakers make a farting sound when I click the jerk button. Then it crashes. Is this a bug?
Sammy Developer writes...
Hi Johnny. The jerk button works for me.
Bug status updated: CLOSED - USER ERROR
Sally User writes...
I'm also seeing this problem. These farting noises suck.
Bug status updated: REOPENED
Sammy Developer writes...
Ok, fine. Could you give me some more information? A backtrace maybe?
Johnny User writes...
What's a backtrace?
Sammy Developer writes...
It tells me where the problem is. You need to make sure you have debugging symbols installed. Also please tell me which compiler, which glibc, and which libjerk you are using.
Johnny User writes...
What are debugging symbols? How do I figure out all this information?Sally User writes...
Johnny, I know what Sammy is asking for. Here's the info:
gcc-4.1.3 glibc-2.5.1 libjerk-0.8a backtrace: : :Sammy User writes...
Thanks Sally. Except that I can't reproduce this bug. But I'm using glibc-2.5.2 beta and libjerk-cvs
Sally User writes...
I don't know how to use the versions you talk of. And besides, this is how it behaves on Ubuntu. I don't care about how it works on your computer. It is broken in Ubuntu Masturbating Monkey.
Joe User writes...
OMG, I'm so glad I found this report. I think I have a related problem. I'm
trying to play videos using mplayer for my wife, but she farts in my face
everytime I have to look at the man page to remember the options. Here's my
xorg.conf. Could you help me?: : (A huge long xorg.conf that makes a bug page a huge pain to navigate) : :Sammy Developer writes...
Joe, you need to file a separate bug for that.
Johnny User writes...
When will this bug be fixed? I thought Open Sauce meant that if I report the bug, it'll get fixed
Sammy Developer writes...
Johnny, I can't reproduce it. Feel free to send me a patch
(a few months later) Sammy Developer writes...
Upstream libjerk-0.9 fixes this problem.
Bug status updated: FIXED
(6 months later) Johnny User writes...
I just updated to Ubuntu Naughty Nutgoblin, and this broke again...
Sammy Developer writes...
It works for me. It must be Ubuntu's fault. I don't know what patches they
apply, so please file a bug with them.Bug status updated: WON'T FIX
Joe User writes...
What about my bug? Will you please fix it? My wife is still farting at me.
Yep. That sounds about right to me. Open bug trackers are filled with so much noise that there's a constant call for "triagers", which really are zealous volunteers suckered into cleaning out the accumulated crap.* Meanwhile, all the noise hides the real issues, causes developers to get frustrated, and slows progress. It's no wonder companies rarely open up their bug trackers. If you do, you're just asking for it.
I stopped filing bugs long ago. If you're gonna ask me to do it for free, you should at least make sure it's worth my time.
Bug trackers can be useful tools to coordinate work between competent developers and testers who speak the same language, and who work within a well-design development workflow. But as a mechanism to collect problem reports from clueless non-technical users, they FAIL in the EPIC manner. So y'all need to stop acting as if an open bug tracker is some crazy new innovation that is going to make FOSS better than all other software. I bet these things slow you down as much as they help.
* by the way, the idea that just anyone can effectively triage bugs is a huge load of crap as well. Anyone who has worked at a real software company writing huge complex software will tell you the same.
2008 was the year Ubuntu was infected with pulseaudio.
_https://daemonforums.org/showthread.php?t=2099
Originally Posted by _http://linuxhaters.blogspot.com/2008/10/pulse-my-audio.html
Thursday, October 2, 2008Pulse my audio
I was saving this one until this article became free on LWN.net. It's awesomeness is truly unparalleled.
Let me attempt to summarize.
A) PulseAudio needs to work with existing applications, so it implements an ALSA emulation layer, except, it's not complete. Only 70% of ALSA applications work. So it's like, totally ready.
B) So, in the true open source fashion, you should port your app to be a native PulseAudio client. Except that you can't. There's this yet-another-audio-library called libsidney, but it's not ready yet. (Hmm, this sounds familiar...)
C) Fedora led the way in incorporating PulseAudio before it was ready, breaking audio for thousands of users. Then because open source is about copying good ideas and bad ones, a ton of other distros adopted it as well. Amazing guys. In a way, you've spread bad code that breaks audio on thousands of computers faster than a virus could have. And it's immune to antivirus!
D) so now that we're in this "mess" (as the lead developer of PulseAudio calls it*), LSB comes along and says "we're going to standardize how your write audio apps!" Oh, but wait, ALSA's now "old" (we hardly knew ye), and I can't directly program PulseAudio. Hmm... So the article's brilliant solution? Standardize on the PulseAudio-safe subset of ALSA.
WHAT THE FUCK.
I can just imagine the future alsa man page. A big listing of functions, with a nice little asterisk next to those functions that you shouldn't use unless you want your app to totally FAIL on a system which has been sodomized by Pulse Audio. I can just see the developers of commercial Linux sound apps (all three of them) jumping for joy.
And thus unfolds another chapter in long history of failed sound systems on Linux. Can they make it much worse? I, for one, am excited to see how much worse they can make it until we all go back to listening to square waves on our PC speakers.
* BTW, also notice that it's the PulseAudio guy calling Linux audio a mess. Did he forget that it was his project that took the existing mess, and unloaded a giant steaming turd on it? Congratufuckinglations. You've just made it worse. You're a truly a worthy OSS contributor.
so most probably pulseaudio is interfering
Yes. It should be removed.
For other devices the content of $HOME/.asoundrc should be like this:
defaults.pcm.!card vc4hdmi0
defaults.ctl.!card vc4hdmi0
defaults.pcm.!device 0
defaults.ctl.!device 0or like this:
defaults.pcm.!card vc4hdmi1
defaults.ctl.!card vc4hdmi1
defaults.pcm.!device 0
defaults.ctl.!device 0Run
speaker-test --channels 2It should play "pink noise" to the current default device (set in $HOME/.asoundrc )
To free all audio devices, run
fuser -kv $(find /dev/snd -type c 2>/dev/null)NOTE: It may not work with pulseaudio
To verify, run
fuser -av $(find /dev/snd -type c 2>/dev/null)Run
mousepad $HOME/.asoundrcCopy and past 4 lines:
defaults.pcm.!card Headphones
defaults.ctl.!card Headphones
defaults.pcm.!device 0
defaults.ctl.!device 0Save it.
Run
cat $HOME/.asoundrcIt should look like this:
$ cat $HOME/.asoundrc
defaults.pcm.!card Headphones
defaults.ctl.!card Headphones
defaults.pcm.!device 0
defaults.ctl.!device 0Run
speaker-test --channels 2It should play "pink noise" to the default device (Headphones)
Do you want to know how to create $HOME/.asoundrc with a text editor?
Do you have a text editor?
sudo apt install mousepadCan you create a text file (two lines) with a text editor such mousepad, pluma, and the like?
If you can, it should not be a problem to create a simple ALSA config.
Do you want to use pulseaudio, or it can be removed?
Post the output of these commands:
fuser -av $(find /dev/snd -type c 2>/dev/null)inxi -Acat /proc/asound/cardsYes. To avoid troubles, one has to use the names.
$ cat /proc/asound/cards
0 [system ]: USB-Audio - iMic USB audio system
Griffin Technology, Inc iMic USB audio system at usb-0000:00:1a.0-1.3.4, full s$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: system [iMic USB audio system], device 0: USB Audio [USB Audio]
Subdevices: 1/1
Subdevice #0: subdevice #0Card number: 0 Name: "system"This is config generated by arateconf:
$ cat $HOME/.asoundrc
# ALSA library configuration file managed by arateconf.
#
# MANUAL CHANGES TO THIS FILE WILL BE OVERWRITTEN!
#
# Manual changes to the ALSA library configuration should be implemented
# by editing the ~/.asoundrc file, not by editing this file.
#=====================================================
# Configuration for system
#-----------------------------------------------------
# Perform dmixer
pcm.dmixer
{
type dmix
ipc_key 1024
ipc_perm 0666
hint
{
show off
description "Direct mixing of multiple audio streams"
}
slave
{
pcm "hw:system,0"
rate 48000
channels 2
format S16_LE
period_size 1920
buffer_size 7680
}
}
# Perform dsnooper
pcm.dsnooper
{
type dsnoop
ipc_key 1025
ipc_perm 0666
hint
{
show off
description "Recording from the same device for several applications simultaneously"
}
slave
{
pcm "hw:system,0"
rate 48000
format S16_LE
period_size 1920
buffer_size 7680
}
}
# Perform duplex
pcm.duplex
{
type asym
playback.pcm "dmixer"
capture.pcm "dsnooper"
hint
{
show off
description "Full duplex for simultaneous playback and recording"
}
}
# Perform convert
pcm.convert
{
type rate
converter fftrate
hint
{
show off
description "Sample rate converter"
}
slave
{
pcm "duplex"
rate 48000
format S16_LE
}
}
#=====================================================
# Configuration for default audio device
#-----------------------------------------------------
# Perform plug device
pcm.!default
{
type plug
slave.pcm "convert"
hint.description "Default device"
}No need to re-start ALSA, if you change (or create) ~/.asoundrc
If sound quality does not matter, a simple config might be a solution.
You may need to reload ALSA, if you remove pulseaudio or pipewire.
Can you create two ALSA configs (with different default devices) with arateconf?
For example:
1. Create a config with arateconf and save it.
2. Open it with a text editor a save a copy of it, for example:
pluma $HOME/.asoundrc mousepad $HOME/.asoundrc echo $HOME3. Create another config and save a copy of it.
If you do not like my solution, you may try something like this :
One united default PCM for two cards, or TwoCardsAsOne
_https://unix.stackexchange.com/a/295050
_https://unix.stackexchange.com/a/194631
Have you tested this method?
It works without problems.
If a problem occurs, the user can restart mpv player.
If you have two ALSA configs with different default devices, you can toggle them with a mouse click. What is needed is a simple bash script and a Desktop launcher.
Example is here:
_https://dev1galaxy.org/viewtopic.php?pid=57177#p57177
It was designed for a Linux Mint user who wanted to switch from a Bluetooth headphones to Intel HDA codec (and other way round) with a mouse click.
The magic commans:
cp $HOME/.asoundrc-BT $HOME/.asoundrc
cp $HOME/.asoundrc-HDA $HOME/.asoundrc cp means "copy".
$ alsamixer -h
Usage: alsamixer [options]
Useful options:
-h, --help this help
-c, --card=NUMBER sound card number or id
-D, --device=NAME mixer device name
-m, --mouse enable mouse
-M, --no-mouse disable mouse
-f, --config=FILE configuration file
-F, --no-config do not load configuration file
-V, --view=MODE starting view mode: playback/capture/all
Debugging options:
-g, --no-color toggle using of colors
-a, --abstraction=NAME mixer abstraction level: none/basicYou are avoiding to answer the question, because you are not going to take any responsibility for your statements, because you cannot trust them.
EDIT:
Would you trust a security expert who does not trust his senses and his ability to think?
If you do not trust your senses and your ability to think, your statements can be dismissed as lunatic ravings or a sort of bullshit.
1. If ALSA is so good, why do you need pulseaudio or pipewire?
2. Do you trust your senses and your ability to think?
There was no need to know that there was a sound system, because it worked out of the box. But with ALSA, one has to learn something.
Pulseaudio was created to fix problems with ALSA.
Pipewire was created to fix problems with pulseaudio.
The problems began with ALSA, because it is "advanced".
APT is also "advanced".
Advanced Package Tool (APT)
APT was originally designed as a front end for dpkg to work with Debian's .deb packages.
_https://en.wikipedia.org/wiki/APT_(software)#Variants
I first started using Debian in 2000
Did you have problems with sound and sound quality in 2000? Or it worked out of the box?
If you cannot compile, you may try Ubuntu debs from PPA
_https://launchpad.net/~kicad/+archive/ubuntu/kicad-9.0-releases
DEBs:
_https://launchpad.net/~kicad/+archive/ubuntu/kicad-9.0-releases/+packages
_https://ppa.launchpadcontent.net/kicad/kicad-9.0-releases/ubuntu/pool/main/k/
_https://ppa.launchpadcontent.net/kicad/kicad-9.0-releases/ubuntu/pool/main/k/kicad/kicad_9.0.3-0~ubuntu24.10.1_amd64.deb
Deb packages can be repacked and renamed without compilation.
You may also try to compile:
$ dget --extract --allow-unauthenticated https://launchpad.net/ubuntu/+archive/primary/+sourcefiles/kicad/9.0.3+dfsg-1/kicad_9.0.3+dfsg-1.dsc
dget: retrieving https://launchpad.net/ubuntu/+archive/primary/+sourcefiles/kicad/9.0.3+dfsg-1/kicad_9.0.3+dfsg-1.dsc
...
dpkg-source: info: extracting kicad in kicad-9.0.3+dfsg
dpkg-source: info: unpacking kicad_9.0.3+dfsg.orig.tar.xz
dpkg-source: info: unpacking kicad_9.0.3+dfsg.orig-doc.tar.xz
dpkg-source: info: unpacking kicad_9.0.3+dfsg-1.debian.tar.xz
dpkg-source: info: using patch list from debian/patches/series
dpkg-source: info: applying fixes/Adjusting-content-in-the-desktop-files.patch
dpkg-source: info: applying reproducibility/doc-Add-field-revdate-to-asciidoc-files.patch
dpkg-source: info: applying debian-hacks/KiCadFullVersion-Drop-hyphen-in-the-string.patch
dpkg-source: info: applying fixes/demos-Adjust-MIME-encoding-to-UTF8-of-some-libraries.patch
dpkg-source: info: applying fixes/python-Use-raw-strings-expressions.patch$ ls -1
kicad-9.0.3+dfsg
kicad_9.0.3+dfsg-1.debian.tar.xz
kicad_9.0.3+dfsg-1.dsc
kicad_9.0.3+dfsg.orig-doc.tar.xz
kicad_9.0.3+dfsg.orig.tar.xzRead the Build-Deps:
cat kicad-9.0.3+dfsg/debian/controlInstall the Build-Deps
Rename the package (in debian/control)
Rename the binary
$ cat kicad-9.0.3+dfsg/CMakeLists.txt | grep project\(
project( kicad )cd to SourceDir
cd kicad-9.0.3+dfsgAnd compile it with
dpkg-buildpackage -us -uc -bYou may also want to read the manual:
_https://wiki.debian.org/CreatePackageFromPPA
/usr/local/bin is the standard solution.
cmake -D CMAKE_INSTALL_PREFIX=/usr/local < + other options: -S (sourcedir), etc.>However, debhelper (Devuan) does not permit /usr/local/bin (by default).
Though, there is a secret esoteric command to force debhelper to permit prefix=/usr/local
In any case, it is much easier to package it manually, or with CPack .
You may want to rename the deb package, and ProjectName
project( ) is inside CMakeLists.txt
To compile it, you need cmake and ninja
Portable CMake is available here:
_https://github.com/Kitware/CMake
Portable Ninja is available here:
_https://github.com/ninja-build/ninja
PKGBUILD:
build() { cmake \ -B build \ -S "$pkgname" \ -G Ninja \ -D CMAKE_BUILD_TYPE=Release \ -D CMAKE_INSTALL_PREFIX=/usr \ -D KICAD_USE_EGL=ON \ -D KICAD_USE_BUNDLED_GLEW=OFF \ -D KICAD_BUILD_I18N=ON \ -D KICAD_I18N_UNIX_STRICT_PATH=ON \ -D KICAD_BUILD_QA_TESTS=OFF \ -D KICAD_USE_CMAKE_FINDPROTOBUF=0 \ -W no-dev cmake --build build } package() { DESTDIR="$pkgdir" cmake --install build strip "$STRIP_SHARED" "${pkgdir}"/usr/lib/python*/site-packages/_pcbnew.so }_https://archlinux.org/packages/extra/x86_64/kicad/
_https://gitlab.archlinux.org/archlinux/packaging/packages/kicad
_https://gitlab.archlinux.org/archlinux/packaging/packages/kicad/-/blob/main/PKGBUILD?ref_type=heads
EXAMPLE for cmake+ninja
_https://dev1galaxy.org/viewtopic.php?id=7175
Perhaps, you failed to compile something with CMake. Was it keypassXC ?
Is it about sour grapes?
_https://read.gov/aesop/005.html
Do you think that it is the simplest solution?
You may not use your gksu.sh with file. mediainfo, and the like.
So that, one desktop launcher, and one script which can be modified for the current needs.
You can simply uncomment the command you need.
NOTE: Filenames and paths with spaces should be supported.
If it is about security, then
Exec=gksu.sh /usr/bin/apt-get install %fLinux Mint has two different apt
/usr/bin/apt
/usr/local/bin/apt_https://github.com/linuxmint/mintsystem/blob/master/usr/local/bin/apt
Terminal=true
This is not acceptable. It should be like this:
Terminal=falseTerminal should be opened by a bash script named, for example, "deb_installer".
Terminal should remain open after apt-get exits, for it might be needed to fix problems. It should be under your control.
Paths with spaces should be supported.
USAGE: Right click on a deb file and select "deb_installer". It opens a terminal, and runs sudo /usr/bin/apt-get install <path to your deb> on it.If you do not know how to open terminal from bash script and run commands on it, you may try to think. It is not difficult, if you trust your ability to think.
The complexity level of this problem is, let us say, "Ubuntu newbie".
Hint: mate-terminal -e <command>
If you pretend to be more intelligent than AI, you may try to solve this problem.
There are many experts on security, on sound, on ALSA, and on everything else, who cannot write a simple script and cannot compile anything. Such "universal experts", as a rule, have affinity to censorship. This affinity can manifest in various ways, from individual tendencies to participate in online content moderation to governmental actions that suppress certain forms of speech.
Because of pulseaudio, systemd, and pipewire, many users left Linux. As a result, the percentage of "universal experts" on Linux forums has significantly increased. They know little about Linux, but they can censor everything.
The problem is that such "universal experts" tend to overestimate their knowledge and underestimate their ignorance. To protect their overblown ego from the reality that challenges it, they have to censor everything they do not understand. That is why, they often attempt to censor jokes. For the same reason, they hate AI and strive to abolish it. Though there might also be economic reasons for AI hate. The "universal experts" may feel that they can be replaced by AI in the same way as Luddites were replaced by machines during the Industrial Revolution. They have to fear AI, because they do not trust their ability to think. To be enslaved by fear, one must relinquish trust in his God-given ability to think.
NOTE: The ability to think is a gift from God. However, if you trust the gifts from God, the Trotskyists and pseudo-Buddhists may diagnose you with "delusional arrogance on steroids".
Pseudo-Buddhism is a religion for slaves who can be replaced by AI. In contrast, authentic Buddhism emphasizes personal responsibility, ethical conduct, critical thinking, and the pursuit of wisdom. Critical thinking, exemplified in teachings like the Kalama Sutta, encourages independent inquiry rather than blind faith, while wisdom, the ultimate goal, is developed through a combination of ethical living and mental discipline.
If you don't trust your ability to think, the gift from God, you are a slave of the Devil.
If you do not know how to write such script (that is, a GUI-less substitute for gdebi, a sort of timesaver), you may try to think.
The same method can be used to run media files with CLI aps, e.g., aplay, mplayer, ffplay and the like, or with scripts (e.g, to resample waves with pcm_conv).