On 25.04.2017 13:37, Carlos E. R. wrote:
On 2017-04-25 10:58, Stefan Seyfried wrote:
no, it does not change it in the boot loader. But the beeper is universal in that it works just everywhere -- console, bootloader, BIOS, even GTK programs! :-)
I use it for example on my home server to notify me of serious errors (file system, disk problems, stuff you'd rather notice sooner than later). Works very well as someone in my family will call me and complain that the box in the closet is issuing annoying beeps :-) Of course I could also use the sound card, add an amplifioer and play some wav file. But that's much more effort.
I tried to do that, but I found that a daemon can not beep: it needs having the terminal.
How did you do it?
(in C code) echo -en '\007' > /dev/tty1 or, to avoid the problem of "is a terminal there at all?" - open /dev/input/eventX corresponding to pcspkr - write struct input_event filled with EV_SND/SND_TONE/hz value into that file descriptor. But usually, just writing (char)'\007' to a terminal is enough. -- Stefan Seyfried "For a successful technology, reality must take precedence over public relations, for nature cannot be fooled." -- Richard Feynman -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org