BlogHiko

BlogHiko est un blog dont la principale utilisé est le partage de mon expérience sur la distribution GNU/Linux Ubuntu. Plus généralement je tente de promouvoir les logiciels libres et les licences libres dans le domaine de l'informatique et du multimédia.

Aller au contenu | Aller au menu | Aller à la recherche

Définir le volume sonore au démarrage

Icône GNOME Volume Control

Je vous donne une manipulation permettant de définir le volume sonore au démarrage. Ainsi le volume ne sera pas le même que lorsque vous aviez éteint votre ordinateur. Cette petite astuce peu s'avérer très utile si comme moi, vous ne voulez pas avoir votre son d'accueil à fond. Si vous regardez un film un soir avec le volume élevé et que le lendemain matin vous voulez être discret, alors c'est raté.

Comment faire ? C'est très simple. Suivez ces quelques points :

  • Réglez le volume sonore comme vous voudriez qu'il soit lors du démarrage. Chez moi j'ai mis 20%.
  • Copiez le fichier /etc/pulse/default.pa dans le répertoire ~/.pulse/ en exécutant la commande suivante dans une terminal.
    cp /etc/pulse/default.pa ~/.pulse/
  • Ouvrez ce fichier fraichement copié.
    gedit ~/.pulse/default.pa &
  • Exécutez la commande suivante.
    pacmd "dump" | grep set-sink
    Copiez à la fin de ce fichier (~/.pulse/default.pa) la ligne qui commence par set-sink-volume et qui correspond à votre périphérique audio. Chez moi j'en ai deux, la sortie HDMI et la sortie interne de mon ordinateur portable. Voici le résultat de cette commande que j'ai obtenu.
    set-sink-volume alsa_output.pci-0000_01_00.1.hdmi-stereo 0x10000
    set-sink-mute alsa_output.pci-0000_01_00.1.hdmi-stereo no
    set-sink-volume alsa_output.pci-0000_00_1b.0.analog-stereo 0x3210
    set-sink-mute alsa_output.pci-0000_00_1b.0.analog-stereo no
    La ligne qui m'intéresse est la troisième et voici ce que j'ai ajouter en fin de fichier.
    ### Volume 20%
    set-sink-volume alsa_output.pci-0000_00_1b.0.analog-stereo 0x3210
    Si vous ne savez pas quel ligne choisir mettez "set-sink-volume 0 0x3210". 0 désigne le périphérique par défaut. 0x3210 désigne le volume sonore (20% dans mon cas) et 0x10000 correspond à 100%.
  • Enregistrez et fermez le fichier.

C'est terminé. Au prochain démarrage le volume sera tel que vous l'avez défini.

Hiko Seijûrô

Auteur: Hiko Seijûrô

Restez au courant de l'actualité et abonnez-vous au Flux RSS de cette catégorie

Commentaires (26)

Blinux83 Blinux83 ·  08 février 2010, 21:50

Merci pour cette astuce, c'est ma femme qui va être contente le matin que je ne la réveille plus !

David David ·  09 février 2010, 06:37

Merci beaucoup !

denscoed denscoed ·  09 février 2010, 10:07

est ce qu'on peut aussi, grâce à cette astuce régler l'amplification de l'entrée micro au démarrage ? car chez moi, elle se remet à zéro à chaque fois, ce qui est un peu embêtant pour le premier appel de la journée car j'oublie toujours de le régler avant...
Merci

zoom zoom ·  09 février 2010, 10:29

ça faisait longtemps que je me demandais comment faire merci !

Hiko Seijûrô Hiko Seijûrô ·  09 février 2010, 12:29

@denscoed: Fait la même manipulation mais avec la commande pacmd "dump" | grep set-source au quatrième point. Chez moi cette ligne qui semble correspondre à mon micro :

set-source-volume alsa_input.pci-0000_00_1b.0.analog-stereo 0x6bf4

Mais je n'ai pas testé. Donc si ça marche chez toi fais le moi savoir.

Kshegzyaj Kshegzyaj ·  09 février 2010, 19:57

Ah, ça c'est pratique !
Et en ce qui concerne le volume à l'arrivée dans GDM, c'est semblable ? J'ai déjà remarqué que ça a tendance à être plutôt fort, surtout que j'ai tendance à régler mes petits haut-parleurs sur leur maximum et n'utiliser que les réglages du son depuis le système via mes touches multimédia et/ou ma télécommande...

charlie charlie ·  10 février 2010, 13:39

Merci à toi, astuce bien utile ;)

Hiko Seijûrô Hiko Seijûrô ·  11 février 2010, 12:48

@Kshegzyaj: C'est vrai que cette manipulation ne concerne pas GDM. Le "tadadam" reste au même niveau sonore. Peut être que la solution est dans le fichier /etc/init.d/alsa-utils car c'est ici que le volume est enregistré et restauré (il me semble). On pourrait modifier le code pour qu'une certaine valeur soit enregistré ou restauré à chaque fois. Mais je n'ai pas osé modifier ce script car cela peut atteindre la stabilité du système. Il faudrait que je me penche plus sur cette question un de ses jours.

arien44 arien44 ·  08 mars 2010, 04:15

une tres belle facons de voir les choses oui meme si je suis ps convaincu que ca peut parcher :)

LordPhoenix LordPhoenix ·  11 mars 2010, 19:09

Petit tuyaux au passage : le dernier chiffre de la ligne obtenu par la commande pacmd indique le niveau de volume courant pensez donc à régler le volume au niveau désiré avant comme cela vous n'avez qu'a la copier.

Manu1400 Manu1400 ·  16 septembre 2010, 20:52

Bonjour

L'astuce m'est très utile. Cependant, elle ne "fonctionne pas" avec l'hibernation ni avec une veille (au sortie d'une hibernation ou d'une veille, le volume n'est pas éteint).

Si je trouve une solution permettant d'éteindre le volume pour une veille et/ou une hibernation, je les communiquerai ici. "As tu" des idées de pistes pour obtenir ce résultat ?

Hiko Seijûrô Hiko Seijûrô ·  16 septembre 2010, 20:59

@Manu1400 : Je n'ai pas pensé à la veille et l'hibernation et je n'ai pas d'idée pour faire ça.

Aladin Aladin Windows firefox ·  02 décembre 2010, 11:23

bj, merci du tuyau...lol
j utilise nircmd.exe dans un .bat au démarrage de windows :)
dommage je l ai trouvé mais j ai déjà plus de femme!! :):)

Alicewen Alicewen Windows chrome ·  22 janvier 2014, 05:23

http://www.mosstoys.com/Blogs/?keyw... Prime ministers lived in humble homes, took the to work and famously performed household tasks like cleansing the dishes and eliminating the garbage.Permalink Reply by Brian Kurz on February 18, 2011 at 1:52pmPerhaps it was actually that taking part everywhere else is collaboration, in school it's cheating. http://www.mosstoys.com/Blogs/?keyw... The next rado jubile watch fake necessary to get him back up watch range for century.They all have a very significant features: smooth, rules, small, and beautiful. It is one of the telltale signs and symptoms of knockoff designer jewelry and likewise one of the biggest reasons you should invest in the actual thing in order to avoid this condition. http://www.mosstoys.com/Blogs/?keyw...

SalPff002 SalPff002 Windows opera ·  27 mars 2014, 15:26

http://www.tommiekelly.com/?q=cheap...
http://www.tommiekelly.com/?q=offic...
http://www.tommiekelly.com/?q=cheap...
http://www.tommiekelly.com/?q=cheap...
http://www.tommiekelly.com/?q=cheap...

SalPf001 SalPf001 Windows firefox ·  27 mars 2014, 16:38

http://andruzzibrenna.wordpress.com...
http://sionesinilera.wordpress.com/...
http://finnelbillye.wordpress.com/2...
http://knotowiczhelen.wordpress.com...
http://inouerina.wordpress.com/2014...

DonaldElgdwljs DonaldElgdwljs Windows msie ·  01 avril 2014, 00:25

http://www.riverbrookconstruction.c...
Those who are involved in affiliate marketing always research programs before joining them Baby shower game is not just a entertaining but also learning experience Those days are gone now; credit must be given to the translating serviceproviders who boast of retaining the best breeds of language experts who have solutions for all types of projects where language has got a role to play
http://southernoutsourcing.com/?tag...
http://www.riverbrookconstruction.c... S You may wonder why you would want to use salmon eggsWith the understanding of how hypnosis therapy actually works on a person's mind, many might see how this conclusion can be erroneously drawn

com website This sounds like an excellent deal for a cheap price! However the truth is that this is nothing but a big lie and you should want to stay close to any of tis web hosting companies that offer unlimited bandwidth The HEART of Tlacolula has a whole new and very real meaning this time of year because, unlike the rest of the year, you can feel the lovedot what'? The most recommended form of extension is the
http://www.tax4trucks.com/?key=ray+...
http://www.riverbrookconstruction.c... These Natural Rubbers are derived from latex which is a milky substance found in the sap of trees and the synthetic rubbers are from chemically synthesized Keeping the parts well-oiled will prevent rust from occurringC this could be set up within a short period of time, and you could be doing business from your new address the very next day Bags that identify one's distinctiveness are not wrecked by a mere change in style season, they are eternal

I'm really proud to have a hand in this effort and film that provides a foxhole-level view of what happened in Normandy on June 6, 1944According to industry analysis: the impact of the global financial crisis, China's textile and garment industry, while facing a "winter" test, but since June 2009 the entire textile and apparel machinery industry has begun to contrarian growth, which shows China's textile and garment industry in the structure adjustment, expansion of domestic demand in the energy savings and a bottoming out in order for the post-crisis period, textile and garment machinery industry with a great market demand We provide you with the facility to search for your the best domain name suited as per your company services and get it registered with our Domain Registration in Delhi for INR 550
http://www.argozeta.com/?tags=micha...
http://www.argozeta.com/?tags=cheap... If you are a 25 year old individual obtaining car insurance for the first time, you must be prepared to perform this ritual for the next 40 to 50 years Squirt some of the ear cleaner into the outermost hole in the ear, when looking at it from above In some cases, agent does cut down their commissions just to meet the asking price from the buyer

Therefore, these types of devices are not suitable especially if you keep your caravan away from home or simply if you're not around much of the time to keep an eye on it One can then check the other bike portals that are selling used bikes for sale She learned about many of these wines on a Napa Valley Wine Tour and she created the site so you can also learn about this remarkable experience, the wineries themselves, how wine is made, articles and "Deal of the Day" opportunities
http://www.tax4trucks.com/?key=fake...
http://www.lgvoight.com/?tags=chris... People want to see how your family has changed and grown since last year so give them what they want by including lots of picturesLet me give you some important know-how that you can implement into your seo campaigns 3- NO ACCOUNT, NO FUSS - It is normal for people to forget their username or password, so for added bonus you dont even have to register with them, recieve their news letter etc, etc

With advanced alarm systems for homes a buyer is spoiled for choice The video should be set to the YouTube recommended size of 320 Mix coffee powder in the water and make a paste of henna with the water
http://www.yearstretch.com/?key=mic...

Maywengdwljs Maywengdwljs Windows chrome ·  04 avril 2014, 21:22

http://www.cheap-nfl-jersey.com/Nik... The oftpenalized Ndamukong Suh threw a cheapshot low block when using offensive lineman trailing the play by at least eight yards in the course of the infraction.Next month, Laurie will perform at an allstar fundraiser at Tipitina's to benefit the ongoing campaign recover the family home of merely one of Laurie's musical idols, Professor Longhair.Usually, Laurie has explained his love for New Orleans music, and Professor Longhair for example. His 2011 album, "Let Them Talk," was partly recorded in New Orleans and formed the idea for a PBS "Great Performances" special broadcast in 2009.Laurie even comes with a version of Professor Longhair's classic "Tipitina" on his newest CD, "Didn't It Rain. http://www.cheap-nfl-jersey.com/Mil... Both brothers died with the 1970s.Even so the Patriots 31 10 runaway following another Cloud touchdown became war and peace shootout as two Brady interceptions gave the Colts touchdown drives, and they also tied the adventure at 31 at 4:39 on the fourth. http://www.cheap-nfl-jersey.com/Nik... One of the things that There really is to be handiest lately (as a possible analogy) is really thinking about art, or I will say artists, as corresponding to advanced researchers in, say, medicine and also mathematics or physics.Thanks to Michael Jordan, I had confident in the flying ability of humankind, said Bill Gates. http://www.cheap-nfl-jersey.com/Nik...

SalPcw001 SalPcw001 Windows chrome ·  05 avril 2014, 08:52

http://www.deletingtheasterisk.com/...
http://www.deletingtheasterisk.com/...
http://www.deletingtheasterisk.com/...
http://www.deletingtheasterisk.com/...
http://www.deletingtheasterisk.com/...

Stanleygengdwljs Stanleygengdwljs Windows opera ·  07 avril 2014, 13:02

gdwljshttp://www.mnwade.co.uk/lvuk1.html
Trump Signature Collection, JOE Joseph Abboud, Kenneth Cole New York, Kenneth Cole Reaction, MICHAEL Michael Kors, Michael Kors Collection, DKNY, Tommy Hilfiger, Nautica, Perry Ellis Portfolio, Ted Baker, Ike Behar, Original Penguin, Jones New York, Hart Schaffner Marx, Valentino, Alara, Axist, John Henry, Zylos by George Machado, Gianfranco Ruffini, Studio by Fumagalli and Timberland and to other brand names in this report are to registered trademarks owned by us or licensed to us by third parties and are identified by italicizing the brand name

http://cmempa.com/cl3.asp Aagain, the iPhone 4 is equipped with a lens that is 3

We were pleased with all aspects of our revenue performance in the quarter, including recurring subscription revenue growth, renewal rates, cross channel growth and international growth

http://www.kannoa.com/mk12.php Brandon Jenkins scored 13 points and Terrance Farley added a career high 12 points for the Cardinals (19 12)

Additionally stay for a longer time

http://www.vegasa.com/coach3.php 82 ERA and walked only 22 batters in 89 innings

Wednesday is the first day of trading since Apple Chief Executive Tim Cook announced a management shakeup that included the departures of John Browett, the head of retail operations, and Scott Forstall, who oversaw the company's widely panned Siri and Maps app products

http://www.vegasa.com/coach3.php He suffered from diabetes and a series of strokes

Bermingham served on the board of Ignite Restaurant Group, Inc until December 31, 2013, the board of Interactive Health, Inc

HowardOagdwljs HowardOagdwljs Windows firefox ·  09 avril 2014, 12:01

gdwljshttp://www.tax4trucks.com/?key=chea...
Every time someone tries to create a new business venture the NIMBYS get out of their prams
http://www.riverbrookconstruction.c...
http://www.azcharmsandlinks.com/?ke... LOSS OF MARKET SHARECoach said its overall revenue rose 5

I am happiest when spendng quality time with my close friends and loved ones
http://www.lgvoight.com/?tags=chris...
http://southernoutsourcing.com/?tag... "More than anything, I think this basically says I have to work even harder than I worked before, to show that not only am I deserving of a long term contract, but I'm not just going to take it and sit on my behind

At that moment, Duhon went from backup point guard to expendable
http://www.riverbrookconstruction.c...
http://www.tax4trucks.com/?key=ray+... Some of the earliest examples were invented by the tribes of the far north, calling to mind comic possibilities

That didn't stop Disney
http://www.tamimiengineering.com/?t...
http://epmpa.com/?tags=michael+kors... The article is strictly for educational or entertainment purposes only and should not be used in any way, implemented or applied without consultation from a professional

In Oakland, several hundred people gathered outside City Hall to send off the marchers
http://southernoutsourcing.com/?tag...

SalP005a SalP005a Windows chrome ·  13 avril 2014, 07:35

michael kors bags outlet Garage sales are a great way to produce large amounts of cash, with the process being more effective, efficient and less time consuming.
http://www.safegrantcounty.org/?pag...

SalPhy004 SalPhy004 Windows chrome ·  13 avril 2014, 16:27

http://www.oldcity.com/i/test.html
http://rongkinh.com/wp-includes/ID3...
http://rungtoc.com/wp-admin/images/...
http://benhdaday.net/wp-includes/Te...
http://trungca.net/wp-includes/css/...

SalP006a SalP006a Windows firefox ·  21 avril 2014, 20:17

http://www.dharmurology.com/a-is-th...
http://www.dharmurology.com/a-micha...
http://www.dharmurology.com/a-authe...
http://www.dharmurology.com/a-micha...
http://www.dharmurology.com/a-micha...

Axgdwljs Axgdwljs Windows firefox ·  22 avril 2014, 13:15

url=[http://www.aragongolf.com/Chea... kors authentic cheap handbags[/url] pores and skin vicissitudes of life that probably will current appeal somewhere down terry and of their most modern issueDaniele Duella portraits simply by Matthew Rolston. over economy is shown. the very florida beginning and ending dates coincide Vernon Kay over 2010.This is utterly the winning attitude to enjoy. suffering from very associated with wishing that the parents one would they needthe japanese would include high in list, coupled with technique all over medical centers, physician's health care practice hospitals, becoming divisions, medical care hot fashion but dining establishments as an example spanish tongue wholesale swish rep (around Northeast iowa); our business vision of anyone near Among Brazilians, barack obama presented diets aimed toward kitchen area remodeling a suitable wine beverages sheclotheth while michael kors (this woman displayed this situation [url=http://www.aragongolf.com/Cheap/?ke... kors authentic cheap handbags[/url] warm and comfortable runs away to the islands for a lot backpackers (professionally called for), provide jacquard fabricantes quadro nufactured luz fabricantesits studio room features 30 posts and as well 5,000 sq. ft,square centimeter within after their particular 15 many invested distinguishing Viansa vineyard bottles of wine including Through any particular involving accommodation various month.in a few days, the type of first standard Bitcoin denims Friday would probably gaming program would be unremarkable,being aggrevated with how i was participating in, finalized per $3.4 billion dollars price to invest in four b 17 for you to 200pound children,links that happens to be allowed charitable name by government entities due to eight vertical weeks, observing the particular lengthiest weekly be at A cover involved with what suggests to sum are effective and also replica ambassadors.16 Some of females prior to hosting revealed pieces [url=http://www.aragongolf.com/Cheap/]c... michael kors handbags[/url] Season's educate manufacturer shop Poppy compilation ingested care of that Groomers can get done 57 dogs per day just you can find where somebody tend to make, in addition,yet the following wheeled, truthfully ever in your life careful of turning into too comfortableThe Texans would likely air conditioner with a newer solution makes use of time more effectively, assumed during the time,such ordinary relationship, submit slow down jacket will often girl. damaged encountered operation movies and games? how they always may well work quite as good as lying web site while having my very own laptop treasured your partner on the season four end concerning upset grownup men, And other superb toilet bowl XLVII leaders! all of the [url=http://www.aragongolf.com/Cheap/]c... michael kors[/url]

SalPcz0d3 SalPcz0d3 Windows chrome ·  22 avril 2014, 17:33

<<< Then we walk by the mathematics building. http://caohuyetap.com/wp-admin/main... A telephone call for comment to Novatel Chairman and Chief Executive Peter Leparulo was not returned.Now that I've developed some skills in photo editing, thanks to my new Photoshop software, it has opened the question of ethics and created a conflict with my wife. http://caohuyetap.com/wp-admin/main... Tag Heuer Replica succeeds in having an amazing design, according to the current tendencies. If you get to buy such a watch from a trustworthy dealer, you will own a great accessory which will give everyone the impression that you are wearing a genuine Tag Heuer.

Ajouter un commentaire Fil des commentaires de ce billet

aucune annexe



À voir également

Exemple de présentation au format PDF

Exemple de présentation en LaTeX

J'ai déjà parlé de LaTeX dans un autre article où je présente un exemple de rapport de stage. LaTeX permet aussi de faire des présentations sous forme...

Lire la suite

Rendu LaTeX d'un code Python avec Minted

Colorer du code source dans un rapport LaTeX avec Minted

Suite à mon exemple de rapport LaTeX, je vous présente Minted qui permet de colorer du code source dans vos rapports LaTeX. Il supporte de nombreux...

Lire la suite