r/AlpineLinux • • Oct 23 '23

Graphics Tearing / Glitches

3 Upvotes

Hi All,

I'm having an issue with Alpine Linux where the GNOME GUI is glitching / tearing. I've recorded a short video showing the issue. I've tried change kernels from LTS to Edge but this still occurs.

Hardware details from neofetch:

       .hddddddddddddddddddddddh.          mcsk8r@alpine-z13 
      :dddddddddddddddddddddddddd:         ------------------ 
     /dddddddddddddddddddddddddddd/        OS: Alpine Linux v3.18 x86_64 
    +dddddddddddddddddddddddddddddd+       Host: ThinkPad Z13 Gen 1 
  `sdddddddddddddddddddddddddddddddds`     Kernel: 6.5.8-0-edge 
 `ydddddddddddd++hdddddddddddddddddddy`    Uptime: 1 hour, 58 mins 
.hddddddddddd+`  `+ddddh:-sdddddddddddh.   Packages: 996 (apk), 49 (flatpak) 
hdddddddddd+`      `+y:    .sddddddddddh   Shell: zsh 5.9 
ddddddddh+`   `//`   `.`     -sddddddddd   Resolution: 1920x1080 
ddddddh+`   `/hddh/`   `:s-    -sddddddd   DE: GNOME 44.3 
ddddh+`   `/+/dddddh/`   `+s-    -sddddd   WM: Mutter 
ddd+`   `/o` :dddddddh/`   `oy-    .yddd   WM Theme: Adwaita 
hdddyo+ohddyosdddddddddho+oydddy++ohdddh   Theme: adw-gtk3-dark [GTK2/3] 
.hddddddddddddddddddddddddddddddddddddh.   Icons: Papirus-Dark [GTK2/3] 
 `yddddddddddddddddddddddddddddddddddy`    Terminal: kgx 
  `sdddddddddddddddddddddddddddddddds`     CPU: AMD Ryzen 7 PRO 6850U with Radeon Graphics (16) @ 4.768GHz 
    +dddddddddddddddddddddddddddddd+       Memory: 7922MiB / 31380MiB 
     /dddddddddddddddddddddddddddd/
      :dddddddddddddddddddddddddd:                                 
       .hddddddddddddddddddddddh.                                  

List of installed firmware, mesa etc

alpine-z13:~$ apk list --install | grep amd
amd-ucode-20230515-r6 x86_64 {linux-firmware} (custom) [installed]
linux-firmware-amd-20230515-r6 x86_64 {linux-firmware} (custom) [installed]
linux-firmware-amd-ucode-20230515-r6 x86_64 {linux-firmware} (custom) [installed]
linux-firmware-amdgpu-20230515-r6 x86_64 {linux-firmware} (custom) [installed]

alpine-z13:~$ apk list --install | grep mesa
mesa-23.0.4-r0 x86_64 {mesa} (MIT AND SGI-B-2.0 AND BSL-1.0) [installed]
mesa-dri-gallium-23.0.4-r0 x86_64 {mesa} (MIT AND SGI-B-2.0 AND BSL-1.0) [installed]
mesa-egl-23.0.4-r0 x86_64 {mesa} (MIT AND SGI-B-2.0 AND BSL-1.0) [installed]
mesa-gbm-23.0.4-r0 x86_64 {mesa} (MIT AND SGI-B-2.0 AND BSL-1.0) [installed]
mesa-gl-23.0.4-r0 x86_64 {mesa} (MIT AND SGI-B-2.0 AND BSL-1.0) [installed]
mesa-glapi-23.0.4-r0 x86_64 {mesa} (MIT AND SGI-B-2.0 AND BSL-1.0) [installed]
mesa-gles-23.0.4-r0 x86_64 {mesa} (MIT AND SGI-B-2.0 AND BSL-1.0) [installed]

alpine-z13:~$ apk list --install | grep radeon
linux-firmware-radeon-20230515-r6 x86_64 {linux-firmware} (custom) [installed]

r/AlpineLinux • • Oct 21 '23

Certain CPU frequency governors are unavailable.

2 Upvotes

Hello, I am looking to improve the battery life of my laptop that is currently running the latest version of Alpine Linux (3.18.4). I discovered the "CPU frequency scaling" wiki page and decided to give it a go. I followed the command to list the CPU governors available for the system and received 3 options: "ondemand", "performance" and "schedutil". There is no sign of the powersave governor and I am wondering why it is so. I believe that my CPU (i7-2635QM) is simply too old, lacking the features and technologies required for that governor to function so it is omitted. It could also be the fact that I am running it on a Macbook Pro and Apple has restricted certain functionalities. I am writing here to hear your thoughts and suggestions.


r/AlpineLinux • • Oct 19 '23

setlocale1 - Easily set language and xkeyboard-layout in alpine linux

6 Upvotes

By now, I have decided to write a tool that easily sets the settings for locale, xkeyboard-layout and xconsole-keyboard-layout.
Tested on Gnome, Plasma, XFCE, Gnome Desktop Manager, and SDDM. Compatible with both X11 and Wayland.
Requirement: openrc-settingsd must be installed.

https://github.com/john3dc/setlocale1


r/AlpineLinux • • Oct 17 '23

How can I pass environment variables into openrc service or start the said service not as root?

3 Upvotes

I'm trying to get acpid working on my laptop. As a part of the script it runs zzz which requires access to $WAYLAND_DISPLAY variable to function.

acpid -d -- works fine, system suspends on lid close.

doas acpid -d -> [main.c:1242] Unable to connect to the compositor. If your compositor is running, check or set the WAYLAND_DISPLAY environment variable.

Is it possible to expose $WAYLAND_DISPLAY to root or pass it into service on startup or just run service not as root?


r/AlpineLinux • • Oct 16 '23

No Sound from laptop

3 Upvotes

Hi everybody i made a fresh install of alpine linux on an old laptop of mine , after having installed the display manager , i noticed that no audio was detected so i installed pavicontrol to check the audio devices finding that i had no available output except for the hdmi port , so searching around i found people who installed pipewire so that's what i did and after reboting on pavuncotrol i had a new entry "pro audio" but even when selecting that no sound came from the laptop do you have any advice or solution that i could try? Thanks everybody


r/AlpineLinux • • Oct 14 '23

A modified Install Script for Alpine-Linux

9 Upvotes

Hi. Over the past few days, I have modified and partly optimized the installation script of Alpine Linux to make it somewhat nicer. What do you think about it and should this become a permanent part of Alpine?

https://youtu.be/AVrms07JVq0?si=6xcw2HGtRrZauKLT

I uploaded the code to gitlab and made a merge request:

https://gitlab.alpinelinux.org/alpine/alpine-conf/-/merge_requests/165


r/AlpineLinux • • Oct 12 '23

Is there any way to setup autocompletion after `doas`

3 Upvotes

Using ash autocompletion works fine for the major part but, when you input doas it ceases working almost entirely minus completing directory/file names. I don't need anything else. Only for shell to complete command names after doas.


r/AlpineLinux • • Oct 11 '23

Neovim lsp not working in Alpine

4 Upvotes

Hi,

I have mostly everything working in Alpine but for some reason my NeoVim configuration is not working completely.

I get an error with fzf not being found even though it’s definitely installed which is one weird one.

But the more important thing is Mason doesn’t seem to work at all so none of my lsp stuff like completions or error messaging is working. When I use checkhealth it shows that all the Mason stuff is there and my plug-in manager shows that Mason is installed. But when I try to run :Mason it says that it’s not an editor command and none of the lsp features are working.

This is the same config I use on Mac and other versions of Linux and never had this issue so I’m assuming it’s an Alpine thing.

Does anyone using Alpine have NeoVim working with Mason and lsps?


r/AlpineLinux • • Oct 11 '23

Alpine and Gnome not working

2 Upvotes

EDIT: In case you searched this on Google, the fix is:

  1. Make the file /etc/X11/Xwrapper.config
  2. Add the line: needs_root_rights = yes

I've (mostly) followed these instructions.

GDM starts and stuff. But when I try login with a user account in X11, it returns to the user selection screen instantly. Wayland works though. If I try logging in with root in X11, it works.

It's a clean v3.18 install.

I'm using a Thinkpad T440p.

GDM log: https://termbin.com/z3pi

If you need anymore info, please just ask! Thanks!


r/AlpineLinux • • Oct 10 '23

Keyboard Layout in GDM?

1 Upvotes

Hi. I've almost tried everything to change the keyboard layout in GDM, but nothing has worked so far. Is this a known issue? In SDDM, I had the same issue, but I was able to solve it by using "setxkbmap" in the "/usr/share/sddm/scripts/Xsetup" file.

My AlpineLinux is on the latest stable with GDM - WAYLAND - GNOME.

Hopefully, someone among you can help me.

NEW EASY SOLUTION: https://github.com/john3dc/setlocale1

SOLUTION BY u/strawbeguy Comment ( BIG THX :-) ):

doas nano /etc/X11/xorg.conf.d/30-keyboard.conf

Section "InputClass"
    Identifier "system-keyboard"
    MatchIsKeyboard "on"
    Option "XkbLayout" "fr"
EndSection

doas rc-update add openrc-settingsd boot


r/AlpineLinux • • Oct 09 '23

Nothing is Responsive

3 Upvotes

Hey guys. I installed Alpine on my Macbook and I've had no issues, except getting my window manager to run. After much trouble to get X to work, I got it to start DWM, but my keyboard and my touchpad don't work. I've checked logs, installed programs, and I even put in a USB keyboard, but they all failed. I was wondering if any of you guys could help.


r/AlpineLinux • • Oct 09 '23

Echo supports -e ?

1 Upvotes

Shellcheck complains about the -e flags not being posix compatible, but when I try it on the latest version of alpine in a container echo -e "hello,\n world! seems to work fine.

I assume this historically did not work, how long has dash/busybox supported the additional echo flags?


r/AlpineLinux • • Oct 06 '23

Installation error

Post image
4 Upvotes

When I try to install alpine, installation hangs on loading hardware drivers. How can I solve it?


r/AlpineLinux • • Oct 06 '23

New to Alpine

4 Upvotes

Hi,

I’m completely new to Alpine. I used Arch for a long time and long time ago. I haven’t used Linux in a while as I work with Mac. But I bought a Thinkpad to install Linux on as a computer to work in my own non work related coding projects.

I tried Void because I heard good things about it but getting it installed and set up was just really tedious and frustrating. Bricked it 4 times trying to get a desktop working before I gave up.

Then I decided to give Alpine a try and I’m so glad I did. It’s such a nice district that has the best package manager I’ve ever used and I love the init system. Honestly makes things really easy to work with. I already really appreciate all the sensible choices and design decisions. Doas instead of sudo for example. Or the many setup scripts that make updating or changing key parts of the OS a simple task. It just seems to be really well thought out. Also I like that it could be a rolling release or stable release just by changing the repos. I know some other distributions have some of these features but it’s nice to have everything in one small minimal package.

Anyway I just wanted to introduce myself to the community and ask for any advice for things like blogs or sources for information and tips outside the official documentation. Or any recommended YouTube channels or anything to help me learn more about Alpine.

I’m a front end developer learning backend development in Go and also trying to learn system/application development in C and Zig. So I don’t plan to do a ton other than run a text editor and maybe a web browser from time to time to test some stuff. Plus the typical build tools for Go, C, and Zig (compiling C with Zig). I read something that said Alpine isn’t great for development though because it compiles really slowly. Is that true or is it just because it’s minimal and I just need to install more stuff to increase compilation speed? Anyone else using Alpine as a primary distro for development?


r/AlpineLinux • • Oct 04 '23

WiFi adapter not working

6 Upvotes

I installed Alpine with GNOME and when I went into settings, I couldn't connect to any network because there was no NetworkMamager. I installed it and now it says "No Wi-Fi Adapter Found. Make sure you have a Wi-Fi adapter plugged and turned on". It is plugged because it works on another OS, but how do I turn it on? I can't find any solution to this. I found this "ip link set wlan0 up" but it doesn't work.


r/AlpineLinux • • Oct 03 '23

Boot fail

1 Upvotes

When I boot alpine from usb in order to install it, my MacBook a1260 hangs on “loading hardware drivers”. I tried to add nomodeset but nothing . I have nvidia gpu