Code:
However having to access /sys/class/drm is abnormal for most operations. What information is it that you're retrieving?
@PhilE suggested at viewtopic.php?p=2123544#p2123544, that one could query the `/sys/class/drm/` to sync DPMS and the backlight, and given the troubles I've had using the ordinary backlight driver, querying `/sys/class/drm/cardx-HDMI-A-1/dpms` seems like the simplest, and even the most reliable, way to get that to work.
I also need to support several models with differing hardware, so querying `/sys/class/drm/cardx-HDMI-A-1/edid` is a convenient way to determine which model the software is running on, as we are encoding that information in our EDIDs.
Statistics: Posted by JinShil — Tue Feb 13, 2024 4:07 am