Genymobile / Genymobile/scrcpy

Square device wants to be hip

Open
#1,702 6 comments 1 reaction 0 assignees View on GitHub
Dominant language
C
Stars
150k
Forks
13.7k
Avg merge
4d 13h
Merged PRs (30d)
2

Description

- [x] I have read the [FAQ](https://github.com/Genymobile/scrcpy/blob/master/FAQ.md).
- [x] I have searched in existing [issues](https://github.com/Genymobile/scrcpy/issues).

**Environment**
- OS: [e.g. Debian, Windows, macOS...]
Windows 10 Pro
- scrcpy version: [e.g. 1.12.1]
version 1.16
- installation method: [e.g. manual build, apt, snap, brew, Windows release...]
Windows zip
- device model:
Unihertz Titan
- Android version: [e.g. 10]
9

**Describe the bug**
When connecting scrcpy to my Titan (phone with square screen and physical keyboard) it seems to want the device to be a different resolution than it is, which makes interacting with the device in the scrcpy window impossible. Running scrcpy results in a window with large black bars on the top and bottom of the screen. Mouse shortcuts (middle click for Home, right-click for Back) and most keyboard shortcuts work fine, but mouse left-click interactions send errors to the console.

- The phone appears to report the correct size:

```
PS C:\Android\scrcpy> ./adb shell wm size
Physical size: 1432x1436
```

- scrcpy appears to want to make it a portrait device, which is what the resulting window looks like:

```
PS C:\Android\scrcpy> .\scrcpy.exe
INFO: scrcpy 1.16
C:\Android\scrcpy\scrcpy-server: 1 file pushed, 0 skipped. 24.5 MB/s (33622 bytes in 0.001s)
[server] INFO: Device: A-gold Titan (Android 9)
INFO: Renderer: direct3d
INFO: Initial texture: 1432x1432
INFO: New texture: 1080x1432
```

- When left-clicking to interact with the device, these errors are shown in the console:

```
[server] WARN: Ignore touch event, it was generated for a different device size
[server] WARN: Ignore touch event, it was generated for a different device size
[server] WARN: Ignore touch event, it was generated for a different device size
[server] WARN: Ignore touch event, it was generated for a different device size
[server] WARN: Ignore touch event, it was generated for a different device size
```

Any suggestions would be appreciated.

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce with the reported Unihertz Titan on Windows using scrcpy 1.16 and the `adb shell wm size` command, then inspect the desktop input path and `scrcpy-server` behavior around the reported 1432x1436 and 1080x1432 sizes. Done means left-click interaction works in the scrcpy window without the “different device size” warnings.

Written by the indexing model from the issue text.

Assessment

Tech stack
c
Domain
desktop-dev, mobile-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.