Dell Inspiron 5150 - Suspend to RAM not working... still (part one)

sktsee sktsee at tulsaconnect.com
Sat Feb 13 22:14:14 UTC 2010


On Fri, 12 Feb 2010 14:30:24 -0500, Dave Woyciesjes wrote:

> Dave Woyciesjes wrote:
>>      I've had this laptop, upgraded from 8.10 to 9.04, and now to 9.10.
>> Suspend hasn't worked, oh, since 8.04. Finally getting 'round to fixing
>> it. Right now, it goes into suspend (from the menu, keyboard combo
>> doesn't work), but when I hit the power button to resume, I get:
>> 
>> [  109.218040] pm-op() pci_pm_resume+0x0/0x90 returns -16 [ 
>> 109.218044] PM: Device 0000:00:00.0 failed to resume: error -16
>>

[snip]

> /etc/X11/xorg.conf
> Add under the “Device” section:
> Option “NvAGP” “1"

this is correct

> 
> /etc/modprobe.d/blacklist

I believe this should be blacklist.conf in keeping with new naming 
conventions.

> add
> blacklist intel_agp
> blacklist agpgart

You have the intel_agp and agpgart drivers blacklisted, but according to 
the dmesg output in your other post they're still being loaded:

[    1.485011] Linux agpgart interface v0.103
[    1.488551] agpgart-intel 0000:00:00.0: Intel 855GM Chipset
[    1.570793] ohci1394 0000:02:04.1: PCI INT A -> GSI 16 (level, low) 
-> IRQ 16
[    1.604862] agpgart-intel 0000:00:00.0: AGP aperture is 128M @ 
0xe0000000

To confirm, type "lsmod |grep agp" in a terminal. If you see a line 
similar to the following, then the drivers are still loaded.

$ lsmod |grep agp
agpgart                34988  1 intel_agp,nvidia

Actually, you'll need to load agpgart in order for your nvidia card to 
use agp (it uses agpgart to check for the presence of another backend 
before loading), so I would un-blacklist it. It's the intel_agp driver 
that want to prevent from loading. Unfortunately, simply blacklisting the 
driver isn't sufficient in karmic. I'm not exactly sure why it keeps 
loading even though it's blacklisted, but you can work around this by 
moving intel_agp.ko out of /lib/modules/2.6.31-xx-generic/kernel/drivers/
char/agp to, say, /root and then run "sudo depmod -a" followed by "sudo 
update-initramfs -u".

as root:
# mv /lib/modules/'uname -r'/kernel/drivers/char/agp/intel-agp.ko /root
# depmod -a
# update-initramfs -u

When you reboot, initrd won't load intel_agp because it isn't in the 
initrd image anymore, and that leaves the nvidia driver to load its own 
agp support. You can verify this by typing the previous lsmod comand. 
Intel_agp should not be present.  In addition, type  "cat /proc/driver/
nvidia/agp/status" and you should get output like this:
Status: 	 Enabled
Driver: 	 NVIDIA
AGP Rate: 	 4x
Fast Writes: 	 Disabled
SBA: 		 Disabled

Of course, my machine is a desktop and not a laptop, so you may still 
have more tweaking to do. However, switching to nvidia agp was the only 
change I had to make in order to get suspend/hibernate working reliably. 
YMMV.

-- 
sktsee





More information about the ubuntu-users mailing list