You are not logged in.
Hi all,
I use my PC as some kind of a elaborated home server. Being always on and not having my amp turned on all the time I make extended use of the PC speaker beep. I used to use the application named beep to perform sound of different tone and duration triggered by some scripts to know for example if I received a email from work or a personal one, If someone is trying to reach me on IRC, PIDGIN, Skype. If the Internet Connection is down, etc... All of these event triggering a different beep.
But since a little while, the application is not working anymore as a regular user. Only as root. When I try it as my regular user, I get the error message:
julien / $ beep
Could not open /dev/tty0 or /dev/vc/0 for writing
open: No such file or directory
I must admit that I have no idea how to interpret this error message. I would appreciate it if anyone more knowledgeable than me in this could give me a pointer on how to troubleshoot and solve this issue.
many thanks,
Lio
Last edited by lio (2011-04-21 03:49:47)
Offline
Have you added yourself to the audio group?
ie:
xs@ArchBook ~ $ groups xs
lp wheel games video audio optical storage scanner power wireshark users
# gpasswd -a [user] audio
I like pie. Especially with a side of Arch.
Offline
julien / $ groups julien
adm http video audio optical storage power users vboxusers julien
Yes i'm in the audio group already.
Thank you for helping
Offline
heh I have the same problem, and I'm in the audio group as well.
don't save us from the flames
Offline
hmm, check your aliases in /etc/modprobe.d/sound.conf
Here is mine:
alias snd-card-0 snd-hda-intel
alias sound-slot-0 snd-hda-intel
This is from the Alsa wiki:
With Intel Corporation 82801 I (ICH9 Family) HD Audio Controller on laptop, you may need to add this line to modprobe or sound.conf:
options snd-hda-intel model=$model
Where $model is any one of the following (in order of possibility to work, but not merit):
dell-vostro
olpc-xo-1_5
laptop
Note: It may be necessary to put this "options" line below (after) any "alias" lines about your card.
And also, [b]if you have problems getting beeps to work (pcspkr)[/b]:
options snd-hda-intel model=$model enable=1 index=0
I'm using alsa/snd_hda_intel
I disabled pcspkr (beeps) in rc.conf cuz I found them annoying.
Hope it helps in some way.
I like pie. Especially with a side of Arch.
Offline
It's because beep is not installed with the suid bit set. Do
sudo chmod 4755 /usr/bin/beep
and it should work as before.
There's more detail in the section titled "IOCTL WACKINESS" in beep manpages.
Offline
It's because beep is not installed with the suid bit set. Do
sudo chmod 4755 /usr/bin/beep
and it should work as before.
There's more detail in the section titled "IOCTL WACKINESS" in beep manpages.
Well that fixed it for me. :D
don't save us from the flames
Offline
my0pic wrote:It's because beep is not installed with the suid bit set. Do
sudo chmod 4755 /usr/bin/beep
and it should work as before.
There's more detail in the section titled "IOCTL WACKINESS" in beep manpages.Well that fixed it for me.
Wow fixed it for me too
Thank you so much !!!
Offline