<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.alpinelinux.org/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Erazemkokot</id>
	<title>Alpine Linux - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.alpinelinux.org/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Erazemkokot"/>
	<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/wiki/Special:Contributions/Erazemkokot"/>
	<updated>2026-05-05T12:36:29Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.40.0</generator>
	<entry>
		<id>https://wiki.alpinelinux.org/w/index.php?title=ALSA&amp;diff=16991</id>
		<title>ALSA</title>
		<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=ALSA&amp;diff=16991"/>
		<updated>2020-03-06T08:25:25Z</updated>

		<summary type="html">&lt;p&gt;Erazemkokot: Use the usermod command instead of manually editing the /etc/group file.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Move|ALSA|More specific. Indicates that this is the alsa-utils method of configuring sound.}}&lt;br /&gt;
&lt;br /&gt;
First you will need to install Alsa packages, the Linux sound driver and volume adjuster.&lt;br /&gt;
&lt;br /&gt;
 # apk add alsa-utils alsa-utils-doc alsa-lib alsaconf&lt;br /&gt;
&lt;br /&gt;
Then you will need to add all your users (including root) to the &amp;lt;code&amp;gt;audio&amp;lt;/code&amp;gt; group.&lt;br /&gt;
&lt;br /&gt;
 # usermod -aG audio $USER&lt;br /&gt;
 # usermod -aG audio root&lt;br /&gt;
&lt;br /&gt;
Find the default sound card.&lt;br /&gt;
&lt;br /&gt;
 # alsamixer&lt;br /&gt;
&lt;br /&gt;
The default sound card will show up. Try turning up the volume of Master and the device(s) such as speakers or microphones that you need, and audio should work (&#039;&#039;F1&#039;&#039; - help, &#039;&#039;M&#039;&#039; - toggle mute, ...)&lt;br /&gt;
&lt;br /&gt;
If there are no volume controls visible, try hitting &#039;&#039;F6&#039;&#039; on your keyboard and toggling between the sound cards (which all might have the same name in the context menu that pops up except for the numbers next to and before the names).&lt;br /&gt;
&lt;br /&gt;
Once you&#039;ve found the sound card name that gives you volume controls, set the unique number that showed up in the &#039;&#039;F6&#039;&#039; context menu as your default soundcard.&lt;br /&gt;
&lt;br /&gt;
 # nano /usr/share/alsa/alsa.conf&lt;br /&gt;
&lt;br /&gt;
Scroll down until you find the lines that start with &amp;lt;code&amp;gt;defaults.ctl.card&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;defaults.pcm.card&amp;lt;/code&amp;gt; and put the number (you found in the &#039;&#039;F6&#039;&#039; context menu of the alsamixer command for the soundcard you want as your default) at the end of those lines separated by a space for each. For example, if the default sound card you want is &amp;quot;1&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;code&amp;gt;defaults.ctl.card 1&amp;lt;/code&amp;gt;&lt;br /&gt;
 &amp;lt;code&amp;gt;defaults.pcm.card 1&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Save your nano work by pressing &#039;&#039;Ctrl+O&#039;&#039; and confirm the changes by pressing &#039;&#039;Enter&#039;&#039;. Then exit nano by pressing &#039;&#039;Ctrl+X&#039;&#039;.&lt;br /&gt;
&lt;br /&gt;
Try turning up the volume of Master and the device(s) such as speakers or microphones that you need with the &amp;lt;code&amp;gt;alsamixer&amp;lt;/code&amp;gt; command, and audio should work.&lt;br /&gt;
&lt;br /&gt;
Alsa service is not started on install, you need to start it and to add it on rc.&lt;br /&gt;
 rc-service alsa start&lt;br /&gt;
 rc-update add alsa&lt;br /&gt;
&lt;br /&gt;
Gstreamer can now catch the device and the audio mixer is working.&lt;br /&gt;
&lt;br /&gt;
[[Category:Installation]]&lt;br /&gt;
[[Category:Desktop]]&lt;br /&gt;
[[Category:Multimedia]]&lt;/div&gt;</summary>
		<author><name>Erazemkokot</name></author>
	</entry>
	<entry>
		<id>https://wiki.alpinelinux.org/w/index.php?title=Sway&amp;diff=16990</id>
		<title>Sway</title>
		<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=Sway&amp;diff=16990"/>
		<updated>2020-03-06T07:22:54Z</updated>

		<summary type="html">&lt;p&gt;Erazemkokot: adduser supports appending only one group at a time&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[http://swaywm.org Sway] is a tiling Wayland compositor. It&#039;s a drop-in replacement for the i3 window manager.&lt;br /&gt;
&lt;br /&gt;
== Prerequisites ==&lt;br /&gt;
&lt;br /&gt;
First, install &amp;amp; configure eudev:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# apk add eudev&lt;br /&gt;
# setup-udev&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Then install graphics drivers appropriate to your system:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# apk search mesa-dri&lt;br /&gt;
# apk add mesa-dri-intel # example&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Add yourself to the input and video groups:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# adduser $USER input&lt;br /&gt;
# adduser $USER video&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You have to log out and back in for this to take effect. &lt;br /&gt;
&lt;br /&gt;
== Installation ==&lt;br /&gt;
&lt;br /&gt;
We can now install sway:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# apk add sway sway-doc&lt;br /&gt;
# apk add                \ # Install optional dependencies:&lt;br /&gt;
    xorg-server-xwayland \ # strongly reccommended for compatibility reasons&lt;br /&gt;
    alacritty            \ # default terminal emulator&lt;br /&gt;
    dmenu                \ # default application launcher&lt;br /&gt;
    swaylock             \ # lockscreen tool&lt;br /&gt;
    swayidle               # idle management (DPMS) daemon&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Running Sway ==&lt;br /&gt;
&lt;br /&gt;
To run sway, first set XDG_RUNTIME_DIR to a suitable location (e.g. /tmp). Install &amp;amp; configure elogind to skip this step. Then run sway from the Linux console:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ XDG_RUNTIME_DIR=/tmp sway&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Add this to a script if it becomes tedious.&lt;br /&gt;
&lt;br /&gt;
== Configuration and Usage ==&lt;br /&gt;
&lt;br /&gt;
An example config is provided at &amp;lt;code&amp;gt;/etc/sway/config&amp;lt;/code&amp;gt;. Copy it to &amp;lt;code&amp;gt;~/.config/sway/config&amp;lt;/code&amp;gt; and read through it to learn the default keybindings.&lt;br /&gt;
&lt;br /&gt;
For additional information, start at &amp;lt;code&amp;gt;man 5 sway&amp;lt;/code&amp;gt; and read the [https://github.com/swaywm/sway/wiki upstream FAQ].&lt;br /&gt;
&lt;br /&gt;
[[Category:Desktop]]&lt;/div&gt;</summary>
		<author><name>Erazemkokot</name></author>
	</entry>
</feed>