Commit Graph
12 Commits
Author SHA1 Message Date
tmakin c12b495144 nx: devicesettings: add flag parsing
1: VRR
2: HDR10
4: DOVI (unsupported)

Change-Id: I9b47d17fd418bb5c902914dea2501b2de27c501f
2024-01-25 15:54:02 -05:00
tmakin 1dc6655030 nx: displayutils: fall back to max 1080p60
It's bad UX for the default res to be awful. Now, if a pref
is not found, dockservice will default to MAX_1080P_60HZ.

Change-Id: I8900f3d0819db1afcd34454cfea9b0177f9db89d
2024-01-25 15:54:02 -05:00
tmakin b4fd298fca nx: clean up devicesettings
- Set 90 char line limit
- Fix file formats
- Fix comments and typos
- Remove bitrot and unused code
- Update copyright to 2023

Change-Id: I0cd71f2e706c9dd7f5460ea6906a5ec88decf961
2024-01-25 15:54:02 -05:00
Nolen Johnson f61ef2fc76 fixup! nx: devicesettings: Add OLED panel preference
Change-Id: I5ef2baffce8eca7d424042645ce9cd1bd652cd21
2024-01-25 15:54:02 -05:00
tmakin df1c423111 nx: devicesettings: Customize appearance
- new icon
- new banner
- adjust strings etc.
- show in all launcher

Change-Id: I615fdce801a45929e119ac895615d7c83f845871
2024-01-25 15:54:02 -05:00
tmakin 837547077c nx: devicesettings: Update fan profiles
Change-Id: I410c7c38869dfa9ee321f31e54ee02926035f7b2
2024-01-25 15:54:02 -05:00
tmakin 6ff57aca6a nx: devicesettings: Refactor dockservice
Completely redo DockService to:
- Work around NVIDIA hwcomposer issues
- Properly support docking
- Actually use set display preferences

Change-Id: Ic1ea73c113f291bcbe40ecd4ecca3288c88368b4
2024-01-25 15:54:02 -05:00
tmakin c48f464980 nx: devicesettings: Guard display settings for vali
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
2024-01-25 15:54:02 -05:00
tmakin 8a7d0fb861 nx: devicesettings: Rename performance category
Change-Id: I6a688813e0e862fbe250ece1c5dfcda338808428
2024-01-25 15:54:02 -05:00
tmakin 0bcbb773ae nx: devicesettings: Add OLED panel preference
* Adds selection for Samsung OLED panel modes.

Change-Id: Ifd90e764deb8b481b81c04911e8680a4bb577ac6
2024-01-25 15:54:02 -05:00
de575ce4ac nx: devicesettings: Initial NX specific version
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
2024-01-25 15:54:02 -05:00
Aaron Kling d088f2f0c3 nx: Import devicesettings from tegra-common 9c7025b
This is a baseline to modify

Change-Id: Ifaf5309ec0e2a15626571b667d567bc514082cad
2024-01-25 15:54:02 -05:00