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