Skip to content

u/triangulumavalanche

In this archive from Mar 2021 to Jun 2023

2
posts
14
comments
0
media
146
score

Top posts

Top comments

Use Wireplumber and set bitratemode (should work with pretty much all headphones) and/or LDAC quality (only works on latest Sony headphones afaict) to optimize for latency.

/etc/wireplumber/bluetooth.lua.d/51-aac-bitratemode.lua

table.insert(bluez_monitor.rules, {
  matches = {
    {
      -- This matches all cards.
      { "device.name", "matches", "bluez_card.*" },
    },
  },
  apply_properties = {
    -- AAC variable bitrate mode
    -- Available values: 0 (cbr, default), 1-5 (quality level)
    ["bluez5.a2dp.aac.bitratemode"] = 1,
  },
})

/etc/wireplumber/bluetooth.lua.d/51-set-ldac-quality.lua

table.insert(bluez_monitor.rules, {
  matches = {
    {
      -- This matches all cards.
      { "device.name", "matches", "bluez_card.*" },
    },
  },
  apply_properties = {
    -- LDAC encoding quality
    -- Available values: auto (Adaptive Bitrate, default)
    --                   hq   (High Quality, 990/909kbps)
    --                   sq   (Standard Quality, 660/606kbps)
    --                   mq   (Mobile use Quality, 330/303kbps)
    ["bluez5.a2dp.ldac.quality"] = "mq",
  },
})

And give ALSA more headroom for buffering:

/etc/wireplumber/main.lua.d/51-more-headroom.lua

table.insert(alsa_monitor.rules, {
  matches = {
    {
      -- Matches all sources.
      { "node.name", "matches", "alsa_input.*" },
    },
    {
      -- Matches all sinks.
      { "node.name", "matches", "alsa_output.*" },
    },
  },
  apply_properties = {
    ["api.alsa.headroom"] = 1024,  -- mitigate channel underflow
  },
})
3 points

Have been doing this for eight years for my parents' HTPC. Put GNOME on it, 2x scaling (or fractional) and you have yourself a pretty nice setup.

As long as you invest time in reading the wiki thoroughly, run etc-update/pacdiff after each upgrade, read the news etc. you should be good.

Over time you gain more understanding and can manage all of its configuration via e.g. aconfmgr from a git repo.

Only trouble with long time no upgrades would be the GPG keys, which can be easily solved by refreshing them (see the arch wiki).

2 points

Userspace software like Steam and games don't have direct access to hardware, they only have access through APIs like OpenGL, Vulkan, DMA-BUF etc.

Hardware meaning the physical screen and GPU/iGPU/dGPU/APU. These APIs are implemented in Mesa and that in turn communicates with the kernel driver.

The kernel drivers are the only pieces really communicating with the hardware. If there's an issue causing e.g. screen flicker, it's always either a physical failure of the hardware or a bug in the kernel module.

2 points

Subreddits

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.