-
-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
🐛 [BUG] - The system uses 60hz instead of using the highest refresh rate the monitor provides (mine is 100hz) #106
Comments
I just want to enjoy BlissOS with a high refresh rate |
The issue is that the default mode your monitor advertises to the OS (Bliss in this case) is the one with lower refresh rate. For celadon hwc you can “select monitor” with these experimental flags, MODE_ID and CONNECTOR_ID https://github.com/BlissRoms-x86/device_generic_common/blob/6017b7d8071e148623efca41531fc1c5ff2a6092/init.sh#L498 console:/sys/class/drm # cd /sys/class/drm; for i in card*; do echo $i; cat $i/modes; done
card0
cat: card0/modes: No such file or directory
card0-Virtual-1
5120x2160
4096x2160
3840x2160
3840x2160
3840x2160
1920x1440
2560x1080
1856x1392
1792x1344
2048x1152
1920x1200
1920x1080
1920x1080
1600x1200
1680x1050
1400x1050
1280x1024
1440x900
1280x960
1360x768
1280x768
1024x768
800x600
640x480
640x480
console:/sys/class/drm # I used QEMU for this demo but it also works on physical devices. 130|console:/ # logcat | grep hwc
11-14 06:45:28.412 659 659 D hwc-drm-device: The property 'vendor.hwcomposer.preferred.mode.limit' value is 1
11-14 06:45:28.412 659 659 D hwc-drm-device: The property 'vendor.hwcomposer.planes.enabling' value is 0, only support primary plane
11-14 06:45:28.412 659 659 D hwc-drm-device: The property 'vendor.hwcomposer.planes.num' value is 99
11-14 06:45:28.413 659 659 I hwc-buffer-info-getter: Using CrOS Gralloc gralloc module: Chrome OS
11-14 06:45:28.413 659 659 D hwc-drm-connector: The property 'vendor.hwcomposer.connector.id' value is -1
11-14 06:45:28.413 659 659 D hwc-drm-connector: The property 'vendor.hwcomposer.mode.id' value is -1
11-14 06:45:28.413 659 659 D hwc-drm-connector: CONNECTOR:34 select one mode, id = 1, name = [email protected], refresh = 59.993221
11-14 06:45:28.413 659 659 D hwc-drm-connector: CONNECTOR:34 preferred mode found, set preferred mode id = 1, name = [email protected], refresh = 59.993221
11-14 06:45:28.413 659 659 D hwc-drm-connector: The property 'vendor.hwcomposer.connector.multi_refresh_rate' value is -1
11-14 06:45:28.413 659 659 I hwc-resource-manager: Attaching connector Virtual-1
11-14 06:45:28.413 659 659 I hwc-drm-two: Attaching pipeline 'Virtual-1' to the display #0 (Primary)
11-14 06:45:28.413 659 659 D hwc-drm-connector: The property 'vendor.hwcomposer.connector.id' value is -1
11-14 06:45:28.413 659 659 D hwc-drm-connector: The property 'vendor.hwcomposer.mode.id' value is -1
11-14 06:45:28.413 659 659 D hwc-drm-connector: CONNECTOR:34 select one mode, id = 1, name = [email protected], refresh = 59.993221
11-14 06:45:28.413 659 659 D hwc-drm-connector: CONNECTOR:34 preferred mode found, set preferred mode id = 1, name = [email protected], refresh = 59.993221
11-14 06:45:28.413 659 659 D hwc-drm-connector: The property 'vendor.hwcomposer.connector.multi_refresh_rate' value is -1
11-14 06:45:28.414 659 659 I hwc-backend: Backend 'generic' for 'Virtual-1' and driver 'virtio_gpu' was successfully set On my laptop MULTI_REFRESH_RATE=1 in kernel cmdline was also sufficient to let me switch between different refresh rates from Android settings > display. Switching to gbm_gralloc might work as an alternative if you cannot find modes/connector, however it may cause other issues.
TL;DR: You have find out the mode id and connector id for 100hz and supply them in kernel cmdline with MODE_ID= and CONNECTOR_ID= and use HWC=drm_minigbm_celadon GRALLOC=minigbm. Another solution is to use edid_override feature of Linux kernel, it must be triggered before Android starts to use the GPU. |
Description
Yes, i don't know if something necessary like this has to be reported to GitHub, but this is very annoying for me and I can't find a solution to my personal problem
Reproduction steps
1. Install a new fresh copy of BlissOS 2. Activate developer mode 3. Turn on 'Show refresh rate' options
Screenshots
Logs
why?
Category
Display
OS Version
16.x
The text was updated successfully, but these errors were encountered: