Diese Rate oder die Hälfte. Das geht aber nur wenn via Alsa angesprochen. pcspkr blockiert den. Du kannst nur einen Laden. So oder so. Das Ding piept lautlos
Code: Alles auswählen
strace beep -f 5000 -l 50 -r 2 -e /dev/input/by-path/platform-pcspkr-event-spkr
execve("/usr/bin/beep", ["beep", "-f", "5000", "-l", "50", "-r", "2", "-e", "/dev/input/by-path/platform-pcsp"...], 0x7ffe3d0a48c0 /* 22 vars */) = 0
brk(NULL) = 0x55da7266e000
mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f78db5cf000
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (Datei oder Verzeichnis nicht gefunden)
openat(AT_FDCWD, "/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
newfstatat(3, "", {st_mode=S_IFREG|0644, st_size=17110, ...}, AT_EMPTY_PATH) = 0
mmap(NULL, 17110, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f78db5ca000
close(3) = 0
openat(AT_FDCWD, "/lib/x86_64-linux-gnu/libc.so.6", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\20t\2\0\0\0\0\0"..., 832) = 832
pread64(3, "\6\0\0\0\4\0\0\0@\0\0\0\0\0\0\0@\0\0\0\0\0\0\0@\0\0\0\0\0\0\0"..., 784, 64) = 784
newfstatat(3, "", {st_mode=S_IFREG|0755, st_size=1922136, ...}, AT_EMPTY_PATH) = 0
pread64(3, "\6\0\0\0\4\0\0\0@\0\0\0\0\0\0\0@\0\0\0\0\0\0\0@\0\0\0\0\0\0\0"..., 784, 64) = 784
mmap(NULL, 1970000, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f78db3e9000
mmap(0x7f78db40f000, 1396736, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x26000) = 0x7f78db40f000
mmap(0x7f78db564000, 339968, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x17b000) = 0x7f78db564000
mmap(0x7f78db5b7000, 24576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1ce000) = 0x7f78db5b7000
mmap(0x7f78db5bd000, 53072, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f78db5bd000
close(3) = 0
mmap(NULL, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f78db3e6000
arch_prctl(ARCH_SET_FS, 0x7f78db3e6740) = 0
set_tid_address(0x7f78db3e6a10) = 3010
set_robust_list(0x7f78db3e6a20, 24) = 0
rseq(0x7f78db3e7060, 0x20, 0, 0x53053053) = 0
mprotect(0x7f78db5b7000, 16384, PROT_READ) = 0
mprotect(0x55da71b12000, 4096, PROT_READ) = 0
mprotect(0x7f78db601000, 8192, PROT_READ) = 0
prlimit64(0, RLIMIT_STACK, NULL, {rlim_cur=8192*1024, rlim_max=RLIM64_INFINITY}) = 0
munmap(0x7f78db5ca000, 17110) = 0
getuid() = 1000
geteuid() = 1000
getgid() = 1000
getegid() = 1000
getuid() = 1000
geteuid() = 1000
getgid() = 1000
getegid() = 1000
getrandom("\x0e\xef\x43\x67\x41\x8e\xa4\x16", 8, GRND_NONBLOCK) = 8
brk(NULL) = 0x55da7266e000
brk(0x55da7268f000) = 0x55da7268f000
stat("/dev/input/by-path/platform-pcspkr-event-spkr", {st_mode=S_IFCHR|0660, st_rdev=makedev(0xd, 0x40), ...}) = 0
openat(AT_FDCWD, "/dev/input/by-path/platform-pcspkr-event-spkr", O_WRONLY) = 3
fstat(3, {st_mode=S_IFCHR|0660, st_rdev=makedev(0xd, 0x40), ...}) = 0
ioctl(3, EVIOCGSND(0), 0x7fff4bde96d0) = 0
rt_sigaction(SIGINT, {sa_handler=0x55da71b0ea47, sa_mask=[INT], sa_flags=SA_RESTORER|SA_RESTART, sa_restorer=0x7f78db425050}, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0
rt_sigaction(SIGTERM, {sa_handler=0x55da71b0ea47, sa_mask=[TERM], sa_flags=SA_RESTORER|SA_RESTART, sa_restorer=0x7f78db425050}, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0
write(3, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\22\0\2\0\210\23\0\0", 24) = 24
clock_nanosleep(CLOCK_REALTIME, 0, {tv_sec=0, tv_nsec=50000000}, NULL) = 0
write(3, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\22\0\2\0\0\0\0\0", 24) = 24
clock_nanosleep(CLOCK_REALTIME, 0, {tv_sec=0, tv_nsec=100000000}, NULL) = 0
write(3, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\22\0\2\0\210\23\0\0", 24) = 24
clock_nanosleep(CLOCK_REALTIME, 0, {tv_sec=0, tv_nsec=50000000}, NULL) = 0
write(3, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\22\0\2\0\0\0\0\0", 24) = 24
write(3, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\22\0\2\0\0\0\0\0", 24) = 24
close(3) = 0
exit_group(0) = ?
+++ exited with 0 +++