Skip to content
This repository has been archived by the owner on Jan 26, 2024. It is now read-only.

Doesn't get the right resolution #512

Closed
qaqland opened this issue Nov 13, 2023 · 5 comments
Closed

Doesn't get the right resolution #512

qaqland opened this issue Nov 13, 2023 · 5 comments
Labels
A: bug Something isn't working

Comments

@qaqland
Copy link

qaqland commented Nov 13, 2023

Info

dwl version: 0.4
wlroots version: 0.16

Description

my screen is 1920x1280 but dwl only think it is 1920x1080

here is wlr-randr outputs:

HDMI-A-1 "DO NOT USE - RTK FHD demoset-1 (HDMI-A-1)"
  Make: DO NOT USE - RTK
  Model: FHD
  Serial: demoset-1
  Physical size: 300x190 mm
  Enabled: yes
  Modes:
    1920x1080 px, 60.000000 Hz (preferred, current)
    1920x1080 px, 60.000000 Hz
    1920x1080 px, 60.000000 Hz
    1920x1080 px, 59.939999 Hz
    1600x900 px, 60.000000 Hz
    1280x800 px, 59.910000 Hz
    1280x720 px, 60.000000 Hz
    1280x720 px, 59.939999 Hz
    1024x768 px, 60.004002 Hz
    800x600 px, 60.317001 Hz
    720x480 px, 60.000000 Hz
    720x480 px, 60.000000 Hz
    720x480 px, 59.939999 Hz
    720x480 px, 59.939999 Hz
    640x480 px, 60.000000 Hz
    640x480 px, 59.939999 Hz
    640x480 px, 59.939999 Hz
  Position: 0,0
  Transform: normal
  Scale: 2.000000
  Adaptive Sync: disabled

@qaqland qaqland added the A: bug Something isn't working label Nov 13, 2023
@sevz17
Copy link
Collaborator

sevz17 commented Nov 14, 2023

Your monitor does not seems to support that resolution... very strange, can you try on sway if it gets the right resolution?

Also, on IRC you mentioned wlr-randr --custom-mode doesn't work
can you attach the stderr of dwl -d (in that session try to set the custom mode)

EDIT: just in case, run dwl directly from the tty

@qaqland
Copy link
Author

qaqland commented Nov 15, 2023

sway cannot get the right also..

idk how to get the stderr of dwl

@sevz17
Copy link
Collaborator

sevz17 commented Nov 16, 2023

So... here are two problems:

  • wlroots somehow does not recognize all modes of you monitor
  • dwl can not set a custom mode

To get the stderr of a program you need to redirect it to a file which is done with 2> path/to/file, e.g dwl 2> dwl.log, this will create a file named dwl.log in your current directory, attach that file
1> or almost always used as > is to redirect the stdout

EDIT: please use the latest commit to get the logs, -d was added recently

@qaqland
Copy link
Author

qaqland commented Nov 18, 2023

Thank you for your help.

I tried ways and find that add my resolution to grub's GFXMODE and this time wlr-randr custom-mode works well.

I also successfully get stderr from dwl -d, but this time it looks good, so I don't paste it here.

@sevz17
Copy link
Collaborator

sevz17 commented Nov 18, 2023

Ah, then your driver/monitor did not expose all the modes.

@sevz17 sevz17 closed this as completed Nov 18, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants