Skip to content

[BUG] HiDPI toggle leads to erratic behavior for presets and custom resolutions #27

@ehfd

Description

@ehfd

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

When the HiDPI toggle is on, the preset and custom resolution are multiplied by the scale factor (DPI percentage) of the environment. This leads to incorrect resolutions, diverging from the intent of the user.

Expected Behavior

The preset and custom resolution should be kept to what is written regardless of whether the HiDPI toggle is set.

Steps To Reproduce

HiDPI toggle is on
Set preset or custom resolution
Check actual resolution

Environment

- OS:
- How docker service was installed:

Docker creation

git clone https://github.com/selkies-project/selkies.git
cd selkies
git checkout -f feature/websockets
docker run --rm -it \
  --shm-size=1gb \
  -e DEV_MODE=selkies-dashboard \
  -e PUID=1000 \
  -e PGID=1000 \
  -v $(pwd):/config/src \
  -p 3001:3001 linuxserver/chromium bash

Container logs

[pcmflux] Status | Read: 99, Silent: 0 (0.0%), Encoded: 99, Rate: 1.19 kbps
Res: 3840x2160 Mode: H264 (NVENC) CS_IN:I420 LR FF Stripes: 1 CRF:25 EncFPS: 2.00 EncStripes/s: 2.00
Res: 3840x2160 Mode: H264 (NVENC) CS_IN:I420 LR FF Stripes: 1 CRF:25 EncFPS: 0.00 EncStripes/s: 0.00
[pcmflux] Status | Read: 100, Silent: 0 (0.0%), Encoded: 100, Rate: 1.20 kbps
Res: 3840x2160 Mode: H264 (NVENC) CS_IN:I420 LR FF Stripes: 1 CRF:25 EncFPS: 0.00 EncStripes/s: 0.00
[pcmflux] Status | Read: 100, Silent: 0 (0.0%), Encoded: 100, Rate: 1.20 kbps
Res: 3840x2160 Mode: H264 (NVENC) CS_IN:I420 LR FF Stripes: 1 CRF:25 EncFPS: 0.00 EncStripes/s: 0.00

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions