Two External Touchscreens, but Touch Controls the Laptop Screen
An external touchscreen has two entirely separate paths, one for video and one for touch data. Having a picture does not mean touch data is getting through, and receiving touch data does not mean Windows knows which display it belongs to.
1-minute summary
- Symptom / problem
- With two touch monitors connected, both touch inputs control the laptop's built-in screen
- Who should read
- People using several external touch monitors with Windows
- Fix in short
- Tell cable, driver and digitizer issues apart with PowerShell, then map in Tablet PC Settings, and remap after moving a USB port
I bought two portable touchscreen monitors to connect to my laptop, both the same model. The first had a picture when I plugged it in, but touch did not work. Once I fixed that and connected the second, touching either screen moved the cursor on the laptop's built-in display. Then three days later, touch worked on only one screen. These three symptoms looked similar, but each had a completely different cause, and none was fixed by installing a driver. I wrote down how I told them apart.
I have removed the monitor brand, computer name, and full device IDs, keeping only the values needed for diagnosis.
What I had connected
The computer is a Windows 11 gaming laptop with a 15.6-inch built-in display, scaled to 125%, so Windows reports its size as 1536x864. The external displays are two 16-inch 1080p portable touchscreens of the same model. Their EDID names are identical too, which would become a problem later.
One detail caused some confusion for a while: when describing the symptoms, I counted 3 displays, and by "the first display" I meant the built-in screen, not an external one. When troubleshooting multiple displays, match the panel names from EDID to the DISPLAY numbers first, or you may end up fixing the wrong screen.
Case one: video and audio, but no touch
I connected the first monitor with a single USB-C cable to a port on the back of the laptop. Video and audio both worked, but touching the screen did nothing. My first question was whether I needed to install a touch driver. Before looking for one, I checked what Windows could see.
# 1) Windows คิดว่าเครื่องนี้มีทัชไหม
Add-Type -Namespace Native -Name User32 -MemberDefinition @'
[DllImport("user32.dll")] public static extern int GetSystemMetrics(int nIndex);
'@
$dig = [Native.User32]::GetSystemMetrics(94) # SM_DIGITIZER
$pts = [Native.User32]::GetSystemMetrics(95) # SM_MAXIMUMTOUCHES
'SM_DIGITIZER = 0x{0:X2} จุดสัมผัสสูงสุด = {1}' -f $dig, $pts
# 2) มีอุปกรณ์ touch screen ไหม รวมตัวที่เคยเสียบแต่ตอนนี้ไม่อยู่
Get-PnpDevice -Class HIDClass |
Where-Object FriendlyName -like '*touch*' |
Format-Table Status, Present, FriendlyName -AutoSize
# 3) จอแต่ละตัวต่อเข้ามาด้วยสัญญาณแบบไหน
Get-CimInstance -Namespace root\wmi -ClassName WmiMonitorConnectionParams |
Select-Object InstanceName, VideoOutputTechnology
The results were clear: SM_DIGITIZER was 0, the touch point count was 0, and there was no "HID-compliant touch screen" device, even in the history, meaning it had never been installed at all. No devices showed an error, and all 7 connected USB devices were internal devices or the keyboard and mouse receiver. None came from the monitor. The display reported VideoOutputTechnology = 10, meaning external DisplayPort, which over USB-C is DP Alt Mode.
So that cable was carrying only video; the USB path was not coming through at all, whether because of the port or the cable itself. A touchscreen like this is a standard HID device. If USB data reaches the computer, Windows detects it and installs it automatically without anything extra. So if there is no device at all, even in the history, the problem is at the cable layer, not the driver layer.
If the driver has a problem, the device will show a warning icon or an Error status in Device Manager. If nothing appears, not even an entry with Present = False, the computer has never communicated with the monitor's touch hardware. The fix is to change ports, use a cable that also carries data, or connect a second USB cable from the monitor to the computer. Once the USB path was established, touch on this monitor worked without installing anything else.
VideoOutputTechnology value |
Meaning | Where I saw it here |
|---|---|---|
| 5 | HDMI | Second external display |
| 10 | External DisplayPort | External display connected over USB-C (DP Alt Mode) |
| 2147483648 | Internal display | Laptop's built-in display |
Case two: two touchscreens controlling the primary display
Monitor A used USB-C carrying both video and USB, and worked fine on its own. When I added monitor B over HDMI and connected another USB cable for power and data, touch on both screens moved the cursor on the built-in display. My first guess was a faulty monitor B or an HDMI cable problem, but that was not it, since both displayed a picture normally. I ran the same commands again.
This time there were two HID-compliant touch screen devices, both with OK status and the same VID and PID. They differed only in their hub locations: Port_#0001.Hub_#0002 and Port_#0006.Hub_#0002. The touch point count was 10, and SM_DIGITIZER was 0xC1, which needs to be broken down bit by bit.
| Bit | Name | In 0xC1 |
|---|---|---|
| 0x80 | READY Ready for input | Set |
| 0x40 | MULTI_INPUT Multiple touch points | Set |
| 0x02 | EXTERNAL_TOUCH External touch | Not set |
| 0x01 | INTEGRATED_TOUCH Integrated touch | Set |
The EXTERNAL_TOUCH bit was not set at all. Windows treated the touch input it saw as belonging to the built-in display, even though this laptop's built-in display is not a touchscreen. When I checked where the mappings are stored, it was empty.
# ที่เก็บการ map digitizer เข้ากับจอ ของผู้ใช้คนปัจจุบัน
$key = 'HKCU:\Software\Microsoft\Wisp\Pen\Digitizer'
if (Test-Path $key) { Get-ItemProperty $key } else { 'ยังไม่เคย map digitizer เข้ากับจอใดเลย' }
# ตำแหน่งของจอแต่ละตัวบนเดสก์ท็อป
Add-Type -AssemblyName System.Windows.Forms
[System.Windows.Forms.Screen]::AllScreens |
Format-Table DeviceName, Primary, Bounds -AutoSize
The display layout showed DISPLAY1 as primary at x=0, DISPLAY2 at 1920x1080 over DP, and DISPLAY5 at 1920x1080 over HDMI.
Why did one monitor work automatically, but two did not? Monitor A carried video and USB in the same cable, so Windows could pair its touch input with the display automatically. Once there was a second digitizer identical to the first in every way, connected separately from its video, the system did not have enough information to pair them. Touch input not assigned to any display fell back to the primary display.
Monitor B or its cable was faulty
I thought I needed to replace the cable, install the manufacturer's driver, or find extra software to handle multiple touchscreens.
All hardware detected, just not mapped
Both touch devices appeared with OK status. What was missing was the information linking each digitizer to its display, and Windows already has a built-in tool for specifying that.
Map digitizers to displays with Tablet PC Settings
This tool is tucked away in the old Control Panel under the name Tablet PC Settings. No extra software is needed. It can be opened directly from Run or PowerShell.
# เปิดหน้า Tablet PC Settings โดยตรง
Start-Process explorer.exe 'shell:::{80F3F1D5-FECA-45F3-BC32-752C152E456E}'
- Connect every display first, with both video and USB cables, then check that the number of touch screen devices matches the number of touchscreens.
- Open Tablet PC Settings, go to the Display tab, click Setup... and select Touch input.
- The message "Touch this screen to identify it as the touchscreen" will appear on one display at a time.
- If the message appears on a display that is not a touchscreen, such as the built-in display, press Enter to skip to the next one.
- If it appears on a touchscreen, touch that screen once. The system will assign the digitizer you touched to that display.
- Repeat for every digitizer, then press Esc to exit. Test each touchscreen to check that the cursor goes to the right place.
Once I finished, touch on monitor A controlled monitor A, and touch on monitor B controlled monitor B. Both worked.
Three days later, touch worked on only one screen
Three days later, touch worked on only one screen. My first guess was that the mapping had been lost, so I was going to map them again. But checking the devices first showed something different: the computer could see only one digitizer.
# ไล่จาก HID touch screen ขึ้นไปหาอุปกรณ์ USB ตัวแม่ เพื่อดูว่าเสียบอยู่พอร์ตไหน
Get-PnpDevice -Class HIDClass | Where-Object FriendlyName -like '*touch*' | ForEach-Object {
$id = $_.InstanceId
while ($id -and ($id -notlike 'USB\*' -or $id -like '*&MI_*')) {
$id = (Get-PnpDeviceProperty -InstanceId $id -KeyName DEVPKEY_Device_Parent).Data
}
$loc = if ($id) {
(Get-PnpDeviceProperty -InstanceId $id -KeyName DEVPKEY_Device_LocationInfo).Data
}
[pscustomobject]@{ Status = $_.Status; Present = $_.Present; Location = $loc }
} | Format-Table -AutoSize
The PnP history showed 3 instances. Two had Present: False, representing previously used ports, and one had Present: True. Both monitors still displayed a picture because HDMI and DP are independent of USB. What had happened was that one monitor's USB cable had been moved to another port.
Windows could distinguish these two otherwise identical monitors by only one thing: the USB ports they were plugged into. Whenever I moved a port, the system saw a new digitizer it had never encountered, with no display mapping. The old mapping was not gone; it was still tied to the instance for the old port, which now had nothing connected. I moved the cables back to their original ports, both 2 devices appeared, and I ran Setup again. Both touchscreens worked.
I now follow two rules. First, connect every display before running the wizard each time. If any are missing, the wizard will not ask about their digitizers. Second, label the computer's USB ports to identify which cable belongs to which display, because with identical monitor models, port location is the only thing the system uses to remember them. If using a hub or dock, apply the same rule to its ports.
Extra: adjust external display brightness through DDC/CI
Adjusting brightness with the buttons on these two portable monitors is awkward, so I tried DDC/CI, a command channel carried over the video cable. It worked with both the USB-C (DP) monitor and the HDMI monitor. I read brightness values of 25 and 50 on a scale of 0 to 100, while contrast was 50 on both.
The trap was querying capabilities. The GetMonitorCapabilities function reported no support on either monitor because they did not advertise a capability string, but reading and setting VCP 0x10 (brightness) and 0x12 (contrast) actually worked. Software that checked capabilities before deciding what to do therefore incorrectly reported that these monitors could not be adjusted.
import ctypes
from ctypes import wintypes
user32, dxva2 = ctypes.windll.user32, ctypes.windll.dxva2
class PHYSICAL_MONITOR(ctypes.Structure):
_fields_ = [("handle", wintypes.HANDLE), ("desc", wintypes.WCHAR * 128)]
ENUMPROC = ctypes.WINFUNCTYPE(wintypes.BOOL, wintypes.HMONITOR, wintypes.HDC,
ctypes.POINTER(wintypes.RECT), wintypes.LPARAM)
user32.EnumDisplayMonitors.argtypes = [wintypes.HDC, ctypes.c_void_p, ENUMPROC, wintypes.LPARAM]
dxva2.GetNumberOfPhysicalMonitorsFromHMONITOR.argtypes = [
wintypes.HMONITOR, ctypes.POINTER(wintypes.DWORD)]
dxva2.GetPhysicalMonitorsFromHMONITOR.argtypes = [
wintypes.HMONITOR, wintypes.DWORD, ctypes.POINTER(PHYSICAL_MONITOR)]
dxva2.GetVCPFeatureAndVCPFeatureReply.argtypes = [
wintypes.HANDLE, wintypes.BYTE, ctypes.c_void_p,
ctypes.POINTER(wintypes.DWORD), ctypes.POINTER(wintypes.DWORD)]
dxva2.SetVCPFeature.argtypes = [wintypes.HANDLE, wintypes.BYTE, wintypes.DWORD]
def physical_monitors():
found = []
def on_monitor(hmon, hdc, rect, lparam):
n = wintypes.DWORD()
if dxva2.GetNumberOfPhysicalMonitorsFromHMONITOR(hmon, ctypes.byref(n)) and n.value:
arr = (PHYSICAL_MONITOR * n.value)()
if dxva2.GetPhysicalMonitorsFromHMONITOR(hmon, n.value, arr):
found.extend(arr)
return True
user32.EnumDisplayMonitors(None, None, ENUMPROC(on_monitor), 0)
return found
def get_vcp(handle, code):
cur, mx = wintypes.DWORD(), wintypes.DWORD()
ok = dxva2.GetVCPFeatureAndVCPFeatureReply(handle, code, None,
ctypes.byref(cur), ctypes.byref(mx))
return (cur.value, mx.value) if ok else None
for m in physical_monitors():
# ถามค่าตรง ๆ ไม่ต้องเชื่อ capability string
print(m.desc, "brightness", get_vcp(m.handle, 0x10), "contrast", get_vcp(m.handle, 0x12))
# ตั้งค่า: dxva2.SetVCPFeature(m.handle, 0x10, 40)
The laptop's built-in display did not respond to DDC/CI. That one needed WMI instead.
# จอในตัว: ตั้งความสว่าง 60% ผ่าน WMI
Get-CimInstance -Namespace root\wmi -ClassName WmiMonitorBrightnessMethods |
Invoke-CimMethod -MethodName WmiSetBrightness -Arguments @{ Timeout = 1; Brightness = 60 }
For anyone who does not want to write their own, the ready-made tool I use is Twinkle Tray, which controls both types from the tray. There is one trap when launching it from a script: if a tray application is launched from a session without an interactive desktop, it starts and immediately exits. It needs to be launched through explorer.exe so the user's shell starts it.
# ให้ shell เป็นคนเปิด โปรแกรมถึงจะอยู่ใน desktop ของผู้ใช้จริง (แก้ path ตามที่ติดตั้ง)
explorer.exe "$env:LOCALAPPDATA\Programs\twinkle-tray\Twinkle Tray.exe"
Summary of the diagnostic sequence
| Symptom | What I found | Fix |
|---|---|---|
| Video works, no touch | SM_DIGITIZER = 0, no touch screen even in the history |
Change ports or cables so USB reaches the computer; no driver installation needed |
| Touch controls the primary display | All touch screens detected, but mapping key empty and no external bit | Tablet PC Settings > Setup > Touch input |
| Touch works on only one screen | More instances than displays, some with Present: False |
Reconnect to the original ports or remap using the new ports |
| Software says brightness cannot be adjusted | Empty capability string, but VCP 0x10 responds | Send VCP commands directly or use a tool that does not check capabilities first |
The conclusion is that external touchscreens always need to be checked along two separate paths: use VideoOutputTechnology for video and the HID touch screen list for touch. If there is more than one monitor of the same model, treat the USB port as the monitor's name. All of this comes from my computer and the monitor model I own. Models that correctly identify themselves as external touchscreens or have distinct serial numbers may never show these symptoms. If you encounter a different case, try running the first three commands first. If I have left anything out of the explanation or made a typo, I will come back and correct it later.
Hit something like this? Stuck somewhere?
Come trade notes on the LinuxThai board



Comments 0
No comments yet — be the first