← Back to team overview

hybrid-graphics-linux team mailing list archive

Re: Asus N82JV 1.0

 

Ops, wrong dmesg file (when the card is detected). Attaching the correct
one. :)


On 18 March 2011 20:46, André Ventura <andrefv@xxxxxxxxx> wrote:

> Hello,
>
> I own an Asus N82JV with the NVIDIA Optimus technology (Intel HD + GeForce
> GT 335M) and I'm interested in having the NVIDIA card working.
>
> I contacted Asus about this issue, right after I bought the computer and
> just realized the NVIDIA didn't (and doesn't) have support for the Optimus
> Technology on Linux, but they did nothing and were almost offended because I
> wasn't using MS Windows (and the solution would be to use it!)…
>
> Well, I'm using Ubuntu Natty (development branch), which current kernel
> version is 2.6.38-7, X.Org X server 1.10 and Mesa 7.10.1.
>
> DSDT.dsl and partial dmesg logs (when the card is detected and when it's
> not) attached.
>
> ---
>
> $ dmidecode -s system-product-name && dmidecode -s system-version
> N82JV
> 1.0
>
> $uname -a
> Linux laptop01 2.6.38-7-generic #35-Ubuntu SMP Tue Mar 15 21:33:06 UTC 2011
> x86_64 x86_64 x86_64 GNU/Linux
>
> $ lspci -vnnn | perl -lne 'print if /^\d+\:.+(\[\S+\:\S+\])/' | grep VGA
> 00:02.0 VGA compatible controller [0300]: Intel Corporation Core Processor
> Integrated Graphics Controller [8086:0046] (rev 18) (prog-if 00 [VGA
> controller])
> 01:00.0 VGA compatible controller [0300]: nVidia Corporation GT215 [GeForce
> GT 335M] [10de:0caf] (rev a2) (prog-if 00 [VGA controller])
>
> ---
>
> Since some of the last kernel updates the NVIDIA card began to be detected
> (sometimes, because it isn't detected after a reboot), but the switching,
> using vga_switcheroo, fails:
>
> [    8.890667] [drm] nouveau 0000:01:00.0: Detected an NV50 generation card
> (0x0a3780a2)
>
> $ echo "DIS" | sudo tee -a /sys/kernel/debug/vgaswitcheroo/switch
>
> [ 1636.113104] ACPI Error: Needed [Buffer/String/Package], found [Integer]
> ffff8801212e4e10 (20110112/exresop-590)
> [ 1636.113117] ACPI Exception: AE_AML_OPERAND_TYPE, While resolving
> operands for [OpcodeName unavailable] (20110112/dswexec-460)
> [ 1636.113127] ACPI Error: Method parse/execution failed
> [\_SB_.PCI0.GFX0._DSM] (Node ffff88013f84b0f0), AE_AML_OPERAND_TYPE
> (20110112/psparse-536)
> [ 1636.113142] ACPI Error: Method parse/execution failed
> [\_SB_.PCI0.PEG1.GFX0._DSM] (Node ffff88013f86f578), AE_AML_OPERAND_TYPE
> (20110112/psparse-536)
> [ 1636.113159] failed to evaluate _DSM: 12291
> [ 1636.113161] vga_switcheroo: switching failed stage 2 12291
>
>
> Best regards,
> André
>
dmesg when the NVIDIA card is detected:

[    0.000000] Initializing cgroup subsys cpuset
[    0.000000] Initializing cgroup subsys cpu
[    0.000000] Linux version 2.6.38-7-generic (buildd@crested) (gcc version 4.5.2 (Ubuntu/Linaro 4.5.2-6ubuntu2) ) #35-Ubuntu SMP Tue Mar 15 21:33:06 UTC 2011 (Ubuntu 2.6.38-7.35-generic 2.6.38)
[    0.000000] Command line: BOOT_IMAGE=/boot/vmlinuz-2.6.38-7-generic root=UUID=6684663b-f97a-4ab7-a4ef-3af565b7083f ro crashkernel=384M-2G:64M,2G-:128M
[...]
[    2.252338] vgaarb: device added: PCI:0000:00:02.0,decodes=io+mem,owns=io+mem,locks=none
[    2.252349] vgaarb: device added: PCI:0000:01:00.0,decodes=io+mem,owns=none,locks=none
[    2.252356] vgaarb: loaded
[...]
[    3.763938] Linux agpgart interface v0.103
[    3.800505] agpgart-intel 0000:00:00.0: Intel HD Graphics Chipset
[    3.837487] agpgart-intel 0000:00:00.0: detected gtt size: 2097152K total, 262144K mappable
[    3.875614] agpgart-intel 0000:00:00.0: detected 32768K stolen memory
[    3.912993] agpgart-intel 0000:00:00.0: AGP aperture is 256M @ 0xb0000000
[...]
[    8.708596] [drm] Initialized drm 1.1.0 20060810
[    8.756381] atl1c 0000:05:00.0: PCI INT A -> GSI 17 (level, low) -> IRQ 17
[    8.805309] atl1c 0000:05:00.0: setting latency timer to 64
[    8.836069] ACPI Error: Needed [Buffer/String/Package], found [Integer] ffff88013b1b65a0 (20110112/exresop-590)
[    8.885867] i915 0000:00:02.0: PCI INT A -> GSI 16 (level, low) -> IRQ 16
[    8.885913] ACPI Exception: AE_AML_OPERAND_TYPE, While resolving operands for [OpcodeName unavailable] (20110112/dswexec-460)
[    8.885940] ACPI Error: Method parse/execution failed [\_SB_.PCI0.GFX0._DSM] (Node ffff88013f84b0f0), AE_AML_OPERAND_TYPE (20110112/psparse-536)
[    8.885961] failed to evaluate _DSM: 12291
[    8.886024] ACPI Error: Needed [Buffer/String/Package], found [Integer] ffff88013b1b6438 (20110112/exresop-590)
[    8.886027] ACPI Exception: AE_AML_OPERAND_TYPE, While resolving operands for [OpcodeName unavailable] (20110112/dswexec-460)
[    8.886034] ACPI Error: Method parse/execution failed [\_SB_.PCI0.GFX0._DSM] (Node ffff88013f84b0f0), AE_AML_OPERAND_TYPE (20110112/psparse-536)
[    8.886044] ACPI Error: Method parse/execution failed [\_SB_.PCI0.PEG1.GFX0._DSM] (Node ffff88013f86f578), AE_AML_OPERAND_TYPE (20110112/psparse-536)
[    8.886053] failed to evaluate _DSM: 12291
[    8.886060] VGA switcheroo: detected DSM switching method \_SB_.PCI0.PEG1.GFX0 handle
[    8.886451] nouveau 0000:01:00.0: power state changed by ACPI to D0
[    8.886458] nouveau 0000:01:00.0: power state changed by ACPI to D0
[    8.886461] nouveau 0000:01:00.0: enabling device (0000 -> 0003)
[    8.886467] nouveau 0000:01:00.0: PCI INT A -> GSI 16 (level, low) -> IRQ 16
[    8.886472] nouveau 0000:01:00.0: setting latency timer to 64
[--------------------------------------------------]
[    8.890667] [drm] nouveau 0000:01:00.0: Detected an NV50 generation card (0x0a3780a2)
[    8.890671] checking generic (b0300000 300000) vs hw (c0000000 10000000)
[    8.890673] checking generic (b0300000 300000) vs hw (d0000000 2000000)
[    8.898599] [drm] nouveau 0000:01:00.0: Attempting to load BIOS image from PRAMIN
[    8.898606] [drm] nouveau 0000:01:00.0: ... BIOS signature not found
[    8.898607] [drm] nouveau 0000:01:00.0: Attempting to load BIOS image from PROM
[    8.898612] [drm] nouveau 0000:01:00.0: ... BIOS signature not found
[    8.898613] [drm] nouveau 0000:01:00.0: Attempting to load BIOS image from PCIROM
[    8.898748] nouveau 0000:01:00.0: Invalid ROM contents
[    8.898814] [drm] nouveau 0000:01:00.0: ... BIOS signature not found
[    8.898815] [drm] nouveau 0000:01:00.0: Attempting to load BIOS image from ACPI
[   14.623915] [drm] nouveau 0000:01:00.0: ... appears to be valid
[   14.688365] [drm] nouveau 0000:01:00.0: BIT BIOS found
[   14.751720] [drm] nouveau 0000:01:00.0: Bios version 70.15.3d.00
[   14.815025] [drm] nouveau 0000:01:00.0: Pointer to BIT loadval table invalid
[   14.815030] [drm] nouveau 0000:01:00.0: TMDS table version 2.0
[   14.815032] [drm] nouveau 0000:01:00.0: Found Display Configuration Block version 4.0
[   14.815035] [drm] nouveau 0000:01:00.0: Raw DCB entry 0: 02010300 00000000
[   14.815039] [drm] nouveau 0000:01:00.0: Raw DCB entry 1: 0000000e 00000000
[   14.815042] [drm] nouveau 0000:01:00.0: DCB connector table: VHER 0x40 5 16 4
[   14.815044] [drm] nouveau 0000:01:00.0:   0: 0x00000000: type 0x00 idx 0 tag 0xff
[   14.815054] [drm] nouveau 0000:01:00.0: Adaptor not initialised, running VBIOS init tables.
[   14.815056] [drm] nouveau 0000:01:00.0: Parsing VBIOS init table 0 at offset 0xD3B5
[   14.863313] [drm] nouveau 0000:01:00.0: Parsing VBIOS init table 1 at offset 0xD96C
[   14.943170] [drm] nouveau 0000:01:00.0: Parsing VBIOS init table 2 at offset 0xE8BF
[   14.943201] [drm] nouveau 0000:01:00.0: Parsing VBIOS init table 3 at offset 0xE8FD
[   14.963202] [drm] nouveau 0000:01:00.0: Parsing VBIOS init table 4 at offset 0xEB37
[   14.963204] [drm] nouveau 0000:01:00.0: Parsing VBIOS init table at offset 0xEB9C
[   15.791726] [drm] nouveau 0000:01:00.0: 3 available performance level(s)
[   15.836653] [drm] nouveau 0000:01:00.0: 0: memory 135MHz core 135MHz shader 270MHz voltage 800mV
[   15.881935] [drm] nouveau 0000:01:00.0: 1: memory 324MHz core 405MHz shader 810MHz voltage 850mV
[   15.927431] [drm] nouveau 0000:01:00.0: 3: memory 790MHz core 450MHz shader 1080MHz voltage 900mV
[   15.972734] [drm] nouveau 0000:01:00.0: c: memory 950MHz core 550MHz shader 200MHz voltage 850mV
[   15.972836] [TTM] Zone  kernel: Available graphics memory: 1855710 kiB.
[   15.972837] [TTM] Initializing pool allocator.
[   15.972853] [drm] nouveau 0000:01:00.0: Detected 1024MiB VRAM
[   16.198518] [drm] nouveau 0000:01:00.0: 512 MiB GART (aperture)
[   16.326611] [drm] Supports vblank timestamp caching Rev 1 (10.10.2010).
[   16.371717] [drm] No driver support for vblank timestamp query.
[   16.386725] [drm] nouveau 0000:01:00.0: ACPI backlight interface available, not registering our own
[   16.438809] [drm] nouveau 0000:01:00.0: allocated 1024x768 fb: 0x60000000, bo ffff88013a594800
[   16.438812] checking generic (b0300000 300000) vs hw (c0000000 10000000)
[   16.438814] checking generic (b0300000 300000) vs hw (d0000000 2000000)
[   16.438880] fb1: nouveaufb frame buffer device
[   16.438881] drm: registered panic notifier
[   16.438886] [drm] Initialized nouveau 0.0.16 20090420 for 0000:01:00.0 on minor 0
[   16.648362] i915 0000:00:02.0: irq 41 for MSI/MSI-X
[   16.648367] [drm] Supports vblank timestamp caching Rev 1 (10.10.2010).
[   16.649887] [drm] Driver supports precise vblank timestamp query.
[   16.728695] vga_switcheroo: enabled
[--------------------------------------------------]
[   16.792472] vgaarb: device changed decodes: PCI:0000:01:00.0,olddecodes=io+mem,decodes=none:owns=none
[   16.793734] vgaarb: device changed decodes: PCI:0000:00:02.0,olddecodes=io+mem,decodes=none:owns=io+mem
[   16.884103] checking generic (b0300000 300000) vs hw (b0000000 10000000)
[   16.884107] fb: conflicting fb hw usage inteldrmfb vs VESA VGA - removing generic driver
[   16.885360] Console: switching to colour dummy device 80x25
[   16.885823] fb0: inteldrmfb frame buffer device
[   16.887053] ACPI Warning: _BQC returned an invalid level (20110112/video-473)
[   16.887454] input: Video Bus as /devices/LNXSYSTM:00/device:00/PNP0A08:00/device:01/LNXVIDEO:00/input/input5
[   16.887490] ACPI: Video Device [GFX0] (multi-head: yes  rom: yes  post: no)
[   16.888876] ACPI Warning: _BQC returned an invalid level (20110112/video-473)
[   16.889187] acpi device:4c: registered as cooling_device5
[   16.889390] input: Video Bus as /devices/LNXSYSTM:00/device:00/PNP0A08:00/LNXVIDEO:02/input/input6
[   16.889439] ACPI: Video Device [GFX0] (multi-head: yes  rom: no  post: no)
[   16.889605] [drm] Initialized i915 1.6.0 20080730 for 0000:00:02.0 on minor 1
[...]


$ echo "DIS" | sudo tee -a /sys/kernel/debug/vgaswitcheroo/switch

[ 1636.113104] ACPI Error: Needed [Buffer/String/Package], found [Integer] ffff8801212e4e10 (20110112/exresop-590)
[ 1636.113117] ACPI Exception: AE_AML_OPERAND_TYPE, While resolving operands for [OpcodeName unavailable] (20110112/dswexec-460)
[ 1636.113127] ACPI Error: Method parse/execution failed [\_SB_.PCI0.GFX0._DSM] (Node ffff88013f84b0f0), AE_AML_OPERAND_TYPE (20110112/psparse-536)
[ 1636.113142] ACPI Error: Method parse/execution failed [\_SB_.PCI0.PEG1.GFX0._DSM] (Node ffff88013f86f578), AE_AML_OPERAND_TYPE (20110112/psparse-536)
[ 1636.113159] failed to evaluate _DSM: 12291
[ 1636.113161] vga_switcheroo: switching failed stage 2 12291

Follow ups

References