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

alsa-related issues #24

Closed
mackdroid opened this issue Feb 26, 2021 · 31 comments · Fixed by #29
Closed

alsa-related issues #24

mackdroid opened this issue Feb 26, 2021 · 31 comments · Fixed by #29

Comments

@mackdroid
Copy link

hello there whenever i try to launch the panel i get this error
i use pipewire if that helps as it looks like its related to audio
image
anything else ill be willing to provide

@nwg-piotr
Copy link
Owner

Make sure you've got alsa-lib and alsa-utils installed. If so, please paste the output of the amixer sget Master command. Also: what Linux distribution do you use?

@mackdroid
Copy link
Author

amixer: Unable to find simple control 'Master',0
and i have a mixer named IEC958 also i use arch linux

@nwg-piotr
Copy link
Owner

nwg-piotr commented Feb 26, 2021

i use arch linux

You mean amixer scontrols returns something like:

Simple mixer control 'IEC958',0

?

@nwg-piotr
Copy link
Owner

nwg-piotr commented Feb 26, 2021

Would you be able to install manually and tell me if my fix works on your system?

nwg-piotr added a commit that referenced this issue Feb 26, 2021
@mackdroid
Copy link
Author

Yes I do have it installed

@mackdroid
Copy link
Author

Okay let me try now

@mackdroid
Copy link
Author

image
this is the error i get now

@nwg-piotr
Copy link
Owner

First of all: please provide the output of amixer scontrols. It usually looks something like this:

$ amixer scontrols
Simple mixer control 'Master',0
Simple mixer control 'Capture',0

but on your machine must be different, and I need to know details.

nwg-piotr added a commit that referenced this issue Feb 27, 2021
don't crash if element misdetected #24
@nwg-piotr
Copy link
Owner

nwg-piotr commented Feb 27, 2021

The commit above should prevent the panel from crashing on your machine, but the volume slider probably won't work. We need a workaround:

  • Check the name that appears in your amixer scontrols output instead of Master;
  • open the ~/.local/share/nwg-config/defaults file:
{
  "master": "Master"
}

and replace Master with the value that exists in your system;

  • restart the panel;
  • tell me if it helps.

@mackdroid
Copy link
Author

sorry for the delay, but the panel now launches but as you mentioned the volume controls dont work

@mackdroid
Copy link
Author

image
this is what i get when i try to change the volume

@nwg-piotr
Copy link
Owner

First of all: I still need to see the output of the amixer scontrols command. Please do type it in the terminal and show me what it prints. I can't reproduce the problem on any of my machines, so we won't take a step further w/o your help.

Secondly: have you tried to edit the ~/.local/share/nwg-config/defaults, as I mentioned above?

@mackdroid
Copy link
Author

Output of amixer scontrols
Simple mixer control 'IEC958',0

Yep and I've replaced Master with IEC958

@mackdroid
Copy link
Author

Also do you by any chance have discord? I'm active there so you would be able to get a faster response

@nwg-piotr
Copy link
Owner

nwg-piotr commented Mar 2, 2021

Just 1 line? Strange.

Also do you by any chance have discord?

No, I only use Google Hangouts, And whatever we write here, will be available for future troubleshooters.

@nwg-piotr
Copy link
Owner

nwg-piotr commented Mar 2, 2021

Sorry, it got closed automatically on the latest merge.

Could you try installing manually once again?

nwg-piotr added a commit that referenced this issue Mar 3, 2021
nwg-piotr added a commit that referenced this issue Mar 3, 2021
scontrols check altered once again #24
@mackdroid
Copy link
Author

alright
yea i only have one line
image

@mackdroid
Copy link
Author

image
well the volume slider does not work and i get this instead now

@mackdroid
Copy link
Author

also you can use pamixer if amixer doesnt work
it works great with pipewire

@nwg-piotr
Copy link
Owner

nwg-piotr commented Mar 3, 2021

also you can use pamixer if amixer doesnt work

This would be the 3rd method, as we now use python-pyalsa if available, and amixer as fallback. It doesn't make sense to do it this way.

I need to check if we could rely on pamixer as the only method. Would you be able to clone and install from another branch, in case it turns out to work for me?

@mackdroid
Copy link
Author

Sure

nwg-piotr added a commit that referenced this issue Mar 3, 2021
@nwg-piotr
Copy link
Owner

Alright, it works, at least on my old testing laptop. Can't test it better here, it must wait till I'm home. Take a look, please.

git clone https://github.com/nwg-piotr/nwg-panel.git -b alsa
cd nwg-panel
sudo ./install.sh

@mackdroid
Copy link
Author

alrighty

@mackdroid
Copy link
Author

Traceback (most recent call last): File "/usr/bin/nwg-panel", line 33, in <module> sys.exit(load_entry_point('nwg-panel==0.1.6', 'gui_scripts', 'nwg-panel')()) File "/usr/bin/nwg-panel", line 25, in importlib_load_entry_point return next(matches).load() File "/usr/lib/python3.9/importlib/metadata.py", line 77, in load module = import_module(match.group('module')) File "/usr/lib/python3.9/importlib/__init__.py", line 127, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "<frozen importlib._bootstrap>", line 1030, in _gcd_import File "<frozen importlib._bootstrap>", line 1007, in _find_and_load File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 680, in _load_unlocked File "<frozen importlib._bootstrap_external>", line 790, in exec_module File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed File "/usr/lib/python3.9/site-packages/nwg_panel-0.1.6-py3.9.egg/nwg_panel/main.py", line 29, in <module> from nwg_panel.tools import * File "/usr/lib/python3.9/site-packages/nwg_panel-0.1.6-py3.9.egg/nwg_panel/tools.py", line 18, in <module> import nwg_panel.common File "/usr/lib/python3.9/site-packages/nwg_panel-0.1.6-py3.9.egg/nwg_panel/common.py", line 7, in <module> from i3ipc import Connection ModuleNotFoundError: No module named 'i3ipc' i get this error

@mackdroid
Copy link
Author

oh wait never mind im dumb its a missing module

@mackdroid
Copy link
Author

the panel does launch but now the brightness controls dont work, i do have light installed and it says this
Couldn't set brightness, is 'light' installed?

@nwg-piotr
Copy link
Owner

Yep, see dependencies.

@mackdroid
Copy link
Author

but i do have light installed
image
and brightness controls used to work

@nwg-piotr
Copy link
Owner

Check if this returns 0 on your machine:

$ light -S 20
$ echo $?
0

@nwg-piotr
Copy link
Owner

One way or another, you may clone again. I did quite a massive code clearance on the alsa branch.

@nwg-piotr nwg-piotr changed the title nwg-panel does not launch alsa-related issues Mar 6, 2021
@nwg-piotr
Copy link
Owner

Resolved in v0.1.7

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants