Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Fri 23 Feb 2018, 14:42
All times are UTC - 4
 Forum index » Advanced Topics » Hardware » Audio
Can't get all audio controls from amixer in .xinitrc
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [1 Post]  
Author Message

Joined: 08 Jul 2014
Posts: 212

PostPosted: Mon 20 Nov 2017, 08:33    Post subject:  Can't get all audio controls from amixer in .xinitrc  

Using Xenialpup64 CE

I have been bringing up kodi in .xinitrc

Kodi Audio Mixer Addon is not showing all the audio mixer controls.

I put "amixer -d controls>/root/testsound.txt" before calling kodi to test the sound mixer controls.

Testsound.txt results:
numid=1,iface=CARD,name='HDMI/DP,pcm=3 Jack'
numid=2,iface=MIXER,name='IEC958 Playback Con Mask'
numid=3,iface=MIXER,name='IEC958 Playback Pro Mask'
numid=4,iface=MIXER,name='IEC958 Playback Default'
numid=5,iface=MIXER,name='IEC958 Playback Switch'
numid=7,iface=PCM,name='Playback Channel Map',device=3

It's not showing all my audio cards like hdmi & analog.

It definitely not showing all of my audio mixer controls.

After kodi exits, the desktop comes up, then amixer works perfectly.

Here is my .xinitrc script:

# $Xorg: xinitrc.cpp,v 1.3 2000/08/17 19:54:30 cpqbld Exp $
#120718 redesign for startup on slow computers. see also /sbin/pup_event_frontend_d and delayedrun.
#130202 xrandr set vert freq. see also /usr/sbin/quicksetup.
#130212 removed glipper code, see latest glipper pet.
#130525 old pc celeron 2ghz cpu, 256mb ram, CPUSPEED=1999, 1st bootup rox failed to start. try experiment.

# chmod -R 777 /root/.kodi # limit the access permissions to yourself and your group
# chattr -R -i /root/.kodi

amixer -d controls>/root/testsound.txt



xmodmap ~/.kodi-xmodmap

mv /root/.kodi /root/kodi
mkdir /root/.kodi
cp -R /root/kodi/* /root/.kodi/
rm -R /root/kodi/
cp -f /usr/share/doc/Kodipup/index.html /usr/share/doc/index.html

xli -onroot -fillscreen -border black /root/.kodi-pictures/theater.jpg

/usr/lib/gtkdialog/box_splash -placement center -close never -bg white -fontsize large -text "Waiting for internet connection. Please wait." &  ppPID=$!
timeout -t 12 bash -c 'until nc -z 53; do sleep 1; done'
kill $ppPID

kodi -standalone


#Restore ALSA volume settings:
alsactl restore -f /root/.config/alsa/asound.state

[ -f /etc/desktop_app ] && read -r desktop < /etc/desktop_app
[ "$desktop" = "" ] && desktop=rox

. /etc/rc.d/PUPSTATE

#v4.01 BK daemon to handle kernel uevents...
/sbin/clean_desk_icons #v4.02 tidy up drive icons first.
#/sbin/pup_event_frontend_d &
#130525 ...start this further down.

#w482 reshape background image if widescreen...
#120708 need to reshape for PUPMODE=2 also...
#[ $PUPMODE -eq 5 ] && /usr/sbin/background_reshape
[ -f /usr/share/backgrounds_original/ORIGINAL-default.jpg ] && NEEDRESHAPE='no'
[ -f /usr/share/backgrounds_original/ORIGINAL-default.png ] && NEEDRESHAPE='no'
[ "$NEEDRESHAPE" = "yes" ] && /usr/sbin/background_reshape


# merge in defaults and keymaps

if [ -f $sysresources ]; then
    xrdb -merge -nocpp $sysresources

if [ -f $sysmodmap ]; then
    xmodmap $sysmodmap

if [ -f $userresources ]; then
    xrdb -merge -nocpp $userresources

if [ -f $usermodmap ]; then
    xmodmap $usermodmap

CURRENTWM="`cat /etc/windowmanager`"
if [ "$CURRENTWM" = "startkde" ];then
 /sbin/pup_event_frontend_d & #130525
 exec startkde

#100501 if full nvidia pkg installed, it has a gui config app...
[ -f /root/.nvidia-settings-rc ] && nvidia-settings --load-config-only

[ -f $HOME/.xgamma-gamma ] && /bin/sh $HOME/.xgamma-gamma #100215 see /usr/sbin/xgamma-gui.

#0.9.8 sync selection-buffer and clipboard. only useful for older apps
#such as rxvt that use the selection-buffer...
[ -f /usr/bin/autocutsel ] && /usr/bin/autocutsel &
#...disadvantage of this is it creates a little square bottom-right of screen.

if [ -e /tmp/videomode ];then #xvesa only: testing a video mode
 video-wizard &

[ -f /usr/local/bin/agenda_chk ] && agenda_chk &

#v1.0.7 set by xrandrshell, part of xorg wizard... v3.99...
if [ -f /etc/xrandrindex ];then
  #v3.99 workround for dual monitors, 'head -n 1'....
  XRANDRDEFAULT="$(xrandr -q | grep '\*' | tr -s ' ' | grep '^ [0-9]' | cut -f 2,3 -d ' ' | cut -f 1 -d '*' | tr ' ' '@' | head -n 1)" #130202 return 1024x768@60.0
  XRANDRINDEX="`cat /etc/xrandrindex`" #v3.99 XRANDRINDEX now is XxY resolution. #130202 now vertxhoriz@freq (refer quicksetup).
  #but do not switch if default is already this resolution....
   rm -f /etc/xrandrindex
   echo "$XRANDRINDEX"|grep -q "@"
   case $? in
    xrandr -s $NEW_XY #131124 (see quicksetup)
    *)NEW_XY="$(echo -n "$XRANDRINDEX" | cut -f 1 -d '@')" #130202
    NEW_VFREQ="$(echo -n "$XRANDRINDEX" | cut -f 2 -d '@')" #130202
    xrandr -s $NEW_XY -r $NEW_VFREQ #130202

if [ -f /root/.xset.sh ];then
 #this is created by /usr/bin/pupx...
 eval "/root/.xset.sh"
 ##Xorg has it's own fontpath settings in /etc/X11/xorg.conf...
 #if [ "`readlink /usr/bin/X`" != "Xorg" ];then
 # #xset fp+ /usr/lib/X11/fonts/Type1/
 # #xset fp+ /usr/lib/X11/fonts/TTF/
 # xset fp+ /usr/share/fonts/default/Type1/
 # xset fp+ /usr/share/fonts/default/TTF/
 xset s 600 600 s blank

#v1.0.7 also see /etc/rc.d/rc.local0
if [ -f /root/.fonts/fonts.dir ];then
 xset fp+ /root/.fonts/

[ -f /usr/bin/xsetroot ] && xsetroot -cursor_name top_left_arrow

#relocates right-side icons to actual right-side of screen...
/usr/sbin/fixPuppyPin /root/Choices/ROX-Filer/PuppyPin #v1.0.7

#w468 on old PCs rox sometimes does not start, see further down...
#120718 raspi sometimes need extra delay otherwise rox fails to start.
CPUSPEED=`grep -m 1 -i '^cpu MHz' /proc/cpuinfo | tr -d ' ' | cut -f 2 -d ':' | cut -f 1 -d '.'` #my laptop: 933.000
[ ! $CPUSPEED ] && CPUSPEED=`grep -m 1 -i '^bogomips' /proc/cpuinfo | tr -d ' ' | cut -f 2 -d ':' | cut -f 1 -d '.'` #120718 raspi: 697.95  my laptop: 4789.47
[ $CPUSPEED -lt 700 ] && sleep 0.5
[ $CPUSPEED -lt 400 ] && sleep 0.5

case $desktop in
 pcmanfm) pcmanfm --desktop & ;;
   if [ -f /root/Choices/ROX-Filer/PuppyPan1 ];then
      roxfiler -p /root/Choices/ROX-Filer/PuppyPin -r /root/Choices/ROX-Filer/PuppyPan1
      roxfiler -p /root/Choices/ROX-Filer/PuppyPin

/sbin/pup_event_frontend_d & #130525 moved down.

/usr/sbin/delayedrun &

#v2.01 hide cursor when not moving... (setup in /usr/sbin/input-wizard)
if [ -f /etc/mousehide ];then
 IDLETIME="`cat /etc/mousehide | cut -f 1 -d ','`"
 [ ! "$IDLETIME" = "0" ] && unclutter -idle $IDLETIME &

##v2.14 rarsa: update xdg menu for w.m. that do not allow includes...
#which ${CURRENTWM}_menu_refresh && ${CURRENTWM}_menu_refresh
#...no, now doing it differently, see /usr/sbin/fixmenus

if [ "$CURRENTWM" = "xfwm4" ];then
 if [ "`which xfce4-panel`" != "" ];then
  xfwm4 --daemon #note, starts xfce-mcs-manager daemon also.
  exec xfce4-panel

#v3.91 volume tray applet, thanks to hairywill...
[ -f /usr/bin/absvolume ] && absvolume &

#v3.95 support fbpanel tray/taskbar...
#only launch tray for w.m. without inbuilt tray...
if [ "$CURRENTWM" != "jwm" -a "$CURRENTWM" != "icewm" ];then
 if [ -f /usr/bin/fbpanel ];then
  #a bit of a hack: when 3builddistro runs fixmenus, which calls variconlinks,
  #which populates /var/local/icons with symlinks, /usr/local/lib/X11/pixmaps
  #is not yet populated (happens at first boot, from default icon theme)...
  [ ! -e /var/local/icons/home48.png ] && ln -fs /usr/local/lib/X11/pixmaps/* /var/local/icons/
  fbpanel &
 [ "$desktop" = "rox" ] && [ -f /usr/bin/lxpanel ] && lxpanel &

# enable xorg mousekeys
# they should be enabled by default somewhere in /etc/X11/xkb
# but who knows
setxkbmap -option keypad:pointerkeys

[ -x $CURRENTWM ] && exec $CURRENTWM
[ "$desktop" = "rox" ] && exec jwm


Why would amixer not work, before calling up kodi in .xinitrc?

But when the desktop comes up, amixer works perfectly.

What can I do to fix it?
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [1 Post]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Hardware » Audio
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum

Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0593s ][ Queries: 14 (0.0078s) ][ GZIP on ]