Comment 649 for bug 752542

Revision history for this message
RayfenWindspear (rayfenwindspear) wrote :

Before I post my PC information, let me first explain a workaround that I found. I believe it may contain the exact information needed for my laptop model.

I am able to turn off and on my Optimus card using acpi_call which I got from the instructions here:
http://linux-hybrid-graphics.blogspot.com/2010/07/using-acpicall-module-to-switch-onoff.html

The messages sent through acpi_call are \_SB.PCI0.PEG0.PEGP._OFF and \_SB.PCI0.PEG0.PEGP._ON
These effectively disable and enable my GPU, though this method is cumbersome to use. I assume the problem bbswitch has is that (as you will see below) acpi_dump_info does NOT report a handle for 0000:01:00.0 which is my GPU.

Now for some dumps.

dmesg | grep -C 10 bbswitch:
[ 20.298843] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[ 20.301851] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[ 21.292153] bbswitch: version 0.7
[ 21.292158] bbswitch: Found integrated VGA device 0000:00:02.0: \_SB_.PCI0.GFX0
[ 21.292161] bbswitch: cannot find ACPI handle for VGA device 0000:01:00.0
[ 21.292162] bbswitch: No discrete VGA device found
[ 27.987244] wlan0: authenticate with 00:24:7b:f7:a3:78
[ 27.994217] wlan0: send auth to 00:24:7b:f7:a3:78 (try 1/3)
[ 27.997162] wlan0: authenticated

uname -a
Linux CHIKARA-RARING 3.8.0-31-generic #46-Ubuntu SMP Tue Sep 10 20:03:44 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux

Ubuntu 13.04

Xorg -version
X.Org X Server 1.13.3
Release Date: 2013-03-07
X Protocol Version 11, Revision 0
Build Operating System: Linux 3.2.0-37-generic x86_64 Ubuntu
Current Operating System: Linux CHIKARA-RARING 3.8.0-31-generic #46-Ubuntu SMP Tue Sep 10 20:03:44 UTC 2013 x86_64
Kernel command line: BOOT_IMAGE=/boot/vmlinuz-3.8.0-31-generic root=UUID=edbc47fb-c02b-474c-8349-802377ff9a1a ro
Build Date: 16 October 2013 04:35:36PM
xorg-server 2:1.13.3-0ubuntu6.2 (For technical support please see http://www.ubuntu.com/support)
Current version of pixman: 0.28.2

cat /proc/acpi/dump_info
0000:00:00.0 060000
0000:00:01.0 060400 \_SB_.PCI0.P0P2
0000:00:02.0 030000 \_SB_.PCI0.GFX0
0000:00:14.0 0c0330 \_SB_.PCI0.XHC_
0000:00:16.0 078000
0000:00:1a.0 0c0320 \_SB_.PCI0.EHC2
0000:00:1b.0 040300 \_SB_.PCI0.HDEF
0000:00:1c.0 060400 \_SB_.PCI0.RP01
0000:00:1c.2 060400 \_SB_.PCI0.RP03
0000:00:1c.3 060400 \_SB_.PCI0.RP04
0000:00:1c.4 060400 \_SB_.PCI0.RP05
0000:00:1d.0 0c0320 \_SB_.PCI0.EHC1
0000:00:1f.0 060100 \_SB_.PCI0.LPCB
0000:00:1f.2 010601 \_SB_.PCI0.SAT0
0000:00:1f.3 0c0500 \_SB_.PCI0.SBUS
0000:01:00.0 030000
0000:03:00.0 020000 \_SB_.PCI0.RP03.PXSX
0000:04:00.0 028000 \_SB_.PCI0.RP04.PXSX
0000:05:00.0 ff0000 \_SB_.PCI0.RP05.PXSX

Again, why my laptop does not display a handle for my GPU is beyond me.