Troubleshooting
Why Perspective Workstation Ignores Touch but the Browser Works
Short answer
When Perspective Workstation refuses its own controls like Upgrade Now while the same session works in a browser, your event handlers are not the fault: the workstation's Linux touch path is. Test mouse, physical touch and simulated touch against the same controls, then repair the first boundary that fails - driver recognition, display mapping, or the Workstation window itself.
On this page
- Why does Workstation ignore touch when the browser works?
- What does a mouse test prove inside Workstation?
- What does Chrome's simulated touch actually test?
- How do I check that Linux sees the touchscreen?
- Why does a touch land on the wrong control or screen?
- How do I prove the button's event handler runs?
- Which repair fits each test result?
- Questions asked
When Perspective Workstation ignores touch - its own Upgrade Now button, its settings, and your navigation buttons - while the same session works in a browser, your project is not the fault. The failure is in the workstation's input path: the Linux touchscreen driver, the mapping of the digitizer to the display, or the Workstation window itself. Switching the button between onActionPerformed, onMouseClick and onTouch cannot help, because those handlers live in the project and the application's own controls are failing with them. This article gives the test sequence that separates the layers, the arithmetic that proves a mapping offset, and the repair that matches each result.
Why does Workstation ignore touch when the browser works? #
Because the failure sits below the project: when Workstation refuses its own Upgrade Now control and its settings screens while the same session runs in a browser, the input is dying in the workstation's Linux touch path, not in your event script.
Workstation is one application doing two jobs - a launcher and a desktop wrapper for Perspective sessions. Its upgrade and settings controls belong to the application; your navigation buttons belong to the project loaded inside it. A project script has no way to disable the application's own buttons, so the fact that onActionPerformed, onMouseClick and onTouch all failed together - on application controls as well as project buttons - removes the project from the suspect list before you open the designer.
Work down this list, and let the failing control name the layer:
- Project layer - component events, bindings, navigation scripts. Exercised by the browser session.
- Application layer - Workstation's own controls, such as the upgrade prompt and settings. Exercised without any project logic running.
- Window layer - focus, overlays and dialogs inside the Workstation window.
- Input layer - Linux touchscreen recognition and display mapping. Exercised by the bare desktop.
The decision rule: when two layers fail at once, repair the lower one, because every layer above it inherits dead input.
What does a mouse test prove inside Workstation? #
A mouse that activates the same Workstation controls proves the application and project layers are alive and isolates the fault to touch delivery - the touchscreen driver or its display mapping on that workstation.
Run the comparison with one project and four input paths:
- Connect a USB mouse to the workstation.
- In Workstation, activate an application control (the upgrade prompt or settings) and a project navigation button with the mouse.
- Repeat both activations with the physical touchscreen, project unchanged.
- Repeat mouse and touch in the browser against the same session.
- Record the desktop session type, the display arrangement, which display is the touchscreen, and the installed Workstation version.
| Result in Workstation | Failing boundary | Where to go next |
|---|---|---|
| Mouse works, touch fails | Touch delivery into the application | Desktop and mapping tests below |
| Mouse and touch both fail, browser works | Workstation window, focus or runtime | Overlays, relaunch, runtime diagnostics |
| Application controls work, project buttons fail | Component state, overlay or event | Project inspection and the minimal button |
| Physical touch fails in Workstation and browser alike | Operating-system input or touchscreen setup | Recognition and mapping checks |
A browser pass made with a mouse is not a touch result - record which device produced each pass, or the comparison means nothing.
What does Chrome's simulated touch actually test? #
Simulated touch in Chrome tests your project's touch handling, not the touchscreen: the emulation is generated from the mouse and bypasses the physical digitizer and its driver, so a pass there points every remaining suspicion at the workstation's touch path.
- Open the project in Chrome and tap the navigation button with the physical touchscreen first.
- Press Ctrl+Shift+I to open developer tools, then Ctrl+Shift+M to toggle the device toolbar.
- Select a touch-enabled emulation mode.
- Activate the same button with the mouse under emulation.
- Compare the emulated result with the physical tap from step 1.
Interpretation, committed:
- Physical tap fails in Chrome too: the touchscreen fails in every client, and the project is cleared - go straight to the input layer.
- Physical tap and emulated touch both work in Chrome: the project handles touch events correctly, so a Workstation-only failure now points at the Workstation window or its runtime.
- Emulated touch works while physical touch fails, in either client: the digitizer or its driver is the failing device. This is the combination that convicts the touchscreen, and it matches the case where everything "works in Chrome" only because Chrome was driven by a mouse.
How do I check that Linux sees the touchscreen? #
Touch the bare desktop: if a tap moves the pointer and clicks an icon outside Workstation, Linux is receiving and placing touch input and the fault is inside the Workstation window; if the desktop ignores touch too, recognition or mapping is the fault.
Video and touch travel separate paths - the picture comes over the display link while the touch digitizer reports to the operating system as its own input device - so a perfect image proves nothing about touch, the same split behind why HDMI video works but USB touch does not on a panel. Check two things at the operating system:
- Open the desktop's device or input settings and confirm the touchscreen is listed as an input device, not only as a display.
- Tap the screen and watch the pointer: no movement at all means recognition; movement to the wrong place means mapping.
If the device is missing or erroring, the driver and recognition work is covered in getting a touchscreen working under a Linux HMI runtime. Multi-display Workstation setups are common, so note which display the system believes the touchscreen belongs to before you change anything else.
Why does a touch land on the wrong control or screen? #
Because the digitizer is mapped against the wrong desktop geometry: on a multi-display desktop the touchscreen's coordinates are scaled into a region, and mapping to the combined desktop instead of the panel's own display sends every tap to a shifted position.
Worked example, with the arithmetic. A 1920 x 1080 touchscreen panel sits at the desktop origin; a 1280 x 1024 display sits to its right, top-aligned, so the combined desktop is 1920 + 1280 = 3200 px wide and 1080 px tall. The digitizer is wrongly mapped to the full 3200 px desktop while being physically bonded to the 1920 px panel, so horizontal input scales by 3200 / 1920 = 1.667 (vertical scales by 1080 / 1080 = 1.000).
A tap on a button centered at panel x = 960 arrives at desktop x = 960 x 3200 / 1920 = 1600, an offset of 1600 - 960 = 640 px to the right - one third of the panel width, far outside any button's hit area. The operator reads it as a dead button; the desktop read it as a tap on empty space.
Test it directly: touch the top-left corner, then the center, then the bottom-right, and watch where the pointer appears each time.
- Constant displacement in one direction - mapping fault; rebind the touchscreen to the display it is physically bonded to, in the desktop's display and input settings or with a calibrator that supports multi-monitor mapping.
- No pointer at all - recognition fault; back to the device list.
- Pointer exactly where you touched - the input layer is good, and the fault is inside the Workstation window.
Re-check the mapping after any change to the display arrangement; a moved or added display can invalidate it.
How do I prove the button's event handler runs? #
Give the button one job that touches nothing external: bind onActionPerformed to a local, visible status change, and if that status flips on activation, the handler and the input path both work - leaving navigation or tag access as the only suspects.
Build the minimal test:
- Create a test view with one large button and a status label beside it.
- Give the button a single onActionPerformed handler that writes a local property the label displays.
- Leave the button enabled and remove overlapping components from its area.
- Open the view in the browser and in Workstation, and test both with mouse and physical touch.
Run this on a bench or on a view that commands no machine motion; a diagnostic button has no business wired to jog outputs.
Handler decision: keep onActionPerformed as the navigation baseline. It is the activation event, fired by click and touch alike; onMouseClick and onTouch are for deliberately device-specific behavior, and the gap between mouse and touch in such handlers is exactly why touch JOG buttons start late but mouse works fine in other projects.
Outcomes:
- Status flips everywhere - input path and handler are good. Restore the navigation action and check its destination view and script diagnostics.
- Status flips in the browser but not in Workstation - stop editing the project; you are back to the input or window layer.
- Navigation works but displayed values are stale - that is a binding and tag problem, not an input problem; trace it separately.
Which repair fits each test result? #
Repair the first boundary that failed and nothing else: driver recognition when the desktop ignores touch, mapping when taps land shifted, the Workstation window when only Workstation rejects input, and the project only when the browser shows the same failure.
| Test outcome | Repair |
|---|---|
| Desktop ignores touch; device absent or erroring in the input list | Correct Linux recognition of the touchscreen, then retest the desktop, then Workstation |
| Touch works on the desktop but lands shifted or on the wrong display | Rebind the digitizer to its own display and retest corner, center and bottom-right |
| Mouse and desktop touch work; touch dead only inside Workstation | Relaunch Workstation; run it windowed instead of kiosk; check for a modal dialog or overlay and whether the window holds focus |
| The browser reproduces the failure with the same input device | Project layer: component enabled state, overlays, event configuration |
Workstation runs windowed or in kiosk mode, switchable at launch or from within a running session, so switching to windowed during troubleshooting costs nothing and exposes focus faults. After any repair, close and relaunch Workstation and repeat the application-control and navigation tests before touching the project again.
When the tests end at a dead touch digitizer - video fine, device missing from the input list - the repair is a new touch surface: industrial touchscreen monitors replace the screen while the workstation computer stays.
For the case that matches this article's title, commit: emulated touch works in Chrome, physical touch fails on Workstation's own controls, so the touchscreen is the failing device. Fix recognition or mapping at the operating system, leave onActionPerformed alone, and retest.
Questions asked
Should I change onActionPerformed to onMouseClick or onTouch to make Workstation respond?
No. onActionPerformed is the activation event and fires for both mouse clicks and touch, so it is the right baseline for a navigation button. Stacking onMouseClick and onTouch onto the same action buys nothing while input is dead, and once the touch path is fixed it can fire the navigation two or three times per tap. Keep one handler and fix the input layer.
Does turning on Perspective's touchscreen mode fix the dead buttons?
Not this fault. Touchscreen mode is a project-level setting you enable in Project Properties or through scripting, and it changes how components respond to touch input. It cannot revive Workstation's own Upgrade Now control, which lives outside the project. Look at it only if the browser session shows touch-specific behavior problems after the workstation's touch path is proven good.
Touch went dead right after a file dialog appeared in kiosk mode. Related?
Yes. In kiosk mode, a Workstation file dialog can open behind the session window, and while it waits for a response the session looks completely touch-dead. Press Alt+Tab to bring any hidden dialog forward, close it, and retest before touching drivers or mappings.
How do operators type setpoints into Workstation on a touchscreen?
Plan for it separately: entering setpoints and text on a touchscreen in Workstation is very difficult without an on-screen keyboard, because the application does not provide one. Deploy an operating-system on-screen keyboard callable from the session, or mount a physical keyboard at the station, and prove it during commissioning instead of discovering it at startup.