Arch Linux

7991 readers
7 users here now

The beloved lightweight distro

founded 5 years ago
MODERATORS
1
 
 

When the newly released sdl3 is installed it offers to replace sdl2 with sdl2-compat which is a compatibility wrapper around sdl3. Any experience with this wrapper? Are you a happy user? Have you run into any breakage?

2
 
 

Hey guys, up to a few days ago it was working fine, i.e. it wouldn't go to sleep ever. But probably some update or something else changed and now after 13 minutes my pc goes to sleep.

I read the power management/suspend page in the arch wiki, and now have the following:

# /etc/systemd/sleep.conf
[Sleep]
AllowSuspend=no
AllowHibernation=no
AllowSuspendThenHibernate=no
AllowHybridSleep=no

as well as:

# /etc/systemd/logind.conf
[Login]
HandleSuspendKey=suspend
IdleAction=ignore
IdleActionSec=0

(that last one I dont remember where I got it from)

I tried masking systemd targets, but after waiting without touching anything it still went to sleep after 12-13 minutes.

$ systemctl mask sleep.target suspend.target hibernate.target hybrid-sleep.target

Notice in the command below I have xfce4-power-manager (though it looks different than on my laptop) but I dont see it in control of sleep itself, but rather upower and NetworkManager control sleep.

$ systemd-inhibit
WHO                 UID  USER PID  COMM            WHAT                                                                       WHY                                       MODE
NetworkManager      0    root 734  NetworkManager  sleep                                                                      NetworkManager needs to turn off networks delay
UPower              0    root 1149 upowerd         sleep                                                                      Pause device polling                      delay
xfce4-power-manager 1000 user 1053 xfce4-power-man handle-power-key:handle-suspend-key:handle-hibernate-key:handle-lid-switch xfce4-power-manager handles these events  block

3 inhibitors listed.

I looked at the manual for upower as well as its wiki page but couldn't see anything about enabling/disabling/handling suspends in any way and after further reading it seems it doesn't directly handle suspends/hibernates, just informs stuff like systemd about power levels and such.

As for NetworkManager, does it really have the ability to force a suspend?

It gets really annoying when trying to watch a movie, or when I'm afk in a game but still want to keep an eye on it.

Can anyone please help me? Thanks in advance!

System info: Kernel: 6.12.10-arch1-1 DE/WM: bspwm

Edit: Checked both BIOS settings (Couldn't find anything related to power saving) and the settings for the monitors themselves (no power saving features there either). How would I check to see if it is indeed just the monitors going to sleep, and by extension how would I fix it?

My MoBo: ASUS ROG STRIX B550-F Gaming

3
 
 

If I turn my controller on, it won't connect. But if it's on when I turn my computer on (or restart/wake from sleep), it connects just fine. I am using the "Xbox 360 Wireless Receiver for Windows". It's possible it's actually connected but not recognized by Steam or any games, but I am not sure how to troubleshoot that directly. The Arch wiki (linked) doesn't say anything about this specifically.

I am on CachyOS.

Any ideas? <3

Update: This somehow fixed itself. I don't think I even upgraded or anything since it was a problem.

4
 
 

As the title says.
pacman -Q lists only name and version;
pacman -Qi does have a "Packager" field, but i think it's not the same thing;
pacman -Qs seems to be what i want (if local means "all installed packages atm") but it's all prefixed by local/ instead of repo name like mingw32/ which is what i want.

I'm using MSYS2 in windows.

5
 
 

On Windows I use the linked program. I tried using KDE's accessibility settings but the lowest time it can do it 100 ms, which I naturally do on occasion (mashing backspace quickly, for example). Is there any other solution?

6
 
 

I've seen some tools that do things like take snapshots periodically and ones that add snapshots to grub, but not this specifically. Does something exist?

This will probably be on EndeavourOS, not Arch directly, if it matters.

7
 
 

Hello Arch Linux peeps,

I was browsing the Arch wiki and was re-reading the Nvidia sextion, and for my 3090 it states I should be using Nvidia-open/nvidia-open-dkms, however, I am using the proprietary ones.

What is best practice for switching to Nvidia-open-dkms?

8
 
 

Since swapfile shouldn't be in a snapshot, and I want my system encrypted therefore I am asking if it could be possible to make efi partition big enough to include swapfile inside it?

I can't find documentation for this process, so would it require some extra steps to make it work?

9
 
 

Hey everyone, I’ve recently been trying to go back to a dual boot setup with Windows and Arch. I would fully switch to Arch, but unfortunately there are still a few things I need access to that either don’t have a FOSS alternative that meets my needs or won’t run through WINE/Proton.

I used to already have a dual boot setup but recently had to buy a new motherboard, which also involved getting a new CPU, so I ended up wiping everything and just riding on Windows for a while, but I did make sure to give Windows’ boot partition enough space knowing that I was planning on dual booting again soon.

I figured it was all going to be easy-peasy as I’ve done it before and it worked with no problems at all. However, after installing Arch the same way I’d done before and rebooting my PC, it booted straight to Windows, completely skipping GRUB.

I went the lazy route and used Archinstall, which received a UI update since last time I used it so I figured maybe the process changed and I messed it up by not noticing it. So I tried again, this time taking the manual install route… same result.

No GRUB entry would show up on UEFI so I figured maybe it installed in the wrong location or I messed it up again somehow. Booted on the Arch ISO, mounted the EFI partition to check it, both GRUB Windows’ boot manager are there.

After a quick search I found that some motherboard might need you to toggle secure boot on and back off to force it to check for bootloaders. It apparently specifically applies to Acer motherboards, both of my motherboards are Asus (old one was TUF Gaming x570-Pro, new one is ROG Strix x870-F Gaming) but I figured I’d give it a try.

Only way I managed to get anything else to show up was by enabling CSM, then a second “boot” entry on that drive would show up. But it seems that “boot” entry is just the drive itself because when I tried to boot from it, it just gave me that dreaded screen that tells you it couldn’t find anything to boot, to plug in a bootable drive and press enter.

I tried again via Archinstall, this time picking systemd-boot since during my search earlier i found that systemd-boot is apparently easier to set up a dual boot than GRUB… same result. My PC just won’t see Linux bootloaders, it seems.

The only way I managed to make it “work” was by making a second EFI partition on that same drive, leaving the Windows boot partition untouched and giving Arch its own boot partition. By “work” I mean I could finally get systemd-boot to launch, but if I wanted to boot into Windows, I’d have to boot into UEFI and switch the boot devices priorities around, which, while better than nothing, is far from ideal.

In doing so I also noticed that the systemd-boot entry showed up the same way as the “empty drive” entry did earlier when I enabled CSM, might be normal, nit-picking, figured it was worth mentioning.

The way my UEFI is currently set up is:

  • CSM disabled
  • Secure Boot > OS Type > Other OS
  • Secure Boot mode > Standard

That’s the way I had it set up on my old motherboard back when dual boot worked, and it’s the way it needs to be set up for secure boot to be disabled according to Asus support posts I found.

Does anyone have any suggestions on what I might be doing wrong?

Additionally, somewhat unrelated but something I found when messing around with Archinstall is that if I set Archinstall to automatically partition everything using BTRFS, it generates 5 subvolumes, one of which is @.snapshots, but if I try to manually replicate that set up (because the automatic one wants to wipe the whole drive and I don’t want that because I want to keep Windows), it won’t let me make a @.snapshots subvolume. Is this important at all? If so, can I add it post-install?

Thanks in advance! And happy new year!

10
 
 

I'll start: After switching to Neovide from the terminal for Neovim, I got really hooked on the animated cursor and smooth scrolling (links to Neovide's features page). It wasn't until 2 months ago when the earlier was added to Kitty. I did so much overthinking about which terminal to use, and realized that I wouldn't (and don't) use most of the features provided by ones like iTerm and Kitty, though I picked the later. I was pleasantly surprised to see it added, even if it could use more work to make long smooth cursor animations like Neovide. The only other feature I want is smooth scrolling, I can't believe there are no modern terminals with it.

(Somewhat) Side note: At this point many users realized that Ghostty got over-hyped, here is Mitchell Hashimoto's (dev of Ghostty) thoughts:

https://mitchellh.com/writing/ghostty-1-0-reflection
Ghostty: Reflecting on Reaching 1.0 – Mitchell Hashimoto

I didn't anticipate the hype. Some people think I am lying when I say this. I'm not. I'm not so naive to think that private betas and exclusive access don't generate hype in principle. But I didn't think many people at all would be interested in a terminal emulator. I thought I was building boring software for a niche audience. No hype! But I was wrong, and the consequences were real. People were frustrated that they couldn't get in. People felt left out. People felt like I was being fake to generate hype. The waitlist grew larger than I was comfortable allowing in (given my prior stated priorities). I'm sorry about that. All I can say is that I didn't intend for this to happen. I ramped up beta invites to try to get as many people in as I felt comfortable with (well, a bit beyond that). We ended the beta at around 5,000 users in a Discord of 28,000 at the time. Not quite the percentage of access I wanted for people but more than I could handle.
...

One more negative aspect of the hype is the expectation of Ghostty being revolutionary. It is and it isn't. Ghostty has different goals and tradeoffs than other terminals. For those looking for those properties, Ghostty is a breath of fresh air and does things that no other terminal does. But for others, it's just a terminal. And that's okay. I hope you find a terminal that works for you and I don't claim that Ghostty is the end all be all of terminals.

11
 
 

I looked up specifically examples of this and didn't find answers, they're buried in general discussions about why compiling may be better than pre-built. The reasons I found were control of flags and features, and optimizations for specific chips (like Intel AVX or ARM Neon), but to what degree do those apply today?

The only software I can tell benefits greatly from building from source, is ffmpeg since there are many non-free encoders decoders and upscalers that can be bundled, and performance varies a lot between devices due to which of them is supported by the CPU or GPU. For instance, Nvidia hardware encoders typically produce higher quality video for similar file sizes than ones from Intel AMD or Apple. Software encoders like x265 has optimizations for AVX and NEON (SIMD extensions for CPUs).

12
 
 

Updated my system today and it started randomly crashing, usually with these messages in journal:

#PF: error_code(0x0011) - permissions violation
#PF: supervisor instruction fetch in kernel mode
BUG: unable to handle page fault for address: ffffffffc0abd540 
kernel tried to execute NX-protected page - exploit attempt? (uid: 1000)

Not sure if the kernel update's causing it. My mouse lags every once in a while too. Anyone else having problems?

Update:
Pinpointed the crash reason, it happens when memory usage exceeds some value. 20 ish gigs maybe? Ran memtest, got 1 pass but I'll leave it running. (Edit: left it for a couple hours, it kept passing) Also tried updating another arch system and filling its memory with stress, but that one didn't crash.

On mine I had a bunch of other packages update as well (mostly qemu stuff iirc, but qemu isn't running usually) and I also uninstalled some unnecessary dependencies listed via pacman -Qtd. I kinda want to restore a btrfs snapshot and be done with it, but that spooks me so I sense unpleasant debugging in my future.

Update 2:
Did more testing, when used RAM+filesystem cache exceeds total ram available it pagefaults instead of emptying the filesystem cache. -_- how tf do I fix this??

Update 3:
Solution is to uninstall binder_linux-dkms. For some reason with the new kernel it causes a pagefault when purging filesystem cache which delays the purge and if that happens while system is under memory pressure programs hang. Didn't even know I had this installed

13
 
 

I want to set the system to send DNS queries with a custom port, not 53. I added DNS=127.0.0.1 9053 to /etc/systemd/resolved.conf and DNS=127.0.0.1:9053 to /etc/systemd/networkd.conf. But now DNS queries are sent via the default DNS with port 53. What can I do?

14
 
 

Does anyone manage to run hoptodesk appimage on Arch? See https://www.hoptodesk.com/

When I run it I get:

/usr/lib/gvfs/libgvfscommon.so: undefined symbol: g_task_set_static_name
Failed to load module: /usr/lib/gio/modules/libgvfsdbus.so
Gtk-Message: 10:19:33.027: Failed to load module "canberra-gtk-module"
Gtk-Message: 10:19:33.033: Failed to load module "canberra-gtk-module"
WARNING:CSS: in @font-face statement, failed to install font at (this://app/index.css(10))
Fontconfig warning: "/etc/fonts/fonts.conf", line 5: unknown element "description"
...

So before I lost hours debugging it, I wanted to check if other Arch users have the same issue :)

15
 
 

Hi,

I have this HP USB-C Dock but I don’t get the display ports working. The external display is not recognized by my Arch Notebook.

Do I need special drivers to use such docking stations?

(USB and Ethernet ports are working fine)

16
 
 

Do anyone know how to disable the touchscreen on wayland? All I find is only relevant for x11

17
 
 

cross-posted from: https://lemmings.world/post/17893566

cross-posted from: https://lemmings.world/post/17893006

I am in the market for a new laptop. I have searched quite a lot and decided to go with Lenovo. I am connected to mains most of the time and I am looking for compute power over efficiency. So the new Intel Lunar Lake 258V processors are not for me. That means Zenbook S14 is out of discussion. Also before anyone push a Framework plug, No! Framework laptops are not available where I live.

Its for my personal use and my preferred setup is Gnome on EndeavourOS. and its mainly used as a media consumption device. But occasionally it could run ffmpeg h265 encoding, run one or two moderately heavy podman containers (like Jellyfin) and sometimes a 6GB RAM VM or a local LLM model (3b) (very rare).

Basically I have narrowed it down to two laptops:

  • Lenovo Yoga Pro 7 Gen 9 (14, AMD) - AMD Ryzen AI 9 365 (Preferred)
  • Lenovo ThinkPad P14s (AMD) Gen 5 - Ryzen 7 PRO 8840HS

With Yoga Pro 7 being my preferred pick. When similarly specked with 32GB RAM, both are almost similarly priced, with Yoga running about $200 extra. I feel that new ThinkPads are a little overpriced for what they offer, at-least where I live.

  • Yoga has the new AMD architecture (Zen 5).
  • Yoga's screen is better than ThinkPad's (2.8K OLED @ 120Hz vs FHD IPS @ 60Hz, OLED option is not available for ThinkPad here).
  • Yoga has an Aluminum build. I haven't used ThinkPads in the past, but had a plastic Dell Latitude in the recently (2022) and its build quality and plastics were really bad. Currently I have an Aluminum built laptop (from 2018) and its so much better than Dell's.
  • I prefer the aesthetics of Yoga over ThinkPad (Though its subjective).
  • ThinkPad is a bit cheaper (by $200) and upgradable.

Yoga Pro 7 Gen 9 (14, AMD) being very new, I don't know about its Linux (EndeavourOS) compatibility.

Does the new Ryzen AI 9 300 series work well with Linux? This is the only linux-hardware.org probe for this laptop.
Yoga Pro 7 Gen 9 (14, AMD):
Yoga Pro 7 Gen 9 (14, AMD)

On the other hand, the ThinkPad P14s (AMD) Gen 5 works well with Arch with Ryzen 7 PRO 8840HS. This puts me in a dilemma, should I spend a little more and for the not heavily Linux tested, but new Strix Point (Ryzen 300 series) Yoga Pro 7 or go for a tested Ryzen 7 PRO 8840HS ThinkPad?

I am planing to keep my laptop for 5-6 years.

If anybody have the new gen AMD processor Laptops running Linux (Any Distro) please share your experience.

18
7
Trouble with keyboard (gist.github.com)
submitted 1 month ago* (last edited 3 weeks ago) by [email protected] to c/[email protected]
 
 

cross-posted from: https://programming.dev/post/22695206

Hey people! I hope you are having good time I recently installed arch, but I have trouble with my keyboard during installation and post installation which is null character (^@) printed to stdout, if I pressed function or Esc key null character stop appearing until some command wait for input (e.g. passwd) or pacman updating repo which will mess up progress bar or install conformation

I managed to install arch by enabling ssh with shell redirection, since I can't use vim or nano. I thought post installation everything should go fine since I installed base, linux, linux-firmware and amd-ucode packages, but now I can't log in as a result of null character

I should also mention that my problem across many distros like mint and mint xfce4, parrot, fedora, arch and EndeavourOS

note:

  • hot keys (sound, brightness control keys etc.) work fine on fedora, but not on EndeavourOS version (25/06/2024)
  • Keyboard response time feel slow, and I can't repeat key press by holding the key (e.g. hold backspace to delete several characters)
  • vim not working, it will switch from insert to normal mode
  • nano will go to end of file by moving line by line
  • Sometime in live arch iso systemctl log will interrupt and appear

additional note: I think Fn key is what causing the problem

the gist is output from fedora workstation 40.1 livecd I think it may help

edit: notes list format

edit: Sorry for being a bit late, but it is solved, please check

19
 
 

I installed CachyOS with Plasma DE and found it has no discover in it. When I searched on their sub lots of people say that one shouldn't use Discover with any Arch distro as it will break the system. Can anybody clarify why?

Also if I am not supposed to use Discover, can anybody suggest an actual GUI application store? Unlike Octopi (which I consider just as a TUI with check boxes and columns)

Edit: I only use Discover for find and install new apps.

For updating, I just use paru.

20
 
 

Hello guys!

I want to completely remove qemu and all its optional packages. I went about removing most of them, but now I have this list of packages still installed:

$ pacman -Q | grep qemu
qemu-base 9.1.2-1
qemu-common 9.1.2-1
qemu-img 9.1.2-1
qemu-system-x86 9.1.2-1
qemu-system-x86-firmware 9.1.2-1

If I try to remove them with pacman -R <list of those package> I get the following message:

checking dependencies...
error: failed to prepare transaction (could not satisfy dependencies)
:: removing qemu-base breaks dependency 'qemu' required by libguestfs
 -> exit status 1

When I add libguestfs to that list, I get the following output:

pacman -R qemu-base qemu-common qemu-img qemu-system-x86 qemu-system-x86-firmware libguestfs
checking dependencies...
:: e2fsprogs optionally requires lvm2: for e2scrub
:: grub optionally requires dosfstools: For grub-mkrescue FAT FS and EFI support
:: grub optionally requires lzop: For grub-mkrescue LZO support
:: grub optionally requires mtools: For grub-mkrescue FAT FS support
:: htop optionally requires strace: attach to a running process
:: libblockdev-fs optionally requires btrfs-progs: for BTRFS filesystem support
:: libblockdev-fs optionally requires dosfstools: for VFAT filesystem support
:: libblockdev-fs optionally requires exfatprogs: for exFAT filesystem support
:: libblockdev-fs optionally requires f2fs-tools: for F2FS filesystem support
:: libblockdev-fs optionally requires nilfs-utils: for nilfs filesystem support
:: libblockdev-fs optionally requires xfsprogs: for XFS filesystem support
:: libvirt optionally requires lvm2: Logical Volume Manager support
:: libvirt optionally requires qemu-base: QEMU/KVM support
:: mkinitcpio optionally requires lzop: Use lzo compression for the initramfs image
:: reflector optionally requires rsync: rate rsync mirrors
:: steamtinkerlaunch optionally requires rsync: optional for backing up steamuser files from proton games
:: steamtinkerlaunch optionally requires strace: write a strace log of the launched game
:: udisks2 optionally requires btrfs-progs: for BTRFS support in libblockdev-fs
:: udisks2 optionally requires dosfstools: for FAT support in libblockdev-fs
:: udisks2 optionally requires exfatprogs: for exFAT support in libblockdev-fs
:: udisks2 optionally requires f2fs-tools: for F2FS support in libblockdev-fs
:: udisks2 optionally requires nilfs-utils: for NILFS support in libblockdev-fs
:: udisks2 optionally requires xfsprogs: for XFS support in libblockdev-fs

Packages (50) augeas-1.14.1-3  btrfs-progs-6.11-1  capstone-5.0.3-1  debootstrap-1.0.137-1  distro-info-1.10-1  distro-info-data-0.63-1  dosfstools-4.2-5  dtc-1.7.2-1  edk2-ovmf-202411-1  exfatprogs-1.2.6-1  f2fs-tools-1.16.0-3  gptfdisk-1.0.10-1  hivex-1.3.23-10
              iniparser-4.2.4-1  jfsutils-1.1.15-9  libewf-20140816-1  libldm-0.2.5-3  libslirp-4.8.0-1  libtraceevent-1:1.8.4-1  libtracefs-1.8.1-1  libxdp-1.4.3-1  lrzip-0.651-3  lsscsi-0.32-2  lvm2-2.03.28-1  lzop-1.04-4  mtools-1:4.0.46-1
              multipath-tools-0.10.0-1  ndctl-79-1  nilfs-utils-2.2.11-1  perl-libintl-perl-1.33-4  rsync-3.3.0-2  seabios-1.16.3-1  sleuthkit-4.12.1-3  squashfs-tools-4.6.1-2  strace-6.12-1  supermin-5.3.5-1  sysfsutils-2.1.1-2  syslinux-6.04.pre3.r3.g05ac953c-3
              thin-provisioning-tools-1.1.0-1  vde2-2.3.3-5  virtiofsd-1.13.0-1  wolfssl-5.7.4-1  xfsprogs-6.11.0-1  yara-4.5.1-1  libguestfs-1.54.0-1  qemu-base-9.1.2-1  qemu-common-9.1.2-1  qemu-img-9.1.2-1  qemu-system-x86-9.1.2-1  qemu-system-x86-firmware-9.1.2-1

Total Removed Size:  208.05 MiB

:: Do you want to remove these packages? [Y/n] n
 -> exit status 1

I'm seeing stuff in there about grub and some other packages I definitely DO NOT want to remove, so I'm wondering how I can proceed.

Thanks in advance!

21
 
 

Not entirely related to this community, but I don't know where else to ask.

I am looking to remap 'f' and 'F', so they better follow local pdf links. I want 'f' to follow the link without opening a new zathura instance and I want 'F' to follow the link in a new instance.

I can fix 'F' with

map F follow

but I don't know how to fix 'f'.

Say I want to open a link to b.pdf, the functionality I want from 'f' is then identical to writing ":o b.pdf" in the input bar.

It is possible to get the filepath with

map f display_link

but don't know how to pipe it into :o

Is this possible by adding something in my zathurarc ?

22
 
 

Hey, how do we generally handle forks of packages that we wish to use on the AUR?

For example, we have package A on the AUR and we have A-fork with a feature that is not merged into A due to various reasons (dead projects, other concerns, etc).

Do we create a new AUR package that is based off that fork? Wouldn't that pollute the AUR with packages that are similar but are forks of each other?

What if I am developing a package B that depends on the A-fork that is not in the AUR? Do I have to create A-fork as an AUR package so that my package B can be built?

23
10
submitted 2 months ago* (last edited 2 months ago) by [email protected] to c/[email protected]
 
 

Hey people ! How do you do ? I am posting because in recent time I had troubles with easyeffects. The UI is buggy such as frequent crash when adding effects, it's impossible to save any preset and the input fields are buggy (I also can't type anything in them). Am I the only one or is it more spread ? (I installed via pacman and have trouble on tumbleweed too but less)

Edit: It appears that only some input fields on some modules (like frequency settings for the filter module or the bass enhancer) are buggy and it is a pain in the ass to setup the frequency from text files as once I save them they disappear from easyeffects. I tried easyeffects 7.2.0, flatpak but still buggy. I guess I will wait for the qt rewrite and hope that those bugs are only from the UI

24
25
4
submitted 2 months ago* (last edited 2 months ago) by [email protected] to c/[email protected]
 
 

Hi, I already asked this in a gnome community but I was unable to get an answer since the issue is more complex than it seems (and I really do not want to go to r*ddt, heh) :) I run arch with gnome in a tuxedo infinibook 14 gen 9 (intel) and since this is a recent model, there are things that does not seems to be working out of the box... specially when installing another distro than the ones they recomment (which are a no-go for me because of two main reasons: I want arch, I want gnome).

Anyway, here one of the problems: I cannot get the keyboard backligth control of gnome to work, the one that should show up in the gnome shell does not shows up. Even if I can control it by command line (or even with fn+space).

I know, this is not a huge issue but I want my desktop to work fine (I have other small problems I need to see, but I am stuck with this one :)

Any hint?

thanks!

EDIT: Is Infinibook pro 14 gen 9, heh

view more: next ›