[17:40] <SkyWay> V3n3RiX: ai putin timp ?
[17:40] <SkyWay> :)
[17:40] <V3n3RiX> do tell
[17:41] <SkyWay> am vazut ca esti helper si pe forum ubuntu
[17:41] <SkyWay> am o chestie cu hdmi si sunet..
[17:41] <SkyWay> se muta doar manual
[17:41] <SkyWay> e vre`o solutie ca sa fac output direct pe celalalt display cand merg pe el ?
[17:41] <SkyWay> la sunet ma refe
[17:41] <SkyWay> refer
[17:42] <V3n3RiX> depinde
[17:42] <SkyWay> ca imaginea am rezolvat`o cu xrandr si cu un hotkey 
[17:42] <V3n3RiX> comuti sunetul manual cum ?
[17:42] <SkyWay> da
[17:42] <V3n3RiX> din pavucontrol?
[17:42] <SkyWay> de la sound settings
[17:42] <SkyWay> si acolo selectez hdmi 
[17:43] <SkyWay> si`mi merge.. da as vrea ceva mai automatizat, ca tot timpul uit sa comut, si cand imi dau drumul la film imi dau seama ca nu merge :)
[17:44] <V3n3RiX> sunetul trece pe mute cand bagi hdmi?
[17:44] <V3n3RiX> adica nu ai sunet deloc ?
[17:44] <SkyWay> nu
[17:44] <SkyWay> deci sunt pe monitor, am sunet totul ok
[17:44] <SkyWay> trec pe hdmi, imaginea merge, dar nu am sunet
[17:44] <SkyWay> ma duc si mut manual cu mouse`ul din setari, sound settings, selectez hdmi
[17:44] <SkyWay> si merge
[17:45] <SkyWay> da eu as vrea, daca e posibil, sa faca chestia asta automat cand mut imaginea.. pe hdmi
[17:46] <V3n3RiX> nvidia hdmi?
[17:46] <SkyWay> da
[17:49] <V3n3RiX> yeah se poate
[17:49] <SkyWay> da`mi un link daca nu ai timp
[17:50] <SkyWay> te rog
[17:50] <V3n3RiX> dar ... e un pic complicat 
[17:50] <V3n3RiX> eu unul as scrie un script care detecteaza monitorul activ
[17:50] <V3n3RiX> si in functie de asta sa faca switch 
[17:51] <SkyWay> e timpul tau, nu pot sa`ti cer .. :)
[17:51] <SkyWay> daca ai chef, oricand ar fi bine..
[17:51] <V3n3RiX> true...dar tresa ma documentez...ca acum nu mai am un monitor extern
[17:51] <V3n3RiX> sa vad ce se schimba cand fac switch
[17:51] <V3n3RiX> ;))
[17:51] <SkyWay> :)
[17:52] <SkyWay> nu arde nimic
[17:52] <V3n3RiX> ce comenzi dai pe xrandr?
[17:52] <SkyWay> stai asa..
[17:52] <V3n3RiX> ca poate merge pacalit sa faca switch imediat dupa xrandr
[17:52] <V3n3RiX> ;))
[17:52] <SkyWay> xrandr --output VGA-1 --primary --off --output HDMI-1 --auto â merge TV`u doar
[17:52] <SkyWay> xrandr --output HDMI-1 --off --output VGA-1 --auto --primary â merge doar monitoru`
[17:52] <SkyWay> am incercat
[17:53] <V3n3RiX> yeah
[17:53] <SkyWay> cu ;pactl
[17:53] <SkyWay> da nu a mers
[17:53] <SkyWay> :)
[17:53] <V3n3RiX> merge facut simplu
[17:53] <SkyWay> nu ma innebuni :)
[17:53] <SkyWay> si eu caut de 3 zile de nebun
[17:53] <V3n3RiX> :))
[17:54] <SkyWay> imi place ubuntu, ca merge brici pe rasnita, da cand vine vorba de inteles ubuntu, si comenzi .. is bota :)
[17:54] <SkyWay> de aia ma descurc greu 
[17:54] <V3n3RiX> well...nicaieri nu o sa iti spuna sa scrii un script care sa faca switch conditionat de xrandr
[17:54] <V3n3RiX> mai ales pe ubuntu
[17:54] <V3n3RiX> :))
[17:55] <SkyWay> pai si de ce nu a mers oare cu pactl?
[17:55] <SkyWay> am incercat si cu &&
[17:55] <V3n3RiX> ce comanda ai dat?
[17:55] <SkyWay> si nu a vrut
[17:55] <SkyWay> nu mai stiu exact, ceva in genu: pactl set-card-profile <profil>
[17:55] <SkyWay> profilele disponibile le`am vazut cu pacmd list-cards
[17:56] <V3n3RiX> pactl set-card-profile 0 output:hdmi-audio
[17:56] <V3n3RiX> ceva de genul?
[17:56] <SkyWay> exact
[17:56] <V3n3RiX> exact aia?
[17:56] <V3n3RiX> sau ceva de genul?
[17:56] <SkyWay> nu chiar exact
[17:56] <V3n3RiX> ;))
[17:56] <SkyWay> ca la mine era alt profil
[17:56] <V3n3RiX> ok...ia dai comanda aia
[17:57] <SkyWay> Failure
[17:57] <SkyWay> no such identity
[17:57] <V3n3RiX> ok...atunci arata ce zice pacmd 
[17:58] <SkyWay> http://pastebin.com/x9mnv3D5
[17:59] <V3n3RiX> pactl set-card-profile 0 output:hdmi-output-0
[17:59] <V3n3RiX> dai asa
[18:00] <SkyWay> tot no such 
[18:00] <SkyWay> poate de ce sunt pe hdmi acuma ?
[18:00] <SkyWay> sa trec pe monitor ?
[18:01] <V3n3RiX> neah
[18:01] <V3n3RiX> dai aplay -l
[18:02] <SkyWay> http://pastebin.com/5AdMmPHQ
[18:04] <V3n3RiX> pacmd list-cards | grep "active profile" | cut -d ' ' -f 3-
[18:04] <V3n3RiX> si asta
[18:04] <V3n3RiX> :D


[18:04] <SkyWay> astea`s profilele vad ca
[18:04] <V3n3RiX> good
[18:05] <V3n3RiX> i can do it
[18:05] <V3n3RiX> :))
[18:05] <V3n3RiX> wait
[18:06] <SkyWay> :)
[18:06] <SkyWay> sure
[18:09] <SkyWay> incerc sa inteleg comanda ta, semnul | ce inseamna ... si grep o fi ceva extragere din text cu regex ?
[18:09] <SkyWay> restu de cut -d .. m`ai pierdut :)
[18:10] <V3n3RiX> dai asa
[18:10] <V3n3RiX> xrandr | grep disconnected
[18:10] <V3n3RiX> defapt nu
[18:10] <V3n3RiX> dai xrandr pur si simplu
[18:11] <SkyWay> iti dau output`ul ?
[18:11] <V3n3RiX> yeah
[18:11] <SkyWay> http://pastebin.com/i7duPdwN
[18:14] <V3n3RiX> ciudat
[18:14] <SkyWay> mie`mi spui ? :))
[18:15] <V3n3RiX> atunci dc dai VGA-1 la comanda xrandr
[18:15] <V3n3RiX> ?
[18:15] <V3n3RiX> daca xrandr defapt iti arata VGA-0
[18:15] <SkyWay> vga 0
[18:15] <SkyWay> am uitat sa modific pe pastebin 
[18:15] <SkyWay> :)
[18:15] <SkyWay> scuze
[18:15] <V3n3RiX> deconectezi vga cand treci pe hdmi?
[18:16] <SkyWay> da
[18:16] <SkyWay> ca sting monitorul
[18:16] <SkyWay> nu scot cablul, doar trec vga pe off
[18:16] <SkyWay> cu xrandr
[18:16] <V3n3RiX> ia dai xrandr -q
[18:17] <SkyWay> acelasi rezultat ca xrandr
[18:20] <V3n3RiX> ok
[18:21] <V3n3RiX> hmmm
[18:21] <V3n3RiX> cum pnm sa extrag displayul activ de acolo
[18:21] <V3n3RiX> :))
[18:21] <V3n3RiX> thinking
[18:21] <SkyWay> take your time 
[18:21] <SkyWay> :)
[18:22] <V3n3RiX> crek o sa fac tot ceva cu toggle
[18:22] <V3n3RiX> apesi pe o tasta schimba automat monitorul si sunetul
[18:23] <SkyWay> da
[18:23] <SkyWay> :)
[18:24] <SkyWay> asta o am si acuma pentru xrandr 
[18:24] <V3n3RiX> http://pastebin.com/8F5NEfqC
[18:24] <SkyWay> asa
[18:24] <SkyWay> ce fac cu asta ?
[18:24] <V3n3RiX> stai asa
[18:26] <V3n3RiX> dai asa : wget -c http://pastebin.com/raw.php?i=8F5NEfqC ; mv raw* displaytoggle; chmod +x displaytoggle
[18:26] <SkyWay> gata
[18:27] <V3n3RiX> acum dai asa
[18:27] <V3n3RiX> ./displaytoggle
[18:27] <V3n3RiX> ar trebui sa treaca pe monitor
[18:27] <V3n3RiX> si daca mai dai odata, sa treaca inapoi pe hdmi
[18:28] <V3n3RiX> sa imi zici daca a mers
[18:28] <SkyWay> http://pastebin.com/nxkHtxsU
[18:28] <SkyWay> nu a mers
[18:28] <V3n3RiX> huh?
[18:28] <V3n3RiX> dai which bash
[18:29] <V3n3RiX> si arata-mi
[18:29] <SkyWay> bin/bash
[18:29] <SkyWay> il gaseste
[18:29] <V3n3RiX> ok 
[18:29] <V3n3RiX> dai asa 
[18:30] <V3n3RiX> sed -i "s/"#!/bin/bash"/""/g" displaytoggle
[18:30] <SkyWay> event not found 
[18:30] <SkyWay> :)
[18:30] <V3n3RiX> fuck me
[18:30] <SkyWay> :)
[18:30] <V3n3RiX> ok wait
[18:30] <SkyWay> daca nu, o lasam si pe alta data
[18:30] <SkyWay> :)
[18:31] <V3n3RiX> dai file /usr/bin/env
[18:31] <SkyWay> /usr/bin/env: ELF 64-bit LSB  executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.24, BuildID[sha1]=1886e415fcd7ba45708e015105a7309c3c700f28, stripped
[18:32] <V3n3RiX> ok 
[18:32] <V3n3RiX> dai asa
[18:32] <V3n3RiX> rm -rf displaytoggle; wget -c http://pastebin.com/raw.php?i=nMEiR3zh ; mv raw* displaytoggle; chmod +x displaytoggle
[18:33] <V3n3RiX> apoi ./displaytoggle
[18:33] <V3n3RiX> ar trebui sa faca switch pe monitor
[18:33] <V3n3RiX> apoi daca il rulezi din nou, pe hdmi
[18:34] <SkyWay> : No such file or directory
[18:34] <V3n3RiX> ok 
[18:34] <V3n3RiX> :))
[18:34] <SkyWay> ai gresit un caracter, ceva 
[18:34] <SkyWay> :)
[18:34] <V3n3RiX> probabil
[18:35] <V3n3RiX> dai asa
[18:36] <V3n3RiX> rm -rf display* && wget -c https://dl.dropboxusercontent.com/u/6539285/displaytoggle && chmod +x display* 
[18:36] <SkyWay> la fel
[18:36] <SkyWay> no such file or directory
[18:37] <V3n3RiX> hmmm
[18:40] <V3n3RiX> sigur apare hdmi0 si vga0 cand dai xrandr?
[18:41] <SkyWay> da, ti`am dat output
[18:49] <V3n3RiX> hmm, stiu unde am gresit
[18:49] <V3n3RiX> wait
[18:53] <SkyWay> shit... ii lunga amu
[18:53] <SkyWay> :)
[18:53] <SkyWay> nu mai am nimic la sunet acolo
[18:53] <SkyWay> =))))
[18:53] <SkyWay> nici analog nici hdmi nici nimic 
[18:53] <SkyWay> :)
[19:02] <V3n3RiX> in fine...o sa scriu scriptul
[19:02] <V3n3RiX> dar nu acum....te anunt eu
[19:02] <SkyWay> aia`i, si lasa link aici
[19:02] <SkyWay> ca vad cand intru iar 
[19:02] <SkyWay> ca acu am alta belea :))
[19:02] <SkyWay> tot ii bine, pana imi bag eu dej`tele
[19:02] <SkyWay> :)
[19:02] <SkyWay> mersi oricum!
[19:03] <SkyWay> de timp, de tot 
[19:08] <V3n3RiX> SkyWay, 
[19:08] <V3n3RiX> solved
[19:08] <V3n3RiX> :))
[19:08] <V3n3RiX> tuti pastebinul matii
[19:12] <SkyWay> :)
[19:12] <SkyWay> ti`o scos ceva ?
[19:13] <V3n3RiX> stiu dc dadea eroarea
[19:14] <V3n3RiX> ok
[19:14] <V3n3RiX> dai asa
[19:15] <V3n3RiX> rm -rf displaytoggle && wget -c https://dl.dropboxusercontent.com/u/6539285/displaytoggle && chmod +x displaytoggle
[19:15] <V3n3RiX> apoi ./displaytoggle
[19:16] <SkyWay> https://www.dropbox.com/s/h7vx2fwe02jzgq6/Screenshot%20from%202015-08-06%2022%3A14%3A07.png?dl=0
[19:16] <SkyWay> stai ca am facut`o lunga
[19:16] <SkyWay> nu mai am driveru de sunet si multe chestii 
[19:16] <SkyWay> :))
[19:16] <SkyWay> din 3 comenzi 
[19:16] <SkyWay> :)
[19:16] <V3n3RiX> :))
[19:16] <V3n3RiX> ce ti-am dat eu nu are nicio treaba cu sunetul
[19:16] <SkyWay> aaa
[19:16] <SkyWay> :)
[19:17] <V3n3RiX> ci vreau sa vad doar daca face switch 
[19:17] <V3n3RiX> pe monitor/hdmi
[19:17] <V3n3RiX> abia dupa o sa adaug partea cu sunetul
[19:17] <V3n3RiX> si oricum sunetul o sa isi revina la restart
[19:18] <SkyWay> nu face nimic
[19:18] <V3n3RiX> absolut nimic?
[19:18] <SkyWay> am dat restart.. mai dau unu .. brb :))
[19:18] <SkyWay> nimic nimic
[19:18] <SkyWay> brb
[19:18] <V3n3RiX> ma duc sa imi fac de mancare
[19:18] <V3n3RiX> revin intr-o ora
[19:19] <SkyWay> ok, sa ai pofta!