
{"id":47685,"date":"2024-12-07T16:55:10","date_gmt":"2024-12-07T16:55:10","guid":{"rendered":"https:\/\/ubuntuhandbook.org\/?p=47685"},"modified":"2024-12-07T16:55:10","modified_gmt":"2024-12-07T16:55:10","slug":"scrcpy-3-0-virtual-display-linux-package","status":"publish","type":"post","link":"https:\/\/ubuntuhandbook.org\/index.php\/2024\/12\/scrcpy-3-0-virtual-display-linux-package\/","title":{"rendered":"Scrcpy 3.0 Added Virtual Android Display &#038; Official Linux Package"},"content":{"rendered":"<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/03\/scrcpy-icon.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"alignleft size-thumbnail wp-image-43768\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/03\/scrcpy-icon-250x250.webp\" alt=\"\" width=\"250\" height=\"250\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/03\/scrcpy-icon-250x250.webp 250w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/03\/scrcpy-icon-300x300.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/03\/scrcpy-icon-600x600.webp 600w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/03\/scrcpy-icon-768x768.webp 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2023\/03\/scrcpy-icon.webp 1200w\" sizes=\"auto, (max-width: 250px) 100vw, 250px\" \/><\/a><\/p>\n<p>Scrcpy, the popular free open-source Android screen mirroring and controlling app, released version 3.0 then 3.0.1 and 3.0.2 with quick fixes few days ago.<\/p>\n<p>Besides mirroring Android screen on your computer desktop, the new release can now start a virtual Android display on your desktop.<\/p>\n<p><!--more--><\/p>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/12\/scrcpy-virtualdisplay.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-47686\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/12\/scrcpy-virtualdisplay-700x449.webp\" alt=\"\" width=\"610\" height=\"391\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/12\/scrcpy-virtualdisplay-700x449.webp 700w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/12\/scrcpy-virtualdisplay-300x192.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/12\/scrcpy-virtualdisplay-768x493.webp 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/12\/scrcpy-virtualdisplay-1320x847.webp 1320w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/12\/scrcpy-virtualdisplay.webp 1414w\" sizes=\"auto, (max-width: 610px) 100vw, 610px\" \/><\/a><\/p>\n<p>Meaning you can now run your Android app or game on computer screen, and use the physical Android screen at the same time without being affect by each other.<\/p>\n<p><b>To start a virtual display<\/b>, just start scrcpy with <code>--new-display<\/code> option with default screen resolution and density. Or, start with custom screen size and DPI, for example, 1920&#215;1080 size and 420 DPI, by:<\/p>\n<pre>scrcpy --new-display=1920x1080\/420<\/pre>\n<p>The feature so far is NOT perfect IMO. It may starts into blank screen with nothing! In the case, you may start virtual screen and launch an app at startup.<\/p>\n<p>For example, start file manager in new virtual display in 600&#215;800 screen size:<\/p>\n<pre>scrcpy --new-display=600x800 --start-app=com.coloros.filemanager<\/pre>\n<p><b>And, to list all apps<\/b> in your Android, use command:<\/p>\n<pre>scrcpy --list-apps<\/pre>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/12\/scrcpy-listapps.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-47687\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/12\/scrcpy-listapps-700x505.webp\" alt=\"\" width=\"610\" height=\"440\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/12\/scrcpy-listapps-700x505.webp 700w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/12\/scrcpy-listapps-300x216.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/12\/scrcpy-listapps.webp 706w\" sizes=\"auto, (max-width: 610px) 100vw, 610px\" \/><\/a><\/p>\n<p>Besides virtual display and launch app at startup, Scrcpy 3.0 also can apply OpenGL filters directly on the device, making <code>--crop<\/code> option works again on Android &gt;= 14, for mirroring screen, camera, and virtual displays.<\/p>\n<p>And, it added <code>--capture-orientation<\/code> option to replace <code>--lock-video-orientation<\/code> for screen rotate and flip function, that also supports Android &gt;= 14.<\/p>\n<p>The release also added <b>new <code>--angle<\/code> option<\/b> to rotate content in custom angle. Which is especially useful for mirroring the Meta Quest 3 when using along with crop.<\/p>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/12\/scrcpy-angle.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-47688\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/12\/scrcpy-angle.webp\" alt=\"\" width=\"316\" height=\"701\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/12\/scrcpy-angle.webp 316w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/12\/scrcpy-angle-135x300.webp 135w\" sizes=\"auto, (max-width: 316px) 100vw, 316px\" \/><\/a><\/p>\n<p>Other changes in the release include:<\/p>\n<ul>\n<li>New <code>--screen-off-timeout<\/code> to set automatically screen off time delay.<\/li>\n<li>Add shortcut <code>Ctrl+Shift+click-and-move<\/code> for horizontal tilt, and <code>MOD+Shift+r<\/code> to reset video capture\/encoding.<\/li>\n<li>Option to disable system decorations on virtual displays<\/li>\n<li>Rename <code>--display-buffer<code> to <code>--video-buffer<\/code><\/code><\/code><\/li>\n<li>Official Linux and macOS package via portable tarball.<\/li>\n<\/ul>\n<h3>How to Get Scrcpy 3.0.x<\/h3>\n<p>As mentioned above, the app now has official packages for Linux, macOS, and Windows.<\/p>\n<p>Just go to github releases page and click download the zip or tarball according your system:<\/p>\n<div class=\"wp-block-buttons aligncenter\">\n<div class=\"wp-block-button is-style-fill\"><a class=\"wp-block-button__link has-vivid-cyan-blue-to-vivid-purple-gradient-background has-text-color has-background\" href=\"https:\/\/github.com\/Genymobile\/scrcpy\" target=\"_blank\" rel=\"noreferrer noopener\">Download Scrcpy (under Assets)<\/a><\/div>\n<\/div>\n<p>For Linux, download and extract the tarball, then run the <code>adb<\/code> command tool to make connection between your PC and Android, then run <code>scrcpy<\/code> to start mirroring Android screen.<\/p>\n<p><a href=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/12\/scrcpy-linux-portable.webp\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-47689\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/12\/scrcpy-linux-portable-700x407.webp\" alt=\"\" width=\"610\" height=\"355\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/12\/scrcpy-linux-portable-700x407.webp 700w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/12\/scrcpy-linux-portable-300x175.webp 300w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/12\/scrcpy-linux-portable-768x447.webp 768w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/12\/scrcpy-linux-portable-1320x768.webp 1320w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2024\/12\/scrcpy-linux-portable.webp 1352w\" sizes=\"auto, (max-width: 610px) 100vw, 610px\" \/><\/a><\/p>\n<p>If you are new to Scrcpy, then try <a href=\"https:\/\/ubuntuhandbook.org\/index.php\/2023\/03\/scrcpy-2-0-install-android-remote-control\/\" target=\"_blank\" rel=\"noopener\">this tutorial<\/a> for how to install &amp; use scrcpy in Ubuntu.<\/p>","protected":false},"excerpt":{"rendered":"<p>Scrcpy, the popular free open-source Android screen mirroring and controlling app, released version 3.0 then 3.0.1 and 3.0.2 with quick fixes few days ago. Besides mirroring Android screen on your computer desktop, the new release can now start a virtual Android display on your desktop.<\/p>\n","protected":false},"author":1,"featured_media":43768,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[2051,2268],"class_list":["post-47685","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-news","tag-android","tag-scr"],"_links":{"self":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts\/47685","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/comments?post=47685"}],"version-history":[{"count":0,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts\/47685\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/media\/43768"}],"wp:attachment":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/media?parent=47685"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/categories?post=47685"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/tags?post=47685"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}