Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

"It's not just a computer -- it's your ass." -- Cal Keegan


computers / comp.mobile.android / Re: I need a command to wake up the phone screen

SubjectAuthor
* I need a command to wake up the phone screenAndy Burnelli
`* Re: I need a command to wake up the phone screenAndy Burnelli
 `- Re: I need a command to wake up the phone screenAndy Burnelli

1
I need a command to wake up the phone screen

<t3imkd$fnm$1@gioia.aioe.org>

 copy mid

https://www.novabbs.com/computers/article-flat.php?id=30590&group=comp.mobile.android#30590

 copy link   Newsgroups: comp.mobile.android
Path: i2pn2.org!i2pn.org!aioe.org!fgVGtyY+Isvr+hQ/1KquzQ.user.46.165.242.75.POSTED!not-for-mail
From: spa...@nospam.com (Andy Burnelli)
Newsgroups: comp.mobile.android
Subject: I need a command to wake up the phone screen
Date: Mon, 18 Apr 2022 04:41:16 +0100
Organization: Aioe.org NNTP Server
Message-ID: <t3imkd$fnm$1@gioia.aioe.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Info: gioia.aioe.org; logging-data="16118"; posting-host="fgVGtyY+Isvr+hQ/1KquzQ.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.6.1
X-Notice: Filtered by postfilter v. 0.9.2
Content-Language: en-GB
 by: Andy Burnelli - Mon, 18 Apr 2022 03:41 UTC

I need a command to wake up the phone screen when it falls asleep.
With the phone in my hand, I usually tap the hardware power button.

But when the phone is on Wi-Fi & I'm mirroring on Windows, what can I use?
C:\> adb connect 192.168.0.2:5555
C:\> scrcpy

I tried pulling up a random activity from Windows using the adb command:
C:\> adb shell am start -n com.google.android.gms/.ads.settings.AdsSettingsActivity
That will pull up the "Reset advertising ID" Activity if the phone is
already awake, but it will complain if the phone screen has blanked out.

What command can I send from Windows to Android to wake it up over Wi-Fi?
--
References:
*Bypassing "Can't take screenshot due to security policy"*
<https://groups.google.com/g/comp.mobile.android/c/Pmcqi4Mvuhw>

*What do you use to mirror & control your Android phone on Windows using the keyboard & mouse?*
<https://groups.google.com/g/alt.comp.microsoft.windows/c/eMYBmpq2H50>

Re: I need a command to wake up the phone screen

<t3j0lr$19c8$1@gioia.aioe.org>

 copy mid

https://www.novabbs.com/computers/article-flat.php?id=30593&group=comp.mobile.android#30593

 copy link   Newsgroups: comp.mobile.android
Path: i2pn2.org!i2pn.org!aioe.org!fgVGtyY+Isvr+hQ/1KquzQ.user.46.165.242.75.POSTED!not-for-mail
From: spa...@nospam.com (Andy Burnelli)
Newsgroups: comp.mobile.android
Subject: Re: I need a command to wake up the phone screen
Date: Mon, 18 Apr 2022 07:32:42 +0100
Organization: Aioe.org NNTP Server
Message-ID: <t3j0lr$19c8$1@gioia.aioe.org>
References: <t3imkd$fnm$1@gioia.aioe.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Info: gioia.aioe.org; logging-data="42376"; posting-host="fgVGtyY+Isvr+hQ/1KquzQ.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.6.1
X-Notice: Filtered by postfilter v. 0.9.2
Content-Language: en-GB
 by: Andy Burnelli - Mon, 18 Apr 2022 06:32 UTC

Andy Burnelli wrote:

> What command can I send from Windows to Android to wake it up over Wi-Fi?

I solved it!

Re: I need a command to wake up the phone screen

<t3keu1$893$1@gioia.aioe.org>

 copy mid

https://www.novabbs.com/computers/article-flat.php?id=30646&group=comp.mobile.android#30646

 copy link   Newsgroups: comp.mobile.android
Path: i2pn2.org!i2pn.org!aioe.org!fgVGtyY+Isvr+hQ/1KquzQ.user.46.165.242.75.POSTED!not-for-mail
From: spa...@nospam.com (Andy Burnelli)
Newsgroups: comp.mobile.android
Subject: Re: I need a command to wake up the phone screen
Date: Mon, 18 Apr 2022 20:42:08 +0100
Organization: Aioe.org NNTP Server
Message-ID: <t3keu1$893$1@gioia.aioe.org>
References: <t3imkd$fnm$1@gioia.aioe.org> <t3j0lr$19c8$1@gioia.aioe.org>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Info: gioia.aioe.org; logging-data="8483"; posting-host="fgVGtyY+Isvr+hQ/1KquzQ.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org";
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.6.1
X-Notice: Filtered by postfilter v. 0.9.2
Content-Language: en-GB
 by: Andy Burnelli - Mon, 18 Apr 2022 19:42 UTC

Andy Burnelli wrote:

>> What command can I send from Windows to Android to wake it up over Wi-Fi?
>
> I solved it!

To help others who are mirroring Android onto Windows over USB,
I can tell you after a few hours of mirroring Android onto Windows
there are _multiple_ ways to disable the phone going to sleep.

1. Android developer options (works only for USB mirrors, not for Wi-Fi)
2. Manual right click (works for both USB and for Wi-Fi mirrors)
3. scrcpy --disable-screensaver
"Disable screensaver while scrcpy is running"

I found that when I belatedly scanned the help file for the scrcpy command.

scrcpy 1.23 <https://github.com/Genymobile/scrcpy>
Usage: scrcpy [options]

Options:

--always-on-top
Make scrcpy window always on top (above other windows).

-b, --bit-rate=value
Encode the video at the gitven bit-rate, expressed in bits/s. Unit
suffixes are supported: 'K' (x1000) and 'M' (x1000000).
Default is 8000000.

--codec-options=key[:type]=value[,...]
Set a list of comma-separated key:type=value options for the device
encoder.
The possible values for 'type' are 'int' (default), 'long', 'float' and
'string'.
The list of possible codec options is available in the Android
documentation:
<https://d.android.com/reference/android/media/MediaFormat>

--crop=width:height:x:y
Crop the device screen on the server.
The values are expressed in the device natural orientation (typically,
portrait for a phone, landscape for a tablet). Any --max-size value is
computed on the cropped size.

-d, --select-usb
Use USB device (if there is exactly one, like adb -d).
Also see -e (--select-tcpip).

--disable-screensaver
Disable screensaver while scrcpy is running.

--display=id
Specify the display id to mirror.
The list of possible display ids can be listed by:
adb shell dumpsys display
(search "mDisplayId=" in the output)
Default is 0.

--display-buffer=ms
Add a buffering delay (in milliseconds) before displaying. This
increases latency to compensate for jitter.
Default is 0 (no buffering).

-e, --select-tcpip
Use TCP/IP device (if there is exactly one, like adb -e).
Also see -d (--select-usb).

--encoder=name
Use a specific MediaCodec encoder (must be a H.264 encoder).

--force-adb-forward
Do not attempt to use "adb reverse" to connect to the device.

--forward-all-clicks
By default, right-click triggers BACK (or POWER on) and middle-click
triggers HOME. This option disables these shortcuts and forwards the
clicks to the device instead.

-f, --fullscreen
Start in fullscreen.

-K, --hid-keyboard
Simulate a physical keyboard by using HID over AOAv2.
It provides a better experience for IME users, and allows to generate
non-ASCII characters, contrary to the default injection method.
It may only work over USB.
The keyboard layout must be configured (once and for all) on the device,
via Settings -> System -> Languages and input -> Physical keyboard. This
settings page can be started directly: `adb shell am start -a
android.settings.HARD_KEYBOARD_SETTINGS`.
However, the option is only available when the HID keyboard is enabled
(or a physical keyboard is connected).
Also see --hid-mouse.

-h, --help
Print this help.

--legacy-paste
Inject computer clipboard text as a sequence of key events on Ctrl+v
(like MOD+Shift+v).
This is a workaround for some devices not behaving as expected when
setting the device clipboard programmatically.

--lock-video-orientation[=value]
Lock video orientation to value.
Possible values are "unlocked", "initial" (locked to the initial
orientation), 0, 1, 2 and 3. Natural device orientation is 0, and each
increment adds a 90 degrees rotation counterclockwise.
Default is "unlocked".
Passing the option without argument is equivalent to passing "initial".

--max-fps=value
Limit the frame rate of screen capture (officially supported since
Android 10, but may work on earlier versions).

-M, --hid-mouse
Simulate a physical mouse by using HID over AOAv2.
In this mode, the computer mouse is captured to control the device
directly (relative mouse mode).
LAlt, LSuper or RSuper toggle the capture mode, to give control of the
mouse back to the computer.
It may only work over USB.
Also see --hid-keyboard.

-m, --max-size=value
Limit both the width and height of the video to value. The other
dimension is computed so that the device aspect-ratio is preserved.
Default is 0 (unlimited).

--no-cleanup
By default, scrcpy removes the server binary from the device and
restores the device state (show touches, stay awake and power mode) on
exit.
This option disables this cleanup.

--no-clipboard-autosync
By default, scrcpy automatically synchronizes the computer clipboard to
the device clipboard before injecting Ctrl+v, and the device clipboard
to the computer clipboard whenever it changes.
This option disables this automatic synchronization.

--no-downsize-on-error
By default, on MediaCodec error, scrcpy automatically tries again with a
lower definition.
This option disables this behavior.

-n, --no-control
Disable device control (mirror the device in read-only).

-N, --no-display
Do not display device (only when screen recording or V4L2 sink is
enabled).

--no-key-repeat
Do not forward repeated key events when a key is held down.

--no-mipmaps
If the renderer is OpenGL 3.0+ or OpenGL ES 2.0+, then mipmaps are
automatically generated to improve downscaling quality. This option
disables the generation of mipmaps.

--otg
Run in OTG mode: simulate physical keyboard and mouse, as if the
computer keyboard and mouse were plugged directly to the device via an
OTG cable.
In this mode, adb (USB debugging) is not necessary, and mirroring is
disabled.
LAlt, LSuper or RSuper toggle the mouse capture mode, to give control of
the mouse back to the computer.
If any of --hid-keyboard or --hid-mouse is set, only enable keyboard or
mouse respectively, otherwise enable both.
It may only work over USB.
See --hid-keyboard and --hid-mouse.

-p, --port=port[:port]
Set the TCP port (range) used by the client to listen.
Default is 27183:27199.

--power-off-on-close
Turn the device screen off when closing scrcpy.

--prefer-text
Inject alpha characters and space as text events instead of key events.
This avoids issues when combining multiple keys to enter a special
character, but breaks the expected behavior of alpha keys in games
(typically WASD).

--print-fps
Start FPS counter, to print framerate logs to the console. It can be
started or stopped at any time with MOD+i.

--push-target=path
Set the target directory for pushing files to the device by drag & drop.
It is passed as is to "adb push".
Default is "/sdcard/Download/".

--raw-key-events
Inject key events for all input keys, and ignore text events.

-r, --record=file.mp4
Record screen to file.
The format is determined by the --record-format option if set, or by the
file extension (.mp4 or .mkv).

--record-format=format
Force recording format (either mp4 or mkv).

--render-driver=name
Request SDL to use the given render driver (this is just a hint).
Supported names are currently "direct3d", "opengl", "opengles2",
"opengles", "metal" and "software".
<https://wiki.libsdl.org/SDL_HINT_RENDER_DRIVER>

--rotation=value
Set the initial display rotation.
Possible values are 0, 1, 2 and 3. Each increment adds a 90 degrees
rotation counterclockwise.

-s, --serial=serial
The device serial number. Mandatory only if several devices are
connected to adb.

--shortcut-mod=key[+...][,...]
Specify the modifiers to use for scrcpy shortcuts.
Possible keys are "lctrl", "rctrl", "lalt", "ralt", "lsuper" and
"rsuper".
A shortcut can consist in several keys, separated by '+'. Several
shortcuts can be specified, separated by ','.
For example, to use either LCtrl+LAlt or LSuper for scrcpy shortcuts,
pass "lctrl+lalt,lsuper".
Default is "lalt,lsuper" (left-Alt or left-Super).


Click here to read the complete article
1
server_pubkey.txt

rocksolid light 0.9.7
clearnet tor