Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Bios] faire un bip via le terminal (~resolu)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index French
View previous topic :: View next topic  
Author Message
bulki
Guru
Guru


Joined: 25 Nov 2004
Posts: 529
Location: SiliconValley

PostPosted: Wed Jan 12, 2005 5:45 pm    Post subject: [Bios] faire un bip via le terminal (~resolu) Reply with quote

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
View user's profile Send private message
zdra
Veteran
Veteran


Joined: 30 Nov 2003
Posts: 1693
Location: Bruxelles, Belgique

PostPosted: Wed Jan 12, 2005 6:07 pm    Post subject: Reply with quote

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
View user's profile Send private message
kernelsensei
Bodhisattva
Bodhisattva


Joined: 22 Feb 2004
Posts: 5619
Location: Woustviller/Moselle/FRANCE (49.07°N;7.02°E)

PostPosted: Wed Jan 12, 2005 6:12 pm    Post subject: Reply with quote

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 :
Code:
echo -e "\a"


et hop, magique, ca "Bip" !
_________________
$ ruby -e'puts " .:@BFegiklnorst".unpack("x4ax7aaX6ax5aX15ax4aax6aaX7ax2aX5aX8 \
axaX3ax8aX4ax6aX3aX6ax3ax3aX9ax4ax2aX9axaX6ax3aX2ax4ax3aX4aXaX12ax10aaX7a").join'
Back to top
View user's profile Send private message
Trevoke
Advocate
Advocate


Joined: 04 Sep 2004
Posts: 4099
Location: NY, NY

PostPosted: Wed Jan 12, 2005 6:17 pm    Post subject: Reply with quote

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
View user's profile Send private message
sireyessire
Advocate
Advocate


Joined: 20 Mar 2003
Posts: 2991
Location: back in Paris, France

PostPosted: Wed Jan 12, 2005 6:22 pm    Post subject: Reply with quote

kernel_sensei wrote:

donc on lit puis on fait :
Code:
echo -e "\a"


et hop, magique, ca "Bip" !

ça marche que si tu as mis le support PC speakers dans le noyau. :wink:
_________________
I never think of the future. It comes soon enough.
Albert Einstein

Try simpler first
Shockley
Back to top
View user's profile Send private message
kernelsensei
Bodhisattva
Bodhisattva


Joined: 22 Feb 2004
Posts: 5619
Location: Woustviller/Moselle/FRANCE (49.07°N;7.02°E)

PostPosted: Wed Jan 12, 2005 6:24 pm    Post subject: Reply with quote

sireyessire wrote:
kernel_sensei wrote:

donc on lit puis on fait :
Code:
echo -e "\a"


et hop, magique, ca "Bip" !

ça marche que si tu as mis le support PC speakers dans le noyau. :wink:


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
View user's profile Send private message
zdra
Veteran
Veteran


Joined: 30 Nov 2003
Posts: 1693
Location: Bruxelles, Belgique

PostPosted: Wed Jan 12, 2005 6:43 pm    Post subject: Reply with quote

ah c'est pour ça que ça marchait pas ché moi :D
Back to top
View user's profile Send private message
bosozoku
Advocate
Advocate


Joined: 11 Jan 2004
Posts: 2431
Location: Roazhon

PostPosted: Wed Jan 12, 2005 6:50 pm    Post subject: Reply with quote

zdra wrote:
ah c'est pour ça que ça marchait pas ché moi :D

+1 :roll:
_________________
Stationlinux.org - Wiki Fvwm FR - Config Fvwm
Back to top
View user's profile Send private message
Pachacamac
Veteran
Veteran


Joined: 22 Nov 2003
Posts: 1264
Location: Paris - France

PostPosted: Wed Jan 12, 2005 7:09 pm    Post subject: Reply with quote

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
View user's profile Send private message
ptitfluff
Tux's lil' helper
Tux's lil' helper


Joined: 11 Mar 2004
Posts: 96
Location: Lyon

PostPosted: Thu Jan 13, 2005 2:40 pm    Post subject: Reply with quote

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 :roll:
Back to top
View user's profile Send private message
Pachacamac
Veteran
Veteran


Joined: 22 Nov 2003
Posts: 1264
Location: Paris - France

PostPosted: Thu Jan 13, 2005 4:48 pm    Post subject: Reply with quote

setterm -b ou setterm -blength 0 me semble til
Back to top
View user's profile Send private message
yoyo
Bodhisattva
Bodhisattva


Joined: 04 Mar 2003
Posts: 4273
Location: Lyon - France

PostPosted: Thu Jan 13, 2005 4:56 pm    Post subject: Reply with quote

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
View user's profile Send private message
bulki
Guru
Guru


Joined: 25 Nov 2004
Posts: 529
Location: SiliconValley

PostPosted: Fri Jan 14, 2005 2:22 pm    Post subject: Reply with quote

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
View user's profile Send private message
rg421
Apprentice
Apprentice


Joined: 07 Dec 2004
Posts: 192
Location: Strasbourg

PostPosted: Fri Jan 14, 2005 2:32 pm    Post subject: Reply with quote

Quote:
echo -e "\a" ça m'affiche: -e \a ...

Ce n'est pas la commande GNU echo... Tente un
Code:
echo $'\a'


--
renaud
Back to top
View user's profile Send private message
bulki
Guru
Guru


Joined: 25 Nov 2004
Posts: 529
Location: SiliconValley

PostPosted: Fri Jan 14, 2005 2:39 pm    Post subject: Reply with quote

rg421 wrote:
Quote:
echo -e "\a" ça m'affiche: -e \a ...

Ce n'est pas la commande GNU echo... Tente un
Code:
echo $'\a'


--
renaud


~> echo $'\a'
Illegal variable name.


Hum :roll: :roll: :roll:
Back to top
View user's profile Send private message
rg421
Apprentice
Apprentice


Joined: 07 Dec 2004
Posts: 192
Location: Strasbourg

PostPosted: Fri Jan 14, 2005 2:49 pm    Post subject: Reply with quote

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
Code:
printf "\a"


--
Renaud
Back to top
View user's profile Send private message
bulki
Guru
Guru


Joined: 25 Nov 2004
Posts: 529
Location: SiliconValley

PostPosted: Fri Jan 14, 2005 7:34 pm    Post subject: Reply with quote

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
Code:
printf "\a"


--
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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index French All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum