Showing posts with label sound. Show all posts
Showing posts with label sound. Show all posts

Sunday, 26 December 2010

Framebuffer on Ubuntu

I would like to be able to run my benjap application in a simple framebuffer rather than using X windows.
Unfortunately the 'out of the box' ubuntu desktop does not have a framebuffer (/dev/fb0) installed by default.
It looks like you need to load the fbcon and vesafb modules (found here):
sudo modprobe fbcon vesafb
Having done this /dev/fb0 appears.   It appears to work as long as you run applications as root (a job for later to fix that!), but I have a problem with sound, which is that even running as root I get a "no available audio device" error when pygame.mixer.init() runs.  Not sure how to fix this.....

Tuesday, 9 June 2009

More Ubuntu 9.04 Sound Problems

I 'accidentally' wrecked my gnome desktop (no menus, toolabrs etc.) - I had been doing a bit of tidying up and must have uninstalled something important. I could not decide what, so re-installed the whole ubuntu-desktop package.
This came with pulseaudio again, so sound stopped working like last time.
Decided to invest an hour in sorting it. No real success searching on the web, but I did find this article - http://ubuntuforums.org/showthread.php?t=962695. The author provided a little script to update the ALSA drivers automatically, and quite a few people reported that this cured the sound for them.

I am always wary about running unknown programs as root, but the script looked safe enough - just an automated way of downloading the ALSA source packages and running 'make install' etc. so I trusted it.
It ran and it installed ALSA 1.0.20, compared to version 1.0.18 in the Ubuntu package.
To my surprise, when I re-booted the computer, sound is back!

Monday, 11 May 2009

Ubuntu 9.04 Sound Problems

I upgraded my Fujitsu-Siemens laptop to Ubuntu 9.04 from 8.10 a few days ago.
Everything worked fine except for sound. Sound went from working perfectly in 8.10 to being quiet, and awfully crackly in 9.04.
If I updated the gnome settings to use OSS rather than ALSA it worked ok, except flash movies still made crackly noises (I don't think flash can use OSS).
I messed about with the gnome mixer without luck, except I did notice that changing the PCM volume did nothing (which is wrong), but changing the 'beep' volume did alter the sound volume (Along with crackles).
I don't know why the beep and PCM are the wrong way around, and don't have time to work out how sound works properly, so I went for brute force and ignorance - I had heard a suggestion that Pulseaudio might be the problem, so I replaced pulseaudio with esound, and it all seems to work now...
Therefore, I don't know what the problem was, but it was cured by getting rid of pulseaudio...