Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cava shows ";;" #2801

Closed
raffaem opened this issue Jan 4, 2024 · 13 comments
Closed

cava shows ";;" #2801

raffaem opened this issue Jan 4, 2024 · 13 comments
Labels
bug Something isn't working

Comments

@raffaem
Copy link

raffaem commented Jan 4, 2024

I compiled waybar from git using the instructions here.

In my config I have:

  "cava": {
//        "cava_config": "$XDG_CONFIG_HOME/cava/cava.conf",
        "framerate": 30,
        "autosens": 1,
        "sensitivity": 100,
        "bars": 14,
        "lower_cutoff_freq": 50,
        "higher_cutoff_freq": 10000,
        "method": "pipewire",
        "source": "auto",
        "stereo": true,
        "reverse": false,
        "bar_delimiter": 0,
        "monstercat": false,
        "waves": false,
        "noise_reduction": 0.77,
        "input_delay": 2,
        "format-icons" : ["▁", "▂", "▃", "▄", "▅", "▆", "▇", "█" ],
        "actions": {
                   "on-click-right": "mode"
                   }
    }

But the cava module is shown as ";;":

Logs:

❯ ./build/waybar
[2024-01-04 08:48:10.903] [info] Using configuration file /home/raffaele/.config/waybar/config
[2024-01-04 08:48:10.905] [info] Unable to receive desktop appearance: GDBus.Error:org.freedesktop.DBus.Error.UnknownMethod: No such interface “org.freedesktop.portal.Settings” on object
 at path /org/freedesktop/portal/desktop
[2024-01-04 08:48:10.905] [info] Using CSS file /home/raffaele/.config/waybar/style.css
[2024-01-04 08:48:11.450] [warning] Mapping is not an object
[2024-01-04 08:48:11.450] [info] Hyprland IPC starting
[2024-01-04 08:48:11.452] [warning] Waybar has been built without rfkill support.
[2024-01-04 08:48:11.592] [info] Bar configured (width: 1920, height: 32) for output: eDP-1

** (waybar:114759): WARNING **: 08:48:11.595: Status Notifier Item with bus name ':1.32' and object path '/org/ayatana/NotificationItem/nm_applet' is already registered

(waybar:114759): Gtk-CRITICAL **: 08:48:11.609: gtk_widget_set_accel_path: assertion 'GTK_IS_ACCEL_GROUP (accel_group)' failed

(waybar:114759): Gtk-CRITICAL **: 08:48:11.609: gtk_widget_add_accelerator: assertion 'GTK_IS_ACCEL_GROUP (accel_group)' failed

(waybar:114759): Gtk-CRITICAL **: 08:48:11.609: gtk_widget_set_accel_path: assertion 'GTK_IS_ACCEL_GROUP (accel_group)' failed

(waybar:114759): Gtk-CRITICAL **: 08:48:11.609: gtk_widget_add_accelerator: assertion 'GTK_IS_ACCEL_GROUP (accel_group)' failed
Call failed: Connection timed out
Error calling StartServiceByName for org.freedesktop.Notifications: Timeout was reached

I've also tried build and installed subprojects/cava-0.9.1/. Same results.

Not a duplicate of #2781 as that seems to be cause by waybar compiled without the cava module altogether.

I've also tried the following config:

  "cava": {
        "cava_config": "/home/raffaele/.config/cava/config"
  }
@raffaem raffaem changed the title cava shows ";;" on hyprland cava shows ";;" Jan 4, 2024
@Zenith-the-realest
Copy link

what do you name the cava module to get it to show up at all? I name it cava and it still shows up as unknown. And yes, I have built the package with Dcava=enabled.

@LukashonakV
Copy link
Contributor

LukashonakV commented Jan 4, 2024

Hi @raffaem.

  1. make sure you're using correct "method": "pipewire",
  2. try to run cava as an application and sure it works correct. Please see an example
  3. Try to increase "input_delay": 2, to for example 4,6,8 seconds and wait this delay before start playing. It might possible waybar starts much earlier before pipewire server is ready. (On author's second machine this parameter is set to 4 seconds)
2024-01-04.17-40-29.mp4

@raffaem
Copy link
Author

raffaem commented Jan 4, 2024

THis is my newconfig, same result:

  "cava": {
        "cava_config": "/home/raffaele/.config/cava/config",
        "format-icons" : ["▁", "▂", "▃", "▄", "▅", "▆", "▇", "█" ],
        "bar_delimiter": 0,
        "method": "pipewire",
        "input_delay": 8
  }

The CLI programcava works, although it's the distribution installed one while I believe waybar is linkedwith the libcava bundled with the sources.

@raffaem
Copy link
Author

raffaem commented Jan 4, 2024

It might possible waybar starts much earlier before pipewire server is ready

This is irrelevant if I restart the waybar, right?

@LukashonakV
Copy link
Contributor

You should restart waybar once delay is changed

@raffaem
Copy link
Author

raffaem commented Jan 4, 2024

That's what I'm doing

@LukashonakV
Copy link
Contributor

It might possible waybar starts much earlier before pipewire server is ready

This is irrelevant if I restart the waybar, right?

Should be irrelevant. But in your logs one thing looks strange
[2024-01-04 08:48:10.905] [info] Unable to receive desktop appearance: GDBus.Error:org.freedesktop.DBus.Error.UnknownMethod: No such interface “org.freedesktop.portal.Settings” on object at path /org/freedesktop/portal/desktop
If I were you, I'd start to check why dbus throws this

@raffaem
Copy link
Author

raffaem commented Jan 4, 2024

I think xdg-desktop-portal-hyprland doesn't support org.freedesktop.portal.Settings

@smsteward
Copy link

I had a few issues with the cava module before, particularly with the install locations, but I'll list the steps and config options that I followed to get a working cava module if it helps.

To install:

  1. git clone https://github.com/Alexays/Waybar
  2. cd Waybar
  3. meson build && meson configure build -Dprefix="/usr"
  4. sudo meson install -C build

My cava config options:

"cava": {
    "framerate": 120,
    "autosens": 1,
    "bars": 12,
    "method": "pipewire",
    "source": "auto",
    "bar_delimiter": 0,
    "input_delay": 2,
    "sleep_timer": 2,
    "hide_on_silence": true,
    "format-icons" : ["▁", "▂", "▃", "▄", "▅", "▆", "▇", "█" ]
},

@raffaem
Copy link
Author

raffaem commented Jan 5, 2024

Still nothing.

We don't know what's failing because there are no logs related to cava.

@Myned
Copy link

Myned commented Jan 10, 2024

I had this problem initially due to it not being clear enough that format-icons is a required attribute. Though if ;; is still showing for you despite bar_delimiter defined as ASCII null, that points to the settings not taking effect in the first place.

I was able to get your last snippet, barring the cava_config file, to work on my system (Hyprland following NixOS unstable) with the result:

image

For reference, this is what it should look like with only format-icons defined:

image

Should be irrelevant. But in your logs one thing looks strange [2024-01-04 08:48:10.905] [info] Unable to receive desktop appearance: GDBus.Error:org.freedesktop.DBus.Error.UnknownMethod: No such interface “org.freedesktop.portal.Settings” on object at path /org/freedesktop/portal/desktop If I were you, I'd start to check why dbus throws this

In regards to this warning, it is indeed due to the Hyprland portal not offering that dbus path. I don't have this warning on my system as I add xdg-desktop-portal-gtk as an extra portal, which does provide it. I noticed no effect either way while testing with it disabled.

@LukashonakV
Copy link
Contributor

Actually cava upstream has brought new changes related to the pipewire. I have to take some pause to merge them to the cava library and include it into the waybar

@Alexays Alexays added the bug Something isn't working label Jan 30, 2024
@LukashonakV
Copy link
Contributor

Hi there. Finally I have merged all cava upstream incoming PR into cava library.
@raffaem can you please check this #2925
It might help you. There were some improvements relates to the Pipe wire and Jack audio input interfaces

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

6 participants