/srv/irclogs.ubuntu.com/2019/05/30/#ubuntustudio.txt

OerHekshardening ..00:06
=== Guest35194 is now known as MJDombrowski
=== MikeyD is now known as MJDombrowski
=== MJDombrowski_ is now known as MJDombrowski
=== JTa1 is now known as JTa
dagdaggood evening!...having some trouble with saving my settings in terminal,alsamixer...eachtime i reboot the settings either for speaker or headphone swith off...ive tried saving with and without sudo,command alsactl store...but nothing...im running the latest studio..and on the other laptop,,running 18.1..with same problem..18:36
dagdag_good evening!...having some trouble with saving my settings in terminal,alsamixer...eachtime i reboot the settings either for speaker or headphone swith off...ive tried saving with and without sudo,command alsactl store...but nothing...im running the latest studio..and on the other laptop,,running 18.1..with same problem..18:42
dagdag_good evening!...having some trouble with saving my settings in terminal,alsamixer...eachtime i reboot the settings either for speaker or headphone swith off...ive tried saving with and without sudo,command alsactl store...but nothing...im running the latest studio..and on the other laptop,,running 18.1..with same problem..18:44
FunkyStickmanAre you using Pulse Audio at all?18:49
dagdag_yes..18:50
dagdag_all settings there are ok18:51
dagdag_im just searchig for a way to save my settings in terminal18:52
FunkyStickman"alsactl store" saves settings in /etc/asound.state Have you looked at that file?18:53
FunkyStickmanDoes it exist, and can you edit it?18:53
FunkyStickmanmight be in /etc/alsa/asound.store18:53
dagdag_let me take a look18:54
dagdag_dont have that file etc/asound.state18:57
FunkyStickmanis it anywhere else?18:59
dagdag_nope nowhere to be found19:00
FunkyStickmanCould also be in your home folder somewhere. Like ~/.config/alsa/ but there should be one somewhere. If it's not, then you could try making a blank file, then try to store settings again.19:03
dagdag_ok..let me take a look19:04
FunkyStickmanI'm not at my Ubuntu computer right now, so I can't double check it...19:05
FunkyStickmanBut might give you some ideas to look for19:06
dagdag_working on it..creating this new file should i create it in the file of alsa or separate19:07
FunkyStickmanthe alsa documentation says it's looking for /etc/asound.store so I would try that first19:07
dagdag_ok19:08
FunkyStickmanmake sure you set correct permissions on it, too19:10
dagdag_just not there...can we go back a few steps...if i have the alsamixer open in terminal...how would you store it and what happens after the command like sudo alsactl store?19:11
FunkyStickmanRead this: https://askubuntu.com/questions/50067/howto-save-alsamixer-settings19:12
FunkyStickmanthe "store" command should create or modify the /etc/asound.store file.19:13
FunkyStickmanCan try "alsactl --file ~/.config/asound.state store"19:13
FunkyStickmanwhich would be in your home directory19:13
OvenWerksdagdag_: your audio should be where you left it when you reboot.19:14
FunkyStickman~ means your home directory19:14
OvenWerkshowever, if pulse can see the device, it will change settings on it as it sees fit.19:15
dagdag_hi ovenwerks19:15
dagdag_all getting a bit mixed up for me here19:15
OvenWerkspulse does watch jack (not jackd) pins to sense when phones are pulgged/unplugged and changes settings as required19:15
dagdag_nope cant follow19:16
OvenWerksJack has no way of knowing if you have phones plugged in or not and would not adjust settings anyway.19:16
dagdag_so i have open terminal alsamixer...cause eactime i reboot the settings have changed19:16
OvenWerksthe alsa control settings have changed in which way?19:17
dagdag_that either head phones or speaker are on mm19:17
dagdag_and totaly silence19:18
dagdag_when i open alsamixer in terminal,and i change the settings and then close terminal everyth is fine when i reboot laptop settings change..looking for a way to save these settings19:19
OvenWerksSo you are using jack for audio as a back end?19:21
dagdag_what does it mean back end19:22
OvenWerksdagdag_: normally if pulse can see the device it will switch between hp and speaker on it's own...19:23
OvenWerks but when we add jack to the mix that doesn't happen. In your case it seems it is only a change in mixer settings (good) some laptops actually change the meaning of the pins in the jack19:24
dagdag_well when i had opened pulseaudio at the moment i had at all sound i saw movement but no sound and so i started searching in the terminal..and i found alsa mixed changed the settings and it worked...but when i restarted the laptop i had to do these setting again and again...19:25
OvenWerksok in the pulse control application in the Output Devices tab, which device does it say it is using?19:26
OvenWerksMine says jack sink.19:26
dagdag_well all these settings changed when the story started about getting my maudio connected to musescore...eickm send me ppa and i installed...must say musescore works great now!!:)19:27
dagdag_you took me through the rest of the settings19:27
OvenWerksyes, in pavucontrol under the Output Devices tab which device does it say you are using?19:28
dagdag_where can i find pavucontrol19:28
OvenWerksThat is what sound setting opens from the little speaker icon in the top bar19:29
OvenWerksThe title will be "Volume Control"19:29
dagdag_jacksink19:30
=== JTa1 is now known as JTa
OvenWerks(title of the window that opens)19:30
OvenWerksright. ok.19:30
dagdag_jacksink(pulseout)19:30
OvenWerksjack does not know how to detect if the headphones are plugged in or not19:30
OvenWerksthe order of operations when you boot is:19:31
M_aDdagdag_: next time please post once and wait for someone to respond: https://wiki.ubuntu.com/IRC/Guidelines19:31
M_aD:)19:32
dagdag_ok19:32
OvenWerkspulse starts and can see your device. It checks to see if the phones are plugged in or not and shuts off either the phones or the speakers.19:32
OvenWerksThen autojack runs and tells pulse to ignore any devices so they won't interfere.19:33
dagdag_ok19:33
OvenWerksso if you plug or unplug phones after that pulse can't change the settings for you.19:33
dagdag_so this is not working correct19:33
OvenWerksnow, you can leave the level up for both speakers and phones, but that is probably not what you want.19:34
OvenWerksIt depedns on what you call correct :)19:34
dagdag_no when i use headph i dont want to hear speackr19:35
OvenWerksMost audio devices that are used for audio production work do not work like the HDA audio and deal with phone on their own and so jack doesn't "listen" for a plug change.19:36
OvenWerksright.19:36
dagdag_how do i continue19:36
OvenWerks So to use alsactl you probably would need to save two file with settings in and switch from one to the other.19:37
dagdag_can you take me through that path19:38
OvenWerksBut you don't want to have to open a terminal to do so...19:38
dagdag_i have open alsamixer in terminal and i have made all the settings how i want19:38
OvenWerksDo you always use things the same?19:38
OvenWerksIE with headphones in?19:39
* OvenWerks notes that headphone switching is on the list for -controls19:39
OvenWerksro do you need a way to trun the speakers on as well?19:40
OvenWerks*or19:40
* OvenWerks typing is not too good today :/19:40
dagdag_i have made the settings in alsamixr so all volumes are up and when i plug in headph speakr go off19:41
OvenWerkscool do the alsa settings change?19:41
dagdag_i would like to learn how to store these settings properly19:41
OvenWerksright first we need to save the settings in a convenient place.19:42
dagdag_ok19:42
dagdag_tell me19:42
* OvenWerks is looking it up...19:43
dagdag_hows the weather in vanc island19:43
OvenWerksin a terminal type: alsactl -f ~/.config/phoneson store19:45
OvenWerksthe weather is fine sunny and dry19:45
dagdag_do i need to open another tab for this19:45
OvenWerksany terminal will do19:45
dagdag_great...here is nighttime sleepy:)19:45
OvenWerksyou should see your file with: ls -l ~/.config/phoneon19:46
OvenWerksthe size should be more than zero :)19:46
dagdag_i copiep and pasted the whole line and entered..19:46
dagdag_i did nothing19:47
dagdag_copied19:47
OvenWerksit should do nothing you can hear, alsa should still show things the same.19:47
OvenWerksdoes ls -l ~/.config/phoneon show a file there?19:48
dagdag_ls -l ~/.config/phoneon this file doesnt show19:48
OvenWerkssorry spelling mistake... ls -l ~/.config/phoneson19:49
OvenWerksI missed the s19:49
dagdag_tell me where i can see this file19:51
OvenWerksfrom your home directory in.config/19:51
OvenWerksfrom your home directory in .config/19:51
dagdag_no not there...maybe i seem to be doing someth wrong in terminal19:52
OvenWerkswhen I do: ls -l ~/.config/phoneson19:53
OvenWerksI get: -rw-rw-r-- 1 len len 31821 May 30 12:52 phoneson19:53
OvenWerksSo my file is 32kish19:53
OvenWerksyours will likely be smaller19:53
dagdag_in my terminal it just writes...my name and my computersname..and nothing else19:54
dagdag_one moment19:55
dagdag_mine writes all the same,,except my name and a number 955619:57
OvenWerksgood. We have two more files to create...19:57
OvenWerksthe normal place to keep a file to do something (a script) would be ~/.local/bin/19:59
OvenWerksAre you ok with editing a file in a terminal?19:59
dagdag_i have no idea give it a try19:59
OvenWerksGive me a minute my wife calls...20:00
OvenWerksin a terminal:20:02
OvenWerksnano ~/.local/bin/sndset.sh20:02
dagdag_ok20:03
OvenWerksThat should open an editor with a white bar on top and two lines of "help" on the bottom20:03
OvenWerksthe first line:20:03
OvenWerks#!/bash20:04
OvenWerksThe next line is sleep 1020:04
dagdag_top writes gnu nano 3.220:04
dagdag_down writes20:04
OvenWerksthe next would be:20:05
dagdag_lots of things but also ..home bin does not exist20:05
OvenWerksalsactl -f ~/.config/phoneson restore20:05
OvenWerksof course sorry.20:06
OvenWerksmkdir ~/.local20:06
OvenWerksmkdir ~/.local/bin20:06
OvenWerksthen you should be able to do:20:06
OvenWerksnano ~/.local/bin/sndset.sh20:08
dagdag_momnet20:08
dagdag_moment]\20:08
OvenWerksThe file when finished should look like: www.ovenwerks.net/paste/sndset.sh20:10
OvenWerksOdd it did npot add the http:// to the front.20:12
dagdag_just a sec..i lost it completely...20:13
dagdag_yea  i lost the whole story...i have one terminal open with the alsa settings...and another one open with gnu nano 3.2 which writes in the bottom new file20:16
dagdag_thats where i am..what do i do20:17
dagdag_please step by step20:17
OvenWerksyou want to add three lines:20:17
OvenWerks#!bash20:17
OvenWerkssleep 1020:17
OvenWerksalsactl -f ~/.config/phoneson restore20:17
dagdag_did all that in the gnu nano terminal20:19
dagdag_do i press enter20:19
OvenWerkscontrol X will ask if you want to save it (choose Yes20:19
OvenWerkscontrol x means hold the control key down and press X in case that is not clear20:20
dagdag_aha20:21
dagdag_did that and also the YES20:21
dagdag_crweated a file20:22
dagdag_let me search for it20:22
OvenWerksok again on the terminal command line type:20:22
OvenWerkschmod +x ~/.local/bin/sndset.sh20:23
OvenWerksthen if you type:20:24
OvenWerksls ~/.local/bin/*20:24
OvenWerksyou should see sndset.sh20:24
dagdag_one moment20:24
OvenWerksin green20:24
dagdag_chmod +x ~/.local/bin/sndset.sh...do i open another terminal for this one20:28
OvenWerksshouldn't have to so long as you have one open just use it20:29
OvenWerksthe editor shold have exited when you saved the file20:29
dagdag_well i put this line i a terminal and it says;no such file or directory20:30
OvenWerkswhat happens if you just do ls?20:30
OvenWerkscan you see the file in the current directory?20:31
dagdag_no20:31
OvenWerksI'm confused.20:32
OvenWerksif you type in: pwd what does it show?20:32
dagdag_it writes in blue different files...but not the one created ..yea me tooooo:)20:32
dagdag_home and my name20:33
OvenWerksblue is directories20:33
OvenWerksok type cd ~/.local20:33
OvenWerksthen type: ls20:33
dagdag_writes in blue bin share20:34
OvenWerksyou shold see a blue bin20:34
OvenWerksok type cd bin20:34
dagdag_yes20:34
OvenWerksthen type: ls20:35
dagdag_writes in grey some sndset.sh20:35
OvenWerksgood20:36
OvenWerkstype: chmod +x sndset.sh20:36
dagdag_ok20:37
OvenWerkstype: ls20:37
OvenWerks(again) it should now be green20:37
dagdag_snd is green20:37
OvenWerks]type: ./sndset.sh20:38
OvenWerksyour cursor should set for 10 sec20:38
OvenWerks(no error)20:38
dagdag_ok20:38
dagdag_no error20:39
OvenWerksin alsamixer, mess up your settings. turn the headphones down or something20:39
OvenWerksThen type: ./sndset.sh20:39
OvenWerksagain and your settings should be restored20:40
dagdag_ok20:40
OvenWerks(and we have one more file to create)20:40
dagdag_one moment20:40
dagdag_i shut off the hphone an speakrs20:41
OvenWerks./sndset.sh20:41
OvenWerksshould turn them back on20:42
dagdag_nope20:42
OvenWerksno error?20:43
dagdag_no20:43
dagdag_ah wait20:44
dagdag_YES20:44
OvenWerksIt should take 10 sec20:44
dagdag_they are back to normal20:44
OvenWerksgood20:44
dagdag_it took 10sec20:44
dagdag_:)20:44
OvenWerksNow we want this to run by itself when you log in20:45
dagdag_tell me is there not an easier way ...20:45
dagdag_ok lets go....20:45
OvenWerksAt the bottom of the main menu there is an icon with a switch and two tools crossed20:45
OvenWerkswhen you hover over it it should say All settings20:46
OvenWerksif you click on that the settings manager should open20:46
dagdag_got it20:46
OvenWerksAlmost at the bottom there is Session and Startup20:47
dagdag_yes20:47
OvenWerksif you click on that there are five tabs click on Application Autostart20:48
dagdag_ok20:48
OvenWerksNear the bottom there is  +Add20:48
dagdag_ok20:48
dagdag_go ahead20:49
OvenWerksA dialog opens and asks for a name: sndset would be fine20:49
dagdag_ok20:50
OvenWerksThe description doesn't matter20:50
dagdag_ok20:50
OvenWerksthe command has a directory box beside it and you can click on that20:50
dagdag_ok20:50
OvenWerksif you click on you home directory you should see in the list: .local20:51
OvenWerksdouble click then same with bin20:51
dagdag_wait20:52
OvenWerksand same with sndset.sh20:52
OvenWerkssorry20:52
dagdag_few steps back20:53
dagdag_i clicked on directory box20:53
dagdag_and doesnt say .local anywhere20:53
OvenWerkson the side there is a places column20:54
OvenWerksin that colomn there should be your user name. click on that20:54
dagdag_just sndset.sh and 50pulse someth20:54
OvenWerksok click on sndset,sh20:54
dagdag_did that20:54
OvenWerksok should put it in the command box20:54
dagdag_done that20:55
dagdag_its in the box and marked20:55
OvenWerksit should have the whole command line from /home/<user>/.local/bin/sndset.sh20:55
dagdag_no just sndset.sh20:56
OvenWerksso if you ok that you should find it in the main applications list right at the bottom (the list in Applications autostart20:56
dagdag_when i clicked my username  also no .local there20:56
OvenWerksOk I may be ahead of you again. are you still in the file chooser?20:58
OvenWerksSorry, I do this too much and go to fast20:59
dagdag_sndset.sh is in the list of aplic auto start21:00
OvenWerksThat sounds good21:00
dagdag_but it doesnt have the whole line:/home/<user>/.local/bin/sndset.s21:00
OvenWerksIt should just show the name there21:01
dagdag_shows sndset.sh21:01
OvenWerksif you click on sndset.sh and click on the edit button below it will reopen the dialog21:02
dagdag_yes21:02
OvenWerksin the little dialog on the command line you should see the whole path21:02
dagdag_writes tmp mozilla...my name...sndset.sh21:03
dagdag_tha doesnt sound good21:03
OvenWerksno that is the wrong file.21:04
dagdag_thought so21:04
OvenWerksopen the file chooser again21:04
dagdag_yes21:04
OvenWerkson the left onder recently used is your user. click that21:05
dagdag_clicked username21:06
OvenWerksThere should be some .something file names there21:06
OvenWerksin the middle column21:06
OvenWerksscroll down and see if you can find .local21:06
dagdag_nothing21:07
OvenWerks(On my system there are a lot of .name files... 4 pages or so)21:07
OvenWerksok, lets try something different21:09
dagdag_looking but nothing21:09
dagdag_ok21:09
OvenWerksAt the top left corner there is a icon with a pencil (your may be different) but it is top left of the file chooser. if you click that you should get text box to type in21:10
dagdag_yes21:11
OvenWerkstype ~/.local/bin/21:11
OvenWerkscan you see sndset.sh?21:12
dagdag_ok i entered21:12
dagdag_and have now21:12
dagdag_a .local  someth21:12
dagdag_like you wrote somewhere above21:13
dagdag_the line in the edit aplication is .local/bin/sndset.sh21:15
OvenWerks? should be ~/.local/bin/sndset.sh21:15
dagdag_yes..with username21:16
OvenWerksok21:16
OvenWerksso the little "add application" is all filled out then with a name and a commnd, hitting ok should save the file21:18
dagdag_yes21:18
OvenWerksreboot should test it.21:19
dagdag_ok...do i get back to the chat after21:19
OvenWerks up to you... though it would be nice to know it worked :)21:20
dagdag_yea of course!!!21:20
dagdag_be back21:20
dagdagback21:25
OvenWerkshi]21:25
dagdagnot working21:25
dagdagspeakers where off21:25
OvenWerksbut headset on?21:25
dagdagsorry the other way around21:25
dagdagspeakers were on  headphone no21:26
OvenWerksin a terminal type: ~/.local/bin/sndset.sh21:26
OvenWerks(make sure that still works... remober 10 sec)21:26
dagdagok21:27
dagdagready21:27
dagdagsettings changed in alsamix21:27
OvenWerksso open the settings manager again21:28
OvenWerkssession and startup->Application Autostart21:29
dagdaggot it21:29
dagdagsndset21:29
OvenWerksthe box beside is checked?21:30
dagdagyes21:30
OvenWerksok, lets try an edit to that so click on sndset and then edit at the bottom21:31
dagdagok done21:31
OvenWerksif you click in the command: box21:31
=== JTa1 is now known as JTa
OvenWerksthen use the right arrow key to get right to the end of the line.21:31
dagdagwrites sndset save..and...save121:32
OvenWerksthe cursor should be right after the last h21:32
dagdagok21:32
OvenWerksadd a space and &21:33
dagdagok21:33
OvenWerksso the whole line would be /home/user/.local/bin/sndset.sh &21:33
OvenWerksthen ok that and try agian.21:34
dagdagno not there21:34
OvenWerksok where?21:35
dagdagok21:36
dagdaggot it21:36
OvenWerksif you have saved that then I guess try reboot again.21:37
dagdagthe only thing i did is change the name in edit aplication21:38
OvenWerksoh...21:38
OvenWerksok,21:38
dagdagyes yes21:38
dagdagi types & in command box at the end21:39
OvenWerksok21:39
dagdagnow reboot21:39
OvenWerksok21:39
dagdagworking:)))21:44
dagdagall is working21:45
dagdagjust wonder how i am going to aply all this to my other laptop21:46
dagdagdo you have a copy of our chat21:46
dagdagovenwerks you still there21:47
OvenWerksya21:48
dagdagi gotto sign out..dead tired..im happy you got me through21:48
OvenWerksour chat lets see...21:48
dagdagi have to aply all of this to the other one...21:49
OvenWerkshttp://www.ovenwerks.net/21:49
OvenWerksopps21:49
OvenWerkshttps://irclogs.ubuntu.com/2019/05/30/%23ubuntustudio.html21:49
OvenWerksdagdag: ^^^ has the irc log21:49
OvenWerkswait 10 minutes or so for it to add the last hour21:50
dagdagok21:51
dagdagi thank you again!!hard work!!...wish there was an easier way for someth like this21:52
OvenWerksglad it works...21:52
OvenWerkssomething to add to -controls.21:52
dagdagyea...i stored your home page...ill check it out later...ill wait for the last our part21:53
OvenWerksmy home page is.... lod these days21:55
OvenWerks*old21:55
dagdagi thank you again!have a nice day ill let you know how the other one turned out21:55
OvenWerksok21:55
OvenWerksbye then21:55
dagdagso you gotten much older:))21:55
OvenWerksmy boys are almost as tall as I21:56
dagdagdoes the last hour show up somewhere here21:56
OvenWerksit will, not yet though, it onlu updates once an hour21:57
dagdagok..but they grow fast by the blink of the eyes21:57
dagdagah ok...can i check it tomorow..i saved it21:57
dagdaggot it byebye!!22:02
OvenWerksbye22:02

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!