Completely redo DockService to:
- Work around NVIDIA hwcomposer issues
- Properly support docking
- Actually use set display preferences
Change-Id: Ic1ea73c113f291bcbe40ecd4ecca3288c88368b4
vali does not have display out, and we will not support hw hacks
at the moment. This could change, in which case we will add env
in bootloader and set prop from cmdline for hdmi display.
Change-Id: I769b8ed1d1efcc4e4aae57697c632352c98eb55a
This is a squash of the following loosely kept history:
```
Rename device settings, override the common version, and build it
Change-Id: Ifff795f77ccc299d284eed56b050dfd59c8563a3
Set display resolution, disable HW overlays and unlock screen automatically when docked
devicesettings: Add power profiles support and cleanup scaling
Code cleanup and fix docked display size setting
devicesettings: Add DPI scaling
Always disable HW Overlays
Properly handle multiple external displays rather than hardcoding ID
devicesettings: Add fan profile support
Remove internal display dpi scaling
Add nice devicesettings icon
devicesettings: Fix atv scaling by restoring past resolution on undock
devicesettings: Fix icon colour and reset power profile on unlock
Expose DeviceSettings in leanback launcher
In the future a leanback variant should be made.
DockService: Updates to support ATV display handling
devicesettings: Add HWC wake rotation workaround
Remove HW overlays workaround from DockService and use prop instead
devicesettings: Add fan coefficient setting for perf profiles
Change-Id: Idf524a50ac96e1adc299b109be9319f6cc161cd9
Cleanup DockService
dockservice: update log statements
- Adds log statement on entering HDMI disconnected block
- Changes display index logging from error to information
```
Co-authored-by: Thomas Makin <halorocker89@gmail.com>
Co-authored-by: CTCaer <ctcaer@gmail.com>
Co-authored-by: Billy Laws <blaws05@gmail.com>
Co-authored-by: Aaron Kling <webgeek1234@gmail.com>
Change-Id: I0013b598431c7ec28e95de92343f4aa25b9ee5e5
For some reason bcm fw patchfiles take way too long to load, at
least on nx and some other reference devices. 200ms seems to be
the standard as per reference devices in bcm libbt, and this
rectifies bt issues with bcm bt on nx.
Change-Id: Ifccb1129f6ac2e183490a608fafc1b230d4ece0d
* 00-android - Used to configure the hekate boot menu.
* *.bmp - Displayed by hekate in the boot menu.
Change-Id: I01016e166c5dfc4b5f50a4d1a81b8f5f3b47a8ae
* We don't care about other nv devices.
Co-authored-by: Nolen Johnson <johnsonnolen@gmail.com>
Co-authored-by: Thomas Makin <halorocker89@gmail.com>
Co-authored-by: Billy Laws <blaws05@gmail.com>
Change-Id: Ib2f7711c87df2b25d8497eebdb9e71975566a3ab
NVIDIA's hwcomposer implementation has a number of crippling issues
which we manually work around.
* It completely breaks down when default rotation is anything but 0,
so the DTB has been modified so HWC treats the display as being in
portrait (natural rotation of the panel). SurfaceFlinger now handles
the default orientation settings (ORIENTATION_270) and lock screen
rotation has been enabled previously via overlay.
* It lacks proper display duplication, so pending an OSS docking
handler service, `stb_mode` has been enabled to attempt to replicate
stock Switch behavior. NOTE: at the moment, the 2nd display out shows
as rotated 1080p.
Change-Id: Ic7d46ed0c61c9aea44faf2e91bd102f9d7360fde
* We don't need `update_js_touch_fw.sh` which is the only
thing housed in `init.loki_e_common.rc`.
Change-Id: I0025fc0fd7297af276964a73e54195cd30513be6
* 116 is the standard gpio keycode on tegra for the power button.
* Foster uses the power button to act as the pairing button.
* NX devices don't use gpio for the power button, instead wiring
it to the max mfd. So it is safe to remove this line.
Change-Id: Ib9524e76277ec0d9d7c38e717f5486d7123535a1
* This is really only needed on devkits to allow
recovery flashed to `LNX` as opposed to `SOS` to
actually boot.
Change-Id: I238f356a0bee74ba2b6b60168d3b072ad490a796
This is a squashed revert of:
Revert "Add darcy rro"
This reverts commit 6c4b0320ee.
Revert "convertiblehal: This is a device specific prebuilt, not common"
This reverts commit a72b1112d2
Only enable covertible port hal on darcy/mdarcy
This reverts commits 447e73d8a2
Add convertible port hal
Used by darcy and mdarcy to switch one of the usb ports from host
to device mode for adb.
This reverts commit c98dc6335b
Reason: We aren't darcy.
Change-Id: I0087736ad07c98828b821f8b53894420aacb9e9b
This is a squashed revert of:
Revert "Import Netflix permissions and properties"
This reverts commit 6982b5917a.
Revert "Allow netflix to operate in doze"
This reverts commit c7241664f9.
Revert "Set nrdp modelgroup prop based on device"
mdarcy and sif have a different value than foster and darcy
Also restrict setting netflix props and installing configs to atv
targets
This reverts commit 22912ef909
Revert "Add netflix config overlay"
This replicates the stock configs
Based on example by luca020400
This reverts commit 3e0a9c33f6
Reason: NX devices do not support Netflix on Android
Change-Id: Ifafb5a6b81567bf177ba186518bf4b2c1d7ca14a
* This is a tree for all Nintendo Switch variants:
`odin`, `modin`, `vali`, and `frig`.
* `ro.hardware` will be NX on all variants with
`ro.hardware.sku` being set per variant by u-boot.
Changes are as follows:
* At the moment the packaged DTB is only for `odin`, more to follow.
* Note: We may make `modin`, `vail`, and `frig` device-tree-overlays
on the `odin` base DTB to simplify things.
* Use darcy's thermal config as it's the most lenient, and is a same SoC STB.
* Unlike `icosa_sr` previously did, we will use the BCM HAL for BT over
BTLinux, as A2DP is tested and verified, no need to deviate.
Changes that will require follow-up commits to build out:
* Update init to reflect nx's needs - will need more work to support devices
other than `odin`.
Removals are as follows:
* Remove all non-nx device support files.
Co-authored-by: Thomas Makin <halorocker89@gmail.com>
Co-authored-by: Billy Laws <blaws05@gmail.com>
Co-authored-by: Aaron Kling <webgeek1234@gmail.com>
Co-authored-by: CTCaer <ctcaer@gmail.com>
Co-authored-by: John Smith <nemui3353@gmail.com>
Co-authored-by: langerhans <langerhans@users.noreply.github.com>
Co-authored-by: Nolen Johnson <johnsonnolen@gmail.com>
Change-Id: I9bab4d94c6e94a9c6e2a7cf04d16c4b76c0b6ac5