Bug 655160

Summary: Unable to access vgaswitcher_oo interface
Product: [openSUSE] openSUSE 11.3 Reporter: Pavel Baranchikov <pavel>
Component: KernelAssignee: Egbert Eich <eich>
Status: RESOLVED NORESPONSE QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None CC: jeffm, jslaby
Version: Final   
Target Milestone: ---   
Hardware: x86-64   
OS: openSUSE 11.3   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: hwinfo output

Description Pavel Baranchikov 2010-11-21 18:33:19 UTC
User-Agent:       Mozilla/5.0 (X11; U; Linux x86_64; ru; rv:1.9.2.12) Gecko/20101026 SUSE/3.6.12-1.2 Firefox/3.6.12

As of kernel version 2.6.34, which is installed on my Asus laptop, kernel module vgaswitcher_oo (http://git.kernel.org/linus/6a9ee8af344e3bd7dbd61e67037096cdf7f83289) is included in kernel. As it is shown at the manual for one of Asus laptops (http://asusm51ta-with-linux.blogspot.com/) I should have directory /sys/kernel/debug/vgaswitcheroo, but there is no one.

My laptop has really 2 video cards, that is shown bu lspci. I have tried some kernels: default, desktop and vanilla. No one helped. My debugfs is mounted.

Reproducible: Always

Steps to Reproduce:
1. Take dual-card laptop
2. Try to use 3d-acceleration. The default card used is integrated (haveing no 3d acceleration).
3. Make sure on absence of directory /sys/kernel/debug/vgaswitcheroo
Actual Results:  
Directory is absent.

Expected Results:  
Directory should be on its place.

pavel-note:/var/log # uname -a
Linux pavel-note.home 2.6.34.7-0.5-desktop #1 SMP PREEMPT 2010-10-25 08:40:12 +0200 x86_64 x86_64 x86_64 GNU/Linux
Comment 1 Jeff Mahoney 2010-11-22 19:46:41 UTC
Can you attach the output of 'hwinfo' on the affected system?
Comment 2 Pavel Baranchikov 2010-11-23 06:09:43 UTC
Created attachment 401706 [details]
hwinfo output

This is hwinfo from ASUS UL80V
Comment 3 Jiri Slaby 2011-03-02 21:21:57 UTC
Don't forget to check "provides needinfo".
Comment 4 Jiri Slaby 2011-03-02 21:33:34 UTC
Egbert, could you take a look?
Comment 5 Egbert Eich 2011-03-23 15:21:22 UTC
There is no module vgaswitcheroo (at least as far as I know). This API is compiled into the kernel.
Since you have an Intel IGP and a NVIDIA discrete graphics chip you need to use the nouveau driver and kernel module and need to have to have KMS enabled. The latter is enabled by default for the Intel chip but should also be enabled for the nouveau driver (unless you have booted with 'nomodeset').
Could you please check if the nouveau driver is loaded: 
$ lsmod | grep nouveau
Also please provide the output of 
$ cat /proc/fb
Comment 6 Jiri Slaby 2011-07-24 16:49:06 UTC
Closed due to lack of response.
Comment 7 Pavel Baranchikov 2011-07-25 06:30:41 UTC
Usage of NVidia card and proprietory drivers disabled vgaswitcher_oo. Noveau driver is useless for me, because lacking 3D hardware acceleration.
I've found bumblebee project can help me a lot :)