Page 1 of 1

Volume too low.

Posted: 08 Aug 2015, 13:06
by steve s
I've got Windows on my laptop but have been using Porteus KDE lately because videos play back smoother. The problem is that the volume is too low when using Porteus. The master is at 100%, but it's not even half as loud as when I run Windows. Other distros of Linux sound just fine.
I went into the config file and raised the value from 100% to 200%, but that didn't work. Any suggestions?

Steve S

Re: Volume too low.

Posted: 08 Aug 2015, 13:25
by Bogomips
Try in a terminal alsamixer:

Code: Select all

alsamixer
which is what I'm using to try and get a reasonable volume.

Re: Volume too low.

Posted: 09 Aug 2015, 05:11
by steve s
Thanks, that did it. Even though the master was at 100, the one labeled Speaker was only about 60%.

Steve S

Re: Volume too low.

Posted: 09 Aug 2015, 14:14
by Bogomips
To round things off, preferred settings can be saved. In terminal under root:

Code: Select all

alsactl	store	# All that's needed if saving Changes
If not saving Changes, then rootcopy will do the trick. Immediately after saving sound settiings, the file /var/lib/alsa/asound.state has to be copied to the rootcopy folder. Again as root:

Code: Select all

alsactl store
cp --parents /var/lib/alsa/asound.state  /mnt/sdxy/porteus/rootcopy
sdxy - Partition where Porteus has been installed. For example: /mnt/sdb1

Am able myself to get reasonable sound without getting into the red. However always a good idea upon starting up Porteus to check sound settings, as somewhere along the line some startup program/s clobberi them. KDE System Settings is another of these programs, which puts pcm into the red. Not very desirable if watching a late night video which starts off with an ear-splitting musical introduction.

If settings clobbered, then

Code: Select all

alsactl restore
Feedback was appreciated. Please append Solved to topic title, if everything has been covered.

Re: Volume too low.

Posted: 10 Aug 2015, 02:43
by Ed_P
Bogomips wrote:Feedback was appreciated.
What do you suggest for this situation?

Code: Select all

guest@porteus:~$ alsactl store
alsactl: state_lock:121: file /var/lib/alsa/asound.state lock error: File exists
alsactl: state_lock:121: file /var/lib/alsa/asound.state unlock error: File exists
guest@porteus:~$ 

Re: Volume too low.

Posted: 10 Aug 2015, 12:05
by Bogomips
@Ed_P

For starters

Code: Select all

alsactl -L store
See man alsactl. Otherwise copy configuration file somewhere else, and use this other one as configuration file perhaps?

Re: Volume too low.

Posted: 10 Aug 2015, 12:33
by Ed_P
:no:

Code: Select all

guest@porteus:~$ alsactl -L store
alsactl: invalid option -- 'L'
Usage: alsactl <options> command

global options:
  -h,--help        this help
  -d,--debug       debug mode
  -v,--version     print version of this program

Available state options:
  -f,--file #      configuration file (default /var/lib/alsa/asound.state)
  -l,--lock        use file locking to serialize concurrent access
  -F,--force       try to restore the matching controls as much as possible
                     (default mode)
  -g,--ignore      ignore 'No soundcards found' error
  -P,--pedantic    do not restore mismatching controls (old default)
  -I,--no-init-fallback  
                   don't initialize even if restore fails
  -r,--runstate #  save restore and init state to this file (only errors)
                     default settings is 'no file set'
  -R,--remove      remove runstate file at first, otherwise append errors
  -p,--period #    store period in seconds for the daemon command
  -e,--pid-file #  pathname for the process id (daemon mode)

Available init options:
  -E,--env #=#     set environment variable for init phase (NAME=VALUE)
  -i,--initfile #  main configuation file for init phase
                     (default /usr/share/alsa/init/00main)
  -b,--background  run daemon in background
  -s,--syslog      use syslog for messages
  -n,--nice #      set the process priority (see 'man nice')
  -c,--sched-idle  set the process scheduling policy to idle (SCHED_IDLE)

Available commands:
  store     <card>  save current driver setup for one or each soundcards
                      to configuration file
  restore   <card>  load current driver setup for one or each soundcards
                      from configuration file
  nrestore  <card>  like restore, but notify the daemon to rescan soundcards
  init      <card>  initialize driver to a default state
  daemon    <card>  store state periodically for one or each soundcards
  rdaemon   <card>  like daemon but do the state restore at first
  kill      <cmd>   notify daemon to quit, rescan or save_and_quit
guest@porteus:~$ alsactl -v
alsactl version 1.0.27.2
guest@porteus:~$ 

Same with lower case -l also.

Code: Select all

guest@porteus:~$ alsactl -l store
alsactl: state_lock:121: file /var/lib/alsa/asound.state lock error: File exists
alsactl: state_lock:121: file /var/lib/alsa/asound.state unlock error: File exists

Re: Volume too low.

Posted: 10 Aug 2015, 12:49
by Bogomips
Try running under root, as you do not have write access to /var/lib/alsa/asound.state. 8)

Re: Volume too low.

Posted: 10 Aug 2015, 15:44
by Ed_P
Bogomips wrote:Try running under root,
Bingo!! :good:

Code: Select all

guest@porteus:~$ su
Password: 
root@porteus:/home/guest# alsactl store
root@porteus:/home/guest# 
Thanks Bogomips. :beer: