swaywm / sway

i3-compatible Wayland compositor
https://swaywm.org
MIT License
14.4k stars 1.1k forks source link

640x480 not recognized #5619

Open shoober420 opened 4 years ago

shoober420 commented 4 years ago

swaymsg -t get_outputs


  Current mode: 1920x1080 @ 60.000000 Hz
  Position: 0,0
  Scale factor: 1.000000
  Scale filter: nearest
  Subpixel hinting: rgb
  Transform: normal
  Workspace: $ws4
  Max render time: off
  Adaptive sync: disabled
  Available modes:
    720x400 @ 70.082001 Hz
    640x480 @ 59.939999 Hz
    640x480 @ 60.000000 Hz
    640x480 @ 75.000000 Hz
    720x480 @ 59.939999 Hz
    720x480 @ 60.000000 Hz
    720x576 @ 50.000000 Hz
    800x600 @ 60.317001 Hz
    800x600 @ 75.000000 Hz
    1024x768 @ 60.004002 Hz
    1024x768 @ 75.028999 Hz
    1280x720 @ 50.000000 Hz
    1280x720 @ 59.939999 Hz
    1280x720 @ 60.000000 Hz
    1152x864 @ 75.000000 Hz
    1280x1024 @ 60.020000 Hz
    1280x1024 @ 75.025002 Hz
    1600x900 @ 60.000000 Hz
    1920x1080 @ 50.000000 Hz
    1920x1080 @ 59.939999 Hz
    1920x1080 @ 60.000000 Hz

Output LVDS-1 'Unknown 0x0384 0x00000000' (inactive)
  Available modes:
    640x480 @ 59.938000 Hz
    720x480 @ 59.938000 Hz
    848x480 @ 59.938999 Hz
    800x600 @ 59.959999 Hz
    1024x768 @ 59.949001 Hz
    1152x768 @ 59.950001 Hz
    1280x720 @ 59.973999 Hz
    1366x768 @ 40.042000 Hz
    1366x768 @ 60.068001 Hz```
shoober420 commented 4 years ago

Interesting, I got it to work using output HDMI-A-1 res --custom 640x480@75Hz. Using output HDMI-A-1 res --custom 640x480@60Hz and output HDMI-A-1 res --custom 640x480 will result in a black screen. Maybe it has to do with my second deactivated laptop screen?

kiljacken commented 4 years ago

Why are you using --custom when it's a natively supported resolution of your monitor?

emersion commented 4 years ago

Sounds like Sway does the right thing, and doesn't get an error from the kernel:

00:00:01.651 [INFO] [backend/drm/drm.c:852] Registered custom mode 640x480@59375
00:00:01.651 [INFO] [backend/drm/drm.c:803] Modesetting 'HDMI-A-1' with '640x480@59375mHz'
00:00:01.651 [DEBUG] [backend/drm/drm.c:685] Initializing renderer on connector 'HDMI-A-1'

Can you obtain DRM debug logs? See https://github.com/swaywm/wlroots/wiki/DRM-Debugging

shoober420 commented 4 years ago

@kiljacken Oops, my fault. Removing the --custom parameter fixed the issue. Thank you.

@emersion Just incase, here are the logs.

sway.log dmesg.log