Auto running alsamixer settings check on startup

Hey everyone.

After a lot of testing I’ve been able to avoid audio issues when booting between Manjaro Linux and Windows 10. I’ve found it easiest to install my games on Windows 10 and do work/school/etc. on Manjaro so I don’t have to worry about what games I can or can’t play to include re-engineering many games just to work.

However I have to completely shutdown my system when swapping in between operating systems. Each time I swap from Windows to Manjaro, my Front setting is muted and I have to turn it back on to get audio working.

I was wondering if there was a way to script changing this setting on launch of Manjaro so audio just works and the only “frustration” I have to deal with is completely shutting down.

Thank you all! I’ve learned so much on these forums and look forward to keep learning so I can eventually pay it back to the community.

If you are using alsamixer to unmute the ‘Front’ audio channel

do you use this command to save the settings?

sudo alsactl store

The ALSA settings saved to /var/lib/alsa/asound.state should be restored when Manjaro is booted.

but If the settings are not restored correctly, use this command

sudo alsactl restore

Hi @Daarkblood and welcome to the Community :slight_smile:
setting something like this on startup is fairly easy since you can control your your soundcard-settings via cli. The more interesting question is, why is your front audio detection not enabled by default.

As a workaround, you can set your frontaudio to enabled via amixer. However, you have to find the correct setting yourself, since I don’t have any information about your system. The command should look something like this:

amixer -c 0 set 'HP/Speaker Auto Detect' 1

You can identify your soundcard with the command

cat /proc/asound/cards

After that you can see all possible settings with

amixer -c  <soundcard-id>

Can you give me the output of amixer -c <your-soundcard-id> in the “not working state”?

As I said, this would only be a workaround to the question, why it doesn’t detect your frontaudodevice in the first place.

BTW, that’s how I switch between speakers (everyday use) and headphones (gaming) with bindings on my keyboard:
“gamemode”: amixer -c 0 set "AE-5: Headphone Gain" 'High (150-600 Ohms)' && amixer -c 0 set "Output Select" Headphone && amixer -c 0 set "FX: Surround" unmute

everything else: amixer -c 0 set "Output Select" Speakers && amixer -c 0 set "FX: Surround" mute

Hey Nikgnomic,

Thank you for your response. I typically don’t. I launch alsamixer then use the CLI based GUI. After which I just close the console. When rebooting Linux from Linux, the settings remain. However, the driver in Windows changes the setting back for some reason.

Awesome! And thank you for your response. Front is only muted after rebooting out of Windows 10. I think it has something to do with Windows drivers fighting for control. This does not happen after rebooting from Linux back into Linux.

The card is a (first gen?) Sound Blaster X AE-5 sound card.

Here is the output of amixer -c <2> as it normally wouldn’t function:


Simple mixer control 'Master',0
  Capabilities: pvolume pvolume-joined pswitch pswitch-joined
  Playback channels: Mono
  Limits: Playback 0 - 99
  Mono: Playback 99 [100%] [0.00dB] [on]
Simple mixer control 'Bass Redirection',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [off]
Simple mixer control 'Bass Redirection Crossover',0
  Capabilities: volume volume-joined
  Playback channels: Mono
  Capture channels: Mono
  Limits: 1 - 100
  Mono: 8 [7%]
Simple mixer control 'PCM',0
  Capabilities: pvolume
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 255
  Mono:
  Front Left: Playback 255 [100%] [0.00dB]
  Front Right: Playback 255 [100%] [0.00dB]
Simple mixer control 'Front',0
  Capabilities: pvolume pswitch
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 99
  Mono:
  Front Left: Playback 90 [91%] [0.00dB] [off]
  Front Right: Playback 90 [91%] [0.00dB] [off]
Simple mixer control 'Surround',0
  Capabilities: pvolume pswitch
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 99
  Mono:
  Front Left: Playback 0 [0%] [-90.00dB] [off]
  Front Right: Playback 0 [0%] [-90.00dB] [off]
Simple mixer control 'Surround Channel Config',0
  Capabilities: enum
  Items: '2.0' '2.1' '4.0' '4.1' '5.1'
  Item0: '2.0'
Simple mixer control 'Center',0
  Capabilities: pvolume pvolume-joined pswitch pswitch-joined
  Playback channels: Mono
  Limits: Playback 0 - 99
  Mono: Playback 0 [0%] [-90.00dB] [off]
Simple mixer control 'LFE',0
  Capabilities: pvolume pvolume-joined pswitch pswitch-joined
  Playback channels: Mono
  Limits: Playback 0 - 99
  Mono: Playback 0 [0%] [-90.00dB] [off]
Simple mixer control 'Mic Boost',0
  Capabilities: cenum
  Items: '0 dB' '10 dB' '20 dB' '30 dB'
  Item0: '10 dB'
Simple mixer control 'IEC958',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [off]
Simple mixer control 'IEC958 Default PCM',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [off]
Simple mixer control 'Capture',0
  Capabilities: cvolume cswitch
  Capture channels: Front Left - Front Right
  Limits: Capture 0 - 99
  Front Left: Capture 99 [100%] [9.00dB] [on]
  Front Right: Capture 99 [100%] [9.00dB] [on]
Simple mixer control 'AE-5: Headphone Gain',0
  Capabilities: enum
  Items: 'Low (16-31  Ohms)' 'Medium (32-149  Ohms)' 'High (150-600  Ohms)'
  Item0: 'Low (16-31  Ohms)'
Simple mixer control 'AE-5: Sound Filter',0
  Capabilities: enum
  Items: 'Slow Roll Off' 'Minimum Phase' 'Fast Roll Off'
  Item0: 'Fast Roll Off'
Simple mixer control 'Enable InFX',0
  Capabilities: cswitch cswitch-joined
  Capture channels: Mono
  Mono: Capture [on]
Simple mixer control 'Enable OutFX',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [off]
Simple mixer control 'FX: Crystalizer',0
  Capabilities: pvolume pvolume-joined pswitch pswitch-joined
  Playback channels: Mono
  Limits: Playback 0 - 100
  Mono: Playback 65 [65%] [on]
Simple mixer control 'FX: Dialog Plus',0
  Capabilities: pvolume pvolume-joined pswitch pswitch-joined
  Playback channels: Mono
  Limits: Playback 0 - 100
  Mono: Playback 50 [50%] [on]
Simple mixer control 'FX: Equalizer',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [on]
Simple mixer control 'FX: Equalizer Preset',0
  Capabilities: enum
  Items: 'Flat' 'Acoustic' 'Classical' 'Country' 'Dance' 'Jazz' 'New Age' 'Pop' 'Rock' 'Vocal'
  Item0: 'Flat'
Simple mixer control 'FX: Mic SVM',0
  Capabilities: cswitch cswitch-joined
  Capture channels: Mono
  Mono: Capture [on]
Simple mixer control 'FX: Noise Reduction',0
  Capabilities: cswitch cswitch-joined
  Capture channels: Mono
  Mono: Capture [on]
Simple mixer control 'FX: Smart Volume',0
  Capabilities: pvolume pvolume-joined pswitch pswitch-joined
  Playback channels: Mono
  Limits: Playback 0 - 100
  Mono: Playback 74 [74%] [on]
Simple mixer control 'FX: Smart Volume Setting',0
  Capabilities: enum
  Items: 'Normal' 'Loud' 'Night'
  Item0: 'Normal'
Simple mixer control 'FX: Surround',0
  Capabilities: pvolume pvolume-joined pswitch pswitch-joined
  Playback channels: Mono
  Limits: Playback 0 - 100
  Mono: Playback 67 [67%] [on]
Simple mixer control 'FX: Voice Focus',0
  Capabilities: cswitch cswitch-joined
  Capture channels: Mono
  Mono: Capture [on]
Simple mixer control 'FX: X-Bass',0
  Capabilities: pvolume pvolume-joined pswitch pswitch-joined
  Playback channels: Mono
  Limits: Playback 0 - 100
  Mono: Playback 50 [50%] [on]
Simple mixer control 'FX: X-Bass Crossover',0
  Capabilities: pvolume pvolume-joined
  Playback channels: Mono
  Limits: Playback 1 - 100
  Mono: Playback 8 [7%]
Simple mixer control 'Full-Range Front Speakers',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [on]
Simple mixer control 'Full-Range Rear Speakers',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [off]
Simple mixer control 'HP/Speaker Auto Detect',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [on]
Simple mixer control 'Input Source',0
  Capabilities: cenum
  Items: 'Microphone' 'Line In' 'Front Microphone'
  Item0: 'Microphone'
Simple mixer control 'Output Select',0
  Capabilities: enum
  Items: 'Speakers' 'Headphone'
  Item0: 'Headphone'
Simple mixer control 'VoiceFX',0
  Capabilities: cenum
  Items: 'Neutral' 'Female2Male' 'Male2Female' 'ScrappyKid' 'Elderly' 'Orc' 'Elf' 'Dwarf' 'AlienBrute' 'Robot' 'Marine' 'Emo' 'DeepVoice' 'Munchkin'
  Item0: 'Neutral'
Simple mixer control 'What U Hear',0
  Capabilities: cvolume cswitch
  Capture channels: Front Left - Front Right
  Limits: Capture 0 - 99
  Front Left: Capture 90 [91%] [0.00dB] [on]
  Front Right: Capture 90 [91%] [0.00dB] [on]

Edit: Here is the same output with settings that work. Though sometimes I have to reboot as the sound is very static-y. After that, everything works just fine.


amixer -c 2
Simple mixer control 'Master',0
  Capabilities: pvolume pvolume-joined pswitch pswitch-joined
  Playback channels: Mono
  Limits: Playback 0 - 99
  Mono: Playback 99 [100%] [0.00dB] [on]
Simple mixer control 'Bass Redirection',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [off]
Simple mixer control 'Bass Redirection Crossover',0
  Capabilities: volume volume-joined
  Playback channels: Mono
  Capture channels: Mono
  Limits: 1 - 100
  Mono: 8 [7%]
Simple mixer control 'PCM',0
  Capabilities: pvolume
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 255
  Mono:
  Front Left: Playback 255 [100%] [0.00dB]
  Front Right: Playback 255 [100%] [0.00dB]
Simple mixer control 'Front',0
  Capabilities: pvolume pswitch
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 99
  Mono:
  Front Left: Playback 90 [91%] [0.00dB] [off]
  Front Right: Playback 90 [91%] [0.00dB] [off]
Simple mixer control 'Surround',0
  Capabilities: pvolume pswitch
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 99
  Mono:
  Front Left: Playback 0 [0%] [-90.00dB] [off]
  Front Right: Playback 0 [0%] [-90.00dB] [off]
Simple mixer control 'Surround Channel Config',0
  Capabilities: enum
  Items: '2.0' '2.1' '4.0' '4.1' '5.1'
  Item0: '2.0'
Simple mixer control 'Center',0
  Capabilities: pvolume pvolume-joined pswitch pswitch-joined
  Playback channels: Mono
  Limits: Playback 0 - 99
  Mono: Playback 0 [0%] [-90.00dB] [off]
Simple mixer control 'LFE',0
  Capabilities: pvolume pvolume-joined pswitch pswitch-joined
  Playback channels: Mono
  Limits: Playback 0 - 99
  Mono: Playback 0 [0%] [-90.00dB] [off]
Simple mixer control 'Mic Boost',0
  Capabilities: cenum
  Items: '0 dB' '10 dB' '20 dB' '30 dB'
  Item0: '10 dB'
Simple mixer control 'IEC958',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [off]
Simple mixer control 'IEC958 Default PCM',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [off]
Simple mixer control 'Capture',0
  Capabilities: cvolume cswitch
  Capture channels: Front Left - Front Right
  Limits: Capture 0 - 99
  Front Left: Capture 99 [100%] [9.00dB] [on]
  Front Right: Capture 99 [100%] [9.00dB] [on]
Simple mixer control 'AE-5: Headphone Gain',0
  Capabilities: enum
  Items: 'Low (16-31  Ohms)' 'Medium (32-149  Ohms)' 'High (150-600  Ohms)'
  Item0: 'Low (16-31  Ohms)'
Simple mixer control 'AE-5: Sound Filter',0
  Capabilities: enum
  Items: 'Slow Roll Off' 'Minimum Phase' 'Fast Roll Off'
  Item0: 'Fast Roll Off'
Simple mixer control 'Enable InFX',0
  Capabilities: cswitch cswitch-joined
  Capture channels: Mono
  Mono: Capture [on]
Simple mixer control 'Enable OutFX',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [off]
Simple mixer control 'FX: Crystalizer',0
  Capabilities: pvolume pvolume-joined pswitch pswitch-joined
  Playback channels: Mono
  Limits: Playback 0 - 100
  Mono: Playback 65 [65%] [on]
Simple mixer control 'FX: Dialog Plus',0
  Capabilities: pvolume pvolume-joined pswitch pswitch-joined
  Playback channels: Mono
  Limits: Playback 0 - 100
  Mono: Playback 50 [50%] [on]
Simple mixer control 'FX: Equalizer',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [on]
Simple mixer control 'FX: Equalizer Preset',0
  Capabilities: enum
  Items: 'Flat' 'Acoustic' 'Classical' 'Country' 'Dance' 'Jazz' 'New Age' 'Pop' 'Rock' 'Vocal'
  Item0: 'Flat'
Simple mixer control 'FX: Mic SVM',0
  Capabilities: cswitch cswitch-joined
  Capture channels: Mono
  Mono: Capture [on]
Simple mixer control 'FX: Noise Reduction',0
  Capabilities: cswitch cswitch-joined
  Capture channels: Mono
  Mono: Capture [on]
Simple mixer control 'FX: Smart Volume',0
  Capabilities: pvolume pvolume-joined pswitch pswitch-joined
  Playback channels: Mono
  Limits: Playback 0 - 100
  Mono: Playback 74 [74%] [on]
Simple mixer control 'FX: Smart Volume Setting',0
  Capabilities: enum
  Items: 'Normal' 'Loud' 'Night'
  Item0: 'Normal'
Simple mixer control 'FX: Surround',0
  Capabilities: pvolume pvolume-joined pswitch pswitch-joined
  Playback channels: Mono
  Limits: Playback 0 - 100
  Mono: Playback 67 [67%] [on]
Simple mixer control 'FX: Voice Focus',0
  Capabilities: cswitch cswitch-joined
  Capture channels: Mono
  Mono: Capture [on]
Simple mixer control 'FX: X-Bass',0
  Capabilities: pvolume pvolume-joined pswitch pswitch-joined
  Playback channels: Mono
  Limits: Playback 0 - 100
  Mono: Playback 50 [50%] [on]
Simple mixer control 'FX: X-Bass Crossover',0
  Capabilities: pvolume pvolume-joined
  Playback channels: Mono
  Limits: Playback 1 - 100
  Mono: Playback 8 [7%]
Simple mixer control 'Full-Range Front Speakers',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [on]
Simple mixer control 'Full-Range Rear Speakers',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [off]
Simple mixer control 'HP/Speaker Auto Detect',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [on]
Simple mixer control 'Input Source',0
  Capabilities: cenum
  Items: 'Microphone' 'Line In' 'Front Microphone'
  Item0: 'Microphone'
Simple mixer control 'Output Select',0
  Capabilities: enum
  Items: 'Speakers' 'Headphone'
  Item0: 'Headphone'
Simple mixer control 'VoiceFX',0
  Capabilities: cenum
  Items: 'Neutral' 'Female2Male' 'Male2Female' 'ScrappyKid' 'Elderly' 'Orc' 'Elf' 'Dwarf' 'AlienBrute' 'Robot' 'Marine' 'Emo' 'DeepVoice' 'Munchkin'
  Item0: 'Neutral'
Simple mixer control 'What U Hear',0
  Capabilities: cvolume cswitch
  Capture channels: Front Left - Front Right
  Limits: Capture 0 - 99
  Front Left: Capture 90 [91%] [0.00dB] [on]
  Front Right: Capture 90 [91%] [0.00dB] [on]
[daarkblood@DragonsDen ~]$ alsamixer
[daarkblood@DragonsDen ~]$ amixer -c 2
Simple mixer control 'Master',0
  Capabilities: pvolume pvolume-joined pswitch pswitch-joined
  Playback channels: Mono
  Limits: Playback 0 - 99
  Mono: Playback 99 [100%] [0.00dB] [on]
Simple mixer control 'Bass Redirection',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [off]
Simple mixer control 'Bass Redirection Crossover',0
  Capabilities: volume volume-joined
  Playback channels: Mono
  Capture channels: Mono
  Limits: 1 - 100
  Mono: 8 [7%]
Simple mixer control 'PCM',0
  Capabilities: pvolume
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 255
  Mono:
  Front Left: Playback 255 [100%] [0.00dB]
  Front Right: Playback 255 [100%] [0.00dB]
Simple mixer control 'Front',0
  Capabilities: pvolume pswitch
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 99
  Mono:
  Front Left: Playback 90 [91%] [0.00dB] [on]
  Front Right: Playback 90 [91%] [0.00dB] [on]
Simple mixer control 'Surround',0
  Capabilities: pvolume pswitch
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 99
  Mono:
  Front Left: Playback 0 [0%] [-90.00dB] [off]
  Front Right: Playback 0 [0%] [-90.00dB] [off]
Simple mixer control 'Surround Channel Config',0
  Capabilities: enum
  Items: '2.0' '2.1' '4.0' '4.1' '5.1'
  Item0: '2.0'
Simple mixer control 'Center',0
  Capabilities: pvolume pvolume-joined pswitch pswitch-joined
  Playback channels: Mono
  Limits: Playback 0 - 99
  Mono: Playback 0 [0%] [-90.00dB] [off]
Simple mixer control 'LFE',0
  Capabilities: pvolume pvolume-joined pswitch pswitch-joined
  Playback channels: Mono
  Limits: Playback 0 - 99
  Mono: Playback 0 [0%] [-90.00dB] [off]
Simple mixer control 'Mic Boost',0
  Capabilities: cenum
  Items: '0 dB' '10 dB' '20 dB' '30 dB'
  Item0: '10 dB'
Simple mixer control 'IEC958',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [off]
Simple mixer control 'IEC958 Default PCM',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [off]
Simple mixer control 'Capture',0
  Capabilities: cvolume cswitch
  Capture channels: Front Left - Front Right
  Limits: Capture 0 - 99
  Front Left: Capture 99 [100%] [9.00dB] [on]
  Front Right: Capture 99 [100%] [9.00dB] [on]
Simple mixer control 'AE-5: Headphone Gain',0
  Capabilities: enum
  Items: 'Low (16-31  Ohms)' 'Medium (32-149  Ohms)' 'High (150-600  Ohms)'
  Item0: 'Low (16-31  Ohms)'
Simple mixer control 'AE-5: Sound Filter',0
  Capabilities: enum
  Items: 'Slow Roll Off' 'Minimum Phase' 'Fast Roll Off'
  Item0: 'Fast Roll Off'
Simple mixer control 'Enable InFX',0
  Capabilities: cswitch cswitch-joined
  Capture channels: Mono
  Mono: Capture [on]
Simple mixer control 'Enable OutFX',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [off]
Simple mixer control 'FX: Crystalizer',0
  Capabilities: pvolume pvolume-joined pswitch pswitch-joined
  Playback channels: Mono
  Limits: Playback 0 - 100
  Mono: Playback 65 [65%] [on]
Simple mixer control 'FX: Dialog Plus',0
  Capabilities: pvolume pvolume-joined pswitch pswitch-joined
  Playback channels: Mono
  Limits: Playback 0 - 100
  Mono: Playback 50 [50%] [on]
Simple mixer control 'FX: Equalizer',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [on]
Simple mixer control 'FX: Equalizer Preset',0
  Capabilities: enum
  Items: 'Flat' 'Acoustic' 'Classical' 'Country' 'Dance' 'Jazz' 'New Age' 'Pop' 'Rock' 'Vocal'
  Item0: 'Flat'
Simple mixer control 'FX: Mic SVM',0
  Capabilities: cswitch cswitch-joined
  Capture channels: Mono
  Mono: Capture [on]
Simple mixer control 'FX: Noise Reduction',0
  Capabilities: cswitch cswitch-joined
  Capture channels: Mono
  Mono: Capture [on]
Simple mixer control 'FX: Smart Volume',0
  Capabilities: pvolume pvolume-joined pswitch pswitch-joined
  Playback channels: Mono
  Limits: Playback 0 - 100
  Mono: Playback 74 [74%] [on]
Simple mixer control 'FX: Smart Volume Setting',0
  Capabilities: enum
  Items: 'Normal' 'Loud' 'Night'
  Item0: 'Normal'
Simple mixer control 'FX: Surround',0
  Capabilities: pvolume pvolume-joined pswitch pswitch-joined
  Playback channels: Mono
  Limits: Playback 0 - 100
  Mono: Playback 67 [67%] [on]
Simple mixer control 'FX: Voice Focus',0
  Capabilities: cswitch cswitch-joined
  Capture channels: Mono
  Mono: Capture [on]
Simple mixer control 'FX: X-Bass',0
  Capabilities: pvolume pvolume-joined pswitch pswitch-joined
  Playback channels: Mono
  Limits: Playback 0 - 100
  Mono: Playback 50 [50%] [on]
Simple mixer control 'FX: X-Bass Crossover',0
  Capabilities: pvolume pvolume-joined
  Playback channels: Mono
  Limits: Playback 1 - 100
  Mono: Playback 8 [7%]
Simple mixer control 'Full-Range Front Speakers',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [on]
Simple mixer control 'Full-Range Rear Speakers',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [off]
Simple mixer control 'HP/Speaker Auto Detect',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [on]
Simple mixer control 'Input Source',0
  Capabilities: cenum
  Items: 'Microphone' 'Line In' 'Front Microphone'
  Item0: 'Microphone'
Simple mixer control 'Output Select',0
  Capabilities: enum
  Items: 'Speakers' 'Headphone'
  Item0: 'Headphone'
Simple mixer control 'VoiceFX',0
  Capabilities: cenum
  Items: 'Neutral' 'Female2Male' 'Male2Female' 'ScrappyKid' 'Elderly' 'Orc' 'Elf' 'Dwarf' 'AlienBrute' 'Robot' 'Marine' 'Emo' 'DeepVoice' 'Munchkin'
  Item0: 'Neutral'
Simple mixer control 'What U Hear',0
  Capabilities: cvolume cswitch
  Capture channels: Front Left - Front Right
  Limits: Capture 0 - 99
  Front Left: Capture 90 [91%] [0.00dB] [on]
  Front Right: Capture 90 [91%] [0.00dB] [on]

Edit 2: Ran into that bug where my sound was glitchy so I restarted. Found the setting in the off position again for some reason. After turning it back on again though the sound worked just fine. I wish I had more knowledge to explain the situation. lol Here is the output after rebooting with sound not glitching:


Simple mixer control 'Master',0
  Capabilities: pvolume pvolume-joined pswitch pswitch-joined
  Playback channels: Mono
  Limits: Playback 0 - 99
  Mono: Playback 99 [100%] [0.00dB] [on]
Simple mixer control 'Bass Redirection',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [off]
Simple mixer control 'Bass Redirection Crossover',0
  Capabilities: volume volume-joined
  Playback channels: Mono
  Capture channels: Mono
  Limits: 1 - 100
  Mono: 8 [7%]
Simple mixer control 'PCM',0
  Capabilities: pvolume
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 255
  Mono:
  Front Left: Playback 255 [100%] [0.00dB]
  Front Right: Playback 255 [100%] [0.00dB]
Simple mixer control 'Front',0
  Capabilities: pvolume pswitch
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 99
  Mono:
  Front Left: Playback 90 [91%] [0.00dB] [on]
  Front Right: Playback 90 [91%] [0.00dB] [on]
Simple mixer control 'Surround',0
  Capabilities: pvolume pswitch
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 99
  Mono:
  Front Left: Playback 0 [0%] [-90.00dB] [off]
  Front Right: Playback 0 [0%] [-90.00dB] [off]
Simple mixer control 'Surround Channel Config',0
  Capabilities: enum
  Items: '2.0' '2.1' '4.0' '4.1' '5.1'
  Item0: '2.0'
Simple mixer control 'Center',0
  Capabilities: pvolume pvolume-joined pswitch pswitch-joined
  Playback channels: Mono
  Limits: Playback 0 - 99
  Mono: Playback 0 [0%] [-90.00dB] [off]
Simple mixer control 'LFE',0
  Capabilities: pvolume pvolume-joined pswitch pswitch-joined
  Playback channels: Mono
  Limits: Playback 0 - 99
  Mono: Playback 0 [0%] [-90.00dB] [off]
Simple mixer control 'Mic Boost',0
  Capabilities: cenum
  Items: '0 dB' '10 dB' '20 dB' '30 dB'
  Item0: '10 dB'
Simple mixer control 'IEC958',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [off]
Simple mixer control 'IEC958 Default PCM',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [off]
Simple mixer control 'Capture',0
  Capabilities: cvolume cswitch
  Capture channels: Front Left - Front Right
  Limits: Capture 0 - 99
  Front Left: Capture 99 [100%] [9.00dB] [on]
  Front Right: Capture 99 [100%] [9.00dB] [on]
Simple mixer control 'AE-5: Headphone Gain',0
  Capabilities: enum
  Items: 'Low (16-31  Ohms)' 'Medium (32-149  Ohms)' 'High (150-600  Ohms)'
  Item0: 'Low (16-31  Ohms)'
Simple mixer control 'AE-5: Sound Filter',0
  Capabilities: enum
  Items: 'Slow Roll Off' 'Minimum Phase' 'Fast Roll Off'
  Item0: 'Fast Roll Off'
Simple mixer control 'Enable InFX',0
  Capabilities: cswitch cswitch-joined
  Capture channels: Mono
  Mono: Capture [on]
Simple mixer control 'Enable OutFX',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [off]
Simple mixer control 'FX: Crystalizer',0
  Capabilities: pvolume pvolume-joined pswitch pswitch-joined
  Playback channels: Mono
  Limits: Playback 0 - 100
  Mono: Playback 65 [65%] [on]
Simple mixer control 'FX: Dialog Plus',0
  Capabilities: pvolume pvolume-joined pswitch pswitch-joined
  Playback channels: Mono
  Limits: Playback 0 - 100
  Mono: Playback 50 [50%] [on]
Simple mixer control 'FX: Equalizer',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [on]
Simple mixer control 'FX: Equalizer Preset',0
  Capabilities: enum
  Items: 'Flat' 'Acoustic' 'Classical' 'Country' 'Dance' 'Jazz' 'New Age' 'Pop' 'Rock' 'Vocal'
  Item0: 'Flat'
Simple mixer control 'FX: Mic SVM',0
  Capabilities: cswitch cswitch-joined
  Capture channels: Mono
  Mono: Capture [on]
Simple mixer control 'FX: Noise Reduction',0
  Capabilities: cswitch cswitch-joined
  Capture channels: Mono
  Mono: Capture [on]
Simple mixer control 'FX: Smart Volume',0
  Capabilities: pvolume pvolume-joined pswitch pswitch-joined
  Playback channels: Mono
  Limits: Playback 0 - 100
  Mono: Playback 74 [74%] [on]
Simple mixer control 'FX: Smart Volume Setting',0
  Capabilities: enum
  Items: 'Normal' 'Loud' 'Night'
  Item0: 'Normal'
Simple mixer control 'FX: Surround',0
  Capabilities: pvolume pvolume-joined pswitch pswitch-joined
  Playback channels: Mono
  Limits: Playback 0 - 100
  Mono: Playback 67 [67%] [on]
Simple mixer control 'FX: Voice Focus',0
  Capabilities: cswitch cswitch-joined
  Capture channels: Mono
  Mono: Capture [on]
Simple mixer control 'FX: X-Bass',0
  Capabilities: pvolume pvolume-joined pswitch pswitch-joined
  Playback channels: Mono
  Limits: Playback 0 - 100
  Mono: Playback 50 [50%] [on]
Simple mixer control 'FX: X-Bass Crossover',0
  Capabilities: pvolume pvolume-joined
  Playback channels: Mono
  Limits: Playback 1 - 100
  Mono: Playback 8 [7%]
Simple mixer control 'Full-Range Front Speakers',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [on]
Simple mixer control 'Full-Range Rear Speakers',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [off]
Simple mixer control 'HP/Speaker Auto Detect',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [on]
Simple mixer control 'Input Source',0
  Capabilities: cenum
  Items: 'Microphone' 'Line In' 'Front Microphone'
  Item0: 'Microphone'
Simple mixer control 'Output Select',0
  Capabilities: enum
  Items: 'Speakers' 'Headphone'
  Item0: 'Headphone'
Simple mixer control 'VoiceFX',0
  Capabilities: cenum
  Items: 'Neutral' 'Female2Male' 'Male2Female' 'ScrappyKid' 'Elderly' 'Orc' 'Elf' 'Dwarf' 'AlienBrute' 'Robot' 'Marine' 'Emo' 'DeepVoice' 'Munchkin'
  Item0: 'Neutral'
Simple mixer control 'What U Hear',0
  Capabilities: cvolume cswitch
  Capture channels: Front Left - Front Right
  Limits: Capture 0 - 99
  Front Left: Capture 90 [91%] [0.00dB] [on]
  Front Right: Capture 90 [91%] [0.00dB] [on]

I suggest you check out these articles about Windows fast boot feature and how to disable it
How to disable Windows 10 fast startup (and why you’d want to) | Windows Central
Dual boot with Windows - ArchWiki

I’ve known that fastboot is problematic and am well versed in typical bios settings but I didn’t know that that setting is what had the biggest impact on that. Though it does seem that Windows isnt the only problem which I recently realized. Thanks for the info though
!

ALSA settings file /var/lib/alsa/asound.state is not created when OS is first installed, User has to save the ALSA settings for alsactl to create the file
If system boot cannot find the settings file the card will always have default settings

But an amixer command direct to the specific ALSA control would work too

amixer -c2 sset 'Front' 90 unmute

Sorry for the late response.
Creative SoundBlaster X AE series? Ah sh*t here we go again.
I’m fighting with my X AE-7 for months. The problem with “random no sound after starting my PC until I reboot” is pretty consistent with my X AE-7 and SoundBlaster Recon. Haven’t found any fix for that.

Anyway: I think my “workaround” for your front audio will work without disabling fastboot in Windows (just in case you want to keep fastboot).
Sadly I have my X AE-7 in a different system right now but you can try the following command (or something along the lines):

amixer -c 2 set 'Front' 1

If this helps: just put the command as a startup script. It’s a “workaround” solution but it will work. Creative Soundcards are notorious for just not working correctly.
it’s literally the only difference between the working and not working state (and makes sense):

diff notworking.txt working.txt                                                                                                                                                                                                                                           ✔ 
28,29c28,29
<   Front Left: Playback 90 [91%] [0.00dB] [off]
<   Front Right: Playback 90 [91%] [0.00dB] [off]
---
>   Front Left: Playback 90 [91%] [0.00dB] [on]
>   Front Right: Playback 90 [91%] [0.00dB] [on]

If you can’t figure out any solution I’ll report back as soon as I finish testing my Creative card in my second setup (I’m still thinking my problem has something to do with the AMD Ryzen plattform combined with creative).

Btw: if you want to know what I’m struggling with regarding Creative. https://forum.manjaro.org/t/sound-stops-working-randomly-until-application-restart/66931

Awesome! Thank you for the information. And I agree, it has been interesting working with this sound card though as an audiophile its kind of necessary. I"ll try and do some digging on how to create a script for this. I wasn’t aware login/startup scripting was a thing with Linux but I’m happy to see it.

You are welcome :slight_smile:
Startup scripts are pretty common with linux. I mean: most servers do run Linux and you can’t run bigger datacenters without automation. Even a homeserver is a nightmare without scripts :wink:

The “right” way would be to write a script and register it as a service https://wiki.archlinux.org/title/Startup_files.

Since you don’t have so much experience with Linux, there is a pretty easy way in your Manjaro-settings (i guess it’s called like this, but my Manjaro is set to german, so I try my best to translate it):
Settings → Startup → Autostart → Add Startupscript.
You can just search for “autostart” in your Settingsmanager.

Its all good! I did find that setting on my own when you mentioned startup scripts. Though I will take a look at the service method. Thank you for your input!

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.