Sabungayam wrote:[root@DESKTOP-83KB56K live]# xrandr --addmode VGA0 "1280x800_59.70"
xrandr: cannot find output "VGA0"
[...]
I guess because it's not using "VGA"?
live@DESKTOP-83KB56K ~]$ lspcidrake -v
thunderbolt : Intel Corporation|Ice Lake Thunderbolt 3 NHI #0 [SYSTEM_OTHER] (vendor:8086 device:8a17) (rev: 03)
i2c_i801 : Intel Corporation|Ice Lake-LP SMBus Controller [SERIAL_SMBUS] (vendor:8086 device:34a3 subv:8086 subd:7270) (rev: 30)
xhci_pci : Intel Corporation|Ice Lake-LP USB 3.1 xHCI Host Controller [SERIAL_USB] (vendor:8086 device:34ed subv:8086 subd:7270) (rev: 30)
Card:Intel 810 and later: Intel Corporation|Iris Plus Graphics G7 [DISPLAY_VGA] (vendor:8086 device:8a52 subv:8086 subd:2212) (rev: 07)
unknown : Intel Corporation|Device 34ef [MEMORY_RAM] (vendor:8086 device:34ef subv:8086 subd:7270) (rev: 30)
intel_lpss_pci : Intel Corporation|Ice Lake-LP Serial IO SPI Controller #1 (vendor:8086 device:34ab subv:8086 subd:7270) (rev: 30)
unknown : Intel Corporation|Device 34be [BRIDGE_PCI] (vendor:8086 device:34be) (rev: 30)
unknown : Intel Corporation|Ice Lake-LP PCI Express Root Port #9 [BRIDGE_PCI] (vendor:8086 device:34b0) (rev: 30)
intel_lpss_pci : Intel Corporation|Ice Lake-LP Serial IO I2C Controller #0 (vendor:8086 device:34e8 subv:8086 subd:7270) (rev: 30)
iwlwifi : Intel Corporation|Wi-Fi 6 AX200 [NETWORK_OTHER] (vendor:8086 device:2723 subv:8086 subd:008c) (rev: 1a)
unknown : Intel Corporation|Device 8a12 [BRIDGE_HOST] (vendor:8086 device:8a12 subv:8086 subd:7270) (rev: 03)
snd_hda_intel : Intel Corporation|Smart Sound Technology Audio Controller [MULTIMEDIA_AUDIO_DEV] (vendor:8086 device:34c8 subv:10ec subd:111c) (rev: 30)
intel_lpss_pci : Intel Corporation|Ice Lake-LP Serial IO UART Controller #0 [COMMUNICATION_OTHER] (vendor:8086 device:34a8 subv:8086 subd:7270) (rev: 30)
r8169 : Realtek Semiconductor Co., Ltd.|RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [NETWORK_ETHERNET] (vendor:10ec device:8168 subv:10ec subd:0123) (rev: 15)
unknown : Intel Corporation|Ice Lake-LP SPI Controller (vendor:8086 device:34a4 subv:8086 subd:7270) (rev: 30)
unknown : Intel Corporation|Ice Lake Thunderbolt 3 PCI Express Root Port #0 [BRIDGE_PCI] (vendor:8086 device:8a1d subv:0060 subd:0000) (rev: 03)
mei_me : Intel Corporation|Management Engine Interface [COMMUNICATION_OTHER] (vendor:8086 device:34e0 subv:8086 subd:7270) (rev: 30)
unknown : Silicon Motion, Inc.|Device 2263 (vendor:126f device:2263) (rev: 03)
doktor5000 wrote:Sidenote, you're also jumping too much between topics, you should probably concentrate on one issue at a time.
xrandr --addmode eDP1 "1280x800_60.00"
X Error of failed request: BadMatch (invalid parameter attributes)
Major opcode of failed request: 140 (RANDR)
Minor opcode of failed request: 18 (RRAddOutputMode)
Serial number of failed request: 37
Current serial number in output stream: 38
xrandr
Screen 0: minimum 8 x 8, current 600 x 800, maximum 32767 x 32767
eDP1 connected primary 600x800+0+0 right (normal left inverted right x axis y axis) 0mm x 0mm
800x600 94.87*+ 186.01 94.87* 85.14 72.19 75.00 60.32 56.25
1024x768 98.16 74.81 60.00 60.00
1024x768i 86.96
1024x576 59.90 59.82
832x624 74.55 74.18
960x540 59.63 59.82
768x576 99.99 79.37
864x486 59.92 59.57
848x480 60.00
640x480 116.65 85.01 72.81 75.00 59.94
720x405 59.51 58.99
720x400 85.04
640x400 85.08
640x360 59.84 59.32
640x350 85.08
400x300 94.87
DP1 disconnected (normal left inverted right x axis y axis)
DP2 disconnected (normal left inverted right x axis y axis)
HDMI1 disconnected (normal left inverted right x axis y axis)
VIRTUAL1 disconnected (normal left inverted right x axis y axis)
1280x800_59.70 (0x212) 83.050MHz -HSync +VSync
h: width 1280 start 1344 end 1480 total 1680 skew 0 clock 49.43KHz
v: height 800 start 801 end 804 total 828 clock 59.70Hz
1280x800_60.00 (0x218) 83.460MHz -HSync +VSync
h: width 1280 start 1344 end 1480 total 1680 skew 0 clock 49.68KHz
v: height 800 start 801 end 804 total 828 clock 60.00Hz
xrandr -q
Screen 0: minimum 8 x 8, current 600 x 800, maximum 32767 x 32767
eDP1 connected primary 600x800+0+0 right (normal left inverted right x axis y axis) 0mm x 0mm
800x600 94.87*+ 186.01 94.87* 85.14 72.19 75.00 60.32 56.25
1024x768 98.16 74.81 60.00 60.00
1024x768i 86.96
1024x576 59.90 59.82
832x624 74.55 74.18
960x540 59.63 59.82
768x576 99.99 79.37
864x486 59.92 59.57
848x480 60.00
640x480 116.65 85.01 72.81 75.00 59.94
720x405 59.51 58.99
720x400 85.04
640x400 85.08
640x360 59.84 59.32
640x350 85.08
400x300 94.87
DP1 disconnected (normal left inverted right x axis y axis)
DP2 disconnected (normal left inverted right x axis y axis)
HDMI1 disconnected (normal left inverted right x axis y axis)
VIRTUAL1 disconnected (normal left inverted right x axis y axis)
[introvertx95@introvertx95 ~]$ gtf 1280 800 59.70
# 1280x800 @ 59.70 Hz (GTF) hsync: 49.43 kHz; pclk: 83.05 MHz
Modeline "1280x800_59.70" 83.05 1280 1344 1480 1680 800 801 804 828 -HSync +Vsync
set gfxpayload=keep
set gfxmode=1280x800
fbconf=rotate:1
xrandr --addmode eDP1 "1280x800_60.00"
X Error of failed request: BadMatch (invalid parameter attributes)
Major opcode of failed request: 140 (RANDR)
Minor opcode of failed request: 18 (RRAddOutputMode)
Serial number of failed request: 37
Current serial number in output stream: 38
xrandr -o right
videoinfo
The EDID information identifying the display isn't in ACPI
Sabungayam wrote:So let's focus on x and framebuffer.
GPD Win Max display fix in Linux
GPD Win MAX
The EDID information identifying the display isn't in ACPI like on the Win 2. I extracted it from Windows (still not sure what the source is, it could be only in the registry) and saved the copy in /lib/firmware/edid/gpdwinmax.bin, then passed the kernel parameters to load it: video=eDP-1:800x1280 drm.edid_firmware=eDP-1:edid/gpdwinmax.bin fbcon=rotate:1. This sets the console rotation and video mode, but not the GUI rotation; in gnome, this had to be set to "Portrait Left". The kernel parameters were in my case stored in /etc/default/grub.
If you want a copy of my EDID, paste the following into base64 --decode > /lib/firmware/edid/gpdwinmax.bin:
AP///////wAJ5QMAAwAAAAEdAQOACxF4LwAAoFdJmyYQSE8AAAABAQEBAQEBAQEBAQEBAQEBwhog
UDAAEFAQEDIAbKwAAAAYAAAA/ABUVjA4MFdVTS1OTDAKAAAA/QA8PBAQBwAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAMM=
If your system starts DRM early, as mine does, you'll want to have the EDID in the initramfs to get the console mode right. I did this using a hook /etc/initramfs-tools/hooks/edid, so update-initramfs -u would add the EDID file. Contents of the hook script:
#!/bin/sh
case $1 in
prereqs)
exit 0
;;
esac
. /usr/share/initramfs-tools/hook-functions
copy_file EDID /lib/firmware/edid/gpdwinmax.bin
This method is probably the best way to handle this, but if you need a modeline for xorg/xrandr:
- Code: Select all
"800x1280_60.06" 68.500 800 816 832 880 1280 1283 1285 1296 -HSync -VSync
xrandr --newmode
xrandr --newmode "800x1280_60.06" 68.500 800 816 832 880 1280 1283 1285 1296 -HSync -VSync
[introvertx95@introvertx95 Desktop]$ xrandr -q
Screen 0: minimum 8 x 8, current 600 x 800, maximum 32767 x 32767
eDP1 connected primary 600x800+0+0 right (normal left inverted right x axis y axis) 0mm x 0mm
800x600 94.87*+ 186.01 94.87* 85.14 72.19 75.00 60.32 56.25
1024x768 98.16 74.81 60.00 60.00
1024x768i 86.96
1024x576 59.90 59.82
832x624 74.55 74.18
960x540 59.63 59.82
768x576 99.99 79.37
864x486 59.92 59.57
848x480 60.00
640x480 116.65 85.01 72.81 75.00 59.94
720x405 59.51 58.99
720x400 85.04
640x400 85.08
640x360 59.84 59.32
640x350 85.08
400x300 94.87
DP1 disconnected (normal left inverted right x axis y axis)
DP2 disconnected (normal left inverted right x axis y axis)
HDMI1 disconnected (normal left inverted right x axis y axis)
VIRTUAL1 disconnected (normal left inverted right x axis y axis)
800x1280_60.06 (0x1fc) 68.500MHz -HSync -VSync
h: width 800 start 816 end 832 total 880 skew 0 clock 77.84KHz
v: height 1280 start 1283 end 1285 total 1296 clock 60.06Hz
[introvertx95@introvertx95 Desktop]$ xrandr --addmode eDP1 "800x1280_60.06"
X Error of failed request: BadMatch (invalid parameter attributes)
Major opcode of failed request: 140 (RANDR)
Minor opcode of failed request: 18 (RRAddOutputMode)
Serial number of failed request: 37
Current serial number in output stream: 38
[introvertx95@introvertx95 Desktop]$ gtf 800 1280 60.06
# 800x1280 @ 60.06 Hz (GTF) hsync: 79.58 kHz; pclk: 86.58 MHz
Modeline "800x1280_60.06" 86.58 800 856 944 1088 1280 1281 1284 1325 -HSync +Vsync
[introvertx95@introvertx95 Desktop]$ xrandr --newmode "800x1280_60.06" 86.58 800 856 944 1088 1280 1281 1284 1325 -HSync +Vsync
X Error of failed request: BadName (named color or font does not exist)
Major opcode of failed request: 140 (RANDR)
Minor opcode of failed request: 16 (RRCreateMode)
Serial number of failed request: 37
Current serial number in output stream: 37
Section "ServerFlags"
#DontZoom # disable <Ctrl><Alt><KP_+>/<KP_-> (resolution switching)
AllowMouseOpenFail # allows the server to start up even if the mouse does not work
Option "DontZap" "False" # disable <Ctrl><Alt><BS> (server abort)
EndSection
Section "Module"
Load "v4l" # Video for Linux
EndSection
Section "Monitor"
Identifier "monitor1"
VendorName "Plug'n Play"
Option "PreferredMode" "800x1280"
ModeLine "800x1280_60.06" 68.500 800 816 832 880 1280 1283 1285 1296 -hsync -vsync
# Apple iMac modes
ModeLine "1024x768" 78.525 1024 1049 1145 1312 768 769 772 800 +hsync +vsync
ModeLine "800x600" 62.357 800 821 901 1040 600 601 604 632 +hsync +vsync
ModeLine "640x480" 49.886 640 661 725 832 480 481 484 514 +hsync +vsync
# Apple monitors tend to do 832x624
ModeLine "832x624" 57 832 876 940 1152 624 625 628 667 -hsync -vsync
# Apple PowerBook G3
ModeLine "800x600" 100 800 816 824 840 600 616 624 640 -hsync -vsync
# Apple TI Powerbook
ModeLine "1152x768" 78.741 1152 1173 1269 1440 768 769 772 800 +vsync +vsync
# Pismo Firewire G3
ModeLine "1024x768" 65 1024 1032 1176 1344 768 771 777 806 -hsync -vsync
# iBook2
ModeLine "1024x768" 65 1024 1048 1184 1344 768 771 777 806 -hsync -vsync
# 17" Apple Studio Display
ModeLine "1024x768" 112.62 1024 1076 1248 1420 768 768 780 808 +hsync +vsync
# HiRes Apple Studio Display
ModeLine "1280x1024" 135 1280 1288 1392 1664 1024 1027 1030 1064
# Another variation
ModeLine "1280x1024" 134.989 1280 1317 1429 1688 1024 1025 1028 1066 +hsync +vsync
# TV fullscreen mode or DVD fullscreen output.
# 768x576 @ 79 Hz, 50 kHz hsync
ModeLine "768x576" 50.00 768 832 846 1000 576 590 595 630
# 768x576 @ 100 Hz, 61.6 kHz hsync
ModeLine "768x576" 63.07 768 800 960 1024 576 578 590 616
# modeline generated by gtf(1) [handled by XFdrake]
ModeLine "1280x800_120" 181.21 1280 1376 1520 1760 800 801 804 858 -HSync +Vsync
# modeline generated by gtf(1) [handled by XFdrake]
ModeLine "1280x800_100" 147.89 1280 1376 1512 1744 800 801 804 848 -HSync +Vsync
# modeline generated by gtf(1) [handled by XFdrake]
ModeLine "1280x800_85" 123.38 1280 1368 1504 1728 800 801 804 840 -HSync +Vsync
# modeline generated by gtf(1) [handled by XFdrake]
ModeLine "1280x800_75" 107.21 1280 1360 1496 1712 800 801 804 835 -HSync +Vsync
# modeline generated by gtf(1) [handled by XFdrake]
ModeLine "1280x800_60" 83.46 1280 1344 1480 1680 800 801 804 828 -HSync +Vsync
# modeline generated by gtf(1) [handled by XFdrake]
ModeLine "1280x800_50" 68.56 1280 1336 1472 1664 800 801 804 824 -HSync +Vsync
EndSection
Section "Device"
Identifier "device1"
VendorName "Intel Corporation"
BoardName "Intel 810 and later"
Driver "intel"
Option "DPMS"
EndSection
Section "Screen"
Identifier "screen1"
Device "device1"
Monitor "monitor1"
DefaultColorDepth 24
Subsection "Display"
Depth 8
Modes "1280x800"
EndSubsection
EndSection
Section "ServerLayout"
Identifier "layout1"
Screen "screen1"
EndSection
mkdir -p /lib/firmware/edid/
base64 --decode > /lib/firmware/edid/gpdwinmax.bin
AP///////wAJ5QMAAwAAAAEdAQOACxF4LwAAoFdJmyYQSE8AAAABAQEBAQEBAQEBAQEBAQEBwhog
UDAAEFAQEDIAbKwAAAAYAAAA/ABUVjA4MFdVTS1OTDAKAAAA/QA8PBAQBwAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAMM=
[doktor5000@Mageia7]─[18:24:15]─[~] /usr/bin/monitor-parse-edid gpdwinmax.bin
Name: TV080WUM-NL0
EISA ID: BOE0003
EDID version: 1.3
EDID extension blocks: 0
Screen size: 10.8 cm x 17.2 cm (8.00 inches, aspect ratio 0.63)
Gamma: 2.2
Digital signal
Max video bandwidth: 70 MHz
HorizSync 16-16
VertRefresh 60-60
# Monitor preferred modeline (60.1 Hz vsync, 77.8 kHz hsync, ratio 0.62, 188 dpi)
ModeLine "800x1280" 68.5 800 816 832 880 1280 1283 1285 1296 -hsync -vsync
echo 'install_items+=" /lib/firmware/edid/gpdwinmax.bin "' > /etc/dracut.conf.d/99-edid.conf
dracut -f
lsinitrd /boot/initrd-$(uname -r).img|grep -iE "gpdwinmax|edid"
drm_kms_helper.edid_firmware=:edid/gpdwinmax.bin
update-grub2
Users browsing this forum: No registered users and 1 guest