← Back to team overview

hybrid-graphics-linux team mailing list archive

Re: Strange behaviour of Asus U30Jc

 

This methods might be interesting. Anyhow, since I have no application where I really
need the NVIDIA, I'm trying to switch it off before the XServer is loaded and then
blacklist nouveau. I'm doing this with MacOS and the box works quite well and
it earns me a lot of battery life.

The kernel backtrace in dmesg I was talking about also appears in 10.10 x86_64:(

[   14.312775] ACPI: Video Device [GFX0] (multi-head: yes  rom: yes  post: no)
[   14.312844] ------------[ cut here ]------------
[   14.312851] WARNING: at /build/buildd/linux-2.6.35/fs/proc/generic.c:583 proc_register+0x118/0x200()
[   14.312853] Hardware name: U30Jc
[   14.312854] proc_dir_entry 'video/GFX0' already registered
[   14.312855] Modules linked in: joydev i915(+) snd_hda_intel(+) arc4 snd_hda_codec snd_hwdep nouveau snd_pcm usbhid ath9k snd_seq_midi ttm hid snd_rawmidi ath9k_common ath9k_hw snd_seq_midi_event drm_kms_helper ath mac80211 snd_seq uvcvideo snd_timer videodev drm snd_seq_device v4l1_compat v4l2_compat_ioctl32 btusb bluetooth snd psmouse serio_raw cfg80211 i2c_algo_bit intel_agp intel_ips soundcore snd_page_alloc video asus_laptop sparse_keymap led_class output lp parport ahci libahci atl1c
[   14.312892] Pid: 1003, comm: modprobe Not tainted 2.6.35-30-generic #56-Ubuntu
[   14.312894] Call Trace:
[   14.312903]  [<ffffffff8106154f>] warn_slowpath_common+0x7f/0xc0
[   14.312906]  [<ffffffff81061646>] warn_slowpath_fmt+0x46/0x50
[   14.312909]  [<ffffffff811b2ed8>] proc_register+0x118/0x200
[   14.312913]  [<ffffffff811b31e7>] ? __proc_create+0xf7/0x150
[   14.312915]  [<ffffffff811b3472>] proc_mkdir_mode+0x42/0x60
[   14.312918]  [<ffffffff811b34a6>] proc_mkdir+0x16/0x20
[   14.312926]  [<ffffffffa005dfb2>] acpi_video_bus_add_fs+0x2d/0x177 [video]
[   14.312932]  [<ffffffffa005fa23>] acpi_video_bus_add+0x19d/0x396 [video]
[   14.312939]  [<ffffffff8131004c>] acpi_device_probe+0x50/0x122
[   14.312945]  [<ffffffff8138ad68>] really_probe+0x68/0x190
[   14.312948]  [<ffffffff8138aed5>] driver_probe_device+0x45/0x70
[   14.312952]  [<ffffffff8138af9b>] __driver_attach+0x9b/0xa0
[   14.312955]  [<ffffffff8138af00>] ? __driver_attach+0x0/0xa0
[   14.312957]  [<ffffffff8138a1a8>] bus_for_each_dev+0x68/0x90
[   14.312960]  [<ffffffff8138abde>] driver_attach+0x1e/0x20
[   14.312963]  [<ffffffff8138a49e>] bus_add_driver+0xde/0x280
[   14.312966]  [<ffffffff8138b2e0>] driver_register+0x80/0x150
[   14.312969]  [<ffffffff811b3472>] ? proc_mkdir_mode+0x42/0x60
[   14.312973]  [<ffffffff81310fa4>] acpi_bus_register_driver+0x43/0x45
[   14.312977]  [<ffffffffa005ef35>] acpi_video_register+0x47/0x73 [video]
[   14.313002]  [<ffffffffa03f362d>] intel_opregion_init+0x16d/0x2c0 [i915]
[   14.313016]  [<ffffffffa03c517d>] i915_driver_load+0x37d/0x9f0 [i915]
[   14.313034]  [<ffffffffa0153f1f>] drm_get_dev+0x15f/0x2c0 [drm]
[   14.313039]  [<ffffffff811c1b3c>] ? sysfs_add_one+0x2c/0x130
[   14.313054]  [<ffffffffa03f3d68>] i915_pci_probe+0x15/0xdf [i915]
[   14.313060]  [<ffffffff812d96f7>] local_pci_probe+0x17/0x20
[   14.313064]  [<ffffffff812d99e9>] __pci_device_probe+0xe9/0xf0
[   14.313068]  [<ffffffff812bbd3a>] ? kobject_get+0x1a/0x30
[   14.313074]  [<ffffffff813869a9>] ? get_device+0x19/0x20
[   14.313078]  [<ffffffff812daa8a>] pci_device_probe+0x3a/0x60
[   14.313082]  [<ffffffff8138ad68>] really_probe+0x68/0x190
[   14.313085]  [<ffffffff8138aed5>] driver_probe_device+0x45/0x70
[   14.313089]  [<ffffffff8138af9b>] __driver_attach+0x9b/0xa0
[   14.313092]  [<ffffffff8138af00>] ? __driver_attach+0x0/0xa0
[   14.313095]  [<ffffffff8138a1a8>] bus_for_each_dev+0x68/0x90
[   14.313099]  [<ffffffff8138abde>] driver_attach+0x1e/0x20
[   14.313102]  [<ffffffff8138a49e>] bus_add_driver+0xde/0x280
[   14.313105]  [<ffffffff8138b2e0>] driver_register+0x80/0x150
[   14.313110]  [<ffffffff810d5134>] ? tracepoint_update_probe_range+0x114/0x140
[   14.313115]  [<ffffffff812dad16>] __pci_register_driver+0x56/0xd0
[   14.313121]  [<ffffffff81591836>] ? notifier_call_chain+0x56/0x80
[   14.313129]  [<ffffffffa014db71>] drm_init+0x111/0x120 [drm]
[   14.313132]  [<ffffffff81110e12>] ? register_shrinker+0x52/0x60
[   14.313144]  [<ffffffffa017e000>] ? i915_init+0x0/0x9f [i915]
[   14.313155]  [<ffffffffa017e09d>] i915_init+0x9d/0x9f [i915]
[   14.313160]  [<ffffffff8100204c>] do_one_initcall+0x3c/0x1a0
[   14.313166]  [<ffffffff8109cdcb>] sys_init_module+0xbb/0x200
[   14.313173]  [<ffffffff8100a0f2>] system_call_fastpath+0x16/0x1b
[   14.313176] ---[ end trace c4e2b630fde4c42b ]---


> Date: Fri, 5 Aug 2011 09:21:34 +0100
> Subject: Re: [Hybrid-graphics-linux] Strange behaviour of Asus U30Jc
> From: avilella@xxxxxxxxx
> To: samsagax@xxxxxxxxx
> CC: paaguti@xxxxxxxxxxx; hybrid-graphics-linux@xxxxxxxxxxxxxxxxxxx
> 
> I pulled the DSDT for the Asus U30JC, for suspend/resume, there are
> two methods, _PS3 and _PS0:
> 
> echo '_SB.PCI0.PEG1.GFX0._PS0' > /proc/acpi/call
> 
> or
> 
> echo '_SB.PCI0.PEG1.GFX0._PS3' > /proc/acpi/call
> 
>         Method (_PS0, 0, NotSerialized)
>         {
>             \DIAG (0x70)
>             Store (Zero, \_SB.PCI0.GFX0._PSC)
>             If (LNotEqual (\_SB.PCI0.GFX0.DGPS, 0x00))
>             {
>                 \_SB.PCI0.PEG1.GFX0.DON ()
>                 Store (Zero, \_SB.PCI0.GFX0.DGPS)
>             }
> 
>             \DIAG (0x71)
>         }
> 
>         Method (_PS3, 0, NotSerialized)
>         {
>             \DIAG (0x72)
>             If (LEqual (\_SB.PCI0.GFX0.P3MO, 0x01))
>             {
>                 Store (0xC0, HPD)
>                 \_SB.PCI0.PEG1.GFX0.DOFF ()
>                 Store (0x03, \_SB.PCI0.GFX0._PSC)
>                 Store (0x01, \_SB.PCI0.GFX0.DGPS)
>             }
> 
>             Store (0x00, \_SB.PCI0.GFX0.P3MO)
>             \DIAG (0x73)
>         }
> 
> 
> On Fri, Aug 5, 2011 at 9:17 AM, Albert Vilella <avilella@xxxxxxxxx> wrote:
> > Some systems require extra commands to be sent before suspend/resume.
> > See for example the snippet below, _PS0 and _PS3 make sure the correct
> > sequence of methods are called before suspend/resume (this is for an
> > Acer Aspire, you ACPI may differ):
> >
> > Method (_PS0, 0, NotSerialized)
> > {
> >    If (DGOS)
> >    {
> >        GLSC ()
> >        \_SB.PCI0.PEG0.PEGP._ON ()
> >        GLSR ()
> >        Store (Zero, DGOS)
> >        Store (Zero, MLTF)
> >        Store (Zero, \_SB.PCI0.LPCB.EC0.DSPM)
> >    }
> > }
> >
> > Method (_PS3, 0, NotSerialized)
> > {
> >    If (LEqual (\_SB.PCI0.PEG0.PEGP.OMPR, 0x03))
> >    {
> >        GLSC ()
> >        \_SB.PCI0.PEG0.PEGP._OFF ()
> >        GLSR ()
> >        Store (One, DGOS)
> >        Store (0x02, \_SB.PCI0.PEG0.PEGP.OMPR)
> >        Store (One, \_SB.PCI0.LPCB.EC0.DSPM)
> >    }
> > }
> >
> > On Thu, Jul 28, 2011 at 5:01 AM, Joaquín Ignacio Aramendía
> > <samsagax@xxxxxxxxx> wrote:
> >> Just add some bash script to turn the nvidia card back ON before any
> >> shutdown/suspend/hibernate/restart operation.
> >> --
> >> Joaquín Ignacio Aramendía <samsagax@xxxxxxxxx>
> >>
> >> El vie, 22-07-2011 a las 05:38 +0000, Pedro A ARANDA escribió:
> >>> Hi folks,
> >>>
> >>> I own an ASUS U30Jc. I'm currently using Ubuntu 10.10 i386 on it
> >>> (thinking to move on to 10.10 x86_64 this weekend).
> >>> It sometimes doesn't shutdown and when it doesn't I get a backtrace
> >>> from XServer I have not been able to find. Anyhow,
> >>> going to the attached file (dmesg output) I found a backtrace which
> >>> apparently is linked to the nouveau and asus_switcheroo
> >>> kernel modules.
> >>>
> >>> I let the experts talk...
> >>>
> >>> Cheers, /PA
> >>>
> >>>
> >>> _______________________________________________
> >>> Mailing list: https://launchpad.net/~hybrid-graphics-linux
> >>> Post to     : hybrid-graphics-linux@xxxxxxxxxxxxxxxxxxx
> >>> Unsubscribe : https://launchpad.net/~hybrid-graphics-linux
> >>> More help   : https://help.launchpad.net/ListHelp
> >>
> >>
> >>
> >> _______________________________________________
> >> Mailing list: https://launchpad.net/~hybrid-graphics-linux
> >> Post to     : hybrid-graphics-linux@xxxxxxxxxxxxxxxxxxx
> >> Unsubscribe : https://launchpad.net/~hybrid-graphics-linux
> >> More help   : https://help.launchpad.net/ListHelp
> >>
> >
 		 	   		  

References