flat1101 n00b
Joined: 29 Jan 2016 Posts: 1
|
Posted: Fri Jan 29, 2016 7:19 pm Post subject: I accidentally...cmus and the sound all together(Intel hda) |
|
|
So I decided to reinstall my system(as my first install was really messy, now I wanted to do it all from scratch - nice and tidy). And I had a 4.2 kernel already configured and compiled.(pf-sources)
I install my system, everything is fine and then while waiting for the X11 to compile I decide to listen to some music from my terminal, so I run cmus. I try to open a track and instead of music I see and error from pulseaudio. Turns out you cannot use pulseaudio as a root. I tried :q / q /^C, but the program was frozen, so I open a different tty and just did killall cmus. That worked...Now the fun part:
I made a user account and tried to open cmus again:
cmus: connect: Permission denied
I have seen this error ever since. I can not open cmus. 'sudo cmus' just freezes, so I need to ^C.
I guess that is the source of the problem, but I may be wrong. Note, that reinstalling the cmus(also with --noconfmem) and deleting everything "cmus" related didn't help.
Anyways, the sound worked immediately after the install.
As a next step I decide to also configure a new kernel, as my 1st try was kinda bloated and old. I chose tuxOnIce kernel.(4.4)
After I booted in my new kernel the sound disappeared. My first idea was: "ah, ok, I'm gonna boot in my old kernel and configure my new kernel while listening to some nice music", but I have not heard a single sound coming from my laptop ever since. The sound is gone in all kernels.
What I tried:
alsamixer is all maxed, I check amixer all the time as well, just to be sure nothing is muted.
I copied the sound configs from my old kernel. I tried make clean && make && make modules_install && make install. Tried unmerging all pulse/alsa related + cmus, @preserved-rebuild, revdep-rebuild
Tried enabling ALL sound related in the kernel, tried compiling all as a module(I have that now, and snd_hda_intel is loaded, together with a bunch of other hda_intel modules). Tried connecting headphones etc.
speaker-test constantly runs in a terminal, when I am online.
I don't know what to do anymore...
'cmus: connect: Permission denied' is still there
inb4 yes, I am in the audio group
Also, I decided to use systemd this time
A little update:
I made a user account, added it to audio group and I can open cmus using that account. I the got the same error from pulseaudio though, now I remembered. $XDG_RUNTIME_DIR is not owned by user.
I tried mkdir /run/user/1001
chmod 0700 (as specified on http://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html)
and exported the variable from user's shell.
after closing cmus I see:
No protocol specified
xcb_connection_has_error() returned true
No protocol specified
and the last lines in speaker-test(which does not run anymore from the user's shell)
xcb_connection_has_error() returned true
No protocol specified
ALSA lib /var/tmp/portage/media-libs/alsa-lib-1.0.29/work/alsa-lib-1.0.29/src/pcm/pcm_dmix.c:1024:(snd_pcm_dmix_open) unable to open slave
Playback open error: -2,No such file or directory |
|