On Tue, 17 Sep 2013 17:32:50 +0100, Klaus wrote: > On 17/09/13 16:36, Hendrik Boom wrote: >> >> How *do* you do it? >> >> -- hendrik >> >> > Just learned something over on Lisi's thread :-) > On my system I get this: > > > $ amixer -c 0 contents | grep -A3 -i "Headphone Playback Switch" > > numid=2,iface=MIXER,name='Headphone Playback Switch' > ; type=BOOLEAN,access=rw------,values=2 : values=on,on
I just tried it and got similar results: hendrik@notlookedfor:~$ amixer -c 0 contents numid=15,iface=CARD,name='Headphone Jack' ; type=BOOLEAN,access=r-------,values=1 : values=off numid=14,iface=CARD,name='Internal Mic Phantom Jack' ; type=BOOLEAN,access=r-------,values=1 : values=on numid=13,iface=CARD,name='Mic Jack' ; type=BOOLEAN,access=r-------,values=1 : values=off numid=16,iface=CARD,name='Speaker Phantom Jack' ; type=BOOLEAN,access=r-------,values=1 : values=on numid=12,iface=MIXER,name='Master Playback Switch' ; type=BOOLEAN,access=rw------,values=1 : values=on numid=11,iface=MIXER,name='Master Playback Volume' ; type=INTEGER,access=rw---R--,values=1,min=0,max=64,step=0 : values=64 | dBscale-min=-64.00dB,step=1.00dB,mute=0 numid=2,iface=MIXER,name='Headphone Playback Switch' ; type=BOOLEAN,access=rw------,values=2 : values=on,on numid=1,iface=MIXER,name='Headphone Playback Volume' ; type=INTEGER,access=rw---R--,values=2,min=0,max=64,step=0 : values=63,63 | dBscale-min=-63.00dB,step=1.00dB,mute=0 numid=21,iface=MIXER,name='PCM Playback Volume' ; type=INTEGER,access=rw---RW-,values=2,min=0,max=255,step=0 : values=255,255 | dBscale-min=-51.00dB,step=0.20dB,mute=0 numid=10,iface=MIXER,name='Mic Boost Volume' ; type=INTEGER,access=rw---R--,values=2,min=0,max=3,step=0 : values=1,1 | dBscale-min=0.00dB,step=10.00dB,mute=0 numid=6,iface=MIXER,name='Mic Playback Switch' ; type=BOOLEAN,access=rw------,values=2 : values=off,off numid=5,iface=MIXER,name='Mic Playback Volume' ; type=INTEGER,access=rw---R--,values=2,min=0,max=31,step=0 : values=0,0 | dBscale-min=-34.50dB,step=1.50dB,mute=0 numid=9,iface=MIXER,name='Capture Switch' ; type=BOOLEAN,access=rw------,values=2 : values=off,off numid=8,iface=MIXER,name='Capture Volume' ; type=INTEGER,access=rw---R--,values=2,min=0,max=46,step=0 : values=0,0 | dBscale-min=-17.00dB,step=1.00dB,mute=0 numid=7,iface=MIXER,name='Auto-Mute Mode' ; type=ENUMERATED,access=rw------,values=1,items=2 ; Item #0 'Disabled' ; Item #1 'Enabled' : values=1 numid=18,iface=MIXER,name='Beep Playback Switch' ; type=BOOLEAN,access=rw------,values=2 : values=off,off numid=17,iface=MIXER,name='Beep Playback Volume' ; type=INTEGER,access=rw---R--,values=2,min=0,max=31,step=0 : values=0,0 | dBscale-min=-34.50dB,step=1.50dB,mute=0 numid=22,iface=MIXER,name='Digital Capture Volume' ; type=INTEGER,access=rw---RW-,values=2,min=0,max=120,step=0 : values=60,60 | dBscale-min=-30.00dB,step=0.50dB,mute=0 numid=4,iface=MIXER,name='Speaker Playback Switch' ; type=BOOLEAN,access=rw------,values=2 : values=on,on numid=3,iface=MIXER,name='Speaker Playback Volume' ; type=INTEGER,access=rw---R--,values=2,min=0,max=64,step=0 : values=64,64 | dBscale-min=-63.00dB,step=1.00dB,mute=0 numid=20,iface=PCM,name='Capture Channel Map' ; type=INTEGER,access=r----R--,values=2,min=0,max=36,step=0 : values=0,0 | | unk-257-0x00000003,0x00000004, numid=19,iface=PCM,name='Playback Channel Map' ; type=INTEGER,access=r----R--,values=2,min=0,max=36,step=0 : values=0,0 | | unk-257-0x00000003,0x00000004, > > and now I can switch the headphone on or off by > > $ amixer -c 0 cset numid=2 off,off > > numid=2,iface=MIXER,name='Headphone Playback Switch' > ; type=BOOLEAN,access=rw------,values=2 : values=off,off > > $ amixer -c 0 cset numid=2 on,on > > numid=2,iface=MIXER,name='Headphone Playback Switch' > ; type=BOOLEAN,access=rw------,values=2 : values=on,on > I seem to have the same numerical ID as you for headphone playback. Try setting the headphone playback on, as you did, though I suspect it won't have much effect, since it's already on. hendrik@notlookedfor:~$ amixer -c 0 cset numid=2 on,on numid=2,iface=MIXER,name='Headphone Playback Switch' ; type=BOOLEAN,access=rw------,values=2 : values=on,on hendrik@notlookedfor:~$ and it indeed did not have much effect. But there's another headphone item on the list: hendrik@notlookedfor:~$ amixer -c 0 contents | grep Head numid=15,iface=CARD,name='Headphone Jack' numid=2,iface=MIXER,name='Headphone Playback Switch' numid=1,iface=MIXER,name='Headphone Playback Volume' hendrik@notlookedfor:~$ amixer -c 0 cset numid=15 on,on and it's off. Replacing the numid in the above comment hendrik@notlookedfor:~$ amixer -c 0 cset numid=15 on,on amixer: Control hw:0 element write error: Operation not permitted it doesn't work, perhaps because it was set to 'off' instead of 'off, off'. Trying again with just one 'off': hendrik@notlookedfor:~$ amixer -c 0 cset numid=15 on amixer: Control hw:0 element write error: Operation not permitted hendrik@notlookedfor:~$ still no luck. Doing this as superuser made no difference. -- hendrik > > NB. > For some strange (to me) reason, when I use "off,off" in the above line, > the "Master Playback" is also muted (and has to be un-muted to make > either speaker or headphone work. -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/l1aaf5$unl$1...@ger.gmane.org