Hi, just installed a fresh 6.0 on a laptop, using the standard boot manager. The problem is: The default volume of pcspeaker can't be tuned in bios or anywhere else before loading a sound driver (in this case snd_ich). This especially means the pc speaker volume is always set to 100% at every boot which results in a horribly loud beep which I am afraid the built-in "speakers" can't do very often :-) So what about this one: --- /usr/src/sys/boot/i386/boot0/boot0.S +++ boot0.S @@ -201,9 +201,7 @@ /* * Start of input loop. Beep and take note of time */ -main.10: movb $ASCII_BEL,%al # Signal - callw putchr # beep! - xorb %ah,%ah # BIOS: Get +main.10: xorb %ah,%ah # BIOS: Get int $0x1a # system time movw %dx,%di # Ticks when addw _TICKS(%bp),%di # timeout This might be an issue on other architectures (amd64?) as well, I haven't checked that right now. TIA, Riggs -- - Now the world has gone to bed | Now I lay me down to sleep - -- Darkness won't engulf my head | Try to count electric sheep -- --- I can see by infra-red | Sweet dream wishes you can keep --- ---- How I hate the night | How I hate the night ----
Thomas E. Zander wrote:> Hi, > > just installed a fresh 6.0 on a laptop, using the standard boot > manager. The problem is: The default volume of pcspeaker can't be tuned > in bios or anywhere else before loading a sound driver (in this case > snd_ich). This especially means the pc speaker volume is always set to > 100% at every boot which results in a horribly loud beep which I am > afraid the built-in "speakers" can't do very often :-) > > So what about this one: > > --- /usr/src/sys/boot/i386/boot0/boot0.S > +++ boot0.S > @@ -201,9 +201,7 @@ > /* > * Start of input loop. Beep and take note of time > */ > -main.10: movb $ASCII_BEL,%al # Signal > - callw putchr # beep! > - xorb %ah,%ah # BIOS: Get > +main.10: xorb %ah,%ah # BIOS: Get > int $0x1a # system time > movw %dx,%di # Ticks when > addw _TICKS(%bp),%di # timeout > > This might be an issue on other architectures (amd64?) as well, I > haven't checked that right now. > > TIA, > Riggs >The beep is useful for some people who run headless systems, but it is indeed annoying for others, especially with laptops in quiet places. We should probably conditionalize this on a variable that can go into /etc/make.conf. Note that amd64 uses the i386 bits here. Scott
I installed 6.0 on my laptop and I hear a loud beep on every boot. I searched the archives and found a patch but it still beeps. # diff -ruN /sys/boot/i386/boot0/boot0.S.old /sys/boot/i386/boot0/boot0.S --- /sys/boot/i386/boot0/boot0.S.old Tue Dec 27 03:07:35 2005 +++ /sys/boot/i386/boot0/boot0.S Tue Dec 27 03:08:33 2005 @@ -201,9 +201,7 @@ /* * Start of input loop. Beep and take note of time */ -main.10: movb $ASCII_BEL,%al # Signal - callw putchr # beep! - xorb %ah,%ah # BIOS: Get +main.10: xorb %ah,%ah # BIOS: Get int $0x1a # system time movw %dx,%di # Ticks when addw _TICKS(%bp),%di # timeout # cd /sys/boot/i386/boot0 && make && make install && reboot The date changed on /boot/boot0 but at the beeping didn't stop. Any suggestions? - Vaida Bogdan