Skip navigation

Tag Archives: gentoo

You might be seeing non-working audio output and the following tricky bits in your subsonic log:

Error in jukebox: javax.sound.sampled.LineUnavailableException: Audio Device Unavailable

First thing is to make sure you’re running the Sun JDK and not OpenJDK or something else. Apparently there are things that don’t play well with non-Sun.

If you’ve done this, restarted Tomcat and still have no audio when using Subsonic with Gentoo and Tomcat, remember to add Tomcat to the relevant groups:

groupmems -g pulse -a tomcat

groupmems -g pulse-access -a tomcat

groupmems -g audio -a tomcat

groupmems -g plugdev -a tomcat

To be fair I’m not sure if they’re all necessary, but it works for me. You’ll need to restart Tomcat afterward to make it work.

sudo /etc/init.d/tomcat-6 restart

For the life of me, I can not get my desktop Linux to recognize (and thus charge or give filesystem access to) my Palm Pre. Apparently no one else on the Internet has this problem.

I’ve tried enabling low level usb debugging in the kernel, and I can see when I plug the device in:

usb 7-5.1.3: no configuration chosen from 1 choice

If I reboot the device, I see it automount for half a second during its “bootup” phase, having:

usb 7-5.1.3: configuration #1 chosen from 1 choice
sd 20:0:0:0: [sdf] Attached SCSI removable disk

But then it defaults to nothing once again. Works fine in Windows, which pains me to say. Works fine also when my computer itself boots up- Pre must negotiate with the hardware directly since the “charge” menu shows up… but once the Linux kernel kicks in, that’s all over.

It’s not a lack of power on the USB bus, I can trigger that error by other means, but it’s certainly not one of the log lines normally.

Ideas? I’m running out of my own.

My kernel: 2.6.31-gentoo-r6 SMP

EDIT: “Solution”: root into the pre. execute as root:

usbnet disable

/sbin/reboot

Make sure you edit /etc/conf.d/saslauthd and change:

SASLAUTHD_OPTS="${SASLAUTHD_OPTS} -a pam"

to

SASLAUTHD_OPTS="${SASLAUTHD_OPTS} -a sasldb"