From Fedora Project Wiki

No edit summary
No edit summary
Line 10: Line 10:
# You should see 2 providers, both with a "outputs: x" with x > 0, of outputs = 0 for one of the 2 providers, then all video outputs on your laptop are only connected to one GPU and this test-case is not for you.
# You should see 2 providers, both with a "outputs: x" with x > 0, of outputs = 0 for one of the 2 providers, then all video outputs on your laptop are only connected to one GPU and this test-case is not for you.
# Powermanagemt, the discrete GPU should by suspended / "Dynamic Off"when the laptop is booted and no external monitors are connected, this can be tested by as root doing:{{command|1=sudo cat /sys/kernel/debug/vgaswitcheroo/switch}}, one of the GPUs should be listed as: "DynOff"
# Powermanagemt, the discrete GPU should by suspended / "Dynamic Off"when the laptop is booted and no external monitors are connected, this can be tested by as root doing:{{command|1=sudo cat /sys/kernel/debug/vgaswitcheroo/switch}}, one of the GPUs should be listed as: "DynOff"
# Figure out which external monitor connector is connected to the secondary GPU, test VGA / mini-display-port, HDMI,display-port over USB-C, etc. one at a time. Plug in a monitor and configure it in its native resolution in gnome-control-center (should happen automatically), then wait 15 seconds and do: "
# Figure out which external monitor connector is connected to the secondary GPU, test VGA / mini-display-port, HDMI,display-port over USB-C, etc. one at a time. Plug in a monitor and configure it in its native resolution in gnome-control-center (should happen automatically), then wait 15 seconds and do: {{command|1=sudo cat /sys/kernel/debug/vgaswitcheroo/switch}} again, the GPU previously listed as "DynOff" should now show "DynPwr", if not try another external connector. Note it is possible that none of the external connectors are routed to the Secondary GPU, even though it is listed as having outputs, this differs per laptop model.
{{command|1=sudo cat /sys/kernel/debug/vgaswitcheroo/switch}} again, the GPU previously listed as "DynOff" should now show "DynPwr", if not try another external connector. Note it is possible that none of the external connectors are routed to the Secondary GPU, even though it is listed as having outputs, this differs per laptop model.
# Once you've found an external connector which is connected to the Secondary GPU (and thus keeps it in DynPwr state), check that the picture on the external monitor is as expected and that e.g. dragging a terminal to that monitor works and is smooth.
# Once you've found an external connector which is connected to the Secondary GPU (and thus keeps it in DynPwr state), check that the picture on the external monitor is as expected and that e.g. dragging a terminal to that monitor works and is smooth.
# Check that 15 seconds after unplugging the external monitor the Secondary GPU is back in "DynOff" state again.
# Check that 15 seconds after unplugging the external monitor the Secondary GPU is back in "DynOff" state again.

Revision as of 11:28, 25 October 2016

Description

This test case tests the multiple desktop functionality in Hybrid gpu machines where both gpus have some video outputs connected with all open source drivers booted with XORG

Setup

  1. Download Fedora 25 Beta or latest nightly

How to test

  1. Update all packages to the latest version: "sudo dnf update"
  2. Reboot, log into a "GNOME on Xorg" session
  3. In terminal execute sudo xrandr --listproviders
  4. You should see 2 providers, both with a "outputs: x" with x > 0, of outputs = 0 for one of the 2 providers, then all video outputs on your laptop are only connected to one GPU and this test-case is not for you.
  5. Powermanagemt, the discrete GPU should by suspended / "Dynamic Off"when the laptop is booted and no external monitors are connected, this can be tested by as root doing:sudo cat /sys/kernel/debug/vgaswitcheroo/switch, one of the GPUs should be listed as: "DynOff"
  6. Figure out which external monitor connector is connected to the secondary GPU, test VGA / mini-display-port, HDMI,display-port over USB-C, etc. one at a time. Plug in a monitor and configure it in its native resolution in gnome-control-center (should happen automatically), then wait 15 seconds and do: sudo cat /sys/kernel/debug/vgaswitcheroo/switch again, the GPU previously listed as "DynOff" should now show "DynPwr", if not try another external connector. Note it is possible that none of the external connectors are routed to the Secondary GPU, even though it is listed as having outputs, this differs per laptop model.
  7. Once you've found an external connector which is connected to the Secondary GPU (and thus keeps it in DynPwr state), check that the picture on the external monitor is as expected and that e.g. dragging a terminal to that monitor works and is smooth.
  8. Check that 15 seconds after unplugging the external monitor the Secondary GPU is back in "DynOff" state again.
  9. Check if the laptop's brightness hotkeys properly control the screen brightness
  10. Check suspend/resume with the external display connected to the Secondary GPU
  11. Check suspending without the external display connected to the Secondary GPU followed by resume with the external display connected
  12. Check suspending with the external display connected to the Secondary GPU followed by resume without the external display connected

Expected Results

  1. The first command should show 2 providers, with per provider a line like this: Provider 0: id: 0x45 cap: 0xf, Source Output, Sink Output, Source Offload, Sink Offload crtcs: 3 outputs: 3 associated providers: 0 name:modesetting
  2. Powermanagement should give you the output to be 0:IGD:+:Pwr:0000:00:02.0 1:DIS: :DynOff:0000:01:00.0 Notice that the Discrete GPU (DIS) is marked as DynOff, that is what we want
  3. The suspend/resume tests should go fine
  4. The hotkeys should function as supposed to
  5. There should not be any over heating
  6. Now if the user plugs in an external monitor on e.g a HMDI connector,and then configures it in gnome-control-center so that it shows a picture and then waits 15 seconds and then again (as root) does:cat /sys/kernel/debug/vgaswitcheroo/switch
  7. We expect the DIS line to have changed to On, if it has not then the tested connector is hooked up to the integrated GPU (IGD) and the user should try another connector.Once the user has found an external connector which is attached to the DIS GPU he should unplug the monitor, wait 15 seconds and after that the DIS GPU should be in DynOff again.