Comments (13)
As a workaround:
# disable auto rotation
adb shell settings put system accelerometer_rotation 0
# use custom rotation (0=portrait, 1=landscape)
adb shell settings put system user_rotation 1
from scrcpy.
I just implemented it on branch rotatedevice
(eb0f339).
Just press Ctrl
+r
(or Cmd
+r
on macOS) to rotate the device.
Feedbacks welcome :)
from scrcpy.
It is probably not very difficult, but it is quite intrusive (we need to check everywhere the current rotation to reverse width and height).
It's in my (virtual) todo list when I have time (maybe after the "device screen off" while mirroring).
from scrcpy.
from scrcpy.
Tested on Pixel 2 and Pixel 4 - Android 10, from macOS Catalina.
Works perfectly! Thanks
from scrcpy.
Reference #218
from scrcpy.
Is there a way to put the monitor in landscape while the camera is showing?
I tried the above commands both while scrcpy was active in terminal, and when it was not, and nothing happened when I executed the commands.
Am I missing something, or is the monitor simply not willing to be in landscape while the camera app is open?
from scrcpy.
Some camera apps keep the device in landscape mode (and rotate their icons manually when the device is rotated). This avoids a glitch due to the portrait/landscape switch.
The "solution" is to implement a (manual) client-side rotation in scrcpy.
from scrcpy.
Aha, that makes sense! Thanks for the fast response!
Is there a simple way of implementing this, or is this something I should just leave be?
I'm just wondering if it is possible to rotate the mirror shown on my desktop some way.
I have absolutely no experience with this though.
from scrcpy.
Alright! Thanks!
In the meantime I'll just use another app that rotates with the screen.
Open Camera worked really well, for other users having the same issue.
Thanks again!
from scrcpy.
This would be great to be implemented in next release.
Appart from this it has everything needed to work daily with it.
from scrcpy.
i added shortcut key for screen rotation
here's the code:
https://files.catbox.moe/c8lz87.c
Place input_manager.c inside project-> app--src folder and build it using
ninja -Cx
./run x
Ctrl+q = Change screen density to 200
Ctrl+w = Reset screen density
Ctrl+e = landscape mode
Ctrl+r = portrait mode
try this first in adb if rotation doesnt work
adb shell settings put system accelerometer_rotation 0
from scrcpy.
Merged in dev
.
from scrcpy.
Related Issues (20)
- Mouse click not working but Keyboard works perfectly HOT 3
- [Feature request] Digital zoom hotkeys for camera mode HOT 1
- Can't use it HOT 2
- Stream audio from PC to phone
- Can audio be played at the same time? PC and Phone. HOT 1
- encoder cant be found (before c2.avc used to work) HOT 2
- NoSuchMethodException: android.view.SurfaceControl.createDisplay (Google Pixel 6 Pro Android 15 Beta 1) HOT 2
- i cant control my phone from pc HOT 2
- How can capture screen when scrcpy window is working HOT 1
- Audio forwarding can still work when open mic on Gaming (Pubg mobile) HOT 1
- Connected to phone but disconnects all network locations HOT 5
- Performance Optimization Needed for Modified scrcpy Project HOT 1
- USB Debugging HOT 5
- Password
- ERROR: Could not find any ADB device...ERROR: Server connection failed HOT 1
- Samsung mobile phone screen mirroring cannot zoom in when opening the camera
- Switch control shortcut option for pc to android or android to pc HOT 5
- server version HOT 2
- encoding error,exception on thread HOT 12
- ERROR: Exception on thread Thread[video,5,main] HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from scrcpy.