Bug#391041: [Solved :)]Re: Bug#391041: [Pkg-alsa-devel] Bug#391041:
libasound2: "ALSA lib pcm_direct.c:1565" ... "ipc_perm must be
a valid file permission"
Wolfgang Pfeiffer
roto at gmx.net
Sat Oct 7 22:08:10 UTC 2006
Jordi
Thanks a lot for your response. With your suggestion I could fix the
issue. ... :)
On Sat, Oct 07 2006, at 11:54 +0200, Jordi Mallach wrote:
> On Wed, Oct 04, 2006 at 03:47:46PM +0200, Wolfgang Pfeiffer wrote:
> > ALSA lib pcm_direct.c:1565:(snd_pcm_direct_parse_open_conf) The field ipc_perm must be a valid file permission
>
> Wolfang, I know what causes this: have a look at your asoundrc file, and
> look for the permissinos line. You probably have something like 640, for
> example. Try changing it to 0644.
IINM: It wasn't the ~/.asoundrc, that made the problems, but
/etc/asound.conf :)
This is the old one that obviously caused the error:
----------------------------------------
pcm.!default {
type plug
slave.pcm asymer
}
pcm.dmixer {
type dmix
ipc_key 1977
ipc_perm 666
# ipc_key_add_uid true
slowptr true
slave {
pcm "hw:0"
period_time 0
period_size 1024
buffer_size 8192
rate 44100
}
}
pcm.dsnooper {
type dsnoop
ipc_key 1978
ipc_perm 666
# ipc_key_add_uid true
slave.pcm "hw:0"
}
pcm.asymer {
type asym
playback.pcm "dmixer"
capture.pcm "dsnooper"
}
pcm.jack {
type jack
playback_ports {
0 alsa_pcm:playback_1
1 alsa_pcm:playback_2
}
capture_ports {
0 alsa_pcm:capture_1
1 alsa_pcm:capture_2
}
}
# These are for alsa-oss
pcm.dsp0 pcm.default
ctl.mixer0 "hw:0"
------------------------------------------
Here's the diff between the file above, and the new, working
/etc/asound.conf :
________________________________________________
# diff -u /etc/asound.conf.061007 /etc/asound.conf
--- /etc/asound.conf.061007 2006-10-07 22:59:29.000000000 +0200
+++ /etc/asound.conf 2006-10-07 23:03:00.000000000 +0200
@@ -6,7 +6,7 @@
pcm.dmixer {
type dmix
ipc_key 1977
- ipc_perm 666
+ ipc_perm 0644
# ipc_key_add_uid true
slowptr true
slave {
@@ -21,7 +21,7 @@
pcm.dsnooper {
type dsnoop
ipc_key 1978
- ipc_perm 666
+ ipc_perm 0644
# ipc_key_add_uid true
slave.pcm "hw:0"
}
________________________________________________
The version that seems to work now with my current sound configs:
# apt-cache policy libasound2
libasound2:
Installed: 1.0.13-1
Candidate: 1.0.13-1
Version table:
*** 1.0.13-1 0
990 http://mirror.switch.ch unstable/main Packages
100 /var/lib/dpkg/status
Please note I didn't check for a newer version ("aptitude update")
before writing this email. ... :)
So with libasound2 1.0.13-1 it's no problem anymore to play both critter and
barrage. KDE returns no error message any more when logging in.
grep ipc_perm `dpkg -L libasound2 | grep doc`
There are still other pending oddities here with alsa, but I'll go the
powerpc list with those, perhaps. Like the alsamixer does not start
here (Some time ago it did ...):
__________________________
$ alsamixer
alsamixer: function snd_ctl_open failed for default: No such device
______________________________________
Or:
_________________________________
$ asoundconf list
Names of available sound cards:
_______________________
Yes: Nothing, with this last command ...
Odd, because I have sound.
But yes, surely: If I had grepped for all config tags the initial
error message was reporting about, I probably would have found
the solution for #391041 myself:
ALSA lib pcm_direct.c:1565:(snd_pcm_direct_parse_open_conf) The field ipc_perm must be a valid file permission
Thanks for your help, lots ... :)
Best Regards
Wolfgang
--
Wolfgang Pfeiffer: /ICQ: 286585973/ + + + /AIM: crashinglinux/
http://profiles.yahoo.com/wolfgangpfeiffer
Key ID: E3037113
http://keyserver.mine.nu/pks/lookup?search=0xE3037113&fingerprint=on
More information about the Pkg-alsa-devel
mailing list