From Fedora Project Wiki

Line 5: Line 5:
 
# Download Fedora 25 Beta or latest nightly  
 
# Download Fedora 25 Beta or latest nightly  
 
|actions=
 
|actions=
# Boot in default/Wayland mode
+
# Update all packages to the latest version: "sudo dnf update"
 +
# Reboot, log into a "GNOME on Xorg" session
 
# In terminal execute {{command|1=sudo xrandr --listproviders}}
 
# In terminal execute {{command|1=sudo xrandr --listproviders}}
# 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}}
+
# 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.
# Do all external monitor connectors work, VGA / mini-display-port, HDMI,display-port over USB-C, etc. The user should try plugging in a monitor to
+
# 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"
all of them (one at a time) configure the monitor in its native resolution in gnome-control-center and check that the picture is as expected and that
+
# 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: "
e.g. dragging a terminal to that monitor works and is smooth.
+
{{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.
# Check for power management and for overheating issues
+
# 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 for hotkey of brightness
+
# Check that 15 seconds after unplugging the external monitor the Secondary GPU is back in "DynOff" state again.
# Close all running applications
+
# Check if the laptop's brightness hotkeys properly control the screen brightness
# Check suspend/resume with the external display connected
+
# Check suspend/resume with the external display connected to the Secondary GPU
# Check suspending without the external display connected followed by resume with the external display connected
+
# Check suspending without the external display connected to the Secondary GPU followed by resume with the external display connected
# Check suspending with the external display connected followed by resume without the external display connected
+
# Check suspending with the external display connected to the Secondary GPU followed by resume without the external display connected
  
 
|results=
 
|results=

Revision as of 11:24, 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.

  1. 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.
  2. Check that 15 seconds after unplugging the external monitor the Secondary GPU is back in "DynOff" state again.
  3. Check if the laptop's brightness hotkeys properly control the screen brightness
  4. Check suspend/resume with the external display connected to the Secondary GPU
  5. Check suspending without the external display connected to the Secondary GPU followed by resume with the external display connected
  6. 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.