-
Notifications
You must be signed in to change notification settings - Fork 32
Can't query sound cards under pipewire #149
Comments
This extension has been tested with Pipewire on my systems for almost a year now. Are you sure pulse-compatibility libraries are installed? |
Thanks for the info on how to get started: I'm on Ubuntu 21.04 using the pipewire-debian/pipewire-upstream ppa. I have pipewire-pulse installed, I don't know if that's enough ? Can you point me at the scripts I need to run and with what parameters ? |
Yes, you can run the helper from the CLI: DEBUG=1 [email protected]/pautils/query.py cards
DEBUG=1 [email protected]/pautils/query.py sinks |
$ DEBUG=1 [email protected]/pautils/query.py cards{
"42": {
"index": 42,
"alsaCard": null,
"name": "JACK Client",
"description": "JACK Client",
"active_profile": "off",
"profiles": {
"off": {
"name": "off",
"description": "Off",
"available": true
},
"on": {
"name": "on",
"description": "On",
"available": true
}
},
"ports": {}
},
"43": {
"index": 43,
"alsaCard": 0,
"name": "alsa_card.pci-0000_04_00.1",
"description": "Raven/Raven2/Fenghuang HDMI/DP Audio Controller",
"active_profile": "off",
"profiles": {
"off": {
"name": "off",
"description": "Off",
"available": true
},
"output:hdmi-stereo": {
"name": "output:hdmi-stereo",
"description": "Digital Stereo (HDMI) Output",
"available": false
},
"output:hdmi-stereo-extra1": {
"name": "output:hdmi-stereo-extra1",
"description": "Digital Stereo (HDMI 2) Output",
"available": false
},
"output:hdmi-surround": {
"name": "output:hdmi-surround",
"description": "Digital Surround 5.1 (HDMI) Output",
"available": false
},
"output:hdmi-surround71": {
"name": "output:hdmi-surround71",
"description": "Digital Surround 7.1 (HDMI) Output",
"available": false
},
"output:hdmi-surround-extra1": {
"name": "output:hdmi-surround-extra1",
"description": "Digital Surround 5.1 (HDMI 2) Output",
"available": false
},
"output:hdmi-surround71-extra1": {
"name": "output:hdmi-surround71-extra1",
"description": "Digital Surround 7.1 (HDMI 2) Output",
"available": false
},
"pro-audio": {
"name": "pro-audio",
"description": "Pro Audio",
"available": true
}
},
"ports": {
"hdmi-output-0": {
"name": "hdmi-output-0",
"description": "HDMI / DisplayPort",
"direction": "out",
"available": false
},
"hdmi-output-1": {
"name": "hdmi-output-1",
"description": "HDMI / DisplayPort 2",
"direction": "out",
"available": false
}
}
},
"44": {
"index": 44,
"alsaCard": 2,
"name": "alsa_card.usb-Creative_Technology_Ltd_Sound_Blaster_Play__3_00051932-00",
"description": "Sound Blaster Play! 3",
"active_profile": "output:analog-stereo+input:analog-stereo",
"profiles": {
"off": {
"name": "off",
"description": "Off",
"available": true
},
"output:analog-stereo+input:analog-stereo": {
"name": "output:analog-stereo+input:analog-stereo",
"description": "Analog Stereo Duplex",
"available": true
},
"output:analog-stereo+input:iec958-stereo": {
"name": "output:analog-stereo+input:iec958-stereo",
"description": "Analog Stereo Output + Digital Stereo (IEC958) Input",
"available": true
},
"output:analog-stereo": {
"name": "output:analog-stereo",
"description": "Analog Stereo Output",
"available": true
},
"output:iec958-stereo+input:analog-stereo": {
"name": "output:iec958-stereo+input:analog-stereo",
"description": "Digital Stereo (IEC958) Output + Analog Stereo Input",
"available": true
},
"output:iec958-stereo+input:iec958-stereo": {
"name": "output:iec958-stereo+input:iec958-stereo",
"description": "Digital Stereo Duplex (IEC958)",
"available": true
},
"output:iec958-stereo": {
"name": "output:iec958-stereo",
"description": "Digital Stereo (IEC958) Output",
"available": true
},
"input:analog-stereo": {
"name": "input:analog-stereo",
"description": "Analog Stereo Input",
"available": true
},
"input:iec958-stereo": {
"name": "input:iec958-stereo",
"description": "Digital Stereo (IEC958) Input",
"available": true
},
"pro-audio": {
"name": "pro-audio",
"description": "Pro Audio",
"available": true
}
},
"ports": {
"analog-input-mic": {
"name": "analog-input-mic",
"description": "Microphone",
"direction": "in",
"available": null
},
"iec958-stereo-input": {
"name": "iec958-stereo-input",
"description": "Digital Input (S/PDIF)",
"direction": "in",
"available": null
},
"analog-output-speaker": {
"name": "analog-output-speaker",
"description": "Speakers",
"direction": "out",
"available": null
},
"iec958-stereo-output": {
"name": "iec958-stereo-output",
"description": "Digital Output (S/PDIF)",
"direction": "out",
"available": null
}
}
},
"45": {
"index": 45,
"alsaCard": 1,
"name": "alsa_card.pci-0000_04_00.6",
"description": "Family 17h (Models 10h-1fh) HD Audio Controller",
"active_profile": "output:analog-stereo",
"profiles": {
"off": {
"name": "off",
"description": "Off",
"available": true
},
"output:analog-stereo+input:analog-stereo": {
"name": "output:analog-stereo+input:analog-stereo",
"description": "Analog Stereo Duplex",
"available": true
},
"output:analog-stereo": {
"name": "output:analog-stereo",
"description": "Analog Stereo Output",
"available": true
},
"input:analog-stereo": {
"name": "input:analog-stereo",
"description": "Analog Stereo Input",
"available": true
},
"pro-audio": {
"name": "pro-audio",
"description": "Pro Audio",
"available": true
}
},
"ports": {
"analog-input-internal-mic": {
"name": "analog-input-internal-mic",
"description": "Internal Microphone",
"direction": "in",
"available": null
},
"analog-input-mic": {
"name": "analog-input-mic",
"description": "Microphone",
"direction": "in",
"available": false
},
"analog-output-speaker": {
"name": "analog-output-speaker",
"description": "Speakers",
"direction": "out",
"available": false
},
"analog-output-headphones": {
"name": "analog-output-headphones",
"description": "Headphones",
"direction": "out",
"available": true
}
}
},
"46": {
"index": 46,
"alsaCard": 3,
"name": "alsa_card.platform-snd_aloop.0",
"description": "Built-in Audio",
"active_profile": "output:analog-stereo+input:analog-stereo",
"profiles": {
"off": {
"name": "off",
"description": "Off",
"available": true
},
"output:analog-stereo+input:analog-stereo": {
"name": "output:analog-stereo+input:analog-stereo",
"description": "Analog Stereo Duplex",
"available": true
},
"output:analog-stereo+input:analog-surround-21": {
"name": "output:analog-stereo+input:analog-surround-21",
"description": "Analog Stereo Output + Analog Surround 2.1 Input",
"available": true
},
"output:analog-stereo+input:analog-surround-41": {
"name": "output:analog-stereo+input:analog-surround-41",
"description": "Analog Stereo Output + Analog Surround 4.1 Input",
"available": true
},
"output:analog-stereo+input:analog-surround-51": {
"name": "output:analog-stereo+input:analog-surround-51",
"description": "Analog Stereo Output + Analog Surround 5.1 Input",
"available": true
},
"output:analog-stereo+input:analog-surround-40": {
"name": "output:analog-stereo+input:analog-surround-40",
"description": "Analog Stereo Output + Analog Surround 4.0 Input",
"available": true
},
"output:analog-stereo+input:analog-surround-50": {
"name": "output:analog-stereo+input:analog-surround-50",
"description": "Analog Stereo Output + Analog Surround 5.0 Input",
"available": true
},
"output:analog-stereo+input:analog-surround-71": {
"name": "output:analog-stereo+input:analog-surround-71",
"description": "Analog Stereo Output + Analog Surround 7.1 Input",
"available": true
},
"output:analog-stereo": {
"name": "output:analog-stereo",
"description": "Analog Stereo Output",
"available": true
},
"output:analog-surround-21+input:analog-stereo": {
"name": "output:analog-surround-21+input:analog-stereo",
"description": "Analog Surround 2.1 Output + Analog Stereo Input",
"available": true
},
"output:analog-surround-41+input:analog-stereo": {
"name": "output:analog-surround-41+input:analog-stereo",
"description": "Analog Surround 4.1 Output + Analog Stereo Input",
"available": true
},
"output:analog-surround-51+input:analog-stereo": {
"name": "output:analog-surround-51+input:analog-stereo",
"description": "Analog Surround 5.1 Output + Analog Stereo Input",
"available": true
},
"output:analog-surround-21+input:analog-surround-21": {
"name": "output:analog-surround-21+input:analog-surround-21",
"description": "Analog Surround 2.1 Output + Analog Surround 2.1 Input",
"available": true
},
"output:analog-surround-21+input:analog-surround-41": {
"name": "output:analog-surround-21+input:analog-surround-41",
"description": "Analog Surround 2.1 Output + Analog Surround 4.1 Input",
"available": true
},
"output:analog-surround-21+input:analog-surround-51": {
"name": "output:analog-surround-21+input:analog-surround-51",
"description": "Analog Surround 2.1 Output + Analog Surround 5.1 Input",
"available": true
},
"output:analog-surround-41+input:analog-surround-21": {
"name": "output:analog-surround-41+input:analog-surround-21",
"description": "Analog Surround 4.1 Output + Analog Surround 2.1 Input",
"available": true
},
"output:analog-surround-41+input:analog-surround-41": {
"name": "output:analog-surround-41+input:analog-surround-41",
"description": "Analog Surround 4.1 Output + Analog Surround 4.1 Input",
"available": true
},
"output:analog-surround-41+input:analog-surround-51": {
"name": "output:analog-surround-41+input:analog-surround-51",
"description": "Analog Surround 4.1 Output + Analog Surround 5.1 Input",
"available": true
},
"output:analog-surround-51+input:analog-surround-21": {
"name": "output:analog-surround-51+input:analog-surround-21",
"description": "Analog Surround 5.1 Output + Analog Surround 2.1 Input",
"available": true
},
"output:analog-surround-51+input:analog-surround-41": {
"name": "output:analog-surround-51+input:analog-surround-41",
"description": "Analog Surround 5.1 Output + Analog Surround 4.1 Input",
"available": true
},
"output:analog-surround-51+input:analog-surround-51": {
"name": "output:analog-surround-51+input:analog-surround-51",
"description": "Analog Surround 5.1 Output + Analog Surround 5.1 Input",
"available": true
},
"output:analog-surround-21+input:analog-surround-40": {
"name": "output:analog-surround-21+input:analog-surround-40",
"description": "Analog Surround 2.1 Output + Analog Surround 4.0 Input",
"available": true
},
"output:analog-surround-21+input:analog-surround-50": {
"name": "output:analog-surround-21+input:analog-surround-50",
"description": "Analog Surround 2.1 Output + Analog Surround 5.0 Input",
"available": true
},
"output:analog-surround-21+input:analog-surround-71": {
"name": "output:analog-surround-21+input:analog-surround-71",
"description": "Analog Surround 2.1 Output + Analog Surround 7.1 Input",
"available": true
},
"output:analog-surround-41+input:analog-surround-40": {
"name": "output:analog-surround-41+input:analog-surround-40",
"description": "Analog Surround 4.1 Output + Analog Surround 4.0 Input",
"available": true
},
"output:analog-surround-41+input:analog-surround-50": {
"name": "output:analog-surround-41+input:analog-surround-50",
"description": "Analog Surround 4.1 Output + Analog Surround 5.0 Input",
"available": true
},
"output:analog-surround-41+input:analog-surround-71": {
"name": "output:analog-surround-41+input:analog-surround-71",
"description": "Analog Surround 4.1 Output + Analog Surround 7.1 Input",
"available": true
},
"output:analog-surround-51+input:analog-surround-40": {
"name": "output:analog-surround-51+input:analog-surround-40",
"description": "Analog Surround 5.1 Output + Analog Surround 4.0 Input",
"available": true
},
"output:analog-surround-51+input:analog-surround-50": {
"name": "output:analog-surround-51+input:analog-surround-50",
"description": "Analog Surround 5.1 Output + Analog Surround 5.0 Input",
"available": true
},
"output:analog-surround-51+input:analog-surround-71": {
"name": "output:analog-surround-51+input:analog-surround-71",
"description": "Analog Surround 5.1 Output + Analog Surround 7.1 Input",
"available": true
},
"output:analog-surround-21": {
"name": "output:analog-surround-21",
"description": "Analog Surround 2.1 Output",
"available": true
},
"output:analog-surround-41": {
"name": "output:analog-surround-41",
"description": "Analog Surround 4.1 Output",
"available": true
},
"output:analog-surround-51": {
"name": "output:analog-surround-51",
"description": "Analog Surround 5.1 Output",
"available": true
},
"output:analog-surround-40+input:analog-stereo": {
"name": "output:analog-surround-40+input:analog-stereo",
"description": "Analog Surround 4.0 Output + Analog Stereo Input",
"available": true
},
"output:analog-surround-50+input:analog-stereo": {
"name": "output:analog-surround-50+input:analog-stereo",
"description": "Analog Surround 5.0 Output + Analog Stereo Input",
"available": true
},
"output:analog-surround-71+input:analog-stereo": {
"name": "output:analog-surround-71+input:analog-stereo",
"description": "Analog Surround 7.1 Output + Analog Stereo Input",
"available": true
},
"output:analog-surround-40+input:analog-surround-21": {
"name": "output:analog-surround-40+input:analog-surround-21",
"description": "Analog Surround 4.0 Output + Analog Surround 2.1 Input",
"available": true
},
"output:analog-surround-40+input:analog-surround-41": {
"name": "output:analog-surround-40+input:analog-surround-41",
"description": "Analog Surround 4.0 Output + Analog Surround 4.1 Input",
"available": true
},
"output:analog-surround-40+input:analog-surround-51": {
"name": "output:analog-surround-40+input:analog-surround-51",
"description": "Analog Surround 4.0 Output + Analog Surround 5.1 Input",
"available": true
},
"output:analog-surround-50+input:analog-surround-21": {
"name": "output:analog-surround-50+input:analog-surround-21",
"description": "Analog Surround 5.0 Output + Analog Surround 2.1 Input",
"available": true
},
"output:analog-surround-50+input:analog-surround-41": {
"name": "output:analog-surround-50+input:analog-surround-41",
"description": "Analog Surround 5.0 Output + Analog Surround 4.1 Input",
"available": true
},
"output:analog-surround-50+input:analog-surround-51": {
"name": "output:analog-surround-50+input:analog-surround-51",
"description": "Analog Surround 5.0 Output + Analog Surround 5.1 Input",
"available": true
},
"output:analog-surround-71+input:analog-surround-21": {
"name": "output:analog-surround-71+input:analog-surround-21",
"description": "Analog Surround 7.1 Output + Analog Surround 2.1 Input",
"available": true
},
"output:analog-surround-71+input:analog-surround-41": {
"name": "output:analog-surround-71+input:analog-surround-41",
"description": "Analog Surround 7.1 Output + Analog Surround 4.1 Input",
"available": true
},
"output:analog-surround-71+input:analog-surround-51": {
"name": "output:analog-surround-71+input:analog-surround-51",
"description": "Analog Surround 7.1 Output + Analog Surround 5.1 Input",
"available": true
},
"output:analog-surround-40+input:analog-surround-40": {
"name": "output:analog-surround-40+input:analog-surround-40",
"description": "Analog Surround 4.0 Output + Analog Surround 4.0 Input",
"available": true
},
"output:analog-surround-40+input:analog-surround-50": {
"name": "output:analog-surround-40+input:analog-surround-50",
"description": "Analog Surround 4.0 Output + Analog Surround 5.0 Input",
"available": true
},
"output:analog-surround-40+input:analog-surround-71": {
"name": "output:analog-surround-40+input:analog-surround-71",
"description": "Analog Surround 4.0 Output + Analog Surround 7.1 Input",
"available": true
},
"output:analog-surround-50+input:analog-surround-40": {
"name": "output:analog-surround-50+input:analog-surround-40",
"description": "Analog Surround 5.0 Output + Analog Surround 4.0 Input",
"available": true
},
"output:analog-surround-50+input:analog-surround-50": {
"name": "output:analog-surround-50+input:analog-surround-50",
"description": "Analog Surround 5.0 Output + Analog Surround 5.0 Input",
"available": true
},
"output:analog-surround-50+input:analog-surround-71": {
"name": "output:analog-surround-50+input:analog-surround-71",
"description": "Analog Surround 5.0 Output + Analog Surround 7.1 Input",
"available": true
},
"output:analog-surround-71+input:analog-surround-40": {
"name": "output:analog-surround-71+input:analog-surround-40",
"description": "Analog Surround 7.1 Output + Analog Surround 4.0 Input",
"available": true
},
"output:analog-surround-71+input:analog-surround-50": {
"name": "output:analog-surround-71+input:analog-surround-50",
"description": "Analog Surround 7.1 Output + Analog Surround 5.0 Input",
"available": true
},
"output:analog-surround-71+input:analog-surround-71": {
"name": "output:analog-surround-71+input:analog-surround-71",
"description": "Analog Surround 7.1 Output + Analog Surround 7.1 Input",
"available": true
},
"output:analog-surround-40": {
"name": "output:analog-surround-40",
"description": "Analog Surround 4.0 Output",
"available": true
},
"output:analog-surround-50": {
"name": "output:analog-surround-50",
"description": "Analog Surround 5.0 Output",
"available": true
},
"output:analog-surround-71": {
"name": "output:analog-surround-71",
"description": "Analog Surround 7.1 Output",
"available": true
},
"input:analog-stereo": {
"name": "input:analog-stereo",
"description": "Analog Stereo Input",
"available": true
},
"input:analog-surround-21": {
"name": "input:analog-surround-21",
"description": "Analog Surround 2.1 Input",
"available": true
},
"input:analog-surround-41": {
"name": "input:analog-surround-41",
"description": "Analog Surround 4.1 Input",
"available": true
},
"input:analog-surround-51": {
"name": "input:analog-surround-51",
"description": "Analog Surround 5.1 Input",
"available": true
},
"input:analog-surround-40": {
"name": "input:analog-surround-40",
"description": "Analog Surround 4.0 Input",
"available": true
},
"input:analog-surround-50": {
"name": "input:analog-surround-50",
"description": "Analog Surround 5.0 Input",
"available": true
},
"input:analog-surround-71": {
"name": "input:analog-surround-71",
"description": "Analog Surround 7.1 Input",
"available": true
},
"pro-audio": {
"name": "pro-audio",
"description": "Pro Audio",
"available": true
}
},
"ports": {
"analog-input": {
"name": "analog-input",
"description": "Analog Input",
"direction": "in",
"available": null
},
"analog-output": {
"name": "analog-output",
"description": "Analog Output",
"direction": "out",
"available": null
}
}
}
} $ DEBUG=1 [email protected]/pautils/query.py sinks{
"51": {
"index": 51,
"alsaCard": 2,
"name": "alsa_output.usb-Creative_Technology_Ltd_Sound_Blaster_Play__3_00051932-00.analog-stereo",
"description": "Sound Blaster Play! 3 Analog Stereo",
"card": 44,
"active_port": "analog-output-speaker",
"ports": {
"analog-output-speaker": {
"name": "analog-output-speaker",
"description": "Speakers",
"type": 2,
"available": null
}
}
},
"53": {
"index": 53,
"alsaCard": 1,
"name": "alsa_output.pci-0000_04_00.6.analog-stereo",
"description": "Family 17h (Models 10h-1fh) HD Audio Controller Analog Stereo",
"card": 45,
"active_port": "analog-output-headphones",
"ports": {
"analog-output-speaker": {
"name": "analog-output-speaker",
"description": "Speakers",
"type": 2,
"available": false
},
"analog-output-headphones": {
"name": "analog-output-headphones",
"description": "Headphones",
"type": 3,
"available": true
}
}
},
"54": {
"index": 54,
"alsaCard": 3,
"name": "alsa_output.platform-snd_aloop.0.analog-stereo",
"description": "Built-in Audio Analog Stereo",
"card": 46,
"active_port": "analog-output",
"ports": {
"analog-output": {
"name": "analog-output",
"description": "Analog Output",
"type": 22,
"available": null
}
}
}
} |
I had this issue too just a moment ago. I think it was an issue with my extension installation. Deleting the extension, restarting gnome-shell, and reinstalling seems to have fixed it. |
This is really strange (I know that the scripts may not work, but that's a Python setup issue, not general). Are there any relevant logs in |
Again, mine is working now, so this is probably irrelevant, but here's mine in case it's a useful hint until @stuaxo is able to post his. View logs
|
@jacobmischka Yes, that's stange, probably an installation error. I just checked the extension on e.g.o and the files are certainly there. 🤷🏼 |
I reinstalled and haven't seen anything yet - but it'll probably be later, after work when I try and use audio a bit more - I've got an issue with pavucontrol under pipewire making it impossible to change audio devices, and that means I'm not using audio as much right now. |
Sorry for the bad information, I must have left this disabled as I hadn't rebooted yet. I just reinstalled it from the extensions page and immediately showed the popup.
|
That's all in the logs? I'm afraid I don't know how to debug this then. The logs should at least give me more information on why it broke. |
Maybe some more logging in Possibly _getCardDetails not finishing on time, then the loop in _initCards times out after all the retries. |
Slightly off topic, but can you give any tips on debugging extensions (which I can also use for this) ? I find looking glass, a little bit bare compared to tools for say debugging javascript on the web. Do you run GNOME in a nested session [1] ? |
@stuaxo Actually, |
i have the same issue and this is what i get after running
|
Using pipewire (which should be pulseaudio compatible), the following message pops up:
"Querying pulseaudio sound cards failed, disabling extension"
May be a pipewire bug.
The text was updated successfully, but these errors were encountered: