LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 08-14-2020, 11:41 AM   #1
jumpingpenguin
LQ Newbie
 
Registered: Aug 2020
Posts: 5

Rep: Reputation: Disabled
Debian Buster, Kernel 4.19.x, Need to enforce custom EDID on LG monitor from firmware!


TL;DR I can't figure out how to force the EDID binary from firmware (Since my monitor apparently chose to forget its identity). I found out that one easy way to that is to extract the EDID from the monitor driver for Windows (As explained on Arch Wiki: https://wiki.archlinux.org/index.php...modes_and_EDID) so that Linux ignores the botched/unreported EDID from my monitor. The method on Arch works on all Linux distributions including Debian.

Model and complete spec info of my monitor: https://www.lg.com/in/monitors/lg-19M38AB
Link to Windows Driver (Only 1.5 MB): https://www.lg.com/in/support/product/lg-19M38A-B (It's the third download under software and drivers option in the right sidebar)

Please download and tell me what and how to extract the EDID from that. If that is not possible for some reason please please generate new EDID binaries for my resolution (First method of compiling on the same Arch wiki link).. All required monitor spec information in available on the product link.

This problem is not specific to a distro. The problem is in my monitor so it affects all Operating systems including Windows and BSD and Linux ofc. If you still need to know, I am on Buster XFCE.

I have already forced my monitor's max supported resolution (1366x768) using Xrandr and placed the commands in the LightDM startup script to auto switch on every logon.

Code:
xrandr --newmode $(cvt 1366 768 60 | grep Mode | sed -e 's/.*"/1366x768/')
xrandr --addmode VGA-1 1366x768
xrandr --output VGA-1 --mode 1366x768
Now that seems to be reasonable solution at first but it's far from ideal. There's an annoying little black screen pause on every logon as the manually added resolution is forced. Then Linux detects 1368x768 instead of the requested resolution and the result is weird issues with font spacing, like they are too close to each other. And in dark mode the fonts have rough edges showing up. I have enabled RGB, hinting, anti-aliasing and custom DPI .. Nothing works.. I have explained more on the link above. Now I found the alternate solution on Arch Wiki and need to force this right from kernel so that it's consistent and works flawlessly with zero issues. But the problem is I am new to Linux so idk what to do!

More elaboration on the issue and how it all came to be:
I had bought this 720p monitor named LG 19M38AB just last year and it still has two years of warranty period remaining. It has already had it's faulty power cord? replaced two months ago. I dual boot Windows and Linux and bother Operating Systems perfectly recognized this monitor as LG 19 up until last month when suddenly the resolutions reverted back to 1024x768 (in both OS(s) ofc). On Windows I suddenly had/and still have resolutions up to 2560x1600. Not kidding, check this https://prnt.sc/tzautl. Since the option 1366x768 was still available on Windows, I selected that and Windows never had any issues thereafter. But on Linux, the solution was hacky and ended up with a weird resolution 1368x768 instead of 1366x6768 no matter how hard I tried. Heck, Linux , unlike Windows just didn't have resolutions more than 1024x768 showing up in option so I had to manually add the custom mode and then activate. The result is some weird font issues (not related to RGB, hinting or DPI I swear).

I ran this Monitor Asset Manager tool and it shows all sorts of impossible resolutions (for tis 720p monitor) and six random ABC xxxxxx models instead of LG19XXX. I have pasted all the output here:
 
Old 08-14-2020, 12:34 PM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 17,703

Rep: Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663
If the 'totally automatic' approach isn't working, why not forget the EDID approach and write yourself and write yourself a file like /etc/X11/xorg.conf.d/10-video.conf where you can tell it: "Don't think - do it this way!" The basic layout is detailed (Last checked 5 years ago) in 'man xorg.conf.' You need the Video section with ServerLayout; Monitor; Device; & Screen SubSections. You can set modes with specific timings.
 
1 members found this post helpful.
Old 08-14-2020, 12:44 PM   #3
jumpingpenguin
LQ Newbie
 
Registered: Aug 2020
Posts: 5

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by business_kid View Post
If the 'totally automatic' approach isn't working, why not forget the EDID approach and write yourself and write yourself a file like /etc/X11/xorg.conf.d/10-video.conf where you can tell it: "Don't think - do it this way!" The basic layout is detailed (Last checked 5 years ago) in 'man xorg.conf.' You need the Video section with ServerLayout; Monitor; Device; & Screen SubSections. You can set modes with specific timings.
I am new to Linux and don't really understand how to make that file. I know nothing about the timings. My complete monitor specs are here (Just scroll down a lil): https://www.lg.com/in/monitors/lg-19M38AB . Could you please write that 10-video.conf file for my monitor looking at the specs? You could post that in pastebin or anywhere you like. I'd really appreciate that help! And does this method force the resolution right from kernel or it'll start only after landing in user space?
 
Old 08-15-2020, 05:25 AM   #4
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 17,703

Rep: Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663
Here's my file. https://pastebin.com/xJPGsCgD

The caveats are that it's 5 years old and options have changed a bit. You'll find sample files like mine lying around. I don't think I need so many device sections. I had a 1600x900 monitor on my laptop, and wanted to get 1920x1080 hdmi to the right of it, or else a 1280x720 projector, also on hdmi cable. There was a second feed from a VGA cable to the projector, to allow a speaker to have his laptop on stage, but it was never used.
 
1 members found this post helpful.
Old 08-15-2020, 05:50 AM   #5
jumpingpenguin
LQ Newbie
 
Registered: Aug 2020
Posts: 5

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by business_kid View Post
Here's my file. https://pastebin.com/xJPGsCgD

The caveats are that it's 5 years old and options have changed a bit. You'll find sample files like mine lying around. I don't think I need so many device sections. I had a 1600x900 monitor on my laptop, and wanted to get 1920x1080 hdmi to the right of it, or else a 1280x720 projector, also on hdmi cable. There was a second feed from a VGA cable to the projector, to allow a speaker to have his laptop on stage, but it was never used.
Thank you so much!! That fixes my issue. I had previously asked for help with this on the Debian forum: http://forums.debian.net/viewtopic.php?f=10&t=147080 where a mod, instead of answering anything relevant, openly trolled me for not knowing how to do things, using a 'non-linux monitor' and quote 'demanding sth from the community'. He also kept repeating how he never touched 'useless windows and never will, sth I never asked him about' and asked me throw away my 'cheap useless monitor'. I mean this help is all I asked for, politely. I have no idea how they found it demanding and impolite.. I hope that no Linux newcomer faces what I faced on the Debian forum. A little hand-holding is all I needed.
Anyways, thank you so much again for helping me fix this!
 
Old 08-16-2020, 05:01 AM   #6
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE & OS/2 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 6,565
Blog Entries: 1

Rep: Reputation: 2268Reputation: 2268Reputation: 2268Reputation: 2268Reputation: 2268Reputation: 2268Reputation: 2268Reputation: 2268Reputation: 2268Reputation: 2268Reputation: 2268
How about posting here (using code tags) your successful configfile creation(s)? Using business_kid's example you may have a lot of cruft that can be removed to make it easier to use as an example for any who find this thread in a search.
 
Old 08-16-2020, 05:17 AM   #7
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 17,703

Rep: Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663Reputation: 2663
No problem. I know forums like that too. 'Man xorg.conf' is your friend for the config file.
 
  


Reply

Tags
edid, firmware, monitor


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] In Slackware64 current, the custom EDID on DRM works with kernel 4.14.x but not with 4.17.x LuckyCyborg Slackware 8 06-06-2024 04:34 PM
[SOLVED] After having a successful installation of Debian Buster, Lenovo computer refuses to boot into Debian Buster 10.2 PicardDefendingData Debian 4 12-21-2019 07:51 PM
No EDID from the monitor with a DVI-I to VGA converter connected to monitor deepclutch Linux - Hardware 6 10-24-2015 09:01 AM
custom edid + mode "1920x1080@60" (hsync out of range) jheengut Linux - Hardware 4 08-05-2015 03:41 AM
Incorrect resolution on external monitor w/ custom EDID (Fedora 13, GeForce GT 330M) ESC201 Linux - Software 0 08-03-2010 05:49 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 08:52 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration