by heywoodlh · 4y ago · 0 comments
- audio
- displays
- bluetooth
Audio is especially confusing on Linux because there are so many parts to one system. Even after researching PulseAudio, ALSA, Pipewire, Jack, etc. it is super hard for me to know exactly what does what on my Linux machines.
I found that with i3 I often spent more time tweaking my desktop than actually doing work. However, I think that tweaking like this is actually super fun and educational on how Linux display stuff works -- I would never discourage someone from taking the time to mess around with i3, bspwm, or an alternative.
My perfect balance is GNOME plus the Pop! OS shell extension[1]. I'm not a Pop! OS user (and likely never will be) but I loooove having tiling in GNOME and being able to have all the stuff I don't like to manage just work.
[1] https://github.com/pop-os/shell
EDIT: minor grammar tweak
One of the advantages of NixOS model.
hardware.pulseaudio.enable = true;
hardware.bluetooth.enable = true;
services.blueman.enable = true; #for systray applet
They work fine and are wm/de independent. As for displays, I simply use `arandr`. Can even save/apply layouts for specific setups.Can you explain how audio and bluetooth works independently of the desktop session? Does it need custom support compiled in to every window manager?
If it's so easy to do it independently of the desktop session, why does Ubuntu etc. make it dependent on the desktop session? I had assumed that it was something like the desktop session needing to set up environment variables so that all your applications knew how to talk to PulseAudio.
> Explicit PulseAudio support in applications
> Normally, the system-wide ALSA configuration (/etc/asound.conf) redirects the audio of applications which use the ALSA API through PulseAudio. For this reason, most applications do not need to be PulseAudio-aware. Some NixOS packages can be built with explicit PulseAudio support which is disabled by default. This support can be enabled in all applicable packages by setting:
> nixpkgs.config.pulseaudio = true;
>why does Ubuntu etc. make it dependent on the desktop session
Because what if you didn't want them? Non-Nix systems don't have this centralized configuration model therefore they cannot provide this flexibility. Therefore they just let each session to load what it needs.
Note that the parent is only changing a config option; there may be all sorts of logic behind the scenes which branch on that value, e.g. to splice different text into /etc files, to add compile flags to package builds, etc. ;)
For reference, here's my nixpkgs repo (galaxy-chromebook is my most recent config): https://github.com/heywoodlh/nixpkgs
I have been using Regolith for half a year now, after 10 years of endless tweaking of XMonad and Gnome under Ubuntu.
Gets me interested in getting my build setup like that!
Most of the time was spent just to familiarize with Arch and find packages, which will pay off later.
Regular Manjaro seems newbie friendly as well.
I would say if someone is curious to give Arch a try but doesn't want to go through the installation process that they should give archinstall a try! In my opinion, the preset profiles (for GNOME, KDE, etc.) really removes a bunch of friction to using Arch if you are a new user or just want to save yourself time.
(I would imagine my views don't reflect the majority of the Arch community as it often seems like deliberate steps are taken to keep Arch as a gated community to those who are elite enough to invest in Arch 100%)
- huge lack of basic hardware support for things like wifi (or bluetooth) chipsets
- lack of Docker support (I'm one of those that uses Docker as my universal CLI package manager)
Aside from these things, I absolutely love the mentality and philosophies behind FreeBSD and would love to have a FreeBSD workstation!
Displays is fixed by using Wayland (sway).
Bluetooth is indeed an unsolved problem. I suppose the skilled hacker types have just declared the whole protocol as broken and use wires.
My experience with Pipewire has definitely been excellent.
> Displays is fixed by using Wayland (sway).
I still have some tooling that requires X11 -- but whenever I've used Wayland I feel like there is still a lot that relies on X11. For me, Rofi is one of those tools that I just haven't been able to totally replace in Wayland (even with the Wayland forks of Rofi). Some other day-to-day examples are Zoom[1] and Nvidia graphics cards[2]. While I am aware that these are third parties lagging behind Wayland support and not really an issue with Wayland itself, it still demonstrates how everything is not magically "just fixed" simply because you are on Wayland.
[1] https://support.zoom.us/hc/en-us/articles/6634039380877-Shar...
[2] https://forums.developer.nvidia.com/t/wayland-information-fo...
Do I read parent as saying that these things are best managed through GUI widgets attached to the desktop environment
100% you are reading my original comment correctly. An example I ran into recently: I start up bluetoothctl, I power on the adapter, start scanning for Blueooth devices and am spammed by a bluetooth device nearby to the point where I can't see the one I am trying to pair to (even after turning off scanning). In contrast, blueman-applet or GNOME's control-center neatly organizes each unique Bluetooth device as individual icons and makes it easy to see each of those. Lots of little papercuts like that can make it frustrating when you're just trying to get work done.
This is also true things like displays -- sure I could take 20 minutes write a script to rearrange my displays the way I prefer -- or I could just open GNOME's control center and take two minutes using the display setting.
There are lots of little things like this that can get in the way when you just need to get something done.
And this is totally subjective to my experience, my opinion and what I currently value so please don't take this like I am saying everyone should prioritize things the way I do. For those more comfortable in i3 or something else -- great! :)
What would cause friction is if the display plain didn't work, or had bad aspect ratio or fonts. Wayland (in combination with kernel graphics probably) seems to have fixed those problems.
exec_always --no-startup-id blueman-applet
exec_always --no-startup-id nm-applet --indicator
Though note I basically only use Windows as a fat driver layer unless I'm playing games (Wintendo!)
> unless I'm playing games
This is one area I've not been able to completely ditch Windows. Valve is doing some great work to get Windows games running on Linux in Steam but I find myself playing a bunch of games that are not in Steam with an anti-cheat engine that sucks in Proton. I hope more external game launchers/stores and anti cheat engines are motivated by Valve to implement Linux (or emulated) support.
I totally cannot be arsed being a desktop admin for either.
So I use WSL2+Xsrv to give me my -client- environment on windows and then use that to ssh into servers to actually do stuff.
Meanwhile, windows acts as a fat driver layer that provides firefox and my X11 setup and easy access to games.
I am in no way recommending this. But it works for me.
The thing I care about that a tiling window manager brings me is a way to automatically organize your windows in a minimal looking environment. The way I set up GNOME I am able to achieve that.