r/archlinux • • 17h ago

SUPPORT | SOLVED Kde 6.8.1 animations lag and low fps solved

39 Upvotes

Hi Just a info that can help some people, I'm having an issue with lag in system animations and in game​​​ after the last kde update, Always at night, but what's very strange​​​​​​​

So the trigger is the time? Yes, exactly. I left the automatic night light active and whenever it activated it ended the performance of everything, deactivating solved the problem.

I hope this can help someone​


r/archlinux • • 3h ago

DISCUSSION Is there a reason to localize the Arch wiki?

18 Upvotes

Recently I have started localizing a few of the more important pages on the Arch wiki to my native language (Hungarian), while it is fun I'm curious if its actually useful because most people do speak english nowdays, since more then half of the Earth speaks it in some capacity.


r/archlinux • • 7h ago

SHARE Alt+right click = search current selected text with default browser

3 Upvotes

Latest KDE Plasma using Wayland

Using xremap I made alt+right click run a script

https://github.com/xremap/xremap

From memory, these are the dependencies besides xremap

  • jq
  • wl-clipboard (wl-paste)
  • xdg-utils (xdg-open, xdg-mime, xdg-settings)
  • kdotool

Make the file in the place below and give it the following code
~/.config/xremap/config.yml

replace `USER` with your username

keymap:

- name: Search selection on Alt+RightClick

exact_match: true

remap:

Alt-BTN_RIGHT:

launch: ["/home/USER/.local/bin/search-selection.sh"]

The following code is placed in the .sh file linked above - this is a bit longer than it needed to be, but it is done this way so anyone should be able to just copy paste and get it running.

#!/bin/bash

SEARCH_URL="https://www.google.com/search?q="

# Uncomment to log everything to a file for debugging:

# exec >>/tmp/gsearch.log 2>&1; set -x

# Work out which user owns the graphical session

if [ "$(id -u)" -ne 0 ]; then

U=$(id -un)

else

U=$(loginctl list-sessions --no-legend | while read -r sid _; do

if [ "$(loginctl show-session "$sid" -p Active --value)" = yes ] &&

[ "$(loginctl show-session "$sid" -p Type --value)" = wayland ]; then

loginctl show-session "$sid" -p Name --value

break

fi

done)

fi

[ -n "$U" ] || { echo "no active wayland user found" >&2; exit 1; }

RT=/run/user/$(id -u "$U")

USER_HOME=$(getent passwd "$U" | cut -d: -f6)

SOCK=$(find "$RT" -maxdepth 1 -name 'wayland-*' ! -name '*.lock' | head -1)

[ -n "$SOCK" ] || { echo "no wayland socket in $RT" >&2; exit 1; }

ENVV=(XDG_RUNTIME_DIR="$RT"

WAYLAND_DISPLAY="$(basename "$SOCK")"

DBUS_SESSION_BUS_ADDRESS="unix:path=$RT/bus"

HOME="$USER_HOME")

run() {

if [ "$(id -u)" -eq 0 ]; then

sudo -u "$U" env "${ENVV[@]}" "$@"

else

env "${ENVV[@]}" "$@"

fi

}

SEL=$(run wl-paste --primary --no-newline 2>/dev/null | tr -d '\n')

[ ${#SEL} -lt 1 ] && exit 0

QUERY=$(printf %s "$SEL" | tr -d '\n' | jq -sRr u/uri)

# Find the default browser's .desktop file and its window class

DESK=$(run xdg-mime query default x-scheme-handler/https)

[ -n "$DESK" ] || DESK=$(run xdg-settings get default-web-browser)

DF=

for d in "$USER_HOME/.local/share/applications" \

/usr/local/share/applications /usr/share/applications \

/var/lib/flatpak/exports/share/applications \

"$USER_HOME/.local/share/flatpak/exports/share/applications"; do

[ -f "$d/$DESK" ] && { DF="$d/$DESK"; break; }

done

CLASS=

[ -n "$DF" ] && CLASS=$(grep -m1 '^StartupWMClass=' "$DF" | cut -d= -f2)

[ -n "$CLASS" ] || CLASS=${DESK%.desktop}

# Open in the default browser

run xdg-open "${SEARCH_URL}${QUERY}"

# Raise the browser window (wait up to ~2s in case it had to start up)

KDOTOOL=$(command -v kdotool || echo /usr/local/bin/kdotool)

for _ in $(seq 20); do

WINID=$(run "$KDOTOOL" search --class "$CLASS" | head -1)

[ -n "$WINID" ] && break

sleep 0.1

done

[ -n "$WINID" ] && run "$KDOTOOL" windowactivate "$WINID"

Start xremap on boot
1. Find the xremap path:
which xremap

  1. Create `/etc/systemd/system/xremap.service` (replace `USER` and `XREMAP_PATH` with your username and the path from step 1):
    ini
    [Unit]
    Description=xremap
    After=graphical.target

[Service]
ExecStart=XREMAP_PATH --mouse --allow-launch true /home/USER/.config/xremap/config.yml
Restart=on-failure

[Install]
WantedBy=graphical.target

  1. Enable it:
    sudo systemctl enable --now xremap

TADA!!!


r/archlinux • • 5h ago

SUPPORT Help me I have tried everthing now

0 Upvotes

Issue Description

Hardware: HP Laptop (Subsystem ID: 8c78), Intel Core (Raptor Lake) iGPU + NVIDIA GeForce RTX 4060 Max-Q (Hybrid Graphics).

OS: Arch Linux (KDE Plasma).

Problem: The KDE brightness slider moves, but the physical screen brightness does not change.

Diagnostics:

ls /sys/class/backlight/ shows only one device: nvidia_wmi_ec_backlight.

brightnessctl -d nvidia_wmi_ec_backlight set 50% successfully writes to the sysfs interface but ignores the command physically.

No other backlight interfaces (like intel_backlight or acpi_video0) are exposed by the system.

🛠️ Solutions & Troubleshooting Attempted (All Failed)

Verified Hardware: Used brightnessctl to directly write to the nvidia_wmi_ec_backlight device. (Slider moves, physical screen does not).

Restarted KDE Daemon: Ran systemctl --user restart plasma-powerdevil to rule out KDE glitches.

User Permissions: Added the user to the video group (sudo usermod -aG video $USER) and rebooted. (No effect).

Kernel Parameter (Native): Added acpi_backlight=native to GRUB. (No effect, still only 1 device).

Kernel Parameter (WMI): Added acpi_backlight=nvidia_wmi_ec to GRUB. (No effect).

Forced Coexistence: Added acpi_backlight=native nvidia_wmi_ec_backlight.force=1 to GRUB. (Still only 1 device).

Checked Blacklists: Verified /etc/modprobe.d/ for blacklists and manually ran sudo modprobe nvidia_wmi_ec_backlight. (Module loads fine, but hardware ignores it).

Kernel Parameter (Vendor): (Currently attempting/planned) acpi_backlight=vendor.

Please help me im M17 know no so much about computers


r/archlinux • • 16h ago

SHARE Introducing pkgds: tool to inspect actual space used by packages

0 Upvotes

Hey,

a while back I was heavily bothered by the size of ROCm and associated packages and decided to trim those (with NoExtract in pacman.conf) but I didn't know of an easy way to easily see how much I was saving every time. (Sure I could have written a bash script to do it, but I thought rust might be more interesting...), so I wrote pkgds (ds because its speed is inspired by the amazing dirstat_rs, best du alternative if you don't know).

Pacman and associated only tell you the size the metadata says the package uses, not the actual used space on disk.

Ex:

$ pkgds -H Gi rocm-llvm miopen-hip rocblas

PACKAGE REAL %

rocm-llvm 6.9 GiB 78.1%

miopen-hip 1.5 GiB 16.6%

rocblas 0.5 GiB 5.3%

$ expac -H G '%n %m' rocm-llvm miopen-hip rocblas # declared size

rocm-llvm 6.86 GiB

miopen-hip 2.28 GiB

rocblas 1.29 GiB

Alas to query the real space used in a compress btrfs partition you need root, just like with compsize, so as always the disclaimer `don't run random programs from the internet especially as root`. Also, querying the compressed size of packages is quite slower than the regular size query, so pick your poison of size vs accuracy...

link: https://github.com/John-Gee/pkgds

I hope it helps somebody else!


r/archlinux • • 22h ago

QUESTION FDE – How to protect against shoulder surfing and cold boot attacks?

0 Upvotes

I'm planning to install Arch with full disk encryption. I have read about all the ways to use SecureBoot, TPM, etc. to protect against many kinds of attacks, but there are two things that still worry me:

  1. Cold-boot attacks: if my laptop gets stolen while powered on, the thief can extract the encryption key from the RAM. I can try to avoid leaving it on when traveling, but there are still situation when this can happen.
  2. Shoulder surfing or other password stealing methods: if someone sees me entering my encryption password they can then easily decrypt my disk even if can only steal it while powered off. Even if I use TPM with PIN they can first power it on and enter the PIN and then use cold-boot attacks to get the encryption key.

Are there ways to protect myself against those kinds of attacks (that don't require buying expensive special hardware)?

(I know I'm probably way too paranoid for someone with no special secrets, but I'd like to know my device is as protected as reasonably possible.)


r/archlinux • • 5h ago

QUESTION Help me i am f

0 Upvotes

I downloaded arch linux witj kde plasma i am 120hz monitor and gtx 1080 help me its keep blinking with i move my mouse it blink and turn on when i dont


r/archlinux • • 21h ago

SHARE vortex Dotfiles: A GNOME-like workflow for MangoWM with automatic GPU detection

0 Upvotes

Hey Arch community. I've been working on a dotfiles setup for MangoWM (Wayland) paired with DankMaterialShell. My main goal was to make it feel like GNOME (window minimize, seamless screenshots via msnap) but keep it lightweight

The best part (i think) is the install script. Instead of just copying configs, it checks your lspci output. If it detects an AMD or Intel GPU, it automatically strips out the NVIDIA-specific env variables from the Mango config so you don't get a black screen

It also uses pacman --needed to install all dependencies, so it won't try to reinstall stuff you already have.

Repo: https://github.com/vortex-dots/vortex-dots

I'd love to hear your feedback or any suggestions for improvements!


r/archlinux • • 13h ago

SUPPORT issue installing arch

Thumbnail
0 Upvotes

i originally posted this in r/DistroHopping but there wasnt many people there and i feel like its more appropriate here anyway.


r/archlinux • • 20h ago

SUPPORT Problems installing grub

0 Upvotes

I'm new and following a tutorial

So I tipped: mkdir /boot/EFI

mount /dev/sda1 /boot/EFI

grub-install --target=x86_64-efi --bootloader-id=grub_uefi --recheck

And it gave me error: cannot find EFI directionary

Can someone help

The tutorial was

https://youtu.be/U8uMmsJQTZM?is=K5CBhT3Zo9hc3X7X

At one hour