Search Issue Tracker
Won't Fix
Votes
6
Found in
2020.3.46f1
2021.3.21f1
2022.2.11f1
2023.1.0b8
2023.2.0a6
Issue ID
UUM-29749
Regression
No
[Linux] Mouse Input not registered in Player Build when launched with xinit
Reproduction steps:
1. Open the attached “BugRepro” project
2. Click File > Build
3. Open Ubuntu in console mode (CTRL + ALT + F2)
4. Log in to Ubuntu user
5. Kill the Gnome Desktop Enviroment with ‘sudo service gdm stop’
6. Change the directory to the build folder
7. Start the Player with 'sudo xinit ./<build>.x86_64 -- :0'
Expected result: Moving the mouse within the Unity Player also moves the mouse pointer.
Actual result: The mouse pointer in the Unity Player does not move in response to mouse movement.
Reproducible with: 2020.3.46f1, 2021.3.21f1, 2022.2.11f1, 2023.1.0b8, 2023.2.0a6
Reproducible on: Ubuntu 22.04
Note: Touchscreen works on a Ubuntu laptop
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Editor crash on "PPtr<Shader>::operator Shader*() const" when checking in changes with a very long comment in Unity Version Control window
- [Ubuntu] Toolbar and menu items for Version Control lack spaces in text on Linux
- Unity Version Control window Pending Changes tab’s Item checkbox is unresponsive when clicked and the item list is empty
- Audio stuttering occurs when heavy processing is performed while OnAudioFilterRead is in use
- Inconsistent Node search results in VFX Graph
Resolution Note:
Thank you for bringing this issue to our attention. Unfortunately, running the Unity runtime without a Display Manager (Example: Gnome Display Manager) and/or Window Manager (Example: X11 Window Manager) is not a supported configuration.
However, we have spent sometime finding a workaround for this issue and found out calling Cursor.SetCursor method in the Start method of the Unity script will force the system to draw the cursor as well as to register the mouse clicks correctly.
Documentation to Cursor.SetCursor method: https://docs.unity3d.com/ScriptReference/Cursor.SetCursor.html
Moreover, we have tested and confirmed touch inputs works correctly once the above workaround is applied (Our display configuration was one 1080P touch screen attached to the system)