Gentoo Archives: gentoo-user

From: Matti Nykyri <matti.nykyri@×××.fi>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Heads up: Video mode and booting with KVM switch
Date: Sat, 14 Nov 2015 09:53:51
Message-Id: 20151114095328.GA23845@nykyri.eu
In Reply to: [gentoo-user] Heads up: Video mode and booting with KVM switch by Walter Dnes
1 On Fri, Nov 13, 2015 at 03:54:02PM -0500, Walter Dnes wrote:
2 > I have 3 machines kicking around. One is a Dell Inspiron 530 from
3 > June 2008 that simply refuses to die. The others are more recent.
4 > On my desk (actually a re-purposed kitchen table) I only have room for 1
5 > 24 inch monitor, 1 big Unicomp "IBM-like clickety-clack" USB keyboard
6 > http://www.pckeyboard.com/mm5/merchant.mvc?Screen=PROD&Product_code=UNI041A
7 > and 1 trackball.
8 >
9 > I got an IOGear 4-port USB KVM. It has a remote clicker to switch
10 > between the 4 ports; no icky escape/control sequences. Because it's
11 > hardware-controlled, there are no drivers required. It works great
12 > with one exception, which is a linux kernel problem, not a switch
13 > problem. The problem I've found occurs when booting a machine that is
14 > not currently selected by the KVM switch. I found the BIOS settings to
15 > eliminate the...
16 >
17 > Keyboard failure
18 > Select F1 to continue; F2 to enter SETUP
19 >
20 > ...message. The linux kernel problem is that it doesn't detect the
21 > display when that particular machine is not selected at bootup
22 > (duhhhh), and assumes 1024x768 console and graphics video. If the
23 > machine is selected by the switch at bootup, things work properly.
24 >
25 > But don't panic. Even if I boot into 1024x768 text mode, and default
26 > to 1024x768 graphics, running "xrandr -s 1920x1080" gets me 1920x1080
27 > X Window display. The available modes for your display may be
28 > different. Just run "xrandr" for a list of available modes.
29
30 Don't panic!
31
32 There is a simple solution to this... Kernel developers have foreseen this
33 problem already! In your situation your graphics hardware is not getting
34 the EDID of your display, decause it is physically not connected to the
35 monitor when you boot up. See /Documentation/EDID for details.
36
37 Set DRM_LOAD_EDID_FIRMWARE=y
38
39 You can use x11-misc/read-edid to fetch edid from your monitor:
40 get-edid > your_edid.bin. Or you can use modedebug in xorg.conf and get
41 edid from Xorg.0.log
42
43 Save the edid from your monitor to /lib/firmware/edid/ and include in your
44 kernel commandline "drm_kms_helper.edid_firmware=edid/your_edid.bin". You
45 can also set your video mode in comman line "video=DVI-I-1:1024x768@85".
46 The names for your connectors are found in "/sys/class/drm/*/status".
47
48 https://wiki.archlinux.org/index.php/Kernel_mode_setting
49
50 These work with kernel mode setting. If you are using some proprietary
51 driver, see the documentation of that driver. At least with nvidia you
52 can set your custom edid in xorg.conf "Option CustomEDID DFP-0:/your_edid.bin"
53 and force monitors to be detected as connected at all times
54 "Option ConnectedMonitor DFP".
55
56 --
57 -M

Replies

Subject Author
Re: [gentoo-user] Heads up: Video mode and booting with KVM switch Walter Dnes <waltdnes@××××××××.org>