LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 11-27-2019, 09:25 AM   #1
inukaze
Member
 
Registered: Feb 2011
Location: Venezuela - Caracas
Distribution: Slackware64 14.2, Slackware 14.2, Gentoo, Devuan, gNewSense, GoboLinux, Leeenux, Porteus
Posts: 286

Rep: Reputation: 26
Question Linux, Videogames, Audio (Pulseaudio + ALSA) & Performance


Hi there, well let me give you a breif explain, this is my pc specs :

Mainboard : ASUSTeK M2N68-AM SE2
SBES : American Megatrends | Version : 1409

AMD Athlon 64 X2 6000+ | Cache : 2 MB
Family : k8 | Cores : 2 , Max Speed : 3 GHz

RAM : 3,00 GB | Quantity : 2 (1=1GB y 1=2GB)
Type : DDR2 | Bus : 800 Mhz | CL : Unknow

GPU : https://www.geforce.com/hardware/des...specifications

Nvidia | Bus : 64 Bit | 2048 MB
Driver : nvidia | OpenGL : 4.2.0
Model : GeForce 620
Shader Model : 5.0

this are my configurations [On Devuan]:


File -> /etc/inittab
Code:
# /etc/inittab: init(8) configuration.
# $Id: inittab,v 1.91 2002/01/25 13:35:21 miquels Exp $

# The default runlevel.
id:2:initdefault:

# Boot-time system configuration/initialization script.
# This is run first except when booting in emergency (-b) mode.
##si::sysinit:/sbin/openrc sysinit	#Inukaze
##rc::bootwait:/sbin/openrc boot	#Inukaze
si::sysinit:/etc/init.d/rcS		#Default System

# What to do in single-user mode.
~~:S:wait:/sbin/sulogin

# /etc/init.d executes the S and K scripts upon change
# of runlevel.
#
# Runlevel 0 is halt.
# Runlevel 1 is single-user.
# Runlevels 2-5 are multi-user.
# Runlevel 6 is reboot.

l0:0:wait:/etc/init.d/rc 0
l1:1:wait:/etc/init.d/rc 1
l2:2:wait:/etc/init.d/rc 2
l3:3:wait:/etc/init.d/rc 3
l4:4:wait:/etc/init.d/rc 4
l5:5:wait:/etc/init.d/rc 5
l6:6:wait:/etc/init.d/rc 6
# Normally not reached, but fallthrough in case of emergency.
z6:6:respawn:/sbin/sulogin

# What to do when CTRL-ALT-DEL is pressed.
ca:12345:ctrlaltdel:/sbin/shutdown -t1 -a -r now

# Action on special keypress (ALT-UpArrow).
#kb::kbrequest:/bin/echo "Keyboard Request--edit /etc/inittab to let this work."

# What to do when the power fails/returns.
pf::powerwait:/etc/init.d/powerfail start
pn::powerfailnow:/etc/init.d/powerfail now
po::powerokwait:/etc/init.d/powerfail stop

# /sbin/getty invocations for the runlevels.
#
# The "id" field MUST be the same as the last
# characters of the device (after "tty").
#
# Format:
#  <id>:<runlevels>:<action>:<process>
#
# Note that on most Debian systems tty7 is used by the X Window System,
# so if you want to add more getty's go ahead but skip tty7 if you run X.
#
1:2345:respawn:/sbin/getty 38400 tty1
2:23:respawn:/sbin/getty 38400 tty2
3:23:respawn:/sbin/getty 38400 tty3
4:23:respawn:/sbin/getty 38400 tty4
5:23:respawn:/sbin/getty 38400 tty5
#6:23:respawn:/sbin/getty 38400 tty6
6:23:respawn:/sbin/getty 38400 --autologin inukaze --noclear tty6
#1:2345:respawn:/bin/login -f inukaze tty6 </dev/tty6 >/dev/tty6 2>&1

# Example how to put a getty on a serial line (for a terminal)
#
#T0:23:respawn:/sbin/getty -L ttyS0 9600 vt100
#T1:23:respawn:/sbin/getty -L ttyS1 9600 vt100

# Example how to put a getty on a modem line.
#
#T3:23:respawn:/sbin/mgetty -x0 -s 57600 ttyS3

#CS:123456:respawn:/opt/gitlab/embedded/bin/runsvdir-start

File -> /etc/X11/xorg.conf
Code:
# Inukaze config for Nvidia-Cards
# Debian, put in /etc/X11/xorg.conf 
# Manjaro mwhd put in /etc/X11/mhwd.d/nvidia.conf

Section "ServerLayout"
    Identifier     "Default Layout"
    Screen      0  "Screen0" 0 0
    InputDevice    "Keyboard0" "CoreKeyboard"
    InputDevice    "Mouse0" "CorePointer"
    Option         "Xinerama" "0"
EndSection

Section "Module"
    Load           "ddc"  # ddc probing of monitor
    Load           "dbe"
    Load           "vbe"
    Load           "bitmap"
    Load           "dri"
    Load	   "dri2"
    Load           "extmod"
    Load           "glx"
    Load           "bitmap" # bitmap-fonts
    Load           "int10"
    Load           "type1"
    Load           "freetype"
    Load           "record"
    Load           "synaptics"
EndSection

Section "ServerFlags"
    Option         "DontZap" "False"
    Option         "Xinerama" "0"
EndSection

Section "InputDevice"
    Identifier     "Keyboard0"
    Driver         "kbd"
EndSection

Section "InputDevice"
    Identifier     "Mouse0"
    Driver         "mouse"
    Option         "Protocol" "auto"
    Option         "Device" "/dev/psaux"
    Option         "Emulate3Buttons" "no"
    Option         "ZAxisMapping" "4 5"
EndSection

Section "Monitor"
    Identifier     "Monitor0"
    VendorName     "Toshiba Matsushita Display Technology Co., Ltd"
    ModelName      "190LM00006"
    Option         "DPMS" "TRUE"
EndSection

Section "Device"
	Identifier	"Device0"
	Driver	"nvidia"
	VendorName	"NVIDIA Corporation"
	BoardName	"GeForce GT 620"
	Option	"DPMS"			"True"
	Option	"NoLogo"		"True"
	Option	"AddARGBVisuals"	"True"
	Option	"AddARGBGLXVisuals" 	"True"
	Option	"AllowGLXWithComposite" "True"
	Option	"TripleBuffer" 		"True"
	Option	"DRI" 			"True"
	Option	"RenderAccel" 		"True"
	Option	"HWCursor" 		"True"
	Option	"CursorShadow" 		"True"
	Option	"NvAGP" 		"3"
	Option	"RegistryDwords" 	"PerfLevelSrc=0x3333"
	Option	"NoPowerConnectorCheck" "True"
	Option	"UseEdidFreqs" 		"True"
	Option	"backingstore" 		"True"
	Option	"DPI" 			"92"
	Option	"XAANoOffscreenPixmaps" "True"

# Cuando Se Actualizan los Controladores Privatidos
# Aa la version 304.88 , El Sistema se vuelve muy lento
# Aqui esta el Arreglo de Lentitud :

	Option	"UBB"					"True"
	Option	"GLShaderDiskCache" 			"True"
	Option	"Dac8Bit"				"True"
	Option	"Overlay"		 		"True"
	Option	"CIOverlay" 				"True"
	Option	"TransparentIndex" 			"25"
	Option	"OverlayDefaultVisual" 			"True"
	Option	"nvidiaXineramaInfo" 			"True"
	Option	"nvidiaXineramaInfoOrder"		"True"
	Option	"MultisampleCompatibility"		"True"
	Option	"DamageEvents" 				"True"
	Option	"SLI" 					"0"
	Option	"UseEvents" 				"True"
	Option	"AllowSHMPixmaps" 			"True"
	Option	"InitializeWindowBackingPixmaps"	"True"
	Option	"AllowUnofficialGLXProtocol" 	 	"True"
	Option	"Interactive" 				"True"
	Option	"ConstrainCursor" 			"True"
	Option	"UseHotplugEvents" 			"True"
EndSection

Section "Screen"
    Identifier     "Screen0"
    Device         "Device0"
    Monitor        "Monitor0"
    DefaultDepth    24
    Option         "AddARGBGLXVisuals"	"True"
    Option         "DPMS"
    Option         "TwinView" "0"
    Option         "TwinViewXineramaInfoOrder" "CRT-0"
    Option         "Stereo" "0"
    Option         "nvidiaXineramaInfoOrder" "CRT-0"
    Option         "metamodes" "CRT: 1152x864_75 +0+0, CRT: 1024x768_60 +0+0, TV: 1024x768 +0+0; CRT: 800x600_60 +0+0, TV: nvidia-auto-select +0+0"
    SubSection     "Display"
        Depth       24
    EndSubSection
    
# Not Used Options
     Option         "AddARGBVisuals"	"True"
#    Option         "nvidia-auto-select +0+0"

EndSection

Section "Extensions"
    Option         "DRI" 				"Enable"
    Option         "RandR" 				"Enable"
    Option         "RENDER" 				"Enable"
    Option         "Composite" 				"Enable"
EndSection

Section "DRI"
	Mode 0666
EndSection

Section "InputClass"
	Identifier          "Keyboard Defaults"
	MatchIsKeyboard	    "yes"
	Option              "XkbOptions" "terminate:ctrl_alt_bksp"
EndSection
File -> /etc/X11/Xwrapper.config
Code:
# Xwrapper.config (Debian X Window System server wrapper configuration file)
#
# This file was generated by the post-installation script of the x11-common
# package using values from the debconf database.
#
# See the Xwrapper.config(5) manual page for more information.
#
# This file is automatically updated on upgrades of the x11-common package
# *only* if it has not been modified since the last upgrade of that package.
#
# If you have edited this file but would like it to be automatically updated
# again, run the following command as root:
#   dpkg-reconfigure x11-common
#allowed_users=console
allowed_users=anybody
File -> ~/.bashrc :
Code:
#
# ~/.bashrc
#

# Archivo ~/.bashrc
# Hecho por "Inukaze" (De Venezuela
# Sitio Web de Inukaze-> http://inukaze.wordpress.com

# Ajustado y Adaptado segun varios sitios de Internet
# Para facilitar , la personalizacion del "prompt" de las terminales que usan bash

# Sitios Web , donde puedes encontrar más ejemplos :
# 1 -> http://www.askapache.com/linux/bash-power-prompt.html

function colores_en_terminal () {

	local CDU=$BLANCO		# Colores del Usuario Actual
	[ $UID -eq "0" ] && CDU=$ROJO	# Colores del SuperUsuario Root
	
	INV="\[\033[7m\]"		# Intercambiar Colores de Frente & Fondo
        NEGRITA='\033[01m'
	ADORNO='\342\234\227'
	REAJUSTE="\[\033[0m\]"		# Reinicio / Sin Color
	COLORIDO="\[\033[1m\]"		# Color de Alta Intensidad
	MARCADOR='\342\234\223'
	SUBRAYADO="\[\033[4m\]"
	
	# Colores Regulares
	GRIS='\[\033[1;30m\]'
	CYAN="\[\033[0;36m\]"
	AZUL="\[\033[0;34m\]"
	ROJO="\[\033[0;31m\]"
	VERDE="\[\033[0;32m\]"
	NEGRO="\[\033[0;30m\]"
	BLANCO="\[\033[0;37m\]"
	SINCOLOR="\[\033[00m\]"
	MAGENTA="\[\033[0;35m\]"
	MARRON="\[\033[00;33m\]"
	PURPURA="\[\033[00;35m\]"
	AMARILLO="\[\033[0;33m\]"

	# Colores Resaltados (Osea con Negrita)
    	NEGRITA_ROJO="\[\033[1;31m\]"
	NEGRITA_AZUL="\[\033[1;34m\]"
	NEGRITA_CYAN="\[\033[1;36m\]"
	NEGRITA_VERDE="\[\033[01;32m\]"
	NEGRITA_NEGRO="\[\033[1;30m\]"
	NEGRITA_GRIS="\[\033[01;37m\]"
	NEGRITA_BLANCO="\[\033[1;37m\]"
	NEGRITA_MAGENTA="\[\033[1;35m\]"
	NEGRITA_PURPURA="\[\033[01;35m\]"
	NEGRITA_AMARILLO="\[\033[1;33m\]"

	
	# Colores del Primer Plano
	PP_ROJO="\[\033[31m\]"
	PP_AZUL="\[\033[34m\]"
	PP_CYAN="\[\033[36m\]"
	PP_NEGRO="\[\033[30m\]"
	PP_VERDE="\[\033[32m\]"
	PP_BLANCO="\[\033[37m\]"
	PP_MAGENTA="\[\033[35m\]"
	PP_AMARILLO="\[\033[33m\]"

	# Colores de Fondo
	CF_ROJO="\[\033[41m\]"
	CF_AZUL="\[\033[44m\]"
	CF_CYAN="\[\033[46m\]"
	CF_NEGRO="\[\033[40m\]"
	CF_VERDE="\[\033[42m\]"
	CF_BLANCO="\[\033[47m\]"
	CF_MAGENTA="\[\033[45m\]"
	CF_AMARILLO="\[\033[43m\]"

	# EXPLICACION :
	# PS1 -> Prompt Shell 1 -> En español seria algo como "Capa Inmediata 1"
	# Aqui vamos a definir unicamente la capa 1 de las 4 ó 5 que existen
	# 
	# Puedes usar comandos de Linux directamente en la Variable de 
	# Entorno del sistema llamada "PS1"
	# 
	# Aparte de ello existen varios codigos que puedes usar en el PS1=
	# Aqui te explicare algunos de ellos , para que puedas personalizar
	#
	# La mayoria de ellos son los mismos que al utilizar en la terminal
	# echo -e "Algun texto de prueba\nComo este por ejemplo"
	
	# Explicacion de Codigos :
	# \a -> Caracter ASCII 07 : "Campana"
	# \d -> La fecha en "Nombre del dia de Semana Mes Numero del Dia de Semana " (Ejemplo : "vie may 30")
	# \e -> Caracter ASCII 033 : "Escape"
	# \h -> Nombre de la primera parte del anfitrión en uso
	# \H -> Nombre del anfitrión
	# \j -> El numero actual de trabajos controlados actualmente por la consola
	# \l -> Nombre base del dispositivo terminal de la capa inmediata (puede ser del 1 al 4/5)
	# \n -> Salto de Linea
	# \r -> Retorno del carro
	# \s -> Nombre del interprete , comando `basename $0` (la parte siguiente de la barra final)
	# \t -> Hora Acutal en Formato de 24 Horas -> Hora:Minutos:Segundos
	# \T -> Hora Acutal en Formato de 12 Horas -> Hora:Minutos:Segundos
	# \@ -> Hora Acutal en Formato de 12 Horas -> Hora:Minutos: am/pm 
	# \A -> Hora Acutal en Formato de 24 Horas -> Hora:Minutos
	# \u -> Nombre de usuario del usuario actual
	# \v -> La version de Bash (Ejemplo : 2.0)
	# \V -> La version de Bash + Nivel de Parche (Ejemplo : 2.0.00) the release of bash, version + patch level
	# \w -> Muestra La Ruta Acortada Del Directorio de Trabajo Actual , en $HOME se abrevia con una tilde
	# \W -> Muestra La Ruta Completa Del Directorio de Trabajo Actual , en $HOME se abrevia con una tilde
	# \! -> el número de historia de este comando
	# \# -> el número de comando de este comando
	# \$ -> si el UID efectivo es 0, un #, de lo contrario un $
	# \\ -> barra invertida
	# \[ -> comenzar una secuencia de caracteres no imprimibles, que podría ser utilizado para incrustar una secuencia de control de terminal en el interprete	
	# \] -> terminar una secuencia de caracteres no imprimibles
	#
	#
	# \nnn -> el carácter correspondiente al número octal nnn
	# en la terminal puedes usar el comando `man ascii` 
	# alli veras que una Columna dice "OCT" alli estan los valores octales
	# que puedes usar , por ejemplo para el caracter / el octal es 057
	#
	# Ejemplo(s)
	# PS1='[\u@\h: \W] (\057) \$ '
	#
	#
	# \D -> Fecha y Hora Personalizada se usan los valores de "date --help"
	# por ejemplo %H:%M:%S (Hora:Minitos:Segundos) si quieres usar am/pm en 
	# lugar de usar "%S" para los segundos debes usar "%p" para "am/pm"
	#
	# Ejemplo(s) :
	# PS1="[\u@\h: \W] (\D{%T %p) \$ "
	# PS1=(\D{%H:%M %p) "[\u@\h: \W]  \$ "
	#
	# Tambien puedes meter comandos yo lo hago con () por ejemplo
	# PS1="$(date +%d-%m-%Y)@$(date +%I:%M%p)\n${NEGRITA_VERDE}$ ${SINCOLOR}"
	#
	# Si se fijan bien , en el ejemplo anterior use el comando date
	# obviamente que con las opciones , uno para la fecha y otro para la hora
	# el "@" arroba que esta de por medio es solo un adorno.
	#
	# NOTA FINAL : No se si te abras percatado de lo siguiente , es importante que se entienda
	# Primer Ejemplo -> PS1='[\u@\h \W]\$ '
	# Segundo Ejemplo -> PS1="[\u@\h \W]\$ "
	#
	# Posiblemente cuando los uses solo el primero o el segundo , no veas problema alguno
	# Pero cuando intentes usar por ejemplo
	#
	# Primero -> PS1='[${CYAN}\u@\h ${NEGRITA_VERDE}\W]\$ ${SINCOLOR}'
	# Y te percates de que en la terminal , luce asi :
	#
	# [\[\033[0;36m\]inukaze@Inukaze \[\033[01;32m\]Linux]$ \[\033[00m\]
	#
	# La solucion es simplemente cambias las '' por "" , osea como en el segundo ejemplo
	# Te tenie que quedar asi
	# Segundo -> PS1="[${CYAN}\u@\h ${NEGRITA_VERDE}\W]\$ ${SINCOLOR}"
	#
	# Esto es debido a que colocar texto entre ' es para un entrecomillado fuerte y literal
	# de esta manera las variables no pueden cambiar su valor al establecido previamente.
	#
	# Al colocarlo entre " es un entrecomillado más pasivo y las varibles usan sus valores
	
	[ -z "$PS1" ] && return

	alias ls='ls -p --color=auto'
	
	# EJEMPLOS :
	# PS1='[\u@\h \W]\$ '
	# PS1="$NEGRITA_VERDE\u $AMARILLO[$ROJO\w$AMARILLO]$SINCOLOR "
	# PS1="$NEGRITA_VERDE\u $AMARILLO[$ROJO\w$AMARILLO] $NEGRITA_BLUE(\$(date +%H:%M:%S))$SINCOLOR: "
	# PS1="\n\e[1;37m[\e[0;32m\u\e[0;35m@\e[0;32m\h\e[1;37m]\e[1;37m[\e[0;31m\w\e[1;37m]\n$ \e[0m
	# PS1="\[\033[01;32m\]\D{%d-%m-%Y}@`(date +%I:%M%p)`\[\033[00m\]:\[\033[34m\]\w\[\033[00m\]\$ "
	# PS1="\n${SINCOLOR}${NEGRITA_AMARILLO}[Ubicacion Actual : \w]\n${CDU}${NEGRITA_GRIS}$(date +%d-%m-%Y)@$(date +%I:%M%p)\n${NEGRITA_VERDE}$ ${SINCOLOR}"
	# PS1="\n${SINCOLOR}${NEGRITA_AMARILLO}[Hora      : \@ ][Fecha : $(date +%d-%m-%Y) ]\n${NEGRITA_AZUL}[Usuario   : \u  ]\n${SINCOLOR}${NEGRITA_ROJO}[Ubicacion : \W ]${NEGRITA_VERDE}$ ${SINCOLOR}"
	# PS1="\n${SINCOLOR}${NEGRITA_AMARILLO}[Usuario   :   \u  ]${SINCOLOR}${NEGRITA_AZUL}\n[Hora      :  \@  ]\n[Fecha     : $(date +%d-%m-%Y) ]\n${NEGRITA_ROJO}[Ubicacion : \W ]\n${NEGRITA_VERDE}$ ${SINCOLOR}"
	# PS1="\n${SINCOLOR}[ ${NEGRITA_AMARILLO}\u ${SINCOLOR}${NEGRITA_AZUL}| $(date +%d-%m-%Y) | \@ ${SINCOLOR}]\n[${NEGRITA_ROJO}\W${SINCOLOR}]${NEGRITA_VERDE}$ ${SINCOLOR}"


		# Definiendo la variable de entorno PS1 :
		
		# Que yo uso actualmente
		PS1="\n${SINCOLOR}${NEGRITA_AMARILLO}[ \u ${SINCOLOR}${NEGRITA_AZUL}| $(date +%d-%m-%Y) | ${NEGRITA_ROJO}\@ ]${SINCOLOR}\n[\W]${NEGRITA_VERDE}$ ${SINCOLOR}"

		# El Predeterminado de ArchLinux, le cambie los '' por "" , debido a lo que explique más arriba.
		#PS1="[\u@\h \W]\$ "
		
		# NOTA : Puedes guardar este archivo como por ejemplo ~/pruebash
		# y al ejecutar una consola / terminal , o como quieras llamarlo
		# puedes usar el comando :
		#
		# $ source ~/pruebash
		#
		# Asi veras como luce , esto tomara el ultimo valor asignado a PS1
    }

    colores_en_terminal

	# Iniciar mejoras con NVIDIA (Privativo) :
	nvidia-settings --config==/home/inukaze/.nvidia-settings --load-config-only &>/dev/null ; \
	nvidia-settings --assign="SyncToVBlank=0" &>/dev/null ; \
	nvidia-settings --assign="GPUPowerMizerMode=1" &>/dev/null ; \
	nvidia-settings --assign="OpenGLImageSettings=3" &>/dev/null ; \
	nvidia-settings --assign="AllowFlipping=1" &>/dev/null ; \
	nvidia-settings -a InitialPixmapPlacement=2 &>/dev/null ; \
	nvidia-settings -a GlyphCache=1 &>/dev/null
	
	# Establecer mi idioma en el Sistema :
#	export LC_CTYPE=es_VE.UTF-8
#	export LC_MESSAGES=es_VE.UTF-8
#	export LC_ALL=es_VE.UTF-8

	# Establecer Puertos para Reproduccion Midi
	# Si Tienes Instalado y estas Usando " Timidity / Timidity++ " :
	export ALSA_OUTPUT_PORTS="128:0","128:1","128:2","128:3"

	# Correcion para Steam para que me deje de dar errores como :
	# Could not find required OpenGL entry point :
	# 'glColorMaskIndexedEXT'
	# 'GLGetError'!
	# 'glUseProgramStages'!
	# 
#HL2#	export PATH="/media/Compartido/Videojuegos/Gestor/Linux/Steam/Slackware64/home/bin/":$PATH 
#HL2#	export GAME_DEBUGGER="hl2debug"

	# Error de Python :
	#  Could not find platform independent libraries <prefix>
	#  Could not find platform dependent libraries <exec_prefix>
        #  Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
	#  ImportError: No module named site
	#
	# Rebusque :
#	  PATH=/usr/bin:$PATH
	  #export PYTHONPATH=/usr/lib64/python2.7/
	  #export PYTHONHOME=/usr/bin/python
#	export PROMPT_COMMAND='printf "\033]0;%s@%s:%s\007" "${USER}" "${HOSTNAME%%.*}" "${PWD/#$HOME/~}"'
	export PROMPT_COMMAND='printf "\033]0;%s@%s: %s\007" "${USER}" "${HOSTNAME%%.*}" "${PWD/*\//}"'

#Activar "ccache" (para compilar mas rapido algunas cosas como retroarch)
export PATH=/usr/lib/ccache/:$PATH


#VirtualBOX : Acceso a Disco Duro Real y Las Particiones "Slacks"
#cd "$HOME"
#rm -rf "$HOME/Compartido.vmdk"
#Compartido=$(blkid | grep "Compartido" | awk '{print$01}' | sed 's/\/*:$//')
#echo "Particion Compartido=$Compartido"
#DDCompartido=$(echo "$Compartido" | sed 's/[0-9]*//g')
#VBoxManage internalcommands createrawvmdk -filename Compartido.vmdk -rawdisk $DDCompartido

#MIDI :
export ALSA_OUTPUT_PORTS="128:0","128:1","128:2","128:3"
MIDI=$(ps -A | egrep 'fluidsynth|timidity')
if [ -z "MIDI" ]; then
	timidity1=$(timidity -iA -B5,10 -Os1l -s 44100 -Oe &> /dev/null &)
	eval "$timidity1"
	MIDI=$(ps -A | egrep 'fluidsynth|timidity' | awk '{print $4}')
	if [ "$MIDI" = "timidity" ]; then
	    #echo 'Sintetizador MIDI en uso : Timidity'
	    echo
	fi
fi

export PULSE_LATENCY_MSEC=60
export SDL_AUDIODRIVER=alsa

#Solucion para archivos que crecen exponencialmente sin limitaciones :
##XSE=$(du -h "$HOME/.xsession-errors" | awk '{print $1}')
##if [ $XSE -gt 1024 ] ; then
##	rm -rf "$HOME/.xsession-errors"
##	touch "$HOME/.xsession-errors"
##	echo '' | tee "$HOME/.xsession-errors"
##fi
Well the thing is when i start any videogame (Native or using a compatibility layer like Wine Is Not Emulator) or Emulator needs use ALSA in the terminal output when i saw :
Code:
ALSA lib pcm.c:8306:(snd_pcm_recover) underrun occurred
My pc suffer a slowdown, on any distribution [I am distro hopper, and i had test this in the last 3 years, and ever happen when i use PulseAudio], not matter if i playing something like Solitarie, Minesweeper, or any game really don't requiere too much hardware for a nice gameplay

Ever is the same on : ArchLinux, ArtixLinux, Debian, Devuan, Deepin, Ubuntu, Manjaro, Fedora, Slackware 14.2, Slackware64 14.2, KaOS, KDE Neon, GoboLinux, SorcererLinux, Gentoo.


Well for example with "Urban Terror 4.3" (With Quake 1 / 2 / 3 its the same, really with any videogame) you can saw this video the error is produced near the end of video, and is aprox of 5 mins of duration

Here The Video :
https://dai.ly/x7oj5by

Well i think the follow right now :
1 - Edit the configurations file of Pulseaudio : default.pa & daemon.conf for setup for the minimal consume of resources


2 - Purge of my system the 2 things make my distros slowpokes : PulseAudio & Avahi, and use something like "Jack(D)" well i don't have idea how i must setup for a general propuse use of desktop pc like mine..

Because the problem with purge Pulseaudio, and don't know how setup Jack(D) correctly, just let me with alsa, and with alsa i had the issue, if i start any software need use the audio system.

For example : Web Browser, just the web browser can use the audio system, and if want for example open audacious for hear music, with alsa, the audio on audacious can't be played, because the web browser already had the device busy.


Someone can tell me how i can :
1 - Configure Pulseaudio for the minimum consume of resources

2 - If i decide purge Pulseaudio, which viable alternative let me multiple software use the audio system ?
Jack / Jack2 / JackD (I Really don't know the right name) , RoarAudio, etc . . .

And my last dunno :
ALSA really can't do something equal or similar to pulseaudio to let softwares, use the sound system ? or i need make a configurations for that

Last edited by inukaze; 11-27-2019 at 09:27 AM.
 
Old 11-27-2019, 09:30 AM   #2
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,240

Rep: Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322
If you don't want Pulseaudio and you're a distro hopper, try the i3 spin of Manjaro. It's set up without Pulseaudio.

You don't need Pulseaudio for your system to play multiple sounds at once. That works in ALSA. DO NOT make a "configuraton"; just use the default settings.
 
Old 11-28-2019, 06:17 AM   #3
inukaze
Member
 
Registered: Feb 2011
Location: Venezuela - Caracas
Distribution: Slackware64 14.2, Slackware 14.2, Gentoo, Devuan, gNewSense, GoboLinux, Leeenux, Porteus
Posts: 286

Original Poster
Rep: Reputation: 26
Ok, i go to test "i3 spin manjaro" but in another distros (every distro came with own pre-configurations) and alsa not support output from multiple programs at once by default, because of that i am asking. if someone know if possible configure alsa for that.
 
Old 11-28-2019, 08:48 AM   #4
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,240

Rep: Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322
Quote:
Originally Posted by inukaze View Post
alsa not support output from multiple programs at once by default, because of that i am asking. if someone know if possible configure alsa for that.
ALSA absolutely does support output from multiple programs at once by default. It is configured that way out of the box.

Your information is at least a decade out of date.

Last edited by dugan; 11-28-2019 at 08:54 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Power Performance of Pulseaudio + Alsa with Disabled Period Wakeups (IRQ-less) LXer Syndicated Linux News 0 04-17-2011 12:03 AM
[SOLVED] Squeeze + Pulseaudio + Alsa and USB Midi device causes Pulseaudio crash mad4linux Debian 1 01-26-2011 03:57 AM
Best way to record console videogames to a computer? Ryzol Linux - Newbie 2 12-16-2007 07:44 AM
Gotta love those &#1649;&#1649;&#1649;&#1649;&#1649;&#1649;&#1649;&# iLLuSionZ Linux - General 5 11-18-2003 07:14 AM
Videogames, what would YOURS be like? kidashy General 14 11-09-2003 08:29 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 12:05 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration