Re: A curiosity about multi-user systems?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Michał Zegan <webczat_200@xxxxxxxxxxxxxx> writes:

> first, the pc speaker controls may be on alsa, so you can use amixer to

I've tried that.  There's a "Beep" control that is unmuted and at max.
There are parameters related to beeping when the sound card is Intel
HDA.  Those are set.  I had no luck.

It's possible to emulate a beep entirely in software.  There is a file,
/dev/input/by-path/platform-pcspkr-event-spkr used for communicating PC
speaker events between kernel and userspace.
Most pages online just talk about writing to it to make beeps, but you
can also read from it and get notified about sound events.

It shouldn't be too hard to write a beeper program that reads from the
device and plays to the sound card.

There's an older softbeep program available on the net, but it uses an
LD_PRELOAD hack.  That's kind of a dubious practice and it's not
guaranteed to work all the time.  Reading sound events from the kernel
device under /dev/input should even allow me to simulate the Speakup
beeps that are made when reviewing the screen.

-- 
Chris Brannon
Founder: Blind and Low Vision Unix Users Group (https://blvuug.org/).
Personal website: (https://the-brannons.com/)
Chat: IRC: teiresias on freenode, XMPP: chris@xxxxxxxxxxxxxxxxx





[Index of Archives]     [Linux for the Blind]     [Fedora Discussioin]     [Linux Kernel]     [Yosemite News]     [Big List of Linux Books]

  Powered by Linux