• 0 Posts
  • 69 Comments
Joined 2 years ago
cake
Cake day: November 20th, 2024

help-circle
  • This isn’t a trivial problem to solve in software and will always be YMMV. What you have to understand is that despite it saying your devices are both 48kHz, they’re actually not. They’re either running a bit slow (think 47.982kHz or something like that) or a bit fast (like 48.005kHz), so one will always take the data out of your buffer a bit faster than the other. If this is not compensated by duplicating samples or upsampling, then downsampling twice (with some kind of PLL in between), the buffer is going to run out at some point for one of the outputs.

    Pipewire is likely trying to compensate for that as described, but that isn’t free (more than double the work it has to do on a single output) and when something takes a lot of CPU time this can starve Pipewire out for long enough so it can’t get this work done before it’s due (so to speak). The quantum you’ve read about is essentially the size of that buffer I mentioned above and the bigger you make it, the more slack Pipewire has to work with before the buffers get depleted. This translates directly to a latency in ms if you divide this number by the samples per second (i.e. the frequency), so 2048 like below would translate into 42ms at 48kHz. Note that your sound device will have its own internal buffer that also adds latency on top of that.

    I’ve had the following in my Pipewire config for years at this point because I had constant crackling in my (single) output when the CPU was under load:

    context.properties = {
        default.clock.min-quantum = 2048
    }
    

    I’m not sure if this is still the suggested way to configure this, but it has worked well for me over the years. (Or maybe it’s dead configuration and the problem went away on its own separately, who knows… maybe time for me to look at this again.)

    PS: No idea how the buffer running out translates into the shift in pitch you observe, so I can only speculate. Your hardware, ALSA or Pipwire itself might try to compensate by switching to a slower sample rate without resampling the input data to avoid the buffer underrun. I.e. one output is playing the same data, but slower to allow the other one to catch up. The fix might still be to make the buffer larger. Another option would be to make Pipewire have more priority, but since it’s a user process it can’t go below its default niceness of -11. Your only option would be to make everything else more “nice”, i.e. games, browser etc., but IMHO that’s more trouble than it’s worth, you’d better be off to find a quantum value that works for you.




  • Obin@feddit.orgtoLinux@lemmy.ml•I changed my license
    link
    fedilink
    arrow-up
    8
    arrow-down
    1
    ·
    2 months ago

    was probably astroturfing from corporations

    Could be. At least when I still was on r/linux a few years ago there were about three usual suspects who would pop up every time a topic even went in the general direction of licensing and spewed their toxicity. To me these people had less of a corporate shill vibe and more of a undiagnosed mental health issues vibe, but I obviously can’t say for sure.





  • I suggest to take a look at Gentoo. Gentoo doesn’t need/use DKMS, it just recompiles modules after a kernel update as a part of regular package management. You can mask arbitrary package versions or version ranges to reliably stay on an older kernel, driver version (for example on my desktop I currently mask >=x11-drivers/nvidia-drivers-590, meaning “give me the newest 580 version”). I think all version lines that Nvidia updates still get package updates on Gentoo, including 390. And if you need some really old stuff it’s easy to roll your own repo (overlay) and keep discontinued versions/packages around for however long you need them. And once set up, this is essentially maintenance free, and if it does require intervention, you’ll likely get notified directly through the package manager before something breaks, either via a news item or an error during dependency resolution.

    PS: And in case you’re wondering, it’s possible to run Gentoo entirely without compiling, or with only compiling packages selectively when you want to change the default flags.

    PPS: Oh and maintaining custom patches (as long as they apply cleanly) is as easy as dropping them into a specific subdirectory of /etc/portage/patches and rebuilding the package.


  • If there’s still wayland protocol extensions required for this functionality (which I don’t think, kwin should have everything it needs, protocols would only be necessary if you’d want a DE-agnostic client application to manage the hotkeys), then KDE is in the best position to get things moving. With wayland development, nothing gets done without a reference implementation and vote from a big compositor, so sitting back and waiting “until things improve” is rarely a valid strategy.

    I don’t know about the accessibility side of this, but from how uninterested the devs are every time it’s brought up I can only assume that a keyboard-centric workflow is no longer a focus for KDE. Which is a shame, because with khotkey, KDE previously did provide the best experience out of all major DEs. Now it’s down among worst, when even Gnome(!) has retained some kind of custom hotkey functionality on wayland.



  • Obin@feddit.orgtoLinux@lemmy.ml•Do you use vim?
    link
    fedilink
    arrow-up
    4
    ·
    6 months ago

    Also note that modal editing isn’t for everyone. I’m happy to learn hotkeys, I even got far enough to build musclememory for vim’s normal mode. What never went away though was my confusion about what mode the editor is in. I would constantly input text in normal mode and input commands in insert mode, leading to costly mistakes that tore down any speed advantage vim would have given me. I really tried, but never built muscle memory for this kind of context switching[1], maybe it’s an ADHD thing.

    These days I’m on Emacs with an always improving custom command scheme of non-modal but context sensitive commands that do similar things in all major and minor modes.


    1. Same situation with tmux which is almost a requirement for the typical vim workflow, and adds another layer of mode switching on top. On Emacs window management is included and so are remote shells/editing, so no need for the tmux<->editor context switch. ↩︎


  • With compress=zstd ZFS reports a 1.30 compression ratio on my Steam dataset, compressing it from ~1.2TB (reported by the file manager) down to 904GB (reported by zfs list -o name,usedds). Pretty good I think.

    Obviously it depends on the games. AAA crap will probably add tens/hundreds of GBs of pre-compressed asset blobs, while indie and older games will often have more loose file structures with config files, scripts, runtimes etc. that all compress extremely well. And with older games, even when compressed the algorithms are often far from ideal and zstd can still get a few more percent out of them.




  • Obin@feddit.orgtoLinux@lemmy.ml•systemd(ont)
    link
    fedilink
    arrow-up
    1
    ·
    7 months ago

    sysV init or sysV rc? OpenRC can work with any basic /sbin/init or provide its own. If you rely on sysV rc scripts there is probably some backwards compatibility, or at least was in older versions, but I don’t really see the point in it. What distro does even still use sysV rc?


  • Obin@feddit.orgtoLinux@lemmy.ml•systemd(ont)
    link
    fedilink
    arrow-up
    7
    arrow-down
    1
    ·
    7 months ago

    These days OpenRC even has user-services. And writing a simple OpenRC service file is barely more complex than a systemd unit file, maybe even simpler, because it’s readable bash, not some declarative DSL.

    Obviously there is in no way feature parity between those two, that’s the point, personally the one thing I’d like to have is something similar to systemd’s timers (which I actually prefer to old-school cron) built into OpenRC, but most other things I can live without.


  • Little Snitch is literally used for blocking ads as well as other network traffic. My main point was that you don’t have to use it for blocking the other traffic, because Linux systems won’t have unwanted traffic to begin with, since you have full control over it. And for the ad part, there’s better solutions than network-level filtering if you have control over your browser.

    So is it more that you don’t know what I’m talking about or that you don’t want to, for whatever reason?


  • I have both yay and paru on the two Arch systems I manage, because pacman tends to break those occasionally through dependencies and that way I don’t have to do the whole makepkg bit again and instead can update the one with the other. I still find it asinine that these aren’t in the repos or the functionality isn’t integrated in to pacman, but since Arch’s entire philosophy is based on simplicity, I guess the chosen solution to secure user packages is security by obscurity.

    (I only still use Arch on those systems because I haven’t gotten around to migrate them to Gentoo yet, after implementing a binpkg repo and custom profiles many years ago so compiling on the weaker machines is essentially unnecessary, btw.)


  • Librewolf (with some overrides and a source patch) on the desktop and Fennec on Android. Before Librewolf I used upstream Firefox with the Arkenfox user.js, but Librewolf made that obsolete.

    I haven’t looked into Fennec’s current version in detail, mostly because I use the browser so rarely on my phone and my main consideration is not getting ads when I do, but they might still use SafeSearch and stuff like that, so if you’re aware of any better alternatives that are in F-Droid please tell me.