Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect display colors on M1 Mac Mini over HDMI #326

Open
fyredragon69 opened this issue Sep 23, 2024 · 3 comments
Open

Incorrect display colors on M1 Mac Mini over HDMI #326

fyredragon69 opened this issue Sep 23, 2024 · 3 comments

Comments

@fyredragon69
Copy link

(reposting from docs repo, brainfart)
hello, i recently got my hands on an m1 mac mini and installed asahi linux
so far the project has exceeded my expectations and performs perfectly, except for the display of my choosing
while booted into asahi linux fedora kde remix, the colors of my display seem to be incorrect, and it's not my monitors settings as the issue resolves itself in macos sonoma (now sequoia at the time of writing). the monitor in question is an LG L196WTY running at 1440x900, connected through a DVI to HDMI adapter if that matters. i have tried changing the color profiles within asahi linux to no success. i should note that the issue does not appear when using a different display, a samsung LF24T35 running at 1920x1080

@jannau
Copy link
Member

jannau commented Sep 23, 2024

Can you describe how the colors are incorrect in more detail?

  • Are they slightly off but red is still red, green still green and blue still blue?
  • is the display overall to bright / dark?

You could try sudo grubby --args=apple_dcp.unstable_edid --update-kernel=ALL and then select in KDE's display settings of the monitor "Built-In" as color profile. Despite the name it's not expected to introduce instability. If it causes issues it can be removed from the kernel command line in grub (Press esc immediately after "Booting from nvme" is displayed. The grub menu unfortunately has no cursor so editing is a little annoying). Once you booted it can be removed with sudo grubby --remove-args=apple_dcp.unstable_edid --update-kernel=ALL.

After adding the arg "/sys/class/drm/card2-HDMI-A-1/edid" (or similar the card number is not stable). Please attach the output of edid-decode /sys/class/drm/card2-HDMI-A-1/edid to this ticket.

@fyredragon69
Copy link
Author

when i say the colors are incorrect, i mean they are completely off. using the smpte color bars as an example, yellow is purple, cyan and green are black, magenta and red are white, and blue is green
20240923_130942
i have ensured multiple times that the color profile is set to default and the monitors preferences have been reset multiple times by me. i tried adding the argument with the command you provided and unfortunately it did not fix my issue, setting it to the "Built-In" profile resulted in the monitor not showing anything

here is the output of the edid-decode command, as you asked:

edid-decode (hex):

00 ff ff ff ff ff ff 00 1e 6d 69 4b fa d5 01 00
08 11 01 03 ea 29 1a 78 ea 9b b6 4a 53 4b 9d 24
14 4f 54 a7 6f 80 95 00 81 80 81 40 71 4f 01 01
01 01 01 01 01 01 9a 29 a0 d0 51 84 22 30 50 98
36 00 98 ff 10 00 00 1c 00 00 00 fd 00 38 4b 1e
53 0e 00 0a 20 20 20 20 20 20 00 00 00 fc 00 4c
31 39 36 57 0a 20 20 20 20 20 20 20 00 00 00 fc
00 0a 20 20 20 20 20 20 20 20 20 20 20 20 00 32

----------------

Block 0, Base EDID:
  EDID Structure Version & Revision: 1.3
  Vendor & Product Identification:
    Manufacturer: GSM
    Model: 19305
    Serial Number: 120314 (0x0001d5fa)
    Made in: week 8 of 2007
  Basic Display Parameters & Features:
    Digital display
    Maximum image size: 41 cm x 26 cm
    Gamma: 2.20
    DPMS levels: Standby Suspend Off
    RGB color display
    First detailed timing is the preferred timing
  Color Characteristics:
    Red  : 0.2910, 0.3251
    Green: 0.2949, 0.6162
    Blue : 0.1425, 0.0810
    White: 0.3095, 0.3300
  Established Timings I & II:
    IBM     :   720x400    70.081663 Hz   9:5     31.467 kHz     28.320000 MHz
    DMT 0x04:   640x480    59.940476 Hz   4:3     31.469 kHz     25.175000 MHz
    DMT 0x06:   640x480    75.000000 Hz   4:3     37.500 kHz     31.500000 MHz
    DMT 0x08:   800x600    56.250000 Hz   4:3     35.156 kHz     36.000000 MHz
    DMT 0x09:   800x600    60.316541 Hz   4:3     37.879 kHz     40.000000 MHz
    DMT 0x0b:   800x600    75.000000 Hz   4:3     46.875 kHz     49.500000 MHz
    Apple   :   832x624    74.551266 Hz   4:3     49.726 kHz     57.284000 MHz
    DMT 0x10:  1024x768    60.003840 Hz   4:3     48.363 kHz     65.000000 MHz
    DMT 0x11:  1024x768    70.069359 Hz   4:3     56.476 kHz     75.000000 MHz
    DMT 0x12:  1024x768    75.028582 Hz   4:3     60.023 kHz     78.750000 MHz
    DMT 0x24:  1280x1024   75.024675 Hz   5:4     79.976 kHz    135.000000 MHz
    Apple   :  1152x870    75.061550 Hz 192:145   68.681 kHz    100.000000 MHz
  Standard Timings:
    DMT 0x2f:  1440x900    59.887445 Hz  16:10    55.935 kHz    106.500000 MHz
    DMT 0x23:  1280x1024   60.019740 Hz   5:4     63.981 kHz    108.000000 MHz
    DMT 0x20:  1280x960    60.000000 Hz   4:3     60.000 kHz    108.000000 MHz
    DMT 0x15:  1152x864    75.000000 Hz   4:3     67.500 kHz    108.000000 MHz
  Detailed Timing Descriptors:
    DTD 1:  1440x900    59.887445 Hz  16:10    55.935 kHz    106.500000 MHz (408 mm x 255 mm)
                 Hfront   80 Hsync 152 Hback  232 Hpol N
                 Vfront    3 Vsync   6 Vback   25 Vpol P
    Display Range Limits:
      Monitor ranges (GTF): 56-75 Hz V, 30-83 kHz H, max dotclock 140 MHz
    Display Product Name: 'L196W'
    Display Product Name: ''
Checksum: 0x32

@fyredragon69
Copy link
Author

is there anything else needed to assist in narrowing down the issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants