← Back to team overview

hybrid-graphics-linux team mailing list archive

asus-switcheroo test with Asus N53Jg

 

Hi,

I recently bought a new laptop a Asus N53Jg. This computer uses the
"Optimius" technology, I've got a intel and a nVidia chip inside my
computer.
I have no problem to turn off the nVidia card thanks to the acpi_call
script, however the asus_switcheroo module doesn't work with my model
although
my DSDT file contains the three needed methods :_DSM, MXMX, MXDS .

The methods I found in my DSDT.lst file :

     Method (_DSM, 4, NotSerialized)
                {
                    If (LEqual (Arg0, Buffer (0x10)
                            {
                                /* 0000 */    0xA0, 0xA0, 0x95, 0x9D, 0x60,
0x00, 0x48, 0x4D,
                                /* 0008 */    0xB3, 0x4D, 0x7E, 0x5F, 0xEA,
0x12, 0x9F, 0xD4
                            }))
                    {

            Method (MXMX, 1, NotSerialized)
                {
                    Store (One, HLMM)
                    Store (One, HCMM)
                    Store (One, HDMU)
                    Store (One, HHMM)
                    Store (Zero, HLMX)
                    Store (Zero, HCMX)
                    Store (Zero, HDMX)
                    Store (Zero, HHMX)
                    Return (0x01)
                }


                Method (MXDS, 1, NotSerialized)
                {
                    If (And (Arg0, 0x00))
                    {
                        Return (LNot (HLMX))
                    }
                    Else
                    {
                        Store (Zero, HLMX)
                        Store (Zero, HCMX)
                        Sleep (0x64)
                    }

                    Return (Zero)
                }



Thank you !


PS: I noticed I cannot load asus-switcheroo module and/or nouveau module
when I turned off the nvidia card, which is normal. And I have no problem to
load theses two modules when
the card is turned on. This is a good sign.

dmesg shows me theses messages about my nVidia card :

5.059493] VGA switcheroo: detected DSM switching method \_SB_.PCI0.PEG1.GFX0
handle
[    5.059539] nouveau 0000:01:00.0: power state changed by ACPI to D0
[    5.059543] nouveau 0000:01:00.0: power state changed by ACPI to D0
[    5.059546] nouveau 0000:01:00.0: enabling device (0000 -> 0003)
[    5.059554] nouveau 0000:01:00.0: PCI INT A -> GSI 16 (level, low) -> IRQ
16
[    5.059558] nouveau 0000:01:00.0: setting latency timer to 64
[    5.062601] [drm] nouveau 0000:01:00.0: Detected an NVc0 generation card
(0x0c1700a1)
[    5.069533] vga_switcheroo: enabled
[    5.069545] [drm] nouveau 0000:01:00.0: Attempting to load BIOS image
from PRAMIN
[    5.079280] [drm] nouveau 0000:01:00.0: ... BIOS signature not found
[    5.079282] [drm] nouveau 0000:01:00.0: Attempting to load BIOS image
from PROM
[    5.079291] [drm] nouveau 0000:01:00.0: ... BIOS signature not found
[    5.079293] [drm] nouveau 0000:01:00.0: Attempting to load BIOS image
from PCIROM
[    5.089157] nouveau 0000:01:00.0: Invalid ROM contents
[    5.089259] [drm] nouveau 0000:01:00.0: ... BIOS signature not found
[    5.089261] [drm] nouveau 0000:01:00.0: Attempting to load BIOS image
from ACPI
[    5.202204] usb 2-1.4: new low speed USB device using ehci_hcd and
address 3
[    5.339327] input: Logitech USB Optical Mouse as
/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.4/2-1.4:1.0/input/input6
[    5.339450] generic-usb 0003:046D:C019.0001: input,hidraw0: USB HID v1.11
Mouse [Logitech USB Optical Mouse] on usb-0000:00:1d.0-1.4/input0
[    5.339466] usbcore: registered new interface driver usbhid
[    5.339468] usbhid: USB HID core driver
[    8.841777] [drm] nouveau 0000:01:00.0: ... appears to be valid
[    8.841781] [drm] nouveau 0000:01:00.0: BIT BIOS found
[    8.841784] [drm] nouveau 0000:01:00.0: Bios version 70.08.19.00
[    8.841786] [drm] nouveau 0000:01:00.0: Pointer to BIT loadval table
invalid
[    8.841823] [drm] nouveau 0000:01:00.0: TMDS table version 2.0
[    8.841825] [drm] nouveau 0000:01:00.0: Found Display Configuration Block
version 4.0
[    8.841828] [drm] nouveau 0000:01:00.0: Raw DCB entry 0: 02000300
00000000
[    8.841830] [drm] nouveau 0000:01:00.0: Raw DCB entry 1: 02011362
00020010
[    8.841832] [drm] nouveau 0000:01:00.0: Raw DCB entry 2: 0000000e
00000000
[    8.841835] [drm] nouveau 0000:01:00.0: DCB connector table: VHER 0x40 5
16 4
[    8.841837] [drm] nouveau 0000:01:00.0:   0: 0x00000000: type 0x00 idx 0
tag 0xff
[    8.841839] [drm] nouveau 0000:01:00.0:   1: 0x00001161: type 0x61 idx 1
tag 0x07
[    8.841854] [drm] nouveau 0000:01:00.0: Adaptor not initialised, running
VBIOS init tables.
[    8.841856] [drm] nouveau 0000:01:00.0: Parsing VBIOS init table 0 at
offset 0xD2F9
[    9.021608] [drm] nouveau 0000:01:00.0: 0xD2E4: i2c wr fail: -6
[    9.081634] [drm] nouveau 0000:01:00.0: Parsing VBIOS init table 1 at
offset 0xD93F
[    9.191610] [drm] nouveau 0000:01:00.0: Parsing VBIOS init table 2 at
offset 0xEAD4
[    9.191619] [drm] nouveau 0000:01:00.0: Parsing VBIOS init table 3 at
offset 0xEAD8
[    9.191678] [drm] nouveau 0000:01:00.0: Parsing VBIOS init table 4 at
offset 0xEBC0
[    9.191681] [drm] nouveau 0000:01:00.0: Parsing VBIOS init table at
offset 0xEC25
[   10.021483] [drm] nouveau 0000:01:00.0: 3 available performance level(s)
[   10.021487] [drm] nouveau 0000:01:00.0: 0: memory 135MHz core 270MHz
shader 540MHz voltage 850mV
[   10.021490] [drm] nouveau 0000:01:00.0: 1: memory 405MHz core 270MHz
shader 810MHz voltage 850mV
[   10.021493] [drm] nouveau 0000:01:00.0: 3: memory 405MHz core 800MHz
shader 1000MHz voltage 900mV
[   10.021753] [TTM] Zone  kernel: Available graphics memory: 1921624 kiB.
[   10.021758] [TTM] Initializing pool allocator.
[   10.021780] [drm] nouveau 0000:01:00.0: Detected 512MiB VRAM
[   10.071107] [drm] nouveau 0000:01:00.0: 512 MiB GART (aperture)
[   10.071119] [drm] nouveau 0000:01:00.0: PGRAPH: unsupported chipset,
please report!
[   10.071507] [drm] nouveau 0000:01:00.0: PGRAPH: unknown config: 1/0/0/0,
1
[   10.073288] [drm] nouveau 0000:01:00.0: failed to load fuc409d
[   10.094914] [drm] Supports vblank timestamp caching Rev 1 (10.10.2010).
[   10.094916] [drm] No driver support for vblank timestamp query.
[   10.094925] [drm] nouveau 0000:01:00.0: ACPI backlight interface
available, not registering our own
[   10.302874] [drm] nouveau 0000:01:00.0: allocated 1024x768 fb:
0x30000000, bo ffff88012acbf000
[   10.302931] fb1: nouveaufb frame buffer device
[   10.302935] [drm] Initialized nouveau 0.0.16 20090420 for 0000:01:00.0 on
minor 1

Do you think it is due to the all Optimus thing ? It looks nouveau just
doesn't recognize the nVidia, maybe I should use the nvidia prop driver ?