Skip to content

Instantly share code, notes, and snippets.

@TBog
Last active August 2, 2024 12:51
Show Gist options
  • Save TBog/42048e823888233afa74bc89015067a2 to your computer and use it in GitHub Desktop.
Save TBog/42048e823888233afa74bc89015067a2 to your computer and use it in GitHub Desktop.
ASUS PG278Q linux AMD

Issue details

After changing my GPU from nVidia to AMD the ASUS PG278Q display is all black. https://www.reddit.com/r/archlinux/comments/ovrq8o/edid_not_readable_by_mesa_but_working_under_nvidia/

Fix found online

https://rizvir.com/articles/asus-PG278Q-in-linux/

xrandr --newmode "2560x1440" 241.5 2560 2608 2640 2720 1440 1443 1448 1481 -hsync +vsync
xrandr --addmode DP1 2560x1440
xrandr --output DP1 --mode 2560x1440

Other fix

https://forums.linuxmint.com/viewtopic.php?t=209450

xrandr --newmode "2560x1440@60" 241,500 2560 2608 2640 2720 1440 1443 1448 1481 +hsync -vsync
xrandr --addmode DisplayPort-1 "2560x1440@60"

My fix

  1. add resolution, refresh and rotation to kernel cmd video=DP-1:2560x1440MR@60,rotate=90

path /etc/default/grub

GRUB_CMDLINE_LINUX_DEFAULT="quiet scsi_mod.scan=sync rd.udev.log_priority=3 vt.global_cursor_default=0 systemd.unified_cgroup_hierarchy=1 resume=UUID=1a8bbdb8-fd3a-4dc9-b980-4fc1b201e03d loglevel=3 mitigations=off sysrq_always_enabled=1 pci=noaer radeon.cik_support=0 amdgpu.cik_support=1 radeon.si_support=0 amdgpu.si_support=1 video=DP-1:2560x1440MR@60,rotate=90 video=DVI-D-1:1920x1200M" # Modified by garuda-migrations: splash
  1. add 09-monitor.conf in folder /etc/X11/xorg.conf.d/
  2. add 99-pg278q-monitor.sh in folder /etc/X11/xinit/xinitrc.d/

Details

Using Monitor Asset Manager in windows I got the detailed technical information about the display device and its capabilities. See monitor info

Section "Monitor"
Identifier "DisplayPort-0"
VendorName "ACI"
ModelName "Ancor Communications Inc ROG PG278Q"
ModeLine "2560x1440_120.00" 497.75 2560 2608 2640 2720 1440 1443 1448 1525 +hsync -vsync
DisplaySize 600 340
#Gamma 2.20
HorizSync 30.0 - 210.0
VertRefresh 30.0 - 150.0
Option "DPMS" "true"
Option "PreferredMode" "2560x1440_120.00"
Option "Rotate" "left"
EndSection
Section "Monitor"
Identifier "DVI-D-0"
VendorName "Dell"
ModelName "DELL E248WFP"
Option "PreferredMode" "1920x1200"
Option "Primary" "true"
EndSection
Section "Device"
### Available Driver options are:-
### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
### <string>: "String", <freq>: "<f> Hz/kHz/MHz",
### <percent>: "<f>%"
### [arg]: arg optional
#Option "Accel" # [<bool>]
#Option "SWcursor" # [<bool>]
#Option "EnablePageFlip" # [<bool>]
#Option "SubPixelOrder" # [<str>]
#Option "ZaphodHeads" # <str>
#Option "AccelMethod" # <str>
#Option "DRI3" # [<bool>]
#Option "DRI" # <i>
#Option "ShadowPrimary" # [<bool>]
#Option "TearFree" # [<bool>]
#Option "DeleteUnusedDP12Displays" # [<bool>]
#Option "VariableRefresh" # [<bool>]
#Option "AsyncFlipSecondaries" # [<bool>]
Identifier "Card0"
Driver "amdgpu"
BusID "PCI:3:0:0"
EndSection
Section "Device"
### Available Driver options are:-
### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
### <string>: "String", <freq>: "<f> Hz/kHz/MHz",
### <percent>: "<f>%"
### [arg]: arg optional
#Option "Accel" # [<bool>]
#Option "SWcursor" # [<bool>]
#Option "EnablePageFlip" # [<bool>]
#Option "SubPixelOrder" # [<str>]
#Option "ZaphodHeads" # <str>
#Option "AccelMethod" # <str>
#Option "DRI3" # [<bool>]
#Option "DRI" # <i>
#Option "ShadowPrimary" # [<bool>]
#Option "TearFree" # [<bool>]
#Option "DeleteUnusedDP12Displays" # [<bool>]
#Option "VariableRefresh" # [<bool>]
#Option "AsyncFlipSecondaries" # [<bool>]
Identifier "Card1"
Driver "amdgpu"
BusID "PCI:3:0:1"
EndSection
Section "Screen"
Identifier "Screen0"
Device "Card0"
Monitor "DisplayPort-0"
SubSection "Display"
Viewport 0 0
Depth 1
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 4
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 8
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 15
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 16
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 24
EndSubSection
EndSection
Section "Screen"
Identifier "Screen1"
Device "Card1"
Monitor "DVI-D-0"
SubSection "Display"
Viewport 0 0
Depth 1
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 4
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 8
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 15
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 16
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 24
EndSubSection
EndSection
# https://gitlab.freedesktop.org/drm/amd/-/issues/615
# set PG278Q display resolution at 2560x1440 with 120Hz refresh
xrandr --newmode "2560x1440_120.00" 497.75 2560 2608 2640 2720 1440 1443 1448 1525 +hsync -vsync
xrandr --addmode DisplayPort-0 2560x1440_120.00
xrandr --output DisplayPort-0 --mode 2560x1440_120.00
Monitor
Model name............... ROG PG278Q
Manufacturer............. Asus
Plug and Play ID......... ACI27B1
Serial number............ #ASNiJkIL0ePd-36325
Manufacture date......... 2014, ISO week 42
Filter driver............ None
-------------------------
EDID revision............ 1.4
Input signal type........ Digital (DisplayPort)
Color bit depth.......... 8 bits per primary color
Color encoding formats... RGB 4:4:4
Screen size.............. 600 x 340 mm (27.2 in)
Power management......... Not supported
Extension blocs.......... 1 (CEA/CTA-EXT)
-------------------------
DDC/CI................... Not supported
Color characteristics
Default color space...... sRGB
Display gamma............ 2.20
Red chromaticity......... Rx 0.646 - Ry 0.344
Green chromaticity....... Gx 0.315 - Gy 0.625
Blue chromaticity........ Bx 0.140 - By 0.045
White point (default).... Wx 0.313 - Wy 0.329
Additional descriptors... None
Timing characteristics
Horizontal scan range.... 30-210kHz
Vertical scan range...... 30-150Hz
Video bandwidth.......... 540MHz
CVT standard............. Not supported
GTF standard............. Not supported
Additional descriptors... None
Preferred timing......... Yes
Native/preferred timing.. 2560x1440p at 60Hz (16:9)
Modeline............... "2560x1440" 241.500 2560 2608 2640 2720 1440 1443 1448 1481 +hsync -vsync
Standard timings supported
EIA/CEA/CTA-861 Information
Revision number.......... 3
IT underscan............. Not supported
Basic audio.............. Not supported
YCbCr 4:4:4.............. Not supported
YCbCr 4:2:2.............. Not supported
Native formats........... 1
Detailed timing #1....... 2560x1440p at 85Hz (16:9)
Modeline............... "2560x1440" 346.500 2560 2608 2640 2720 1440 1443 1448 1499 +hsync -vsync
Detailed timing #2....... 2560x1440p at 100Hz (16:9)
Modeline............... "2560x1440" 410.500 2560 2608 2640 2720 1440 1443 1448 1510 +hsync -vsync
Detailed timing #3....... 2560x1440p at 120Hz (16:9)
Modeline............... "2560x1440" 497.750 2560 2608 2640 2720 1440 1443 1448 1525 +hsync -vsync
Detailed timing #4....... 2560x1440p at 144Hz (16:9)
Modeline............... "2560x1440" 538.760 2560 2564 2580 2582 1440 1441 1442 1449 +hsync +vsync
Detailed timing #5....... 2560x1440p at 24Hz (16:9)
Modeline............... "2560x1440" 95.000 2560 2608 2640 2720 1440 1443 1448 1457 +hsync -vsync
CE vendor specific data (VSDB)
IEEE registration number. 0x00044B
CEC physical address..... 0.1.0.1
Maximum TMDS clock....... 165MHz
Report information
Date generated........... 8/2/2024
Software revision........ 2.91.0.1043
Data source.............. Real-time 0xA700
Operating system......... 10.0.19045.2
Raw data
00,FF,FF,FF,FF,FF,FF,00,04,69,B1,27,E5,8D,00,00,2A,18,01,04,A5,3C,22,78,06,4C,E1,A5,58,50,A0,23,
0B,50,54,00,00,00,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,01,56,5E,00,A0,A0,A0,29,50,30,20,
35,00,56,50,21,00,00,1A,00,00,00,FF,00,23,41,53,4E,69,4A,6B,49,4C,30,65,50,64,00,00,00,FD,00,1E,
96,1E,D2,36,01,0A,20,20,20,20,20,20,00,00,00,FC,00,52,4F,47,20,50,47,32,37,38,51,0A,20,20,01,9E,
02,03,0A,01,65,4B,04,00,01,01,5A,87,00,A0,A0,A0,3B,50,30,20,35,00,56,50,21,00,00,1A,5A,A0,00,A0,
A0,A0,46,50,30,20,35,00,56,50,21,00,00,1A,6F,C2,00,A0,A0,A0,55,50,30,20,35,00,56,50,21,00,00,1A,
74,D2,00,16,A0,A0,09,50,04,10,11,00,56,50,21,00,00,1E,1C,25,00,A0,A0,A0,11,50,30,20,35,00,56,50,
21,00,00,1A,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,AF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment