Skip to contentSkip to conversation

KMS question

DISCUSSION Boszormenyi Zoltan 4 participants 8 messages Apr 13, 2017

lore
Share & tools
lore
#0 lore raw

Hi,

how can I disable the behaviour in the KMS drivers that enables all outputs at once?

It is very annoying that on a POS machine with an 1024x768 LVDS and a 800x480 secondary monitor (both built-in) the KMS driver wakes up both. Then the framebuffer console and plymouth use both screens, making the primary output very odd with only the top-left part used by the boot splash.

I would like the boot splash to be shown only on the primary output at its full resolution instead of on all outputs using the smallest common rectangle.

Is there a kernel command line configuration that achieves this?

The device in question uses the gma500 kernel driver but the same behaviour is observed with the i915 and radeon drivers.

Thanks in advance,
Zoltán Böszörmenyi

#1 lore raw
Quoted 11 lines · Boszormenyi Zoltan

Hi,

how can I disable the behaviour in the KMS drivers that enables all outputs at once?

It is very annoying that on a POS machine with an 1024x768 LVDS and a 800x480 secondary monitor (both built-in) the KMS driver wakes up both. Then the framebuffer console and plymouth use both screens, making the primary output very odd with only the top-left part used by the boot splash.

Quoted 9 lines

I would like the boot splash to be shown only on the primary output at its full resolution instead of on all outputs using the smallest common rectangle.

Is there a kernel command line configuration that achieves this?

The device in question uses the gma500 kernel driver but the same behaviour is observed with the i915 and radeon drivers.

The problem is fbdev is not multi-head aware. The fbdev emulation in the KMS drivers attempts to light up all monitors so that something shows up on all heads. If you really want different per head configurations, you need to use the KMS API directly. As a workaround, you can use the kernel command line to disable the output you don't want to be lit up. See:
https://wiki.archlinux.org/index.php/kernel_mode_setting
for more info. basically add video=TV-1:d to disable the output in question. Replace TV-1 with whatever connector you want to disable.

Alex
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#2 lore raw

2017-04-13 16:05 keltezéssel, Alex Deucher írta:

Quoted 22 lines · Boszormenyi Zoltan
Quoted 11 lines

Hi,

how can I disable the behaviour in the KMS drivers that enables all outputs at once?

It is very annoying that on a POS machine with an 1024x768 LVDS and a 800x480 secondary monitor (both built-in) the KMS driver wakes up both. Then the framebuffer console and plymouth use both screens, making the primary output very odd with only the top-left part used by the boot splash.

Quoted 9 lines

I would like the boot splash to be shown only on the primary output at its full resolution instead of on all outputs using the smallest common rectangle.

Is there a kernel command line configuration that achieves this?

The device in question uses the gma500 kernel driver but the same behaviour is observed with the i915 and radeon drivers.

Quoted 9 lines

The problem is fbdev is not multi-head aware. The fbdev emulation in the KMS drivers attempts to light up all monitors so that something shows up on all heads. If you really want different per head configurations, you need to use the KMS API directly. As a workaround, you can use the kernel command line to disable the output you don't want to be lit up. See:
https://wiki.archlinux.org/index.php/kernel_mode_setting
for more info. basically add video=TV-1:d to disable the output in question. Replace TV-1 with whatever connector you want to disable.

I tried adding video=DVI-D-1:d to the kernel command line.

The effect is while the second output is indeed disabled, the framebuffer console still takes the second output's resolution into account and the boot splash is still using only the top-left 800x480 part of the 1024x768 primary screen.

Also, the secondary screen got disabled also in X which is not desired. Can I wake it up under X somehow? This device is using the modesetting DDX driver.

Thanks,
Zoltán

Quoted 3 lines

Alex

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#3 lore raw
Quoted 38 lines · Boszormenyi Zoltan

2017-04-13 16:05 keltezéssel, Alex Deucher írta:

Quoted 24 lines · Boszormenyi Zoltan
Quoted 12 lines

Hi,

how can I disable the behaviour in the KMS drivers that enables all outputs at once?

It is very annoying that on a POS machine with an 1024x768 LVDS and a 800x480 secondary monitor (both built-in) the KMS driver wakes up both. Then the framebuffer console and plymouth use both screens, making the primary output very odd with only the top-left part used by the boot splash.

Quoted 9 lines

I would like the boot splash to be shown only on the primary output at its full resolution instead of on all outputs using the smallest common rectangle.

Is there a kernel command line configuration that achieves this?

The device in question uses the gma500 kernel driver but the same behaviour is observed with the i915 and radeon drivers.

Quoted 9 lines

The problem is fbdev is not multi-head aware. The fbdev emulation in the KMS drivers attempts to light up all monitors so that something shows up on all heads. If you really want different per head configurations, you need to use the KMS API directly. As a workaround, you can use the kernel command line to disable the output you don't want to be lit up. See:
https://wiki.archlinux.org/index.php/kernel_mode_setting
for more info. basically add video=TV-1:d to disable the output in question. Replace TV-1 with whatever connector you want to disable.

I tried adding video=DVI-D-1:d to the kernel command line.

Quoted 8 lines

The effect is while the second output is indeed disabled, the framebuffer console still takes the second output's resolution into account and the boot splash is still using only the top-left 800x480 part of the 1024x768 primary screen.

Also, the secondary screen got disabled also in X which is not desired. Can I wake it up under X somehow? This device is using the modesetting DDX driver.

Can you enable it via randr?

Alex
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#4 lore raw
Quoted 44 lines · Alex Deucher
Quoted 43 lines · Boszormenyi Zoltan

2017-04-13 16:05 keltezéssel, Alex Deucher írta:

Quoted 24 lines · Boszormenyi Zoltan
Quoted 12 lines

Hi,

how can I disable the behaviour in the KMS drivers that enables all outputs at once?

It is very annoying that on a POS machine with an 1024x768 LVDS and a 800x480 secondary monitor (both built-in) the KMS driver wakes up both. Then the framebuffer console and plymouth use both screens, making the primary output very odd with only the top-left part used by the boot splash.

Quoted 9 lines

I would like the boot splash to be shown only on the primary output at its full resolution instead of on all outputs using the smallest common rectangle.

Is there a kernel command line configuration that achieves this?

The device in question uses the gma500 kernel driver but the same behaviour is observed with the i915 and radeon drivers.

Quoted 9 lines

The problem is fbdev is not multi-head aware. The fbdev emulation in the KMS drivers attempts to light up all monitors so that something shows up on all heads. If you really want different per head configurations, you need to use the KMS API directly. As a workaround, you can use the kernel command line to disable the output you don't want to be lit up. See:
https://wiki.archlinux.org/index.php/kernel_mode_setting
for more info. basically add video=TV-1:d to disable the output in question. Replace TV-1 with whatever connector you want to disable.

I tried adding video=DVI-D-1:d to the kernel command line.

The effect is while the second output is indeed disabled, the framebuffer console still takes the second output's resolution into account and the boot splash is still using only the top-left 800x480 part of the 1024x768 primary screen.

Quoted 5 lines
Quoted 3 lines

Also, the secondary screen got disabled also in X which is not desired. Can I wake it up under X somehow? This device is using the modesetting DDX driver.

Can you enable it via randr?

I think the video= based disable forces the connector to be disabled irrevocably.

-ilia
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#5 lore raw
Quoted 45 lines · Ilia Mirkin
Quoted 44 lines · Alex Deucher
Quoted 43 lines · Boszormenyi Zoltan

2017-04-13 16:05 keltezéssel, Alex Deucher írta:

Quoted 24 lines · Boszormenyi Zoltan
Quoted 12 lines

Hi,

how can I disable the behaviour in the KMS drivers that enables all outputs at once?

It is very annoying that on a POS machine with an 1024x768 LVDS and a 800x480 secondary monitor (both built-in) the KMS driver wakes up both. Then the framebuffer console and plymouth use both screens, making the primary output very odd with only the top-left part used by the boot splash.

Quoted 9 lines

I would like the boot splash to be shown only on the primary output at its full resolution instead of on all outputs using the smallest common rectangle.

Is there a kernel command line configuration that achieves this?

The device in question uses the gma500 kernel driver but the same behaviour is observed with the i915 and radeon drivers.

Quoted 9 lines

The problem is fbdev is not multi-head aware. The fbdev emulation in the KMS drivers attempts to light up all monitors so that something shows up on all heads. If you really want different per head configurations, you need to use the KMS API directly. As a workaround, you can use the kernel command line to disable the output you don't want to be lit up. See:
https://wiki.archlinux.org/index.php/kernel_mode_setting
for more info. basically add video=TV-1:d to disable the output in question. Replace TV-1 with whatever connector you want to disable.

I tried adding video=DVI-D-1:d to the kernel command line.

The effect is while the second output is indeed disabled, the framebuffer console still takes the second output's resolution into account and the boot splash is still using only the top-left 800x480 part of the 1024x768 primary screen.

Quoted 8 lines
Quoted 5 lines
Quoted 3 lines

Also, the secondary screen got disabled also in X which is not desired. Can I wake it up under X somehow? This device is using the modesetting DDX driver.

Can you enable it via randr?

I think the video= based disable forces the connector to be disabled irrevocably.

# echo detect > /sys/class/drm/<whatever>/status
Signature · 6 lines
Ville Syrjälä
Intel OTC
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
#6 lore raw

2017-04-13 18:20 keltezéssel, Ville Syrjälä írta:

Quoted 50 lines · Ilia Mirkin
Quoted 49 lines · Alex Deucher
Quoted 48 lines · Boszormenyi Zoltan
Quoted 46 lines

2017-04-13 16:05 keltezéssel, Alex Deucher írta:

Quoted 24 lines · Boszormenyi Zoltan
Quoted 12 lines

Hi,

how can I disable the behaviour in the KMS drivers that enables all outputs at once?

It is very annoying that on a POS machine with an 1024x768 LVDS and a 800x480 secondary monitor (both built-in) the KMS driver wakes up both. Then the framebuffer console and plymouth use both screens, making the primary output very odd with only the top-left part used by the boot splash.

Quoted 9 lines

I would like the boot splash to be shown only on the primary output at its full resolution instead of on all outputs using the smallest common rectangle.

Is there a kernel command line configuration that achieves this?

The device in question uses the gma500 kernel driver but the same behaviour is observed with the i915 and radeon drivers.

Quoted 9 lines

The problem is fbdev is not multi-head aware. The fbdev emulation in the KMS drivers attempts to light up all monitors so that something shows up on all heads. If you really want different per head configurations, you need to use the KMS API directly. As a workaround, you can use the kernel command line to disable the output you don't want to be lit up. See:
https://wiki.archlinux.org/index.php/kernel_mode_setting
for more info. basically add video=TV-1:d to disable the output in question. Replace TV-1 with whatever connector you want to disable.

I tried adding video=DVI-D-1:d to the kernel command line.

The effect is while the second output is indeed disabled, the framebuffer console still takes the second output's resolution into account and the boot splash is still using only the top-left 800x480 part of the 1024x768 primary screen.

Also, the secondary screen got disabled also in X which is not desired. Can I wake it up under X somehow? This device is using the modesetting DDX driver.

Quoted 7 lines
Quoted 4 lines
Quoted 1 line

Can you enable it via randr?

I think the video= based disable forces the connector to be disabled irrevocably.

# echo detect > /sys/class/drm/<whatever>/status

Thanks, that worked.

I had to regenerate my initramfs to actually include the gma500 driver so KMS can kick in early. Before that the text mode plugin was used in plymouth and that doesn't switch dimensions when fbdev took over.

The plymouth boot splash now looks good on the primary screen with the secondary display disabled from the kernel command line and I can enable the secondary screen from a boot script before X (a DM) starts which causes both screens to flash but it's good for me now.

Thanks for everyone who answered.
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel

#7 lore raw
In reply to Alex Deucher

2017-04-13 17:36 keltezéssel, Alex Deucher írta:

Quoted 44 lines · Boszormenyi Zoltan
Quoted 43 lines

2017-04-13 16:05 keltezéssel, Alex Deucher írta:

Quoted 24 lines · Boszormenyi Zoltan
Quoted 12 lines

Hi,

how can I disable the behaviour in the KMS drivers that enables all outputs at once?

It is very annoying that on a POS machine with an 1024x768 LVDS and a 800x480 secondary monitor (both built-in) the KMS driver wakes up both. Then the framebuffer console and plymouth use both screens, making the primary output very odd with only the top-left part used by the boot splash.

Quoted 9 lines

I would like the boot splash to be shown only on the primary output at its full resolution instead of on all outputs using the smallest common rectangle.

Is there a kernel command line configuration that achieves this?

The device in question uses the gma500 kernel driver but the same behaviour is observed with the i915 and radeon drivers.

Quoted 9 lines

The problem is fbdev is not multi-head aware. The fbdev emulation in the KMS drivers attempts to light up all monitors so that something shows up on all heads. If you really want different per head configurations, you need to use the KMS API directly. As a workaround, you can use the kernel command line to disable the output you don't want to be lit up. See:
https://wiki.archlinux.org/index.php/kernel_mode_setting
for more info. basically add video=TV-1:d to disable the output in question. Replace TV-1 with whatever connector you want to disable.

I tried adding video=DVI-D-1:d to the kernel command line.

The effect is while the second output is indeed disabled, the framebuffer console still takes the second output's resolution into account and the boot splash is still using only the top-left 800x480 part of the 1024x768 primary screen.

Quoted 5 lines
Quoted 3 lines

Also, the secondary screen got disabled also in X which is not desired. Can I wake it up under X somehow? This device is using the modesetting DDX driver.

Can you enable it via randr?

No, "xrandr --output DVI-D-1 --auto" does nothing.

Quoted 3 lines

Alex

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel