Page 1 of 1

T43 speaker volume: how to change with command line options?

Posted: Wed Jun 08, 2011 2:33 pm
by Peter8049
How can I reduce or increase the speaker volume of my T43 by using the command line? Obviously, the keyboard knobs modify the volume independently from the 'sounds and audio devices properties' of the control panel.
Only the mute function seems to work for both methods. While the sound volume on the control panel is set to the maximum, the keyboard knobs currently only show two green bars - and this setting clearly controls the speaker volume.

Peter

Re: T43 speaker volume: how to change with command line options?

Posted: Wed Jun 08, 2011 3:00 pm
by hunterman223
NirCmd can do it. See here: http://www.nirsoft.net/utils/nircmd.html

Code: Select all

Increase the system volume by 2000 units (out of 65535)	 nircmd.exe changesysvolume 2000
Decrease the system volume by 5000 units (out of 65535)	 nircmd.exe changesysvolume -5000
Set the volume to the highest value	 nircmd.exe setsysvolume 65535
Mute the system volume	 nircmd.exe mutesysvolume 1
Unmute the system volume	 nircmd.exe mutesysvolume 0
Switch the system volume between the mute and normal state.	 nircmd.exe mutesysvolume 2
Create a shortcut on your desktop that switch the system volume between the mute and normal state.	 nircmd.exe cmdshortcut "~$folder.desktop$" "Switch Volume" mutesysvolume 2

Re: T43 speaker volume: how to change with command line options?

Posted: Thu Jun 09, 2011 2:12 am
by Peter8049
Thanks for your reply. I had already tested NirCmd. Unfortunately, NirCmd does not influence the volume settings of the Thinkpad which you can see onscreen (about 14 green bars), with the exception of mute/unmute. Therefore, e.g., if you have set the speaker volume to 3 bars using the keyboard knobs and you apply 'nircmd.exe changesysvolume 20000', the onscreen display will still show 3 bars! It looks like the keyboard control sits over the control panel loudness.
How can I modify the keyboard controlled speaker loudness with NirCmd or another command?

Currently, I've set the control panel loudness (on which NirCmd works) to the maximum and I then reduce or increase the actually desired speaker volume with the keyboard knobs.

Peter

Re: T43 speaker volume: how to change with command line options?

Posted: Thu Jun 09, 2011 4:02 am
by Colonel O'Neill
You might want to update all of your drivers on that T43; the green bar indicators were changed quite a while ago.

Re: T43 speaker volume: how to change with command line options?

Posted: Thu Jun 09, 2011 5:03 am
by Peter8049
It's certainly a good idea to update the drivers. But the installation of the newest Hotkey Features Integration driver version 3.4 did not change the basic behavior described above. The only difference to the old driver is that I now have a black and white slider with numbered levels instead of the green bars! Unfortunately, even the slider is not controlled by NirCmd.

Peter

Re: T43 speaker volume: how to change with command line options?

Posted: Thu Jun 09, 2011 5:27 am
by Colonel O'Neill
The NirCmd commands work fine for me... Maybe it's because you're running XP?

Re: T43 speaker volume: how to change with command line options?

Posted: Thu Jun 09, 2011 6:05 am
by Peter8049
Yes, still on XP. When you are running the NirCmd command and e.g. reduce the speaker volume, can you then see the slider moved to the left and the level adjusted like you had used the keyboard knob?
Under my configuration, the actual sound level is also decreased but without changing the slider position and values!

Peter

Re: T43 speaker volume: how to change with command line options?

Posted: Thu Jun 09, 2011 7:14 am
by Colonel O'Neill
Yeah the slider appears. It just appears as the new value; no animating, and doesn't show the original value.

Further volume changes using either the knobs or using NirCmd again change the volume as expected.

Re: T43 speaker volume: how to change with command line options?

Posted: Thu Jun 09, 2011 3:44 pm
by Peter8049
That's definitely different from my observation: I only get the black and white onscreen slider when I use the 'nircmd.exe mutesysvolume 0/1' command. All other nircmd volume commands have no visible effect. For the moment, I can only think of XP.

Peter

Re: T43 speaker volume: how to change with command line options?

Posted: Thu Jun 09, 2011 4:52 pm
by Colonel O'Neill
That, or it's a Conexant vs SoundMax drivers thing.
Or, it could be that I'm running SRS HD Audio Labs, which appears as a seperate audio device to Windows.