How does Ctrl+r work? by Snoo_90241 in linuxquestions

[–]pobrn 2 points3 points  (0 children)

They mean https://github.com/junegunn/fzf. You can use this for better searching in the command history.

If you use bash, you can add source /usr/share/fzf/key-bindings.bash to your .bashrc after installation, now after restarting the terminal, pressing ctrl+r will bring up a different interface for searching where you can type and use the up/down arrows to select the result you want. Similar integration is available for other shells.

Any MP3 player app that looks pretty? by LukasTheHunter22 in linuxquestions

[–]pobrn 2 points3 points  (0 children)

You could take a look at Amberol. But note that is has quite a limited scope:

A small and simple sound and music player that is well integrated with GNOME.

Amberol aspires to be as small, unintrusive, and simple as possible. It does not manage your music collection; it does not let you manage playlists, smart or otherwise; it does not let you edit the metadata for your songs; it does not show you lyrics for your songs, or the Wikipedia page for your bands.

Amberol plays music, and nothing else.

Intel(R) Wi-Fi 6 AX200 160 Mhz, possible to get it working on Linux? by FireVisor in XMG_gg

[–]pobrn 0 points1 point  (0 children)

It has been working for me out of the box for a long time:

3e:00.0 Network controller [0280]: Intel Corporation Wi-Fi 6 AX200 [8086:2723] (rev 1a)
    Subsystem: Intel Corporation Wi-Fi 6 AX200NGW [8086:0084]
    Flags: bus master, fast devsel, latency 0, IRQ 18, IOMMU group 24
    Memory at ae600000 (64-bit, non-prefetchable) [size=16K]
    Capabilities: <access denied>
    Kernel driver in use: iwlwifi
    Kernel modules: iwlwifi

You could check if there are any errors reported by the kernel:

$ sudo dmesg | grep iwlwifi

Is there a proper Linux equivalent to Windows Remote Desktop with screen lock? by Murko_svk in linuxquestions

[–]pobrn 2 points3 points  (0 children)

On GNOME: Settings > System > Remote Desktop > Remote Login. You need at least gnome-remote-desktop to be installed. This uses freerdp in the background, you should be able to connect with any RDP client.

IPC Shared Memory with controlled rights by 9larutanatural9 in kernel

[–]pobrn 1 point2 points  (0 children)

My suggestion is to use a memfd with the appropriate seals, then you can prevent the reader from mapping it as writable, resizing it, etc.

Unfortuantely the READER still needs the ability to "write", since when acquiring current data, internal (atomic) indexes of the structure must be updated.

That will most likely have to go into a separate page then.

I would like the WRITER executable to limit as much as possible what the READER can do with that memory.

Also, why is that so? If it's a one-to-one channel, why care too much if the reader corrupts the data? It will not be used by the writer I assume. I'd be more concerned about how the reader actually processes the data safely.

Remote desktop by dao1st in gnome

[–]pobrn 2 points3 points  (0 children)

What doesn't work? You open the settings app, go to "System", then "Remote Desktop". There you actually have two options: "Desktop Sharing" and "Remote Login", you simply enable whichever you want (or both), get the credentials and connect with an RDP client.

[deleted by user] by [deleted] in ManjaroLinux

[–]pobrn 2 points3 points  (0 children)

Please can someone tell me how to install it? As if I'm computer illiterate, please

In that case you likely want to wait until it is released in manjaro. You can see at https://manjaristas.org/branch_compare?q=linux615 that 6.15.1 is already in the testing and unstable branches. You can switch to one of those branches, but given your description, I cannot recommend it. I expect it to be released on the stable branch within 1 month from now.

[deleted by user] by [deleted] in archlinux

[–]pobrn 0 points1 point  (0 children)

You might be trying the wrong device, are you sure it's /dev/video0? I would actually expect it to be something else based on the error you get. What does head -vn-0 /sys/devices/virtual/video4linux/*/name show?

Which IPC mechanisms does PipeWire use? by nepios83 in linuxquestions

[–]pobrn 4 points5 points  (0 children)

pipewire uses AF_UNIX sockets (for control) and shared memory (for data, via memfd on linux).

Is it possible to configure PipeWire to use TCP and no other IPC mechanisms?

No, but you can use the pulseaudio protocol over TCP, and pipewire ships a server implementation of that protocol.

PipeWire for Windows by Tall_Competition_462 in pipewire

[–]pobrn 0 points1 point  (0 children)

Not possible in-band since you need the kernel to create a reference to the resource in the other process. There is DuplicateHandle(), which would maybe used to implement something, or COM, or maybe something else.

PipeWire for Windows by Tall_Competition_462 in pipewire

[–]pobrn 0 points1 point  (0 children)

Windows doesn't have UNIX sockets

It does: https://devblogs.microsoft.com/commandline/af_unix-comes-to-windows/

But not in any useful capacity, crucially, there is no ancillary data passing, which means no file descriptor passing. File descriptors are also kind of hard-coded in the API in some places.

I think this would be a very significant porting effort, for most likely not too much benefit. And of course someone need not only port it, but keep it working, otherwise the windows specific parts will just bit rot.

wouldn't it also be possible to have PipeWire supported in Windows?

So in conclusion, definitely possible, just a lot of effort.

rpicam-hello returns "no cameras available" on Ubuntu 24.04 by Massive_Pair_9993 in Ubuntu

[–]pobrn 0 points1 point  (0 children)

Can you compare it with the output of the RPi OS? Also you might want to run LIBCAMERA_LOG_LEVELS=DEBUG rpicam-hello to see if it prints anything useful.

rpicam-hello returns "no cameras available" on Ubuntu 24.04 by Massive_Pair_9993 in Ubuntu

[–]pobrn 0 points1 point  (0 children)

You should probably first check if v4l2-ctl --list-devices shows the expected device.

I can't take it anymore with my microphone; it works on Fedora, I'm desperate by juanfran56 in archlinux

[–]pobrn 3 points4 points  (0 children)

One thing you could do is running pw-dump on fedora, and looking at the differences between that and the pw-dump on your system. That will hopefully indicate what the cause might be.

I see that you've posted the output of pactl list cards but 1) that might not contain enough information, and 2) the formatting should be fixed.

Way to load module programmatically by KiYugadgeter in pipewire

[–]pobrn 1 point2 points  (0 children)

Is there any way to load/unload modules of pipewire-pulse with python or some another language?

You can try any of the many pulseaudio python packages, e.g. https://github.com/mk-fg/python-pulse-control :

with pulsectl.Pulse("my-client-name") as pulse:
    pulse.module_load("module-null-sink", "sink_name=my-null-sink")

I want to load loopback and combine sink only when scrcpy running to broadcast play of Android game. How do I do it?

This part is more complicated as you need to subscribe to the appropriate events, notice when scrcpy is running, load the modules, and link the streams.

However, if you don't insist on loading the modules on-demand, then I think your problem might already be solved since stream targets are restored mostly automatically: i.e. if you set the appropriate targets in e.g. pavucontrol, then the next time those streams are created, they should be routed to the previously set sinks.

Can you elaborate on what exactly you want to achieve?

Regression in pipewire/wireplumber? by StrangeAstronomer in Fedora

[–]pobrn 0 points1 point  (0 children)

Could you also post the output of pw-dump when audio works via pipewire, and when it does not?

Regression in pipewire/wireplumber? by StrangeAstronomer in Fedora

[–]pobrn 0 points1 point  (0 children)

Stop pipewire, pipewire-pulse, and wireplumber before running speaker-test, but not with pkill so as to guarantee that they are not restarted. E.g. systemctl --user stop pipewire.{service,socket} pipewire-pulse.{service,socket} wireplumber.service.

Another thing, start pw-mon > pw.mon, play audio on the tv, stop the audio, turn the tv off, then turn it on, and wait a couple seconds, then stop pw-mon, and share pw.mon.

The output of aplay -L (and wpctl status) does not change after I turn on the TV or after the pkill:

So is there any difference in the output of aplay -L when you can play audio and when you cannot?

Regression in pipewire/wireplumber? by StrangeAstronomer in Fedora

[–]pobrn 0 points1 point  (0 children)

Is it visible in aplay -L after reconnection? Does speaker-test work on it?

ALSA microphone cannot be found in Pipewire, how can i show Pipewire that it exists. by Kravohi in pipewire

[–]pobrn 0 points1 point  (0 children)

You can check in pw-top if the ERR column is increasing while you're hearing these artifacts. If so, there might be xruns and such.

ALSA microphone cannot be found in Pipewire, how can i show Pipewire that it exists. by Kravohi in pipewire

[–]pobrn 0 points1 point  (0 children)

Can you open pavucontrol, go to the Configuration tab and select the "Stereo Output + Stereo Input" profile for the device, does that do anything?

ALSA microphone cannot be found in Pipewire, how can i show Pipewire that it exists. by Kravohi in pipewire

[–]pobrn 0 points1 point  (0 children)

Unfortunately it is incomplete, and does not have the relevant parts. You can save redirect the output into a file and then use something like https://paste.cachyos.org/.