No Sound In Linux

289 views
Skip to first unread message

demonboy

unread,
Apr 21, 2011, 1:37:32 AM4/21/11
to Tomighty
I've just noticed that my alarms do not sound in Ubuntu 10.10. I have
checked my audio set up and can happily play audio tracks in VLC etc,
so my laptop is configured correctly. Any clues?

Dominik Obermaier

unread,
Apr 21, 2011, 3:19:28 AM4/21/11
to tomi...@googlegroups.com
Hi Jamie,

I think this could be related to this bug: https://github.com/ccidral/tomighty/issues/17 

Can you confirm the error messages? (If you start tomighty via terminal, you should see the errors when sound is not playing)

Dominik

--
You received this message because you are subscribed to the Google Groups "Tomighty" group.
To post to this group, send email to tomi...@googlegroups.com.
To unsubscribe from this group, send email to tomighty+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/tomighty?hl=en.


jakub rezek

unread,
Apr 21, 2011, 3:44:21 AM4/21/11
to tomi...@googlegroups.com
Hi, can you check if you are using openjdk or sun java?

openjdk jre did not work for me, sudo update-java-alternatives -s
java-6-sun made the trick.

regards
Jakub

--
sent from nokia phone

Marco Ferretti

unread,
Apr 21, 2011, 4:10:33 AM4/21/11
to tomi...@googlegroups.com
Hi

sounds are "mostly" working for me on a Ubuntu 10.10 32 bit using sun jre (1.6.4_24 ) .The only caveat seems the sound at the end of a Pomodoro which throws a LineUnaviableException

demonboy

unread,
Apr 21, 2011, 4:14:05 AM4/21/11
to Tomighty
I was using openjdk. I put in 'sudo update-java-alternatives -s
java-6-sun' as a single line and got this:

usage: update-java-alternatives [--jre-headless] [--jre] [--plugin] [ -
t|--test|-v|--verbose]
-l|--list [<jname>]
-s|--set <jname>
-a|--auto
-h|-?|--help


Is that right?

Dominic, the error messages I was getting was this:

jamie@jamie-presario:~/.tomighty-app$ java -jar tomighty-0.6.jar
21 Apr, 2011 1:00:37 PM org.tomighty.log.Log info
INFO: Loading messages for locale en_IN
21 Apr, 2011 1:00:37 PM org.tomighty.log.Log info
INFO: Messages file not found: /messages_en_IN.properties
21 Apr, 2011 1:00:41 PM org.tomighty.log.Log error
SEVERE: Error while playing sound:
org.tomighty.sound.timer.Wind@ae4646
java.lang.IllegalArgumentException: Invalid format
at
org.classpath.icedtea.pulseaudio.PulseAudioDataLine.createStream(PulseAudioDataLine.java:
143)
at
org.classpath.icedtea.pulseaudio.PulseAudioDataLine.open(PulseAudioDataLine.java:
100)
at
org.classpath.icedtea.pulseaudio.PulseAudioDataLine.open(PulseAudioDataLine.java:
289)
at
org.classpath.icedtea.pulseaudio.PulseAudioClip.open(PulseAudioClip.java:
402)
at
org.classpath.icedtea.pulseaudio.PulseAudioClip.open(PulseAudioClip.java:
453)
at org.tomighty.sound.SoundPlayer.play(SoundPlayer.java:72)
at org.tomighty.sound.SoundPlayer.play(SoundPlayer.java:56)
at org.tomighty.sound.SoundPlayer.play(SoundPlayer.java:41)
at
org.tomighty.ui.state.TimerSupport.afterRendering(TimerSupport.java:
70)
at org.tomighty.Tomighty.render(Tomighty.java:84)
at org.tomighty.Tomighty.access$200(Tomighty.java:42)
at org.tomighty.Tomighty$SwitchState$1.run(Tomighty.java:94)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:226)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:647)
at java.awt.EventQueue.access$000(EventQueue.java:96)
at java.awt.EventQueue$1.run(EventQueue.java:608)
at java.awt.EventQueue$1.run(EventQueue.java:606)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext
$1.doIntersectionPrivilege(AccessControlContext.java:105)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:617)
at
java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:
275)
at
java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:
200)
at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:
190)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:
185)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:
177)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:138)
21 Apr, 2011 1:25:41 PM org.tomighty.log.Log error
SEVERE: Error while playing sound:
org.tomighty.sound.timer.Ding@15be8d3
java.lang.IllegalArgumentException: Invalid format
at
org.classpath.icedtea.pulseaudio.PulseAudioDataLine.createStream(PulseAudioDataLine.java:
143)
at
org.classpath.icedtea.pulseaudio.PulseAudioDataLine.open(PulseAudioDataLine.java:
100)
at
org.classpath.icedtea.pulseaudio.PulseAudioDataLine.open(PulseAudioDataLine.java:
289)
at
org.classpath.icedtea.pulseaudio.PulseAudioClip.open(PulseAudioClip.java:
402)
at
org.classpath.icedtea.pulseaudio.PulseAudioClip.open(PulseAudioClip.java:
453)
at org.tomighty.sound.SoundPlayer.play(SoundPlayer.java:72)
at org.tomighty.sound.SoundPlayer.play(SoundPlayer.java:56)
at org.tomighty.sound.SoundPlayer.play(SoundPlayer.java:41)
at org.tomighty.ui.state.TimerSupport
$EndTimer.receive(TimerSupport.java:116)
at org.tomighty.ui.state.TimerSupport
$EndTimer.receive(TimerSupport.java:113)
at org.tomighty.bus.Bus.publish(Bus.java:66)
at org.tomighty.time.CountdownTimer$Updater.run(CountdownTimer.java:
58)
at java.util.TimerThread.mainLoop(Timer.java:534)
at java.util.TimerThread.run(Timer.java:484)
21 Apr, 2011 1:25:48 PM org.tomighty.log.Log error
SEVERE: Error while playing sound:
org.tomighty.sound.timer.Wind@ae4646
java.lang.IllegalArgumentException: Invalid format
at
org.classpath.icedtea.pulseaudio.PulseAudioDataLine.createStream(PulseAudioDataLine.java:
143)
at
org.classpath.icedtea.pulseaudio.PulseAudioDataLine.open(PulseAudioDataLine.java:
100)
at
org.classpath.icedtea.pulseaudio.PulseAudioDataLine.open(PulseAudioDataLine.java:
289)
at
org.classpath.icedtea.pulseaudio.PulseAudioClip.open(PulseAudioClip.java:
402)
at
org.classpath.icedtea.pulseaudio.PulseAudioClip.open(PulseAudioClip.java:
453)
at org.tomighty.sound.SoundPlayer.play(SoundPlayer.java:72)
at org.tomighty.sound.SoundPlayer.play(SoundPlayer.java:56)
at org.tomighty.sound.SoundPlayer.play(SoundPlayer.java:41)
at
org.tomighty.ui.state.TimerSupport.afterRendering(TimerSupport.java:
70)
at org.tomighty.Tomighty.render(Tomighty.java:84)
at org.tomighty.Tomighty.access$200(Tomighty.java:42)
at org.tomighty.Tomighty$SwitchState$1.run(Tomighty.java:94)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:226)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:647)
at java.awt.EventQueue.access$000(EventQueue.java:96)
at java.awt.EventQueue$1.run(EventQueue.java:608)
at java.awt.EventQueue$1.run(EventQueue.java:606)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext
$1.doIntersectionPrivilege(AccessControlContext.java:105)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:617)
at
java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:
275)
at
java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:
200)
at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:
190)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:
185)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:
177)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:138)
21 Apr, 2011 1:30:48 PM org.tomighty.log.Log error
SEVERE: Error while playing sound:
org.tomighty.sound.timer.Ding@15be8d3
java.lang.IllegalArgumentException: Invalid format
at
org.classpath.icedtea.pulseaudio.PulseAudioDataLine.createStream(PulseAudioDataLine.java:
143)
at
org.classpath.icedtea.pulseaudio.PulseAudioDataLine.open(PulseAudioDataLine.java:
100)
at
org.classpath.icedtea.pulseaudio.PulseAudioDataLine.open(PulseAudioDataLine.java:
289)
at
org.classpath.icedtea.pulseaudio.PulseAudioClip.open(PulseAudioClip.java:
402)
at
org.classpath.icedtea.pulseaudio.PulseAudioClip.open(PulseAudioClip.java:
453)
at org.tomighty.sound.SoundPlayer.play(SoundPlayer.java:72)
at org.tomighty.sound.SoundPlayer.play(SoundPlayer.java:56)
at org.tomighty.sound.SoundPlayer.play(SoundPlayer.java:41)
at org.tomighty.ui.state.TimerSupport
$EndTimer.receive(TimerSupport.java:116)
at org.tomighty.ui.state.TimerSupport
$EndTimer.receive(TimerSupport.java:113)
at org.tomighty.bus.Bus.publish(Bus.java:66)
at org.tomighty.time.CountdownTimer$Updater.run(CountdownTimer.java:
58)
at java.util.TimerThread.mainLoop(Timer.java:534)
at java.util.TimerThread.run(Timer.java:484)
21 Apr, 2011 1:30:53 PM org.tomighty.log.Log error
SEVERE: Error while playing sound:
org.tomighty.sound.timer.Wind@ae4646
java.lang.IllegalArgumentException: Invalid format
at
org.classpath.icedtea.pulseaudio.PulseAudioDataLine.createStream(PulseAudioDataLine.java:
143)
at
org.classpath.icedtea.pulseaudio.PulseAudioDataLine.open(PulseAudioDataLine.java:
100)
at
org.classpath.icedtea.pulseaudio.PulseAudioDataLine.open(PulseAudioDataLine.java:
289)
at
org.classpath.icedtea.pulseaudio.PulseAudioClip.open(PulseAudioClip.java:
402)
at
org.classpath.icedtea.pulseaudio.PulseAudioClip.open(PulseAudioClip.java:
453)
at org.tomighty.sound.SoundPlayer.play(SoundPlayer.java:72)
at org.tomighty.sound.SoundPlayer.play(SoundPlayer.java:56)
at org.tomighty.sound.SoundPlayer.play(SoundPlayer.java:41)
at
org.tomighty.ui.state.TimerSupport.afterRendering(TimerSupport.java:
70)
at org.tomighty.Tomighty.render(Tomighty.java:84)
at org.tomighty.Tomighty.access$200(Tomighty.java:42)
at org.tomighty.Tomighty$SwitchState$1.run(Tomighty.java:94)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:226)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:647)
at java.awt.EventQueue.access$000(EventQueue.java:96)
at java.awt.EventQueue$1.run(EventQueue.java:608)
at java.awt.EventQueue$1.run(EventQueue.java:606)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext
$1.doIntersectionPrivilege(AccessControlContext.java:105)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:617)
at
java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:
275)
at
java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:
200)
at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:
190)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:
185)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:
177)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:138)

Célio

unread,
Apr 21, 2011, 7:38:57 AM4/21/11
to tomi...@googlegroups.com
Try this:

sudo update-alternatives --config java

By the way, I didn't know that openjdk was completely failing to play sounds.

Regardless of the JVM, I must be doing something wrong in the sound
code. Another user said that Tomighty is taking over the whole sound
server under Linux:

http://www.omgubuntu.co.uk/2011/04/tomighty-pomodoro-technique-timer-for-linux/#comment-185668121

I will review the sound code and try to find out what's wrong.

Célio


2011/4/21 demonboy <ja...@followtheboat.com>:

demonboy

unread,
Apr 21, 2011, 1:19:09 PM4/21/11
to Tomighty
It returns:

There is only one alternative in link group java: /usr/lib/jvm/java-6-
openjdk/jre/bin/java
Nothing to configure.




On Apr 21, 4:38 pm, Célio <ccid...@gmail.com> wrote:
> Try this:
>
>    sudo update-alternatives --config java
>
> By the way, I didn't know that openjdk was completely failing to play sounds.
>
> Regardless of the JVM, I must be doing something wrong in the sound
> code.  Another user said that Tomighty is taking over the whole sound
> server under Linux:
>
>    http://www.omgubuntu.co.uk/2011/04/tomighty-pomodoro-technique-timer-...
> ...
>
> read more »

jakub rezek

unread,
Apr 22, 2011, 2:59:48 AM4/22/11
to tomi...@googlegroups.com
then you should probably do 'sudo apt-get instal sun-java6-jre' or
similar operation in synaptic/aptitude/what-have-you

br
Jakub

On Thu, Apr 21, 2011 at 7:19 PM, demonboy <ja...@followtheboat.com> wrote:
> It returns:
>
> There is only one alternative in link group java: /usr/lib/jvm/java-6-
> openjdk/jre/bin/java
> Nothing to configure.

Atif

unread,
Jun 15, 2012, 8:59:50 AM6/15/12
to tomi...@googlegroups.com
In the github for Tomighty, it's mentioned that if you run Tomighty with Java 7, it will work.  I confirm that it works for me.  Here are the instructions for installing Java 7 on Ubuntu: http://www.webupd8.org/2011/09/how-to-install-oracle-java-7-jdk-in.html
Reply all
Reply to author
Forward
0 new messages