Skip to content

u/CodeYeti

In this archive from Aug 2017 to Feb 2024

3
posts
107
comments
0
media
666
score

To me, it seems like this kind of "download upstream source and build" kind of functionality would belong in pkgctl, which also would make it a lot less political than implementing the same kind of thing in a more long-standing citizen of the arch environment.

In other words, IMO leave pacman interfaces alone, but perhaps improve pkgctl to incorporate download, audit, makepkg, install workflows for those who find doing those 4 steps separately to be too cumbersome.

1 points

That is a bullet dodged my friend. Do you really want to spend a significant amount of your life with people who not only do not trust you but obviously don't value the work you're doing if that was an issue.

This happened to me early in my career and I felt bad about it for ages and like I was a problem. Now? I know it's a sticking point for me, and I recognize that if I ever get to that point with an employer again, then that was likely going to be the lease of our worries in the long run.

Especially given that it's monitoring software... not going to lie that level of mistrust among coworkers just doesn't even compute to me.

2 points

I've done it to require booting a USB environment twice in like 8 years.

  1. I made a typo manually editing my bootloader configuration instead of using the generator. All I had to do was delete a single character and reboot.
  2. I lost power while switching between llvm packages, from custom back to upstream, and had not yet installed the Mesa version that would work with the new packages. All that was required is installing that package and rebooting.
8 points

Well actually my assumption that I needed LLVM 15 was actually based off of this post; I never tried mesa 22.3.1 on LLVM 14 personally.

It makes sense that a newer, but still API-compatible version of LLVM could be required when changes to the actual code generated by LLVM would be required (like new kinds of GPU instructions or something).

I just checked out the LLVM 15 release notes, though, and there does not appear to be anything significant like that for changes to the AMDGPU backend, so maybe 22.3.1 would work for me and something else went wrong for you. I'll try and remember to check it out later to confirm one way or another.

2 points

It's not working with the official repository versions of mesa and llvm, but this is mostly just due to the fact that as of today (20221226), the official repos are still using LLVM 14, and mesa builds are tied tightly to LLVM version.

This means you're half right.

  1. It's not working right now with the non-AUR builds of the packages.
  2. It's not (at least for me), required to use -git versions though, as LLVM 15 is released as stable upstream, and mesa 22.3.1 is also stable upstream (whereas official repos are on 22.2.x series still at time of writing.

I took the -git PKGBUILDs from the AUR, and just tweaked them by adding #tag=foo specifications to their git URLs, to build upstream-released versions of the packages.

You could also take the approach of using asp or something to download the "official" arch linux PKGBUILDs as they are now, and update versions that way, which is preferrable, but you're more likely to run in to missing/changed/etc. build options that were added in the new version that the -git AUR package authors may have already accounted for in their PKGBUILD(s). This method is usually preferable because you get a new version, but as close to the "official repo build conditions" as you can get.

In the case of {lib32-,}{llvm,mesa}-git packages though, I can vouch that the PKGBUILDS are somewhat decent as is if you just add #tag=llvmorg-15.0.6 for LLVM, and #tag=22.3.1 for mesa at time of writing.

I'd recommend checking mesa's gitlab, and the llvm` project GitHub for release versions.

Since I do a lot of tweaking, I actually manage my own installation of mesa pretty much always with this method.

For the lazy with mesa, here also lies my meant-for-me PKGBUILD that I just used to build 22.3.1 for myself based off of the mesa-git AUR package, complete with a few additional options from the 22.3 series, including (possible) rusticl support, if you have the right LLVM spirv lib versions available

3 points

This is the a good answer. Just to try to get you up to speed so you understand that all these separate things are not more complex than windows, but in fact less, here's a super quick n' dirty rundown. I only mention this because before I got in to driver development a few years back, this was something I had just never bothered to learn.

there's two parts to "drivers". Kernel code, that actually talks directly to the hardware, performing things that you wouldn't want any random libraries to do in userspace. This is amdgpu for you. If you're using any hardware that isn't trying to be a dickhead, then this just ships with your linux kernel, updates with your linux kernel, and you're good to go.

The other side is userspace drivers, like mesa (which has an OpenGL implementation (from the gallium family of state trackers if you hear that), a vulkan implementation in RADV, and much more, including other userspace drivers for things that aren't amdgpu. In userspace, mesa is pretty much the end-all-be-all de-facto standard right now due to supporting pretty much everyone that allows it to. Userspace drivers like these know how to talk to different kernel drivers, but provide the same API to application developers regardles of what's under the hood. That's their job.

The only thing I disagree with /u/Calslock on is the recommendation for amdvlk. While it's fine 99.9% of the time, the developers that are working on new sofware on linux are testing on Mesa for the most part, so you'll "accidentally" have things working much more easily in my experience sticking with that. You can have both installed, and use something like loader layers to choose which driver to use for each application, but that might be not quite the level of involvement you're looking for from what it sounded like.

Performance between amdvlk and RADV for me has been all but a tossup, in the situations where both worked, but I found amdvlk to have more issues (specifially in the WSI space, the part of the driver that interacts with window systems).

Just my 2c. Mesa is what 99% of people are using most of the time, so you'll get others taking care of things before it trickles down to you much more on that side in my experience.

Welcome to the open side!

5 points

I wrote off all the native btrfs RAID support a long time ago when it was immature due to some horror stories. How's the state of things these days with it?

Currently, I'm just running ext4 on mdadm, which is obviously not ideal, but without going ZFS and "putting up with" the license, I didn't think there were other options that had reached enough of a level of maturity to be used in critical workloads.

0 points

Man my zsh completions (of which I've only ever custom-made 1-2 for a few self-made tools), have honestly gone completely to shit recently in the past month or two. Capital letters appearing as suggestions where the only possible answer is lowercase, hung completions scripts, etc.

This is one of those things that I keep shoving to the back of the todo pile, but some day it's definitely going to strike the wrong nerve.

Definitely makes me curious what caused it, though, as I haven't had any instability in the completions scripts shipped by my package manager in the past.

1 points

I got around this at a gig in the past once. You'd have to be okay with losing the windows data if it's using bitlocker, but even if you don't know the BIOS PW, there's usually a BIOS settings reset jumper somewhere on the board.

2 points

Ability to use a Linux box I build from scratch is now a hard sticking point for me with jobs. I used to feel bad about needing to run Linux at work, but my opinion has changed.

If you want a productive developer, then I'm your guy. If you don't trust you own developers to use their own computers, then you shouldn't be trusting them to write your company's software. If a company can't trust me to use a hammer to build their house, and instead forces me to use a nerf bat, then that relationship isn't going to work out for either of us.

It's taken me a long time to come to terms with this and not feel like the "outsider" / "special case" that needs to run Linux, but ever since I made this a sticking point for me, I've just been a lot happier at work in general.

12 points

Linux 4.0.0-92-generic

Umm... that's old, but according to kernel.org, is still supported, though the most recent release of that lts tree would be 4.4.280, not .0

Personally, there's a lot of wasted space up there used up for the graphics, but whatever floats your boat. I'm sure there's plenty about my system that wouldn't be useful to others, as well.

4 points

Just add

"enable_environment": { "ENABLE_LAYER_AMD_SWITCHABLE_GRAPHICS_1": "1" }

to /usr/share/vulkan/implicit_layer.d/amd_icd{32,64}.json.

this is AMD's switchable graphics layer trying to be cool, but really just being annoying. If you disable the layer, then you can just use something like vulkan-device-filter to choose what device/driver to use on a per-application basis.

EDIT: Corrected file path

3 points

Who rotates their pacman log? I like having a complete package history for my system. It’s very useful when an upgrade DOES cause an issue.

The pacman log takes up so little space I assumed nobody actually rotated it due to the usefulness of hanging the full history available in a single location … TIL

28 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.