ascent12 / drm_info

Moved to https://gitlab.freedesktop.org/emersion/drm_info
MIT License
64 stars 13 forks source link

Current display mode? #81

Closed shmerl closed 2 years ago

shmerl commented 2 years ago

Is there some way to see the current display mode, something similar to how xrandr indicates it:

  2560x1440 (0x5c) 768.500MHz +HSync -VSync *current
        h: width  2560 start 2608 end 2640 total 2720 skew    0 clock 282.54KHz
        v: height 1440 start 1443 end 1448 total 1570           clock 179.96Hz

I can see the list of modes in the JSON output, but couldn't figure out what's the current one.

Also, it would be nice to see details like above (i.e. sync pulses and porches) in the pretty output, not only in JSON one.

emersion commented 2 years ago

The current mode should be displayed in the CRTC, not the connector.

shmerl commented 2 years ago

Thanks for the pointer, I see it there!