From Fedora Project Wiki

(Created page with "{{QA/Test_Case |description=This test case test GPU switching feature in some laptops. Both Optimus (nVidia + Intel) and PowerXpress (ATI + Intel) are supported. |setup=Add th...")
 
No edit summary
Line 1: Line 1:
{{QA/Test_Case
{{QA/Test_Case
|description=This test case test GPU switching feature in some laptops. Both Optimus (nVidia + Intel) and PowerXpress (ATI + Intel) are supported.
|description=This test case test GPU switching feature in some laptops. Both Optimus (nVidia + Intel) and PowerXpress (ATI + Intel) are supported.
|setup=Add the following line to /etc/fstab:
|setup=Enable nVidia Optimus or ATI PowerXpress in your BIOS setup.
 
Add the following line to /etc/fstab:
<pre>none            /sys/kernel/debug debugfs defaults 0 0</pre>
<pre>none            /sys/kernel/debug debugfs defaults 0 0</pre>
Mount debugfs: {{command|mount /sys/kernel/debug}}
|actions=
|actions=
Be as specific as required for the target audience.  
# Check which GPU you are using right now: {{command|glxinfo <nowiki>|</nowiki> grep 'OpenGL renderer'}} Usually integrated GPU (Intel) is default.
# {{command|echo}}.
# Switch to discrete graphics: {{command|echo "DDIS" > /sys/kernel/debug/vgaswitcheroo/switch}}.
# Next do this ...
# Restart X. Usually logout and login back to session is enough.
# Finally click that
# Check which GPU you are using: {{command|glxinfo <nowiki>|</nowiki> grep 'OpenGL renderer'}} It should be discrete GPU (nVidia or ATI)
# Switch to integrated graphics: {{command|echo "DIGD" > /sys/kernel/debug/vgaswitcheroo/switch}}.
# Restart X. Usually logout and login back to session is enough.
# Check which GPU you are using: {{command|glxinfo <nowiki>|</nowiki> grep 'OpenGL renderer'}} It should be integrated GPU (Intel).
|results=
|results=
The following must be true to consider this a successful test run. Be brief ... but explicit.
# You should successfully switch between GPUs when X restarts, without freezes, graphical artefacts or etc.
# Step #1 completes without error
# The system boots into runlevel 5
# Program completes wth exit code 0
}}
}}

Revision as of 19:23, 26 September 2012

Description

This test case test GPU switching feature in some laptops. Both Optimus (nVidia + Intel) and PowerXpress (ATI + Intel) are supported.

Setup

Enable nVidia Optimus or ATI PowerXpress in your BIOS setup.

Add the following line to /etc/fstab:

none            /sys/kernel/debug debugfs defaults 0 0

Mount debugfs: mount /sys/kernel/debug

How to test

  1. Check which GPU you are using right now: glxinfo | grep 'OpenGL renderer' Usually integrated GPU (Intel) is default.
  2. Switch to discrete graphics: echo "DDIS" > /sys/kernel/debug/vgaswitcheroo/switch.
  3. Restart X. Usually logout and login back to session is enough.
  4. Check which GPU you are using: glxinfo | grep 'OpenGL renderer' It should be discrete GPU (nVidia or ATI)
  5. Switch to integrated graphics: echo "DIGD" > /sys/kernel/debug/vgaswitcheroo/switch.
  6. Restart X. Usually logout and login back to session is enough.
  7. Check which GPU you are using: glxinfo | grep 'OpenGL renderer' It should be integrated GPU (Intel).

Expected Results

  1. You should successfully switch between GPUs when X restarts, without freezes, graphical artefacts or etc.