[00:06] hardening .. === Guest35194 is now known as MJDombrowski === MikeyD is now known as MJDombrowski === MJDombrowski_ is now known as MJDombrowski === JTa1 is now known as JTa [18:36] 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] 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] 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:49] Are you using Pulse Audio at all? [18:50] yes.. [18:51] all settings there are ok [18:52] im just searchig for a way to save my settings in terminal [18:53] "alsactl store" saves settings in /etc/asound.state Have you looked at that file? [18:53] Does it exist, and can you edit it? [18:53] might be in /etc/alsa/asound.store [18:54] let me take a look [18:57] dont have that file etc/asound.state [18:59] is it anywhere else? [19:00] nope nowhere to be found [19:03] Could 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:04] ok..let me take a look [19:05] I'm not at my Ubuntu computer right now, so I can't double check it... [19:06] But might give you some ideas to look for [19:07] working on it..creating this new file should i create it in the file of alsa or separate [19:07] the alsa documentation says it's looking for /etc/asound.store so I would try that first [19:08] ok [19:10] make sure you set correct permissions on it, too [19:11] 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:12] Read this: https://askubuntu.com/questions/50067/howto-save-alsamixer-settings [19:13] the "store" command should create or modify the /etc/asound.store file. [19:13] Can try "alsactl --file ~/.config/asound.state store" [19:13] which would be in your home directory [19:14] dagdag_: your audio should be where you left it when you reboot. [19:14] ~ means your home directory [19:15] however, if pulse can see the device, it will change settings on it as it sees fit. [19:15] hi ovenwerks [19:15] all getting a bit mixed up for me here [19:15] pulse does watch jack (not jackd) pins to sense when phones are pulgged/unplugged and changes settings as required [19:16] nope cant follow [19:16] Jack has no way of knowing if you have phones plugged in or not and would not adjust settings anyway. [19:16] so i have open terminal alsamixer...cause eactime i reboot the settings have changed [19:17] the alsa control settings have changed in which way? [19:17] that either head phones or speaker are on mm [19:18] and totaly silence [19:19] 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 settings [19:21] So you are using jack for audio as a back end? [19:22] what does it mean back end [19:23] dagdag_: normally if pulse can see the device it will switch between hp and speaker on it's own... [19:24] 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 jack [19:25] 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:26] ok in the pulse control application in the Output Devices tab, which device does it say it is using? [19:26] Mine says jack sink. [19:27] 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] you took me through the rest of the settings [19:28] yes, in pavucontrol under the Output Devices tab which device does it say you are using? [19:28] where can i find pavucontrol [19:29] That is what sound setting opens from the little speaker icon in the top bar [19:29] The title will be "Volume Control" [19:30] jacksink === JTa1 is now known as JTa [19:30] (title of the window that opens) [19:30] right. ok. [19:30] jacksink(pulseout) [19:30] jack does not know how to detect if the headphones are plugged in or not [19:31] the order of operations when you boot is: [19:31] dagdag_: next time please post once and wait for someone to respond: https://wiki.ubuntu.com/IRC/Guidelines [19:32] :) [19:32] ok [19:32] pulse 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:33] Then autojack runs and tells pulse to ignore any devices so they won't interfere. [19:33] ok [19:33] so if you plug or unplug phones after that pulse can't change the settings for you. [19:33] so this is not working correct [19:34] now, you can leave the level up for both speakers and phones, but that is probably not what you want. [19:34] It depedns on what you call correct :) [19:35] no when i use headph i dont want to hear speackr [19:36] Most 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] right. [19:36] how do i continue [19:37] So to use alsactl you probably would need to save two file with settings in and switch from one to the other. [19:38] can you take me through that path [19:38] But you don't want to have to open a terminal to do so... [19:38] i have open alsamixer in terminal and i have made all the settings how i want [19:38] Do you always use things the same? [19:39] IE with headphones in? [19:39] * OvenWerks notes that headphone switching is on the list for -controls [19:40] ro do you need a way to trun the speakers on as well? [19:40] *or [19:40] * OvenWerks typing is not too good today :/ [19:41] i have made the settings in alsamixr so all volumes are up and when i plug in headph speakr go off [19:41] cool do the alsa settings change? [19:41] i would like to learn how to store these settings properly [19:42] right first we need to save the settings in a convenient place. [19:42] ok [19:42] tell me [19:43] * OvenWerks is looking it up... [19:43] hows the weather in vanc island [19:45] in a terminal type: alsactl -f ~/.config/phoneson store [19:45] the weather is fine sunny and dry [19:45] do i need to open another tab for this [19:45] any terminal will do [19:45] great...here is nighttime sleepy:) [19:46] you should see your file with: ls -l ~/.config/phoneon [19:46] the size should be more than zero :) [19:46] i copiep and pasted the whole line and entered.. [19:47] i did nothing [19:47] copied [19:47] it should do nothing you can hear, alsa should still show things the same. [19:48] does ls -l ~/.config/phoneon show a file there? [19:48] ls -l ~/.config/phoneon this file doesnt show [19:49] sorry spelling mistake... ls -l ~/.config/phoneson [19:49] I missed the s [19:51] tell me where i can see this file [19:51] from your home directory in.config/ [19:51] from your home directory in .config/ [19:52] no not there...maybe i seem to be doing someth wrong in terminal [19:53] when I do: ls -l ~/.config/phoneson [19:53] I get: -rw-rw-r-- 1 len len 31821 May 30 12:52 phoneson [19:53] So my file is 32kish [19:53] yours will likely be smaller [19:54] in my terminal it just writes...my name and my computersname..and nothing else [19:55] one moment [19:57] mine writes all the same,,except my name and a number 9556 [19:57] good. We have two more files to create... [19:59] the normal place to keep a file to do something (a script) would be ~/.local/bin/ [19:59] Are you ok with editing a file in a terminal? [19:59] i have no idea give it a try [20:00] Give me a minute my wife calls... [20:02] in a terminal: [20:02] nano ~/.local/bin/sndset.sh [20:03] ok [20:03] That should open an editor with a white bar on top and two lines of "help" on the bottom [20:03] the first line: [20:04] #!/bash [20:04] The next line is sleep 10 [20:04] top writes gnu nano 3.2 [20:04] down writes [20:05] the next would be: [20:05] lots of things but also ..home bin does not exist [20:05] alsactl -f ~/.config/phoneson restore [20:06] of course sorry. [20:06] mkdir ~/.local [20:06] mkdir ~/.local/bin [20:06] then you should be able to do: [20:08] nano ~/.local/bin/sndset.sh [20:08] momnet [20:08] moment]\ [20:10] The file when finished should look like: www.ovenwerks.net/paste/sndset.sh [20:12] Odd it did npot add the http:// to the front. [20:13] just a sec..i lost it completely... [20:16] 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 file [20:17] thats where i am..what do i do [20:17] please step by step [20:17] you want to add three lines: [20:17] #!bash [20:17] sleep 10 [20:17] alsactl -f ~/.config/phoneson restore [20:19] did all that in the gnu nano terminal [20:19] do i press enter [20:19] control X will ask if you want to save it (choose Yes [20:20] control x means hold the control key down and press X in case that is not clear [20:21] aha [20:21] did that and also the YES [20:22] crweated a file [20:22] let me search for it [20:22] ok again on the terminal command line type: [20:23] chmod +x ~/.local/bin/sndset.sh [20:24] then if you type: [20:24] ls ~/.local/bin/* [20:24] you should see sndset.sh [20:24] one moment [20:24] in green [20:28] chmod +x ~/.local/bin/sndset.sh...do i open another terminal for this one [20:29] shouldn't have to so long as you have one open just use it [20:29] the editor shold have exited when you saved the file [20:30] well i put this line i a terminal and it says;no such file or directory [20:30] what happens if you just do ls? [20:31] can you see the file in the current directory? [20:31] no [20:32] I'm confused. [20:32] if you type in: pwd what does it show? [20:32] it writes in blue different files...but not the one created ..yea me tooooo:) [20:33] home and my name [20:33] blue is directories [20:33] ok type cd ~/.local [20:33] then type: ls [20:34] writes in blue bin share [20:34] you shold see a blue bin [20:34] ok type cd bin [20:34] yes [20:35] then type: ls [20:35] writes in grey some sndset.sh [20:36] good [20:36] type: chmod +x sndset.sh [20:37] ok [20:37] type: ls [20:37] (again) it should now be green [20:37] snd is green [20:38] ]type: ./sndset.sh [20:38] your cursor should set for 10 sec [20:38] (no error) [20:38] ok [20:39] no error [20:39] in alsamixer, mess up your settings. turn the headphones down or something [20:39] Then type: ./sndset.sh [20:40] again and your settings should be restored [20:40] ok [20:40] (and we have one more file to create) [20:40] one moment [20:41] i shut off the hphone an speakrs [20:41] ./sndset.sh [20:42] should turn them back on [20:42] nope [20:43] no error? [20:43] no [20:44] ah wait [20:44] YES [20:44] It should take 10 sec [20:44] they are back to normal [20:44] good [20:44] it took 10sec [20:44] :) [20:45] Now we want this to run by itself when you log in [20:45] tell me is there not an easier way ... [20:45] ok lets go.... [20:45] At the bottom of the main menu there is an icon with a switch and two tools crossed [20:46] when you hover over it it should say All settings [20:46] if you click on that the settings manager should open [20:46] got it [20:47] Almost at the bottom there is Session and Startup [20:47] yes [20:48] if you click on that there are five tabs click on Application Autostart [20:48] ok [20:48] Near the bottom there is +Add [20:48] ok [20:49] go ahead [20:49] A dialog opens and asks for a name: sndset would be fine [20:50] ok [20:50] The description doesn't matter [20:50] ok [20:50] the command has a directory box beside it and you can click on that [20:50] ok [20:51] if you click on you home directory you should see in the list: .local [20:51] double click then same with bin [20:52] wait [20:52] and same with sndset.sh [20:52] sorry [20:53] few steps back [20:53] i clicked on directory box [20:53] and doesnt say .local anywhere [20:54] on the side there is a places column [20:54] in that colomn there should be your user name. click on that [20:54] just sndset.sh and 50pulse someth [20:54] ok click on sndset,sh [20:54] did that [20:54] ok should put it in the command box [20:55] done that [20:55] its in the box and marked [20:55] it should have the whole command line from /home//.local/bin/sndset.sh [20:56] no just sndset.sh [20:56] so if you ok that you should find it in the main applications list right at the bottom (the list in Applications autostart [20:56] when i clicked my username also no .local there [20:58] Ok I may be ahead of you again. are you still in the file chooser? [20:59] Sorry, I do this too much and go to fast [21:00] sndset.sh is in the list of aplic auto start [21:00] That sounds good [21:00] but it doesnt have the whole line:/home//.local/bin/sndset.s [21:01] It should just show the name there [21:01] shows sndset.sh [21:02] if you click on sndset.sh and click on the edit button below it will reopen the dialog [21:02] yes [21:02] in the little dialog on the command line you should see the whole path [21:03] writes tmp mozilla...my name...sndset.sh [21:03] tha doesnt sound good [21:04] no that is the wrong file. [21:04] thought so [21:04] open the file chooser again [21:04] yes [21:05] on the left onder recently used is your user. click that [21:06] clicked username [21:06] There should be some .something file names there [21:06] in the middle column [21:06] scroll down and see if you can find .local [21:07] nothing [21:07] (On my system there are a lot of .name files... 4 pages or so) [21:09] ok, lets try something different [21:09] looking but nothing [21:09] ok [21:10] At 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 in [21:11] yes [21:11] type ~/.local/bin/ [21:12] can you see sndset.sh? [21:12] ok i entered [21:12] and have now [21:12] a .local someth [21:13] like you wrote somewhere above [21:15] the line in the edit aplication is .local/bin/sndset.sh [21:15] ? should be ~/.local/bin/sndset.sh [21:16] yes..with username [21:16] ok [21:18] so the little "add application" is all filled out then with a name and a commnd, hitting ok should save the file [21:18] yes [21:19] reboot should test it. [21:19] ok...do i get back to the chat after [21:20] up to you... though it would be nice to know it worked :) [21:20] yea of course!!! [21:20] be back [21:25] back [21:25] hi] [21:25] not working [21:25] speakers where off [21:25] but headset on? [21:25] sorry the other way around [21:26] speakers were on headphone no [21:26] in a terminal type: ~/.local/bin/sndset.sh [21:26] (make sure that still works... remober 10 sec) [21:27] ok [21:27] ready [21:27] settings changed in alsamix [21:28] so open the settings manager again [21:29] session and startup->Application Autostart [21:29] got it [21:29] sndset [21:30] the box beside is checked? [21:30] yes [21:31] ok, lets try an edit to that so click on sndset and then edit at the bottom [21:31] ok done [21:31] if you click in the command: box === JTa1 is now known as JTa [21:31] then use the right arrow key to get right to the end of the line. [21:32] writes sndset save..and...save1 [21:32] the cursor should be right after the last h [21:32] ok [21:33] add a space and & [21:33] ok [21:33] so the whole line would be /home/user/.local/bin/sndset.sh & [21:34] then ok that and try agian. [21:34] no not there [21:35] ok where? [21:36] ok [21:36] got it [21:37] if you have saved that then I guess try reboot again. [21:38] the only thing i did is change the name in edit aplication [21:38] oh... [21:38] ok, [21:38] yes yes [21:39] i types & in command box at the end [21:39] ok [21:39] now reboot [21:39] ok [21:44] working:))) [21:45] all is working [21:46] just wonder how i am going to aply all this to my other laptop [21:46] do you have a copy of our chat [21:47] ovenwerks you still there [21:48] ya [21:48] i gotto sign out..dead tired..im happy you got me through [21:48] our chat lets see... [21:49] i have to aply all of this to the other one... [21:49] http://www.ovenwerks.net/ [21:49] opps [21:49] https://irclogs.ubuntu.com/2019/05/30/%23ubuntustudio.html [21:49] dagdag: ^^^ has the irc log [21:50] wait 10 minutes or so for it to add the last hour [21:51] ok [21:52] i thank you again!!hard work!!...wish there was an easier way for someth like this [21:52] glad it works... [21:52] something to add to -controls. [21:53] yea...i stored your home page...ill check it out later...ill wait for the last our part [21:55] my home page is.... lod these days [21:55] *old [21:55] i thank you again!have a nice day ill let you know how the other one turned out [21:55] ok [21:55] bye then [21:55] so you gotten much older:)) [21:56] my boys are almost as tall as I [21:56] does the last hour show up somewhere here [21:57] it will, not yet though, it onlu updates once an hour [21:57] ok..but they grow fast by the blink of the eyes [21:57] ah ok...can i check it tomorow..i saved it [22:02] got it byebye!! [22:02] bye