<?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=Hollyburn</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=Hollyburn"/>
	<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/wiki/Special:Contributions/Hollyburn"/>
	<updated>2026-05-05T19:42:08Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.40.0</generator>
	<entry>
		<id>https://wiki.alpinelinux.org/w/index.php?title=Elogind&amp;diff=30623</id>
		<title>Elogind</title>
		<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=Elogind&amp;diff=30623"/>
		<updated>2025-07-31T00:06:43Z</updated>

		<summary type="html">&lt;p&gt;Hollyburn: /* Troubleshooting */ mention that util-linux-login might be needed for a session to be created&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{DISPLAYTITLE:elogind}}[https://github.com/elogind/elogind &#039;&#039;&#039;elogind&#039;&#039;&#039;] is extracted out of &amp;quot;logind&amp;quot; - systemd login manager to be a standalone daemon and provides [[Seat manager]] support by setting up necessary permissions for the desktop environment or window manager and handles poweroff, reboot, suspend and hibernate via &#039;&#039;&#039;loginctl&#039;&#039;&#039; commands.&lt;br /&gt;
&lt;br /&gt;
== Prerequisites ==&lt;br /&gt;
&lt;br /&gt;
* Install and configure [[Polkit#Using polkit with elogind|Polkit]] as it is used for authentication by elogind.&lt;br /&gt;
&lt;br /&gt;
== Installation ==&lt;br /&gt;
&lt;br /&gt;
{{Cmd|&amp;lt;nowiki&amp;gt;# apk add elogind&lt;br /&gt;
# rc-update add elogind&lt;br /&gt;
# rc-service elogind start&amp;lt;/nowiki&amp;gt;}}&lt;br /&gt;
&lt;br /&gt;
== Configuration ==&lt;br /&gt;
&lt;br /&gt;
=== Hibernation ===&lt;br /&gt;
&lt;br /&gt;
The command to trigger hibernation is: {{Cmd|# loginctl hibernate}}&lt;br /&gt;
&lt;br /&gt;
For hibernation to work, you must have a swap partition. Check {{Cmd|# lsblk}} for a partition with the mountpoint [SWAP].&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
NAME        MAJ:MIN RM   SIZE RO TYPE MOUNTPOINTS&lt;br /&gt;
nvme0n1     259:0    0 953.9G  0 disk &lt;br /&gt;
├─nvme0n1p1 259:1    0   200M  0 part /boot&lt;br /&gt;
├─nvme0n1p2 259:2    0   100G  0 part /&lt;br /&gt;
├─nvme0n1p3 259:3    0   805G  0 part /home&lt;br /&gt;
└─nvme0n1p4 259:4    0  48.7G  0 part [SWAP]&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Remember also to add a kernel parameter to resume, ie in {{Path|/etc/default/grub}} :&lt;br /&gt;
&lt;br /&gt;
{{Cat|/etc/default/grub|&amp;lt;nowiki&amp;gt;...&lt;br /&gt;
GRUB_CMDLINE_LINUX_DEFAULT=&amp;quot;modules=sd-mod,usb-storage,ext4,nvme quiet rootfstype=ext4 resume=/dev/nvme0n1p4&amp;quot;&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;}}&lt;br /&gt;
&lt;br /&gt;
Note the &amp;quot;resume=&amp;quot; flag with the same partition that was marked as [SWAP].&lt;br /&gt;
&lt;br /&gt;
The resume process can be speed up reducing the size of the hibernation images. See the documentation for [https://docs.kernel.org/admin-guide/pm/sleep-states.html?highlight=image_size#basic-sysfs-interfaces-for-system-suspend-and-hibernation image_size] in the kernel docs for the details, but writing 0 to {{Path|/sys/power/image_size}} should make the images as small as possible.&lt;br /&gt;
&lt;br /&gt;
=== Power management === &lt;br /&gt;
&lt;br /&gt;
Edit the systemwide config file {{Path|/etc/elogind/logind.conf}} to configure handling of [[Power_management#elogind_and_power_management|power events]], such as suspending the computer when power button is pressed:&lt;br /&gt;
&lt;br /&gt;
{{cat|/etc/elogind/logind.conf|...&lt;br /&gt;
[Login]&lt;br /&gt;
HandlePowerKey{{=}}suspend&lt;br /&gt;
...}}&lt;br /&gt;
&lt;br /&gt;
Since &amp;lt;Code&amp;gt;loginctl&amp;lt;/Code&amp;gt; requires privilege escalation, allow either the user to be part of wheel group or configure doas to allow running it as an unprivileged user. &lt;br /&gt;
&lt;br /&gt;
Option1:&lt;br /&gt;
 # optionally, allow $USER root access with password&lt;br /&gt;
 adduser $USER wheel&lt;br /&gt;
&lt;br /&gt;
Option2:&lt;br /&gt;
&lt;br /&gt;
[[Setting_up_a_new_user#doas|Doas]] is used to grant permissions for suspend-to-RAM. In the doas config file {{Path|/etc/doas.conf}}, set&lt;br /&gt;
 permit nopass $USER as root cmd /bin/loginctl&lt;br /&gt;
&lt;br /&gt;
After setting the above, suspend-to-RAM can be triggered by running {{Cmd|$ /bin/loginctl suspend}}&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting ==&lt;br /&gt;
&lt;br /&gt;
If using a Window Manager or Desktop Environment, such as [[Sway]], the user must ensure that login session is correctly configured.  When correctly configured, the &amp;lt;code&amp;gt;loginctl&amp;lt;/code&amp;gt; command should output the following when using Sway with [[SDDM]]&#039;&#039;:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;p style=&amp;quot;background-color:#f9f9f9; border:1px dashed #2f6fab; line-height:1.1em; padding:1em; font-family:monospace; font-size:10pt; white-space:pre; overflow:auto;&amp;quot;&amp;gt;&amp;lt;span style=&amp;quot;color:green;&amp;quot;&amp;gt;~&amp;lt;/span&amp;gt;&#039;&#039;&#039;$&#039;&#039;&#039; loginctl&lt;br /&gt;
&lt;br /&gt;
SESSION  UID USER SEAT  TTY &lt;br /&gt;
     c1  105 sddm seat0     &lt;br /&gt;
     c2 1000 User seat0 tty8&lt;br /&gt;
&lt;br /&gt;
2 sessions listed.&lt;br /&gt;
&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If the output is &amp;lt;code&amp;gt;No session available.&amp;lt;/code&amp;gt;, such as in the case of launching Sway from tty, suspend and many other functionality will not work. The user then must configure a [[Display manager|display manager]]. It may also be necessary to install &amp;lt;code&amp;gt;util-linux-login&amp;lt;/code&amp;gt; to enable the use of the elogind PAM module.&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
&lt;br /&gt;
* [https://wiki.gentoo.org/wiki/Elogind elogind - Gentoo Wiki]&lt;br /&gt;
* [https://wiki.gentoo.org/wiki/Polkit polkit - Gentoo Wiki]&lt;br /&gt;
* [https://wiki.archlinux.org/title/Polkit polkit - ArchWiki]&lt;br /&gt;
&lt;br /&gt;
[[Category:Seat_manager]]&lt;/div&gt;</summary>
		<author><name>Hollyburn</name></author>
	</entry>
	<entry>
		<id>https://wiki.alpinelinux.org/w/index.php?title=Gaming_on_Alpine&amp;diff=28535</id>
		<title>Gaming on Alpine</title>
		<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=Gaming_on_Alpine&amp;diff=28535"/>
		<updated>2024-12-21T20:10:58Z</updated>

		<summary type="html">&lt;p&gt;Hollyburn: Update note on 32-bit apps on 64-bit wine&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;It is possible to game on Alpine Linux.&lt;br /&gt;
&lt;br /&gt;
== Installing Games ==&lt;br /&gt;
&lt;br /&gt;
Like with installing any other package, run the following:&lt;br /&gt;
&lt;br /&gt;
{{Cmd|# apk add [game]}}&lt;br /&gt;
&lt;br /&gt;
Where &amp;lt;code&amp;gt;[game]&amp;lt;/code&amp;gt; is the name of the package containing the game, like &amp;lt;code&amp;gt;micro-tetris&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== Steam ==&lt;br /&gt;
{{Main|Steam}}&lt;br /&gt;
&lt;br /&gt;
== Wine ==&lt;br /&gt;
&lt;br /&gt;
{{Pkg|wine}} allows you to run some Windows software, including games, under Linux. A 32-bit Alpine chroot/multiboot might be required to use 32 bit Windows games under Wine.  If you use x86_64, 32-bit applications will run in Wine&#039;s experimental WoW64 mode, which may not be compatible with all software.&lt;br /&gt;
&lt;br /&gt;
To run windows app/games inside a [https://www.reddit.com/r/linux4noobs/comments/1fegh0i/winealpine/ docker container] with alpine Linux, {{pkg|libcap}} is required to fix issues related to [https://gitlab.winehq.org/wine/wine/-/wikis/FAQ#failed-to-use-icmp-network-ping-this-requires-special-permissions raw sockets]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;Pre&amp;gt;&lt;br /&gt;
RUN apk add --no-cache libcap&lt;br /&gt;
RUN setcap cap_net_raw+epi /usr/bin/wine-preloader&lt;br /&gt;
&amp;lt;/Pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Permissions ==&lt;br /&gt;
&lt;br /&gt;
To make sure your account is in the &amp;quot;games&amp;quot; group, run the following:&lt;br /&gt;
&lt;br /&gt;
{{Cmd|# adduser youruser games}}&lt;br /&gt;
&lt;br /&gt;
Log-off and then log back on in order for the changes to take effect. Most games don&#039;t require this in order to work.&lt;br /&gt;
&lt;br /&gt;
== List of games ==&lt;br /&gt;
&lt;br /&gt;
Below is the list of games packages available in Alpine Linux:&lt;br /&gt;
&lt;br /&gt;
* [https://www.advancemame.it/ AdvanceMAME] ({{Pkg|advancemame}}) - Arcade simulator.&lt;br /&gt;
* [https://wiki.gnome.org/Apps/Aisleriot Aisleriot] ({{Pkg|aisleriot}}) - Solitaire card games.&lt;br /&gt;
* [https://www.dosbox.com/ DOSBox] ({{Pkg|dosbox}}) - DOS-emulator that uses SDL.&lt;br /&gt;
* [https://frotz.sourceforge.net/ Frotz] ({{Pkg|frotz}}) - Z machine (Infocom interactive fiction) Interpreter.&lt;br /&gt;
* [https://home.flightgear.org FlightGear] ({{Pkg|flightgear}}) - Flight simulator.&lt;br /&gt;
* [https://freedoom.github.io/ Freedoom]+[https://www.chocolate-doom.org/ Chocolate Doom] - ({{Pkg|freedoom}}, {{Pkg|chocolate-doom}}) -- a free Doom game and an engine to run it. For a more modern game engine resembling modern FPSes compatible with Doom WADs, try [https://zdoom.org GZDoom] - {{Pkg|gzdoom}} (or the legacy version {{Pkg|lzdoom}}).&lt;br /&gt;
* [https://en.wikipedia.org/wiki/GNU_Chess GNU Chess] ({{Pkg|gnuchess}}) - Play chess against the computer.&lt;br /&gt;
* [https://lgames.sourceforge.io/LBreakout2 LBreakout2] ({{Pkg|lbreakout2}}) - Ball-and-paddle game.&lt;br /&gt;
* [https://lgames.sourceforge.io/LBreakoutHD LBreakoutHD] ({{Pkg|lbreakouthd}}) - The successor to LBreakout2. Note: no level editor available. lbreakout2 is needed for level creation.&lt;br /&gt;
* [https://lgames.sourceforge.io/LPairs LPairs] ({{Pkg|lpairs2}}) - Classical memory game.&lt;br /&gt;
* [https://github.com/troglobit/tetris Micro Tetris] ({{Pkg|micro-tetris}}) - A version of Tetris that uses ANSI escape sequences and can fit in embedded devices.&lt;br /&gt;
* [https://www.minetest.net/ Minetest] ({{Pkg|minetest}}) - An inspired Minecraft game.&lt;br /&gt;
* [https://www.nethack.org NetHack] - Rogue-like dungeon crawler.&lt;br /&gt;
* [https://openrct2.org/ OpenRCT2] - A free and open-source reimplementation of RollerCoaster Tycoon 2 but &#039;&#039;&#039;requires original RollerCoaster Tycoon 2 assets&#039;&#039;&#039;.&lt;br /&gt;
* [https://en.wikipedia.org/wiki/OpenTTD OpenTTD] ({{Pkg|openttd}}) - A business simulation game.&lt;br /&gt;
* [https://www.retroarch.com RetroArch] ({{Pkg|retroarch}}) - Frontend for emulators, game engines, and media players using libretro.&lt;br /&gt;
* [https://www.supertux.org/ SuperTux] ({{Pkg|supertux}}) - Classic 2D jump&#039;n&#039;run side-scroller game in a style similar to the original Super Mario games.&lt;br /&gt;
* [https://supertuxkart.net/Main_Page SuperTuxKart] - Kart racing game with OSS mascots.&lt;br /&gt;
* [https://www.xonotic.org/ Xonotic] ({{Pkg|xonotic}}) - A free and open-source FPS.&lt;br /&gt;
&lt;br /&gt;
== See Also ==&lt;br /&gt;
* [[Steam|Steam on Alpine Linux]]  &lt;br /&gt;
* [https://gitlab.winehq.org/wine/wine/-/wikis/FAQ  Wine FAQ]&lt;br /&gt;
* [https://obsproject.com/ OBS Studio] ({{Pkg|obs-studio}}) - Used by live streamers on streaming platforms such as YouTube and Twitch.&lt;br /&gt;
* [https://wine.htmlvalidator.com/install-wine-on-alpine-linux-3.html  How to Install Wine on Alpine Linux 3]&lt;br /&gt;
[[category:Gaming]]&lt;/div&gt;</summary>
		<author><name>Hollyburn</name></author>
	</entry>
</feed>