1
57
submitted 1 month ago by [email protected] to c/[email protected]
2
62
submitted 11 months ago* (last edited 11 months ago) by [email protected] to c/[email protected]

Pipewire natively supports a filter to create a 7.1 virtual surround sound device that will work with any headphones or earphones. It's not well documented, so I decided to write a step-by-step guide for enabling it in Pop!

How it Works

Sound is distorted by your head and shoulders relative to your ears in slightly different ways based on the direction the sound is coming from. The distortion, which is known as HRIR (head-related impulse response), is how our brains are able to interpret sound spatially, despite ours ears only being capable of receiving stereo audio.

Pipewire is able to achieve a convincing 7.1 surround sound effect either by using either a SOFA (spatially oriented acoustic data) spatializer, or a HRTF (head-related transfer function) convolver to interpolate a replicated 7.1 HRIR input onto a 7.1 surround input, mimicking the natural process by which we hear sound spatially.

A replicated 7.1 HRIR input is created by placing microphones in the ears of an artificial dummy, and measuring the differences in sound it experienced while listening to a 7.1 surround sound system. Which is why we perceive surround sound in headphones.

SOFA takes this technology to the next level with a more advanced algorithm that can process many additional forms of data inputs to improve the surround sound effect.

Option 1: SOFA Spatializer

Step 1: Copy the following 7.1 SOFA spatializer filter-chain config locally. This creates a virtual output sink with 7.1 surround sound channels.

mkdir -p ~/.config/pipewire/filter-chain.conf.d/
curl -o ~/.config/pipewire/filter-chain.conf.d/spatializer.conf \
    https://gist.githubusercontent.com/mmstick/039422a63c73a09e998d08608abaee43/raw/9c4dfef5a447fe25a47e3492e518e134e57ee9d4/7.1-spatializer.conf

Step 2: Download a SOFA DTF for the filter to utilize as its input.

sudo mkdir -p /usr/share/pipewire/sofa/
sudo curl -o /usr/share/pipewire/sofa/dtf.sofa \
    https://sofacoustics.org/data/database_sofa_0.6/ari/dtf%20b_nh724.sofa

Then go to Step 4 below

Option 2: HRIR Convolver

Step 1: Copy the 7.1 filter-chain config locally. This creates a virtual output sink with 7.1 surround sound channels.

mkdir -p ~/.config/pipewire/filter-chain.conf.d/
cp /usr/share/pipewire/filter-chain/sink-virtual-surround-7.1-hesuvi.conf \
    ~/.config/pipewire/filter-chain.conf.d/virtual-surround.conf

Step 2: Download a 7.1 HRIR wav file from the HRTF Database, such as Atmos or CMSS-3D. Then move it into your local pipewire configuration.

mkdir -p ~/.config/pipewire/hrir/
mv ~/Downloads/atmos.wav ~/.config/pipewire/hrir/atmos.wav

Step 3: Edit the copied virtual-surround config to use this wav file.

sed -i "s#hrir_hesuvi/hrir.wav#${HOME}/.config/pipewire/hrir/atmos.wav#g" \
    ~/.config/pipewire/filter-chain.conf.d/virtual-surround.conf

Start the filter and test it


Step 4: Start pipewire with the filter-chain config. The virtual surround device will now exist as long as this is running in the background.

pipewire -c filter-chain.conf

Step 5: Select the virtual surround sink output device and try it out.

Side Effects

There's a slight audio latency increase from using virtual surround sound, depending on how fast the CPU is. It is a simple process though so the performance cost is slight.

Stereo audio sources should have the same sound before and after. Surround sound content will sound as they were intended to be heard, and it could help with dialogue in some movies being difficult to hear. Especially if you are able to configure the volume of the center speaker channel where dialogue is usually played.

Help

Any help with finding a way to automate this when plugging in headphones would be great.

3
14
submitted 2 days ago* (last edited 1 day ago) by [email protected] to c/[email protected]

I switched to Pop!_OS earlier this year from Manjaro KDE. One feature that KDE had is that you could write a comment on any file by clicking Properties and going to the metadata. I assumed that this wrote the comment into the metadata of every file and that this would translate over to other distributions, but it doesn't appear to be the case.

I found this old thread from 2012 which said that KDE stores it's comments in ~/.kde/share/apps/nepomuk/. If that's still true today, I'm really worried now that all of that comment data I spent hours writing has been deleted along with Manjaro, because I had no idea that the data wasn't store inside the file itself, since it was always listed with the rest of the metadata for every file in it's properties. Is there no hope of me getting these comments back, or is there some way?

Update: Despite what that old thread seemed to imply, it turns out the comments do in fact get stored in metadata. After getting help in the comments, I found the easiest solution was to simply install Dolphin (KDE's file manager) into Pop!_OS, which allowed me to view the comments just as they were when I used KDE. For future readers, some other options that I didn't try that probably also work are:

  • Load a Linux distro using KDE into a virtual machine on top of Pop!_OS and view comments that way
  • Flash a distro like KDE Neon onto a live USB and view the comments that way
  • Use the command getfattr FILENAME -n user.xdg.comment to view the comment data within the Pop! terminal (I didn't get this working, but this was suggested to me)
4
13
submitted 4 days ago by [email protected] to c/[email protected]

So just got my computer switched over to Pop! OS.

When I open the Pop Shop, the installers don't give me an option to change the location of the app installs. I have 4 disks, 2 nvmes, 2 hard disks. I would prefer to install some of my apps to the 2nd nvme, which I have mounted to /Apps. Mainly the games I will play, along with Stream and Lutris.

Would I need to install from the terminal with apt or nala? I installed nala because it looks cleaner, but we'll see.

5
62
submitted 1 week ago* (last edited 1 week ago) by [email protected] to c/[email protected]
6
29
submitted 2 weeks ago* (last edited 2 weeks ago) by [email protected] to c/[email protected]

Hi all, I've been running the latest Pop_OS 22.04 LTS, and recently discovered all the new cosmic apps from the upcoming Cosmic DE. They are seriously impressive in both UI/UX and performance, but I got updates to all of the cosmic apps yesterday, and now when i try and launch any of them, they simply hard lock my computer, forcing a hard reboot to recover.

I noticed a few recent reports of similar behavior over on Reddit, but Reddit 'tis a silly place, so I'm posting to Lemmy instead.

Since I cannot copy/paste any errors, i took a picture and hand typed out what happens when i launch cosmic-store from a terminal. It appears to be a json-ish error.

ERROR winit::platform_impl::platform] X11 error: XError {
    description: "BadMatch (invalid parameter attributes)",
    error_code: 8,
    request_code: 149,
    minor_code: 4
)

os info:

kernel: 6.9.3-76060903-generic

distro:
DISTRIB_ID=Pop
DISTRIB_RELEASE=22.04
DISTRIB_CODENAME=jammy
DISTRIB_DESCRIPTION="Pop!_OS 22.04 LTS"

There are no updates available via sudo apt update && apt upgrade as of time of this post, and this is from an xorg session.

~$ ps -e | grep -E '(Xorg|wayland)'

   2207 tty2     00:00:12 Xorg
7
8
submitted 4 weeks ago by jimitsoni18 to c/[email protected]

I wanted to build and use cosmic epoch on my void linux system with seatd, but i could not find build and install instructions on the project's README.md. Although it did have installation instructions for PopOs, fedora and arch based distros. If someone has already installed it, can you please tell me if it is possible to install it on void with seatd and how do I install it...

8
26
submitted 1 month ago by [email protected] to c/[email protected]

Worth watching

9
22
submitted 1 month ago* (last edited 1 month ago) by [email protected] to c/[email protected]

I have written a calculator in Rust and libcosmic, the design is copied from gnome-calculator; I discovered 2 things:

  1. I don't like working on UIs.
  2. I have no idea how to transform

cosmic::widget::button::Builder

to

cosmic::widget::Button;

this code would be so much cleaner if I could return a button::standard() from a function.

The source code.

10
22
submitted 1 month ago by [email protected] to c/[email protected]

I’m not super familiar with the differences between x11 and Wayland, but I’ve been experiencing some screen tearing in games with x11 that I don’t remember experiencing in the past. I’ve heard Wayland is more performant, but does that mean anything when gaming?

I am using an AMD gpu with just out-of-the-box settings. No additional drivers or tinkering.

11
7
submitted 1 month ago by [email protected] to c/[email protected]

After updating system76-power yesterday, today charge thresholds aren't working. Running system76-power charge-thresholds gives this:

org.freedesktop.DBus.Error.Failed: Not running System76 firmware with charge threshold support

Anything I can do besides wait for a fix?

12
7
submitted 1 month ago by [email protected] to c/[email protected]

I've been trying to create a new cpuset to run some programs with a reduced set of cpu cores, but I seem to be fighting with something my system is already doing because the instructions from the kernel manual don't work. I find cpuset is already mounted, but when I create a directory in /sys/fs/cgroup/cpuset it does not end up with cpuset.cpus in it. It seems cpusets are aleady being used by something else, so not sure how I'd go about this?

Manual with step by step tutorial: https://www.kernel.org/doc/html/latest/admin-guide/cgroup-v1/cpusets.html

13
39
submitted 1 month ago by [email protected] to c/[email protected]

The only thing that is stopping me from daily driving the pre-alpha is the fact that I can't get my VPN to connect.

Troubleshooting steps so far:

  • Everything suggested on the notification in the screenshot, including restarting, signing out, and trying other servers.
  • Using the Advanced Network Configuration app as suggested by @mmstick in a Reddit post. Tried importing a Proton VPN configuration and entering the OpenVPN info manually.

It connects just fine in the current Gnome DE, and I don't have enough know-how to understand what's not working in COSMIC.

14
79
submitted 1 month ago by [email protected] to c/[email protected]

back in March, I saw someone posted about this.. now that few weeks had passed, what was the announcement? Did I miss something?

15
110
submitted 1 month ago* (last edited 1 month ago) by [email protected] to c/[email protected]

there was no updates in last week. I'm sure the team is working hard on the cosmic de and other refinements.

👍

16
26
submitted 1 month ago by [email protected] to c/[email protected]
17
11
submitted 1 month ago by [email protected] to c/[email protected]
18
21
submitted 1 month ago* (last edited 1 month ago) by [email protected] to c/[email protected]

Hi, I recently installed pop!_os on my shiny new gaming desktop and I'm loving it so far. But I'm now trying to get some games to work (mostly Helldivers 2 right now, which does work after a fresh install, but then freezes on a blackscreen with all subsequent launches. I'm assuming this is due to that awful kernel level anti cheat somehow)

Long story short, according to the fine folks over at protonDB, gamescope can help. But I can't find it on the pop shop or with apt-get. If anyone can point me to some trusted PPA I can use, or the dependencies I need to build it from source, that would be very appreciated (or even, just how to find out what dependencies I am missing. I lost my linux-fu after a long period of using Windows exclusively but I'm not a complete noob)

Additional infos : I used the Nvidia installer, 550 drivers (I have the RTX 3080 Ti), have the Nvidia drm modeset enabled, and I'm using the pop_os Steam package. ~~I also enabled "force full composition pipeline" in Nvidia settings~~ actually I just disabled it because it was causing issues with some other games that were running fine without it

19
33
submitted 1 month ago by [email protected] to c/[email protected]
20
9
submitted 2 months ago* (last edited 2 months ago) by [email protected] to c/[email protected]

My laptop is running modern hardware with NVME drive and has 64GB of RAM. Running Pop!_OS 22.04 with Gnome/Wayland.

When I launch the cosmic-store or cosmic-edit (for example) via command line or launcher, each takes about 25 seconds for its app window to load. Loading the Pop Shop in the same fashion takes less than 1 second.

I saw a few lines indicating files couldn't be opened, and thought at first maybe my ulimit was set incorrectly, but there is plenty of headroom on my user (soft limit: 4096, hard limit: 1048576).

I do see a handful of logs that look questionable:

May 04 07:50:59 rosie systemd[2109]: app-gnome-com.system76.CosmicEdit-17126.scope: Couldn't move process 17126 to requested cgroup '/user.slice/user-1000.slice/[email protected]/app.slice/app-gnome-com.system76.CosmicEdit-17126.scope': No such process
May 04 07:50:59 rosie systemd[2109]: app-gnome-com.system76.CosmicEdit-17126.scope: Failed to add PIDs to scope's control group: No such process
May 04 07:50:59 rosie systemd[2109]: app-gnome-com.system76.CosmicEdit-17126.scope: Failed with result 'resources'.
░░ Subject: Unit failed
░░ Defined-By: systemd
░░ Support: http://www.ubuntu.com/support
░░ 
░░ The unit UNIT has entered the 'failed' state with result 'resources'.
May 04 07:50:59 rosie systemd[2109]: Failed to start Application launched by gnome-shell.

What could be causing the cosmic apps to load so slowly?

21
88
submitted 2 months ago by [email protected] to c/[email protected]

COSMIC Tweaks gives you granular control over everything you can do in COSMIC.

This app aims to help you tweak settings that are not currently available in COSMIC Settings.

Here's what the app can do so far:

  • ✨ Color schemes: Save your current theme and import other themes to use anytime you want.

  • ⚙️ Panels: Fine-tune your panel padding and spacing.

COSMIC Tweaks is just getting started, and more features are on the way!

Let me know what you think in the comments below!

22
39
submitted 2 months ago by [email protected] to c/[email protected]
23
26
submitted 2 months ago by [email protected] to c/[email protected]

RUST Cosmic Desktop on Pop!_OS will be also available on Asahi Linux, Fedora and on NixOS as a Nix Package in the main repo.. Let's talk about the quality o...

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

Official System76 Blog

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

Hey,

Lately there was a post on reddit about request for WebApp Manager for Cosmic desktop.

Few months ago I was working on WAM Rust so "web app manager" written in Rust and Iced-rs. Yesterday I decided to rewrite it to libcosmic so it will looks nicer and integrate with Cosmic desktop better.

The result is awesome. I'm happy how it looks.

This is very first working version of this app, so it's working with mainly mainstream browser and maybe there will be some fuckups. However I will try to do my best to finish it so it will work better and just like Linux Mint's "WAM".

If you are interested in this app, you can follow my progress on github: https://github.com/elevenhsoft/cosmic-wam

Have a nice day and wait patiently for Cosmic desktop :)

p.s.

Sorry for copy paste from reddit. It just faster to do than uploading again and again :)

view more: next ›

Pop!_OS (Linux)

4893 readers
2 users here now

Pop!_OS is an operating system developed by System76 for STEM and creative professionals who use their computer as a tool to discover and create. Unleash your potential on secure, reliable open source software. Based on your exceptional curiosity, we sense you have a lot of it.

Unleash your potential

Whether this is your first experience with Linux, or your latest adventure, all are welcome to discuss and ask questions about Pop!_OS and COSMIC. Keep the discussions friendly though, and remember to assume good intentions whenever you reply. We're all here because we have a shared love for Linux and open source software.

System76 Logo

Support us by buying System76 hardware for you or your company! Or by donating on the Pop!_OS website through the "Support Pop" button. Pop!_OS and COSMIC are fully funded by System76 hardware sales. All systems are assembled in the USA. With your support, we'll work to push the Linux desktop forward with COSMIC.

Links

Guides

Hardware

Recommended

Community Rules

Follow the Code of Conduct

All posts on pop_os must adhere to the Pop!_OS community Code of Conduct. https://github.com/pop-os/code-of-conduct

Be helpful

Posts to pop_os must be helpful. When responding to a user asking for help, do not provide tongue-in-cheek responses like "RTM" or links to LMGTFY. Linking to direct sources that answer the asker's question is fine, but it's advised to provide some explanation as to how you got to that source.

Critique should be constructive

We within the Pop!_OS community welcome helpful criticism or ideas on ways to improve. However, basic "It's bad" or other simple negative comments don't help anyone fix anything. When voicing a complaint about something, try to point out ways the complaint could be improved or worked around, so that we can make a better product for it.

This rule applies to both Pop!_OS and its projects as well as other products available from third-parties.

Don't post malicious "advice"

It can be funny to joke about malicious commands, however this is not the venue for it. Do not advise users to run commands which will lock up their systems, steal their data, or erase their drive. Examples of this include (but are not limited to) fork bombs, rm, etc.

Posts violating this rule will be removed, even if the post is clearly in jest. Repeated offences may lead to a ban. You may understand that the command isn't serious, but a new user might not.

No personal attacks

Posts making a personal attack on any user will not be tolerated.

No hate speech

Hate speech of any kind will not be tolerated. Any violations will be removed, and are grounds for a ban.

founded 1 year ago
MODERATORS