Problem is that pc-speaker event device is not on event0. It may change depending other event devices.
So easy way to fix problem is to use beep command:
beep -e /dev/input/by-path/platform-pcspkr-event-spkr <other parameters>
I hope beep package maintainer will change default device from /dev/tty0 to this /dev/input/by-path/platform-pcspkr-event-spkr
I don't know if alsamixer has anything to do with this. I have understood that alsamixer and pc-speaker is only when internal speaker is connected to audio-card input.
Problem can be reproduced when /dev/input/by-path/platform-pcspkr-event-spkr is not pointing to /dev/input/event0 and then run command beep.
Running: strace beep you'll find errors something like this:
open("/dev/tty0", O_WRONLY) = 3
ioctl(3, 0x8000451a, 0x2ace0bbef0f8) = -1 EINVAL (Invalid argument)
There is Debian bug 354694 for this, http:// bugs.debian. org/cgi- bin/bugreport. cgi?bug= 354694
Problem is that pc-speaker event device is not on event0. It may change depending other event devices. by-path/ platform- pcspkr- event-spkr <other parameters>
So easy way to fix problem is to use beep command:
beep -e /dev/input/
I hope beep package maintainer will change default device from /dev/tty0 to this /dev/input/ by-path/ platform- pcspkr- event-spkr
I don't know if alsamixer has anything to do with this. I have understood that alsamixer and pc-speaker is only when internal speaker is connected to audio-card input.
Problem can be reproduced when /dev/input/ by-path/ platform- pcspkr- event-spkr is not pointing to /dev/input/event0 and then run command beep.
Running: strace beep you'll find errors something like this:
open("/dev/tty0", O_WRONLY) = 3
ioctl(3, 0x8000451a, 0x2ace0bbef0f8) = -1 EINVAL (Invalid argument)