The officially official Devuan Forum!

You are not logged in.

#1 Re: Packaging for Devuan » different versions of same package, kicad » Yesterday 20:27:17

/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 (though there might be a "secret option").
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

#2 Re: Off-topic » Opinions about keypassXC » 2025-09-16 12:35:33

Perhaps, you failed to compile something with CMake. Was it keypassXC ?

Is it about sour grapes?
_https://read.gov/aesop/005.html

#3 Re: Freedom Hacks » apt seems to be a sort of "unstable wrapper" » 2025-09-15 15:47:39

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 %f

Linux Mint has two different apt

/usr/bin/apt
/usr/local/bin/apt

_https://github.com/linuxmint/mintsystem/blob/master/usr/local/bin/apt

greenjeans wrote:
Terminal=true

This is not acceptable. It should be like this:

Terminal=false

Terminal 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.

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.

#4 Re: Freedom Hacks » apt seems to be a sort of "unstable wrapper" » 2025-09-15 15:02:32

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).

#5 Re: Freedom Hacks » apt seems to be a sort of "unstable wrapper" » 2025-09-15 10:00:27

when packages get in a real mess it also lacks the full features of apt to unbreak things.

Since apt is a sort of "unstable wrapper", it may lacks the full features of apt-get to unbreak things.

#6 Re: Freedom Hacks » apt seems to be a sort of "unstable wrapper" » 2025-09-15 01:53:09

Why not a simple solution? A bash script with one command inside (as a substitute for gdebi).

For example:

mate-terminal -e <command>

To install a "local .deb" with dependencies, you can use apt or apt-get

A user-friendly GUI-less substitute for gdebi

1. a very simple bash script (e.g., three lines of code)

2. desktop launcher for this bash script

Right click on a deb file and select "install deb".
It opens a terminal, and runs sudo /usr/bin/apt-get install <path to your deb> on it.

It is much more user-friendly than gdebi

apt-get does not need a gui, it can be used as is.

#7 Re: Freedom Hacks » apt seems to be a sort of "unstable wrapper" » 2025-09-14 23:20:10

There are "security experts", who cannot write simple scripts, and cannot compile anything.

#8 Re: Freedom Hacks » apt seems to be a sort of "unstable wrapper" » 2025-09-14 22:45:01

Try "su" to root, then "apt" or "dpkg".

It seems that you do not know how to write a simple script.

#9 Re: Freedom Hacks » apt seems to be a sort of "unstable wrapper" » 2025-09-14 17:58:38

The standard solution:

1. bash script with one simple command inside

2. desktop launcher for it

Right click on a deb file and select "install deb".
It opens a terminal, and runs "sudo dpkg -i <your deb>" on it.

gksu is not needed.

"local .deb packages" can be installed with "dpkg" or with "apt" (together with dependencies, if available) similar to "gdebi".

#10 Re: Desktop and Multimedia » [SOLVED] devuan (fresh install) noticeably slow compared to debian » 2025-09-14 15:02:56

If your experiment cannot be reproduced it is a sort of myth.

Can you provide an exact step-by-step instruction how to reproduce your experiment?

#11 Re: Freedom Hacks » apt seems to be a sort of "unstable wrapper" » 2025-09-14 12:44:23

To create a useful GUI, one may need a secret esoteric knowledge of ergonomics.

What Are Principles of Ergonomics in UI Design?
_https://www.flowmapp.com/blog/qa/principles-of-ergonomics-in-ui-design

The interface should be designed taking into account the individual characteristics of the user, starting from their physical and cognitive abilities, and ending with their needs and goals.
_https://www.flowmapp.com/blog/qa/principles-of-ergonomics-in-ui-design

Another approach is to explain the user that Linux terminal may help against dementia.

Linux Terminal and Cognitive Health

Recent discussions have emerged regarding the potential cognitive benefits of using the Linux terminal and similar computing environments. While there isn't direct evidence linking Linux terminal usage specifically to dementia prevention, engaging with technology, including command-line interfaces, may contribute positively to cognitive health.

Cognitive Engagement and Technology Use

    Mental Stimulation: Using the Linux terminal requires problem-solving skills, critical thinking, and memory, which can help keep the brain active. Engaging in mentally stimulating activities is known to be beneficial for cognitive health.

    Learning New Skills: Mastering the Linux terminal involves learning new commands and scripting, which can enhance cognitive flexibility and adaptability. Continuous learning is associated with a lower risk of cognitive decline.

    Social Interaction: Many Linux users participate in online communities, forums, and collaborative projects. Social engagement is another factor that can help protect against dementia.

Related Research on Technology and Dementia

A study indicated that older adults who regularly used the internet had about half the risk of developing dementia compared to non-users. This suggests that regular engagement with technology, including potentially using the Linux terminal, could be beneficial for cognitive health.

Summary of Benefits

Aspect:    Potential Benefits
Mental Stimulation:     Enhances problem-solving and critical thinking
Learning Opportunities:    Promotes cognitive flexibility and adaptability
Social Engagement:    Builds connections and reduces isolation

Engaging with the Linux terminal can be a part of a broader strategy to maintain cognitive health, especially when combined with other healthy lifestyle choices. While more specific research is needed to establish a direct link between Linux terminal use and dementia prevention, the cognitive engagement it fosters is undoubtedly valuable.

One of the Seven Steps to Protect Your Cognitive Vitality is to keep learning and stimulating your brain throughout life. The internet has become a major source of information and a convenient method of communication via email, social media, and virtual meetings. In a recent study, older people who regularly used the internet had approximately half the risk of dementia compared to non-regular users of the internet.
_https://www.alzdiscovery.org/cognitive-vitality/blog/can-using-the-internet-protect-from-dementia
_https://www.alzdiscovery.org/cognitive-vitality/first-steps

The Linux terminal invokes a certain mode of thinking that helps to solve problems. The command-line interface (CLI) promotes a more structured and logical problem-solving approach by requiring users to be explicit and understand cause-and-effect relationships between commands and their outputs. This text-based interaction encourages a deep understanding of system operations, fosters skills in breaking down complex tasks, and develops a powerful efficiency in performing intricate operations that might be slower in a graphical interface.

#13 Re: Freedom Hacks » apt seems to be a sort of "unstable wrapper" » 2025-09-13 14:14:39

Do you know why cybernetics has always been hated by Trotskyists and pseudo-Buddhists?

According to cybernetics, the control mechanism must possess sufficient complexity to match or exceed the complexity (or "variety") of the system and its environment to maintain control and achieve desired outcomes. If the controller is less complex, it cannot effectively manage the system's dynamics, according to Ashby's Law of Requisite Variety
_https://en.wikipedia.org/wiki/Variety_(cybernetics)

For a similar reason, a sophisticated system requires much more sophisticated technical documentation. That is why, perhaps, Debian documentation is a body of esoteric scriptures containing secret or inner knowledge intended for a select group of initiates, rather than the general public. Debian wiki and man pages have multiple layers of meaning that can only be grasped by the initiated who can read between the lines and understand the hidden or implicit meaning in something that is not explicitly stated.

systemd, pulseaudio, pipewire, user-friendly frontends (such as apt and the like) are unnecessarily (or even harmful) complications of the system.

Have you noticed that it is much easier to create a Debian package without the help of debhelper?
Examples:
_https://dev1galaxy.org/viewtopic.php?id=7214
_https://dev1galaxy.org/viewtopic.php?id=7224
Try to read _https://manpages.debian.org/testing/debhelper/debhelper.7.en.html

The question is, therefore, What does the word "helper" mean in this context?

The Hebrew word "ezer" (עֵזֶר - pronounced "ayzer") means a strong, powerful helper, an ally, a protector, or even a rescuer, not a weak or subordinate one. Often translated as "help" or "helper," it implies a necessary, superior aid. The word emphasizes strength and support and is most frequently used in the Bible to describe God as the ultimate ezer for humanity.

It is a symbolic statement of superiority. Debian users are treated as helpless and ignorant. The invocation of the archetypal symbol is misused to exercise symbolic violence (in terms of Pierre Bourdieu).

NOTE: Invoking archetypal symbols to exercise symbolic violence means using deeply ingrained, often unconscious, symbols to legitimize and perpetuate social hierarchies and power imbalances, making them seem natural rather than a product of specific social conditions. This misuse of symbols, which are presented as universal or self-evident, serves to obscure the true power dynamics, elicit "consent" from the dominated, and ultimately maintain the existing social order without overt physical force, according to Bourdieu.
_https://en.wikipedia.org/wiki/Pierre_Bourdieu
What is special about pseudo-Buddhists is that they often engage in a form of symbolic violence that may look rather primitive and unsophisticated.

Man's achievements rest upon the use of symbols.... we must consider ourselves as a symbolic, semantic class of life, and those who rule the symbols, rule us.
Alfred Korzybski, Science and Sanity. 1933; Lancaster (Penn.) 1941.
See also: _https://en.wikipedia.org/wiki/Alfred_Korzybski#Anecdotes

It might be obvious that power operates through symbols, meanings, and social constructs to influence and shape reality. What is not obvious is that it can effectively operate through seemingly neutral symbols and shared understandings. Pierre Bourdieu argued that symbolic power, exercised through language and culture, allows dominant groups to legitimize their authority by imposing meanings and classifications that are perceived as natural and legitimate by society, a process he termed symbolic violence. Language serves as a primary vehicle for this power, as dominant linguistic norms, accents, and styles are presented as legitimate, thereby reinforcing social hierarchies and marginalizing other forms of speech and culture. This power operates not through physical coercion but by shaping people's perceptions and behaviors, leading to the misrecognition and internalisation of existing power structures as normal or just.
_https://en.wikipedia.org/wiki/Pierre_Bourdieu

In plain words: debhelper belongs to the same category of crap as systemd, pulseaudio, and pipewire. The users are forced, by means of symbolic violence, to perceive this crap as natural, legitimate, and indispensable.

#14 Re: Freedom Hacks » apt seems to be a sort of "unstable wrapper" » 2025-09-12 21:30:26

I have Devuan5

$ inxi -b | grep Host -A1
  Host: devuan Kernel: 6.1.0-39-amd64 arch: x86_64 bits: 64 Desktop: MATE
    v: 1.26.0 Distro: Devuan GNU/Linux 5 (daedalus)
$ man apt | grep devuan1
APT 2.6.1devuan1         05 April 2020             APT(8)

It seems that "man" is "outdated in-progress".

$ apt --version
apt 2.6.1devuan1 (amd64)
man apt | grep depends

does not print anythings.

$ apt rdepends wxmaxima
wxmaxima
Reverse Depends:
  Suggests: education-mathematics
  Recommends: science-mathematics

The command:

man apt | grep rdepends

prints nothing.

apt is "work in progress", and, therefore,

apt full-upgrade

is recommended to use instead of

apt-get dist-upgrade

_https://www.debian.org/releases/trixie/release-notes/upgrading.html#upgrading-the-system

4.4.6. Upgrading the system

# apt full-upgrade

Linux Mint has own apt wrapper

_https://github.com/linuxmint/mintsystem/blob/master/usr/local/bin/apt

This is the Linux Mint "apt" command.

This commands acts as a wrapper for the APT package manager and many other useful tools such as apt-get, apt-cache, apt-mark, dpkg, aptitude...etc.

It is installed in /usr/local/bin/apt. To use the upstream apt command directly type /usr/bin/apt.

#15 Re: Freedom Hacks » apt seems to be a sort of "unstable wrapper" » 2025-09-12 19:34:25

apt has undocumented options, for example: depends; build-dep; -s, --simulate

man apt | grep depends
$ apt depends wxmaxima
wxmaxima
  Depends: libc6 (>= 2.34)
  Depends: libgcc-s1 (>= 3.3.1)
  Depends: libstdc++6 (>= 11)
  Depends: libwxbase3.2-1 (>= 3.2.2+dfsg)
  Depends: libwxgtk-webview3.2-1 (>= 3.2.2+dfsg)
  Depends: libwxgtk3.2-1 (>= 3.2.1+dfsg-2)
  Recommends: maxima
    maxima-git
  Recommends: fonts-inter
  Recommends: fonts-inter-variable
  Recommends: fonts-texgyre
  Recommends: fonts-texgyre-math
  Recommends: fonts-dejavu
  Suggests: fonts-jsmath
  Suggests: texlive-latex-extra
  Suggests: ibus-gtk3
man apt | grep build-dep
$ apt build-dep wxmaxima -s
NOTE: This is only a simulation!
      apt needs root privileges for real execution.
      Keep also in mind that locking is deactivated,
      so don't depend on the relevance to the real current situation!
Reading package lists... Done
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
...

There are, perhaps, other "secret" options.

#16 Re: Freedom Hacks » apt seems to be a sort of "unstable wrapper" » 2025-09-12 18:19:33

@rolfie

Could you please read the code and enlighten us?

#17 Re: Freedom Hacks » apt seems to be a sort of "unstable wrapper" » 2025-09-12 16:00:35

If you know what it really is, you can decide how to use it.
However, the users are not supposed to know what they are using.

#18 Freedom Hacks » apt seems to be a sort of "unstable wrapper" » 2025-09-12 15:27:20

igorzwx
Replies: 31

apt is said to be designed as a more interactive and user-friendly frontend to certain utilities such as apt-get, apt-cache, etc.

$ apt-file list apt | grep usr/bin
apt: /usr/bin/apt
apt: /usr/bin/apt-cache
apt: /usr/bin/apt-cdrom
apt: /usr/bin/apt-config
apt: /usr/bin/apt-get
apt: /usr/bin/apt-key
apt: /usr/bin/apt-mark 

apt is optimized for interactive use, with user-friendly output and features.
   In contrast, apt-get has a well-defined, stable interface, making it more suitable for scripting and automated tasks.

   apt is essentially a wrapper for the most common functionalities found in the underlying APT system.

#19 Re: Off-topic » Share your photography! » 2025-09-11 20:34:45

Plants are eaten by Buddhist monks, because they think that plants do not think. They tend to believe that consuming plants is less harmful than eating animals, as plants are not considered sentient beings capable of suffering in the same way animals are. However, those monks, who practice not-thinking, have to perform special rituals before eating not-thinking plants.

#20 Re: Installation » Cant do upgrade Dadedalus to Ceres » 2025-09-10 22:13:10

It means that you are invited to test apt

Try reading between the lines to comprehend its underlying, potentially hidden, message or intent,

#21 Re: Installation » Cant do upgrade Dadedalus to Ceres » 2025-09-10 20:17:38

apt-get is not going to be deprecated.

apt-get is much better, because it has a sort of AI inside. It helps to solve problems which may seem unsolvable. In particular, it

intelligently handles changing dependencies
$ man apt-get | grep "dist-upgrade i" -B1 -A5
       dist-upgrade
           dist-upgrade in addition to performing the function of upgrade, also intelligently handles changing
           dependencies with new versions of packages; apt-get has a "smart" conflict resolution system, and it will
           attempt to upgrade the most important packages at the expense of less important ones if necessary. The
           dist-upgrade command may therefore remove some packages. The /etc/apt/sources.list file contains a list of
           locations from which to retrieve desired package files. See also apt_preferences(5) for a mechanism for
           overriding the general settings for individual packages.
$ man apt | grep "full-upgrade (" -A2
       full-upgrade (apt-get(8))
           full-upgrade performs the function of upgrade but will remove currently installed packages if this is
           needed to upgrade the system as a whole.

Debian documentation is not suggested for dogmatic reading. It is not a sort of Trotskyist or pseudo-Buddhist scriptures, it should not be treated as an infallible or dogmatic text, it should not be approached with a rigid or inflexible mindset. Instead, it encourages users to engage with the material in a more open and practical manner. Debian documentation is extensive and covers a wide range of topics, from installation to advanced configuration. Approaching it dogmatically might lead to misunderstandings or an inability to adapt to specific situations. It is a sort of esoteric text in the sense that it implies reading between the lines to comprehend its underlying, potentially hidden, message or intent, rather than a literal interpretation.

Esoteric writing is a mode of communication where a text's full meaning is not immediately apparent but requires a deep understanding or specialized knowledge to uncover hidden or implicit messages. It often involves layers of meaning that can only be grasped by those with specific knowledge or insight into the subject matter. Esoteric writing suggests esoteric reading, that is, reading between the lines.

The essence of esoteric writing lies in its ability to convey meanings that are not readily accessible to the general reader, requiring a certain level of expertise or insight to fully appreciate.

𝕮𝖍𝖆𝖗𝖆𝖈𝖙𝖊𝖗𝖎𝖘𝖙𝖎𝖈𝖘 𝖔𝖋 𝕰𝖘𝖔𝖙𝖊𝖗𝖎𝖈 𝖂𝖗𝖎𝖙𝖎𝖓𝖌

    Layered Meanings: Texts often contain multiple interpretations, where the surface meaning may differ significantly from the deeper implications.
    Specialized Knowledge: Understanding the text may necessitate familiarity with specific terminology, historical context, or cultural references.
    Symbolism and Metaphor: Esoteric writing frequently employs symbols and metaphors that require interpretation beyond their literal sense.
    Intended Audience: Such writing is often directed toward a select audience, who are expected to possess the requisite knowledge to decode the messages.

𝕰𝖝𝖆𝖒𝖕𝖑𝖊𝖘 𝖔𝖋 𝕰𝖘𝖔𝖙𝖊𝖗𝖎𝖈 𝖂𝖗𝖎𝖙𝖎𝖓𝖌

    Philosophical Texts: Works by philosophers like Plato or Ibn Rushd (Averroes) often contain esoteric elements that require careful analysis.
    Religious Scriptures: Many religious texts, such as the Kabbalah in Judaism or certain interpretations of the Bible, are considered esoteric due to their complex symbolism.
    Literary Works: Authors like Lewis Carroll or James Joyce are known for their allusive writing that invites deeper exploration.
    Technical Documentation: Debian wiki and man pages have multiple layers of meaning that can only be grasped by the initiated.

Esoteric writing encourages readers to engage actively with the text, fostering a deeper connection and understanding of the subject matter. It can be both challenging and rewarding, as it opens up avenues for exploration and interpretation that may not be immediately obvious.

#22 Re: Installation » Cant do upgrade Dadedalus to Ceres » 2025-09-10 14:35:50

Force install base-files

sudo dpkg -i --force-all /var/cache/apt/archives/base-files_14devuan1_amd64.deb

Then fix and upgrade

sudo apt-get install -f
sudo apt-get dist-upgrade

#24 Re: Desktop and Multimedia » [SOLVED] (alsa) arateconf not saving properly » 2025-09-05 21:28:45

"snd" means "sound"
snd_hda_intel is a "generic" ALSA driver for Intel HDA codecs

AMD is not producing audio codecs and sound cards (as far as I know).

AMD primarily focuses on producing central processing units (CPUs) and graphics processing units (GPUs), not standalone audio hardware. Instead, most PCs with AMD processors rely on integrated audio solutions, often Realtek chipsets, on the motherboard, or digital audio output via HDMI from the AMD GPU for sound. The "AMD High Definition Audio Device" mentioned in technical support contexts refers to the audio functionality that comes with the graphics card, not a separate sound card or codec produced by AMD.

A generic driver is a basic driver that provides essential functionality for common hardware without needing a specific driver from the manufacturer. It acts as a placeholder, enabling the computer's operating system to communicate with hardware using standard protocols and features, though it may lack the full capabilities of manufacturer-specific drivers.

$ lsmod | grep oss
oss_hdaudio           155648  4
osscore               618496  3 oss_hdaudio

oss_hdaudio is a generic Open Sound System v.4 (OSS4) driver for Intel HDA codecs.
It provides more functionality and better sound quality than ALSA's snd_hda_intel

Off-topic

_https://en.wikipedia.org/wiki/Yes_Minister
Yes Minister is a British political satire sitcom written by Antony Jay and Jonathan Lynn. Comprising three seven-episode series, it was first transmitted on BBC2 from 1980 to 1984. A sequel, Yes, Prime Minister, ran for 16 episodes from 1986 to 1988.

One can find them in YouTube.

In Linux, /proc/asound/cards is a virtual file that lists the audio sound cards detected by the Advanced Linux Sound Architecture (ALSA) kernel system. It's not a real file but a kernel interface that generates its contents on-the-fly from ALSA's internal list of sound cards. You can read this file to see the registered audio devices, along with their index numbers, driver names, and identifying strings.

cat /proc/asound/cards

and compare with

arateconf

To configure ALSA, you need:
1. arateconf
2. alsamixer (to unmute and/or set volume level)

It is a very simple task, because arateconf is interactive and self-explanatory.

Pressing the F6 key within the alsamixer brings up a list of available sound cards, allowing you to select a different one to adjust its settings, which you can navigate using the arrow keys.

Unmute with alsamixer
_https://wiki.archlinux.org/title/Advanced_Linux_Sound_Architecture#Unmute_with_alsamixer

AMD graphics cards provide audio functionality primarily for outputting sound over digital display connections like
1. HDMI via the AMD High Definition Audio Device driver,
2. DisplayPort via the AMD High Definition Audio Device driver.

Does your video card have a DisplayPort output?

Your arateconf output:

    Curr. | Used | Play (def) | Rec (def) | Available cards
----------|------|------------|-----------|-----------------------------------
0 - >>>>> |  *   |  *     *   |  *    *   | HDA-Intel - HDA ATI HDMI
1 -       |  *   |  *         |  *        | HDA-Intel - HD-Audio Generic
2 -       |  *   |  *         |  *        | HDA-Intel - HD-Audio Generic

It may mean:

0 - HDMI audio of the CPU's built-in graphics chip (iGPU) 
1 - AMD HD Audio through DisplayPort (or HDMI port) of AMD video card
2 - Intel HD Audio chip integrated to motherboard

That is why, perhaps, you reported: "i need to set (2) as (default playback) because if i set (1) then there is no sound".
You may need to unmute "sound card 1" with alsamixer. It may work, if your display has integrated speakers or a headphone-style jack (audio output port).

One of your "HD-Audio Generic" might be the AMD High Definition Audio through DisplayPort (or HDMI) of AMD video card.

Sound card 1 (or 2) "HD-Audio Generic" in your sound settings may refer to the AMD High Definition Audio Device, which is responsible for transmitting audio over the DisplayPort or HDMI connection from your AMD video card to your display.

An AMD video card typically has one hardware-accelerated audio codec for the GPU's audio output, such as the AMD High Definition Audio Device.
The sound output from an HDMI port can originate from either the dedicated graphics card's chip or the CPU's built-in graphics chip (iGPU), and the source depends on which device is connected to the monitor. If your PC has a dedicated graphics card, the audio should come from its HDMI port, not the motherboard's HDMI port, which is tied to the iGPU.

"Sound card 0" HDMI audio "HDA ATI HDMI" might may refer the CPU's built-in graphics chip (iGPU).

#25 Re: Desktop and Multimedia » [SOLVED] (alsa) arateconf not saving properly » 2025-09-05 19:42:07

This is your inxi:

$ inxi -A
Audio:
  Device-1: AMD Navi 31 HDMI/DP Audio driver: snd_hda_intel
  Device-2: AMD Rembrandt Radeon High Definition Audio driver: snd_hda_intel
  Device-3: AMD Family 17h/19h HD Audio driver: snd_hda_intel
  Device-4: Cambridge Audio USB 1.0 driver: snd-usb-audio type: USB
  API: ALSA v: k6.8.0-79-generic status: kernel-api

You have
1-2. two HDA codecs
3. HDMI codec
4. USB DAC

Everything should work.

Run arateconf and configure ALSA for your needs.

You may also need

alsamixer

Run

man alsamixer

and read it.
_https://man.archlinux.org/man/alsamixer.1.en

Unmute with alsamixer - ArchWiki
_https://wiki.archlinux.org/title/Advanced_Linux_Sound_Architecture#Unmute_with_alsamixer

You can create two ALSA configs with different default devices and toggle them with a script
EXAMPLE:
_https://dev1galaxy.org/viewtopic.php?pid=57177#p57177

Off-topic:

Satire is an ancient tool for defending freedom of speech.
Have you read Aristophanes and Juvenal?

Instead of inventing myths, read the output from the terminal and try to understand it.

Board footer

Forum Software