Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have a computer that I'm going to leave over at a friends house as a backup server. It won't have a monitor or keyboard hooked up, just power and network cable, so I wanted to throw in at the end of the shutdown script a beep that indicates the computer has been shutdown completely and is ok to power off since it doen't automatically turn off. How can I do this? I know there is a pc speaker driver out there that lets you play wav files and stuff, but I don't want that just something that I can send like send 1000 hz tone for 250 milliseconds then 2000 hz for 250 milliseconds, etc. Would have to write a program to do that, if so, how would I do that? I know a little bit of C++, but not that much.
Also, there is a little program called beep in the Debian distribution. It allows you to set parameters such as number of repetitions, pitch, and length. I don't know if it's in slackware.
That beep link works great. It's not included with slackware, but I was able to compile and run it without any problems, although I did have to set the suid sticky. Now I can play with all the tones I can make
as a side note, wonder how come I never got any notification of replies, I have the email notification checked by default (only reason I saw the replies was because I was going to post a link to that beep program ). Ohh well. For the heck of it, the freshmeat page is http://freshmeat.net/projects/beep/
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.