Hello everyone, I got a New sound card (Soundblaster g6) and use it under xubuntu 22.04
The problem is that the default settings of the card are not usable for my use case. For example, the capture device is always set to line-in (instead of external mic) whenever i boot or replug the device.
I changed the settings with alsamixer to my likings and stored the .state file in my ~/.config/ folder When i run restore after reboot all is good. Unfortunatley not for long as the cards keeps going back to its default settings once in a while (sometimes every minute)
I try to solve this with a bash script that restores every 60seconds.
My question is how do i make my stored .state file to the default the card resets to? So i dont have to restore every 60 seconds.
- SirPrize ( @SirPrize@beehaw.org ) 2•1 year ago
Can you set the permissions of the file to read only? That way nothing else can edit it on the fly?
chmod 444 filename
would make it so the owner, group, and everyone else can only read the file. You can change modification of the file again if you have to edit it.
I could do that, the question is what is the correct config file? I think the .state files are more like snapshots wich are applied to the config when i restore it.
- lemba ( @lemba@discuss.tchncs.de ) 1•1 year ago
Have you tried: sudo alsactl store
- MazonnaCara89 ( @MazonnaCara89@lemmy.ml ) 1•1 year ago
Yo dude I have a soundblasterx g6 too, I had this problem too where the sound card disconnected and reconnected as an output devices everytime, I have resolved the problem by changing this setting in the soundblaster commander under windows.
There is no equivalent driver for linux, at least for what I know, but I’m trying my best to resolve the issue by reverse engineering it.
For the mic problem I use a bash script on startup that change the mic to the one of the sound card.
Thank you! Will try this tomorrow <3
- MazonnaCara89 ( @MazonnaCara89@lemmy.ml ) 1•1 year ago
No problem!
Okay, i had to try it today… Unfortunatley, it was set to “PC/Mac” already. I have factory reset the card and tried again. Have you enabled the sbx profile, or do you use direcr sound mode?
- MazonnaCara89 ( @MazonnaCara89@lemmy.ml ) 1•1 year ago
No I don’t have direct mode enabled because if you do so the mic doesn’t work (on windows too), and I don’t have any sbx profile enabled.
Ahh… that was the reason