Page 1 of 1

PC Speaker in Bochs and/or Qemu

Posted: Sun Mar 23, 2008 7:14 am
by Stevo14
So, my beep() function works on real hardware but not in Bochs or Qemu. Do I need to do anything special to enable the PC speaker in either Bochs or Qemu?

I'm running Ubuntu 7.10 x86 with an Intel sound card (if this makes any difference). Also, standard installations of Bochs and Qemu.

Posted: Sun Mar 23, 2008 7:20 am
by lukem95
i have the same problem, it occasionally works though.

If you click reset on the bochs GUI when its meant to be beeping, see if that works. It does for me, but wont shutup :s

Posted: Sun Mar 23, 2008 7:24 am
by Stevo14
lukem95 wrote:i have the same problem, it occasionally works though.

If you click reset on the bochs GUI when its meant to be beeping, see if that works. It does for me, but wont shutup :s
No luck. Silent as the grave...

Posted: Sun Mar 23, 2008 8:33 am
by lukem95
Well i wouldn't worry, if it works on real hardware thats the main thing :)

Posted: Sun Mar 23, 2008 10:16 am
by Stevo14
Yea, I'd like to be able to use it for quick debugging though. Actually, after some research it seems that it is something specific with Ubuntu and not Bochs or Qemu.
It's ironic, it seems that a lot of Ubuntu users can't get their PC speaker to turn off... and I can't get it to turn on! :roll:

Posted: Sun Mar 23, 2008 10:38 am
by t0xic
I use Ubuntu 7.10 as a dual boot (not for dev though), and I have a similar problem with my headphone jack, not speakers. It all depends on the soundcard. You can always try updating the alsa driver.

Posted: Sun Mar 23, 2008 3:24 pm
by Stevo14
It's not a problem with my regular speakers or my headphones, they work fine. It's that annoying (yet helpful) "beeep" that you get sometimes during the boot process if something went wrong. The solution still alludes me. I will post back if I ever get anywhere. (as this has become an Ubuntu problem, not and os-dev problem)