View previous topic :: View next topic |
Author |
Message |
bulki Guru
Joined: 25 Nov 2004 Posts: 529 Location: SiliconValley
|
Posted: Wed Jan 12, 2005 5:45 pm Post subject: [Bios] faire un bip via le terminal (~resolu) |
|
|
Hep, je voulais savoir si ça existait un moyen de faire un BIP Bios a partir du terminal (utile dans les scripts), mais aussi si ça peut s'executer en user...
Merci
Last edited by bulki on Fri Jan 14, 2005 2:22 pm; edited 1 time in total |
|
Back to top |
|
|
zdra Veteran
Joined: 30 Nov 2003 Posts: 1693 Location: Bruxelles, Belgique
|
Posted: Wed Jan 12, 2005 6:07 pm Post subject: |
|
|
oui il y a moyen
mais je sais pas trop comment...
ça m'étonnerais meme pas que ce soit un truc style:
echo <frequence> >> /dev/qqch |
|
Back to top |
|
|
kernelsensei Bodhisattva
Joined: 22 Feb 2004 Posts: 5619 Location: Woustviller/Moselle/FRANCE (49.07°N;7.02°E)
|
Posted: Wed Jan 12, 2005 6:12 pm Post subject: |
|
|
man bash wrote: |
echo [-neE] [arg ...]
Output the args, separated by spaces, followed by a newline.
The return status is always 0. If -n is specified, the trailing
newline is suppressed. If the -e option is given, interpreta-
tion of the following backslash-escaped characters is enabled.
The -E option disables the interpretation of these escape char-
acters, even on systems where they are interpreted by default.
The xpg_echo shell option may be used to dynamically determine
whether or not echo expands these escape characters by default.
echo does not interpret -- to mean the end of options. echo
interprets the following escape sequences:
\a alert (bell)
|
donc on lit puis on fait :
et hop, magique, ca "Bip" ! _________________ $ ruby -e'puts " .:@BFegiklnorst".unpack("x4ax7aaX6ax5aX15ax4aax6aaX7ax2aX5aX8 \
axaX3ax8aX4ax6aX3aX6ax3ax3aX9ax4ax2aX9axaX6ax3aX2ax4ax3aX4aXaX12ax10aaX7a").join' |
|
Back to top |
|
|
Trevoke Advocate
Joined: 04 Sep 2004 Posts: 4099 Location: NY, NY
|
Posted: Wed Jan 12, 2005 6:17 pm Post subject: |
|
|
Par "bip BIOS" tu veux dire un des sons que le BIOS fait quand il y a un probleme par exemple? Je ne sais pas si on peut regler la frequence et la vitesse pour obtenir ca.. Mais c'est clair qu'il faut faire travailler le PC speaker. _________________ Votre moment detente
What is the nature of conflict? |
|
Back to top |
|
|
sireyessire Advocate
Joined: 20 Mar 2003 Posts: 2991 Location: back in Paris, France
|
Posted: Wed Jan 12, 2005 6:22 pm Post subject: |
|
|
kernel_sensei wrote: |
donc on lit puis on fait :
et hop, magique, ca "Bip" ! |
ça marche que si tu as mis le support PC speakers dans le noyau. _________________ I never think of the future. It comes soon enough.
Albert Einstein
Try simpler first
Shockley |
|
Back to top |
|
|
kernelsensei Bodhisattva
Joined: 22 Feb 2004 Posts: 5619 Location: Woustviller/Moselle/FRANCE (49.07°N;7.02°E)
|
Posted: Wed Jan 12, 2005 6:24 pm Post subject: |
|
|
sireyessire wrote: | kernel_sensei wrote: |
donc on lit puis on fait :
et hop, magique, ca "Bip" ! |
ça marche que si tu as mis le support PC speakers dans le noyau. |
ben forcement, vu qu'on veut utiliser le_dit speaker ! (a moins que les autres methodes [si il y en a] n'en aient pas besoin !?) _________________ $ ruby -e'puts " .:@BFegiklnorst".unpack("x4ax7aaX6ax5aX15ax4aax6aaX7ax2aX5aX8 \
axaX3ax8aX4ax6aX3aX6ax3ax3aX9ax4ax2aX9axaX6ax3aX2ax4ax3aX4aXaX12ax10aaX7a").join' |
|
Back to top |
|
|
zdra Veteran
Joined: 30 Nov 2003 Posts: 1693 Location: Bruxelles, Belgique
|
Posted: Wed Jan 12, 2005 6:43 pm Post subject: |
|
|
ah c'est pour ça que ça marchait pas ché moi |
|
Back to top |
|
|
bosozoku Advocate
Joined: 11 Jan 2004 Posts: 2431 Location: Roazhon
|
|
Back to top |
|
|
Pachacamac Veteran
Joined: 22 Nov 2003 Posts: 1264 Location: Paris - France
|
Posted: Wed Jan 12, 2005 7:09 pm Post subject: |
|
|
Sur la série des 2.6 il est désactivé par défaut.
Sur les 2.4 c'était le contraire. Souviens toi lors des tab |
|
Back to top |
|
|
ptitfluff Tux's lil' helper
Joined: 11 Mar 2004 Posts: 96 Location: Lyon
|
Posted: Thu Jan 13, 2005 2:40 pm Post subject: |
|
|
vui tiens d'ailleurs, comment on le desactive le bip du tab sur le noyau 2.4 ...
Un peu marre de me faire jeter par ma copine quand je traine tard le soir sur le pc et qu'un Bip retentit dans la nuit |
|
Back to top |
|
|
Pachacamac Veteran
Joined: 22 Nov 2003 Posts: 1264 Location: Paris - France
|
Posted: Thu Jan 13, 2005 4:48 pm Post subject: |
|
|
setterm -b ou setterm -blength 0 me semble til |
|
Back to top |
|
|
yoyo Bodhisattva
Joined: 04 Mar 2003 Posts: 4273 Location: Lyon - France
|
Posted: Thu Jan 13, 2005 4:56 pm Post subject: |
|
|
ptitfluff wrote: | vui tiens d'ailleurs, comment on le desactive le bip du tab sur le noyau 2.4 ... | Et sous X : xset -b _________________ La connaissance s'accroît quand on la partage.
JCB |
|
Back to top |
|
|
bulki Guru
Joined: 25 Nov 2004 Posts: 529 Location: SiliconValley
|
Posted: Fri Jan 14, 2005 2:22 pm Post subject: |
|
|
ok merci pour toutes vos réponses. J'avais aussi entendu parler de
echo 1>/dev/? , mais bon. En fait, je voulais faire ça sous solaris, j'ai le même man pour bash, mais quand je fais un echo -e "\a" ça m'affiche: -e \a ...
Hum... |
|
Back to top |
|
|
rg421 Apprentice
Joined: 07 Dec 2004 Posts: 192 Location: Strasbourg
|
Posted: Fri Jan 14, 2005 2:32 pm Post subject: |
|
|
Quote: | echo -e "\a" ça m'affiche: -e \a ... |
Ce n'est pas la commande GNU echo... Tente un
--
renaud |
|
Back to top |
|
|
bulki Guru
Joined: 25 Nov 2004 Posts: 529 Location: SiliconValley
|
Posted: Fri Jan 14, 2005 2:39 pm Post subject: |
|
|
rg421 wrote: | Quote: | echo -e "\a" ça m'affiche: -e \a ... |
Ce n'est pas la commande GNU echo... Tente un
--
renaud |
~> echo $'\a'
Illegal variable name.
Hum |
|
Back to top |
|
|
rg421 Apprentice
Joined: 07 Dec 2004 Posts: 192 Location: Strasbourg
|
Posted: Fri Jan 14, 2005 2:49 pm Post subject: |
|
|
Bon. M'ennerve ce echo là. Vais finir par en faire une affaire personnelle...
Peux-tu me sortir la version de la bête (ou au moins du solaris en question) ?
Il va surement falloir passer par les caractères d'échappement...
A voir aussi avec la commande GNU printf
--
Renaud |
|
Back to top |
|
|
bulki Guru
Joined: 25 Nov 2004 Posts: 529 Location: SiliconValley
|
Posted: Fri Jan 14, 2005 7:34 pm Post subject: |
|
|
rg421 wrote: | Bon. M'ennerve ce echo là. Vais finir par en faire une affaire personnelle...
Peux-tu me sortir la version de la bête (ou au moins du solaris en question) ?
Il va surement falloir passer par les caractères d'échappement...
A voir aussi avec la commande GNU printf
--
Renaud |
hum... c'est un SunOS 5.8... Je n'ai qu'un accès à distance jusqu'à lundi, donc je ne peux pas tester le bip, écouter s'il retentit vraiment.
mais par contre, le printf "\a" passe bien, il ne me mets pas de message d'erreur, ni autre... |
|
Back to top |
|
|
|