Interner Lautsprecher ist still

Mitzekotze

Mitzekotze

little man
Servus zusammen,

der interne Lautsprecher meines Toshiba Satellite a100-491 gibt im normalen Betrieb keinen Ton von sich. z.B. gibt das Programme "beep" oder die Bash keinen Piepton aus. In der config.gz ist der Treiber für den internen Lautsprecher als Modul gekennzeichnet:
Code:
CONFIG_INPUT_PCSPKR=m
Aber trotz des geladenen Moduls pcsprk funktioniert der Lautsprecher nicht. Er ist aber trotzdem vorhanden, da ich im Grub Bootloader durch mehrmaliges drücken der Pfeiltasten ihm ein Piepsen entlocken konnte.

Hat einer von euch eine Ahnung woran das liegen könnte?
 
Im Grub kommt das Signal des PC-Speakers auch noch über das BIOS. Woran machst du denn fest, daß er nicht funktioniert?
 
Ich hab jetzt getestet was du meinst.

Bei mir das selbe spiel, kein Piepton in der konsole oder sonst wo im System vom Notebook internen "beeper".

Stört mich ehrlich gesagt auch nicht ;) Wieso solle er piepen hihi.

Zu deinem Problem:
Ich weiß noch aus Opensuse zeiten, das ich unter der Konsole von KDE bzw Opensuse einstellen konnte wo er ton ausgaben abgeben sollte, z.b soundserver/alsa usw.

Vllt geht es mit deiner Konsole auch, google einfach mal dannach. Somit wäre es ein "work around" da ja die notebook lautsprecher ja auch im notebook sind *gg*
 
Da du nichts von Fehlermeldungen gesagt hast liege ich mit meinem Tip wahrscheinlich falsch, aber Posten schadet ja nichts.

*postcountpush*

man beep schrieb:
IOCTL WACKINESS
Some users will encounter a situation where beep dies with a complaint from ioctl(). The reason for this, as Peter Tirsek was nice enough to point out to me, stems from how the kernel handles beep’s attempt to poke at (for non-programmers: ioctl is a sort of catch-all function that lets you poke at things that have no other predefined poking-at mechanism) the tty, which is how it beeps. The short story is, the kernel checks that either:

- you are the superuser

- you own the current tty

What this means is that root can always make beep work (to the best of my knowledge!), and that any local user can make beep work, BUT a non-root remote user cannot use beep in it’s natural state. What’s worse, an xterm, or other x-session counts, as far as the kernel is concerned, as ’remote’, so beep won’t work from a non-priviledged xterm either. I had originally chalked this up to a bug, but there’s actually nothing I can do about it, and it really is a Good Thing that the kernel does things this way. There is also a solution.

By default beep is not installed with the suid bit set, because that would just be zany. On the other hand, if you do make it suid root, all your problems with beep bailing on ioctl calls will magically vanish, which is pleasant, and the only reason not to is that any suid program is a potential security hole. Conveniently, beep is very short, so auditing it is pretty straightforward.

Decide for yourself, of course, but it looks safe to me - there’s only one buffer and fgets doesn’t let it overflow, there’s only one file opening, and while there is a potential race condition there, it’s with /dev/console.
If someone can exploit this race by replacing /dev/console, you’ve got bigger problems. :)

So the quick, only, and likely safe solution if beep is not beeping when you want it to is (as root):

# chmod 4755 /usr/bin/beep

(or wherever you put it)

The one snag is that this will give any little nitwit the ability to run beep successfully - make sure this is what you want. If it isn’t, a slightly more complex fix would be something like:

# chgrp beep /usr/bin/beep

# chmod 4750 /usr/bin/beep

and then add only beep-worthy users to the ’beep’ group.
 
Zuletzt bearbeitet:
@bitmuncher: Weil z.B. das Programm beep mit geladenem pcspkr Modul keinen Ton von sich gibt. Aber allgemein funktioniert er ja bzw. ist vorhanden, bloß unter Linux höre ich keinen Ton.

@Tomekk228: Voraus gegangen war dem ganzen dieser Thread hier *klick* und das wollte ich halt auch auf meinem System probieren. Ich hab mal gegoogelt und in der manpage von urxvt nachgeforscht aber nichts gefunden :( .

@Gott_in_schwarz: Nein bei mir kommt keinerlei Fehlermeldung beim ausführen von beep ansonsten hätte ich sie ja gepostet ;) .
 
Gute Morgen
kann es sein das du das modul pcspkr in der
Code:
/etc/rc.conf
geblacklistet hast??? das würde erklären warum im grub der beep funktioniert und unter linux dann nicht
 
Mh leider nein, ich hab keinerlei Module auf der Blackliste
Code:
MOD_BLACKLIST=()
und das Modul pcspkr ist auch ganz normal in unter MODULES=() eingefügt.
 
Funktioniert beep nur in einem grafischen Terminal oder auch auf einem TTY nicht. Bei KDE z.B. ist es möglich im Kontrollzentrum unter "Sound & Multimedia"->Signalton die Lautstärke des Beeps einzustellen. Ist diese auf 0% gesetzt, herrscht natürlich Schweigen.
 
Auch in einer TTY herrscht Stille. Unter welchem Punkt könnte man die Lautstärke des internen Lautsprechers im alsamixer regeln? Vielleicht hab ich einfach nur den falschen Menüpunkt nicht aktiviert (hab alle durchprobiert :( ).
 
Da der Systembeep nicht über Alsa-Module ausgegeben wird, wirst du dafür keinen Regler im Alsamixer finden. Hast du evtl. den Beep für deine Shell oder allgemein in der /etc/inputrc deaktiviert?
 
Also in meiner /etc/inputrc steht folgendes:
Code:
[B]# do not bell on tab-completion
#set bell-style none[/B]

set meta-flag on
set input-meta on
set convert-meta off
set output-meta on

$if mode=emacs

# for linux console and RH/Debian xterm
"\e[1~": beginning-of-line
"\e[4~": end-of-line
"\e[5~": beginning-of-history
"\e[6~": end-of-history
"\e[7~": beginning-of-line
"\e[3~": delete-char
"\e[2~": quoted-insert
"\e[5C": forward-word
"\e[5D": backward-word
"\e\e[C": forward-word
"\e\e[D": backward-word
"\e[1;5C": forward-word
"\e[1;5D": backward-word

# for rxvt
"\e[8~": end-of-line

# for non RH/Debian xterm, can't hurt for RH/DEbian xterm
"\eOH": beginning-of-line
"\eOF": end-of-line

# for freebsd console
"\e[H": beginning-of-line
"\e[F": end-of-line
$endif

# Include user-specific configuration
$include ~/.inputrc
demnach müsste eigentlich die Lautsprecher ein Ton von sich geben oder?
In der .inputrc in meinem Home Verzeichnisses befindet sich auch nur folgende Zeile:
Code:
set completion-ignore-case on
 
Zuletzt bearbeitet:
Zurück
Oben