Ahem, the correct solution is of course:
$ sudo adduser user audio
--
[Jaunty] PolicyKit: no active session in X - no ACLs for sound card
https://bugs.launchpad.net/bugs/361510
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
--
Apparently this last workaround doesn't work in current Karmic anymore.
$ sudo polkit-auth --user ilf --grant org.freedesktop.hal.device-access.sound
polkit-auth: AuthorizationAlreadyExists: An authorization for uid 1000 for the
action org.freedesktop.hal.device-access.sound with constraint ''
So I did:
$ sudo polkit-auth --user ilf --grant org.freedesktop.hal.device-
access.sound
which seems to workaround this permanently.
But I still think this way of handling active sessions is wrong design.
** Summary changed:
- [Jaunty] broken ACL management in hal - no sound card for user
+