How to programatically launch Microphone Volume control panel in Windows Vista? - audio

I want to let the user adjust the Mic volume. Rather than reinventing the wheel, we (in XP) would just launch the Volume control panel (by running sndvol32.exe).
You can bring up the Speaker Volume control in Win Vista by shelling out to :
SndVol.exe
In XP you could specify a command line parameter -R to show Microphone volume.
Anyone know what the command line parameter is for SndVol.exe to show Mic volume for Windows Vista?
Or some other way to display the Mic volume control panel?

I think what you want is "control.exe mmsys.cpl,,1"
If you want to access the Mixer and
the other functions, you can use these
shortcuts: • Master Volume Left:
SndVol.exe -f 0 • Master Volume
Right: SndVol.exe -f 49825268 •
Volume Mixer Left: SndVol.exe -r 0
• Volume Mixer Right: SndVol.exe -r
49490633 • Playback Devices:
control.exe mmsys.cpl,,0 •
Recording Devices: control.exe
mmsys.cpl,,1 • Sounds: control.exe
mmsys.cpl,,2
From http://www.errorforum.com/microsoft-windows-vista-error/4636-vista-tips-tricks-tweaks.html

I'm a little confused by your question. This brings up the Recording window for me (ref):
sndvol32 -record
Are you trying to hide all mixers but one?

Related

xrandr two screens different resolution without invisible area

Update: the problem has fixed itself. It must have happened with an update of xrandr, Xorg, nvidia or intel gpu drivers, or anything else related, but it works fine again! It wasn't my fault after all...
My laptop has a 4K (3840x2160) screen (dual gpu, nvidia-prime) and sometimes I want to connect my Full HD TV on the HDMI port to watch a video. I prefer the TV not to mirror my 4K screen.
So I start arandr and enable the HDMI input.
On my previous installation of this laptop (Linux Arch), my 4K screen then became limited to 1920x1080, so 3/4 of the screen was unusable, even if not mirrored, but I would then just use mirror to watch the video which was limited to the 1/4 of the 4K screen, being the complete TV.
On my new installation of this laptop (again, Linux Arch), my desktop seems to resize to 5760x2160, which make the TV only show the upper half of the screen, and showing videos incorrectly because the video application thinks my screen is 1920x2160.
So none of the situations were exactly what I wanted.
I want it to work like it would work in Windows (or like my Arch installation on my desktop pc where I have a full HD screen on the left and a 1:1 2K screen on the right, it works perfectly fine there): one 4K screen on the left, one Full HD screen on the right, mouse can't pass the lower part of the screen from left to right, so the desktop is 3840x2160 on the left, 1920x1080 on the right, and the right screen has the same upper edge so the mouse stays on top when I go to the right screen.
As I am trying to automate this, I would like this to work with xrandr (I've already written an udev script which works), but even with xrandr, I don't seem to be able to set the parameters correctly.
I've tried so many things, but I seem to misunderstand the options or something, because whatever I try, it's not working as I expect it.
The simplest thing I tried was just: xrandr --output HDMI-1-0 --auto --right-of eDP-1 --mode 1920x1080 --pos 3840x0. I've tried to add --fb 1920x1080. It doesn't seem to work.
Can anyone help me understand it, maybe even help me configure it?
Edit: I don't know if it's important, but I use i3.
Edit: If I change the resolution of the 4K screen to 1920x1080, mirroring works perfectly. That's the only usable way, but it's still not what I want.
Edit: this is so strange, I just did xrandr --output eDP-1 --auto --output HDMI-1-0 --auto --right-of eDP-1 and my tv now shows an empty desktop, but my mouse is limited to the 4K screen and when I'm in the upper left area, the mouse shows up on the TV also... so it feels like the TV shows a part right of the 4K screen, but the mouse is on the left top part.
Edit: another thing I tried doesn't work: xrandr --output eDP-1 --mode 3840x2160 --fb 3840x2160 --output HDMI-1-0 --mode 1920x1080 --fb 1920x1080 --right-of eDP-1 xrandr: specified screen 1920x1080 not large enough for output eDP-1 (3840x2160+0+0) xrandr: specified screen 1920x1080 not large enough for output HDMI-1-0 (1920x1080+3840+0)
Have you tried tools like arandr ? They help you configure this kind of things visually, with menus and drop-down lists for various parameters.
Link: https://christian.amsuess.com/tools/arandr/
In arandr you can save layout as a simple sh script (Layout->Save As or blue icon). Make it executable (chmod +x) and run like any other script.
The problem has solved itself with updates, be it in xrandr, Xorg, nvidia, intel, ...
The same xrandr commands that didn't work then, work perfectly fine now.

Android Studio start view resolution problem in Ubuntu

I am using Ubuntu 20.04 on an FHD monitor with 1920x1080 resolution but I am getting this type of Android Studio start view. It's not properly adjusting the content within the screen.
If I try to resize the view, I get this.
You should access System Settings -> Display. There you'll see a Resolution drop-down menu. Just click on it and check the resolution you desire, like 1600x900. Then, just click Apply and you should see the changes.
I was having the same issue with my Android-Studio on my Ubuntu 20.04.
I was able to fix it by changing the dpi settings in ~/.Xresources file from 180 to 96.
Xft.dpi: 96
Xft.antialias: true
Xft.hinting: true
Xft.rgba: rgb
Xft.autohint: true
Xft.hintstyle: hintfull
Xft.lcdfilter: lcdfilter
Make sure to reboot your machine after the changes.

android studio device profile

I'm trying to set up ADB on a 1080 x 1920 pixel (a ZTE Blade X Max aka Z983) my display at runtime is cropping right & bottom. Looking for more info on how to define device correctly.
Currently have "Generic Phones and Tablets" definition set up for it.
Where are the definition files and how can I edit (and add) ADB profiles?
ADB not the problem, device runtime display size adjustment needed in code??? Found Settings-Display-Display Size in my Android... "Small" is all the pixels. I had "Default" which reduced the visible area, there was also "Large" with even less viewable.
End result --- ADB is max displayable, or "Small". Using alternate "Device for Preview" in editor for "Default" Android setting of fewer pixels

How can I disable Chrome opening the Windows on-screen keyboard when debugging as iPad?

When I open the Chrome debug view and set the device to "iPad Mini" to simulate its screen size (and touch events), interacting with a text input causes the Windows on-screen keyboard to open.
This computer is not a tablet, and has never had a touch screen. In the Windows Ease of Access -> Keyboard settings Turns on the On-Screen Keyboard is off.
I can only assume that Chrome "simulating" an iPad Mini is causing Windows to think there's a touchscreen. I've been using this feature for a few months now, and the keyboard opening only started happening recently. I may have simply flipped a switch in the settings (of Chrome or Windows) on accident. If that's the case, I'd like to know how to flip it back!
This is frustrating because I have to close the keyboard each time as it covers up a large portion of the web-app.
The same page without the "iPad Mini" simulation does not open the keyboard:
(This keyboard also opens when choosing any device that has a touch screen, not just iPad Mini.)
Chrome doesn't emulate the keyboards of the device profiles you pick. An image of a keyboard will show for certain ones, like the iPhone 5X, but it is non-functional and is just present to allow you to see how the various elements on the page respond to the keyboard. You can see my answer here for more details on viewing that. However, this is not the same keyboard you are seeing.
It looks as though there is something in Windows, which is triggering the on-screen keyboard. I'm not sure why it would still appear if you have it disabled, but you could try a couple of things, based on what I've found online:
Make sure 'Touch Keyboard and Handwriting Panel Service' is set to disabled in Services (services.msc)
SetLOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Authentication\LogonUI\ ShowTabletKeyboard from value 1 to 0 (regedit.exe)
Check there is no other 3rd party software running, which may affect your keyboard behaviour.

Virtual buttons not appearing on emulated Android 4.2 system

I have created an Android 4.2 AVD. For the need of my current project, the main screen orientation is landscape. The software keys option is selected.
The mode is set to xhdpi, like a Galaxy Nexus phone.
As I start the emulator, I see a black stripe on the right where the buttons should appear, but it remains black. Thus, there is no way to trigger a Back action since the emulated physical keys are disabled.
The problem can be fixed by configuring the emulator in portrait mode then rotate it once started; the buttons appear as expected. This causes problems since the window is automatically scaled down to fit on my monitor; I did not find any shortcut to restore 1:1 scaling at runtime, after the rotation is done. This is important since I would like to see pixel-perfect results.
I am using SDK version 21 and platform-tools version 16.0.2, as updated yesterday.
Found the solution myself... this is a workaround that allows getting 1:1 scale and the software buttons working.
Leave the AVD (Galaxy Nexus or cloned from it) on portrait mode.
Run the emulator from the command line, using the -scale 1 option; this is the magic that forces 1:1 pixel perfect ratio even if the window does not fit in screen at startup. By default, automatic downsizing happens to fit the monitor.
Rotate the display using Ctrl+F11 or Ctrl+F12 to get landscape mode.

Resources