Q1: disabling/reducing bell sound, Q2: acpi suspend
Hi, all *nixers!
My new 8600(centrino 1.4Ghz) runs Fedora happily for a few days now.
But I've got a couple of issues I can't solve.
Q1: Disabling / reducing bell sound.
How on earth can I disable annoying bell sound (the "beep")?
Neither volume buttons nor Fn+PageUp/Dn have any effect on it.
For now, I set visual beep in xterm (-vb) or if necessary, I disable
the bell completely in X (xset b 0 0 0).
But I can't do anything about the bell sound in console terminal.
I've read "visual-bell Howto", but it wasn't very useful.
My old Inspiron 3500's Fn+PageUp/Dn keys can control beep sound perfectly.
Then why 8600's can't?
Q2: ACPI suspend.
I'm running cpudynd along with acpid. Suspend-on-disk partly works:
For now it is done manually, say, I issue "my-suspend" command to
suspend -- I could link it to LID close action.
During suspend, disk is off, screen is off, while only power LED is
flashing. I thought it was working.
Well, only partly. Even in suspend, the battery is drawn out quite a
lot: About 10%/hour. It can't be normal.
Again, my old 3500's suspend-on-MEMORY (not disk) takes only 2-3%/hour!
The PC speaker bell can be disabled, as you know, using xset. You might also be able to change it's volume, although YMMV. A more certain way is to use the mixer. Try aumix(1) if you're using OSS or alsamixer(1) for ALSA sound. scroll right (all the way to the end) and you'll see the PC speaker volume control.
I don't think either aumix or alsa can do anything with it.
The bell sound makes the same pitch/length regardless of the
existence of sound server -- in fact, I don't start sound server
if not needed.
Maybe the issue is not related to the OS specifically. But I
was not able to confirm either way. I tried to see what happens
when booting with DOS(win98), there was no beep no matter what I
did.
I'm wondering how other 8600 users deal with the beeps on Linux.
Is there any good solution? Or,... just ignore it? ;-)
well I can change the bell volume with alsamixer on my 500m. maybe the 8600 is different and strange? Note that windows is also able to cahnge the volume (or mute) the bell/beep.
did you play with the alsa settings? do you have the modules inserted?
So far I set up a set of workarounds for Q1 (the bell sound).
1. X windows
I first have
'xset b 0 0 0'
in my .Xclients file (I'm running fluxbox). It effectively disables all
the beeps ever possible in X. It, however, leaves any visual bell settings
in xterm (see below), which is good for me.
On spawning xterm, I add '-vb' option which enables visual bell instead of
a beep. It's added in my alias list. I do similar setup for other terminal
emulators, like mlterm (multilang), hanterm(korean), or kterm(japanese).
2. console
I use bash, so add in my .bashrc file,
'set bell-style visible'
No more beeps on, for example, command completion.
Also, I have
'set visualbell'
in my .vimrc file, to disable beep in VI/VIM.
I believe emacs can be setup similarly.
3. Notes
1)
Notice that xterms run with bash (in my case), so as long as I have console
setups, I may not need to pass '-vb' option in xterm.
2)
As an Uber-solution, I tried to modify termcap/terminfo. It ended with
a miserable failure -- vi/emacs borked. :-(
I won't touch termcap again!
3)
I still expect occasional beeps. For example, PCMCIA cards beep on activation.
This bypasses any measures mentioned above.
4.
I'm starting to suspect something's not quite right with 8600 speaker.
At least it's not what desktops have -- desktops have a separate "beeper"
other than those real speakers connected to sound card, right?
The speaker occasionally makes a not-so-small "cutting" noise on shutdown,
even if I didn't load any sound modules, which makes me suspect all the
bells are endeed a "sound" note, rather than a beep.
I wish I had a way to check in Windows, but XP was scrapped off as soon as
I got my 8600. :-)
Why doesn't BIOS have volume control? It has brightness control, then why
not volume? Also, [Fn+Up/Dn] works flawlessly, then why not [Fn+PgUp/PgDn]?
Agent Orange
203 Posts
373
0
Posted February 29th, 2004 06:00
cheers