You don't need the libata_enabled=1 anymore (IIRC since 2.6.16). I don't believe that this is the reason. Anyway, this is how my boot-line looks like:juniper wrote:man, STR is giving me some trouble...
I used mark lord's patchset on the 2.6.17.1 kernel and no go. i get the same input/output error i complained about above.
are people using any special boot parameters? all i am using is libata_enabled=1. do i need something else?
Code: Select all
kernel /kernel-2.6.17-gentoo-r4_20060726 root=/dev/sda6 resume=/dev/sda5 video=vesafb:1024x768-32@60Code: Select all
# uptime
00:10:30 up 7 days, 2:15, 1 user, load average: 2.11, 1.68, 1.16OK, here's the history what should explain it.juniper wrote:ok, i am about to compile your working patches against the 2.6.16.16 kernel (i think you use gentoo-sources, right?). before tweaking, i want to have everything EXACTLY like you do (just to see what is up).
Yes, you have to decide either for bultin suspend or additional patches and suspend2. Mark preferred the suspend2 because of it's speed and beauty. But the builtin suspend works too and I peronally don't care about lower resume speed and nice progress information. Therefore I've skipped the suspend2 patch.juniper wrote:out of curiosity, there is a suspend2 patch in the "others" tar file you sent me (if you recall you sent me a tar file of what patches you used and ones you didn't). i was under the impression that suspend 2 and kernel suspend were mutually exclusive. what does that suspend2 patch do?
congratulationsjuniper wrote:but I can tell you that this post is being made after an STR cycle!!!!!!!!!
I don't have this issue here. Did you configure STR to be executed when you close the lid? If yes you have to handle "lid open" exactly.juniper wrote:sometimes, when my computer sleeps and i try to wake it up (by opening the lid for example) it goes right back to sleep. but then if i wake it up again it wakes up fine.
is this happening to anyone else? is there a fix?
Code: Select all
lid)
grep -q open /proc/acpi/button/lid/LID/state && logger "ACPI action: LID OPEN" && vbetool dpms on
;;Code: Select all
grep -q close /proc/acpi/button/lid/LID/state && logger "ACPI action: LID CLOSE" && hibernate-ram &Code: Select all
cat /proc/acpi/battery/BAT0/info
present: yes
design capacity: 7200 mAh
last full capacity: 6489 mAhCode: Select all
cat /proc/acpi/battery/BAT0/info
present: yes
design capacity: 7200 mAh
last full capacity: 4880 mAh
Thanks! I'll give it a try when I get homejuniper wrote: if you have trouble, let us know. oh, btw, i have a intel 915 video card whereas you have an ati. i don't really know how that will play out, but give the kernel/patches a try.
Code: Select all
tail -f /var/log/acpi | grep "received event"
Code: Select all
cat /proc/acpi/button/lid/LID/state
state: closed
You need vbetool in order to switch the backlight on. Simply unmask and emerge it.Shucklak wrote:Just curious, I've been using Gentoo on my 6000 since last October, and I still have the lid problem: when I close my lid the screen will not come back on, even after using CTRL + SHFT +F* . The only way I can get the LCD to come back on is if I plug in an external monitor, use the FNC + LCD/CRT button to switch to the external monitor, and then switch back to the laptops LCD. Any one have a solution?
Code: Select all
lid)
grep -q open /proc/acpi/button/lid/LID/state && logger "ACPI action: LID OPEN" && vbetool dpms on How did you configued your acpi?nybbles wrote:Argh, not having any luck with ACPI these days..
2.6.16.16 is related to vanilla sources - that was the actual kernel when those patches have been made available by Mark Lord http://rtr.ca/dell_i9300/.nybbles wrote:I see the kernel version is 2.6.16.16. Do these apply against gentoo-sources-2.6.16-r16 or something? I'm not sure how the version numbers work here.
Oh and where'd you get these patches from?
Code: Select all
make oldconfigCode: Select all
lid)
grep -q open /proc/acpi/button/lid/LID/state && logger "ACPI action: LID OPEN" && vbetool dpms on
I suppose you have either not enabled acpi within your kernel at all, missed some options like CONFIG_ACPI_BUTTON or didn't load some acpi-related modules. Please check:Shucklak wrote:Then I noticed, the grep is calling for /proc/acpi/button/lid/LID/STATE and I don't have that in my /proc. I can go as far as /proc/acpi and that is it. There is not a button directory.
Code: Select all
CONFIG_ACPI=y
CONFIG_ACPI_SLEEP=y
CONFIG_ACPI_SLEEP_PROC_FS=y
CONFIG_ACPI_SLEEP_PROC_SLEEP=y
CONFIG_ACPI_AC=y
CONFIG_ACPI_BATTERY=y
CONFIG_ACPI_BUTTON=y
CONFIG_ACPI_VIDEO=y
CONFIG_ACPI_HOTKEY=m
CONFIG_ACPI_FAN=y
CONFIG_ACPI_PROCESSOR=y
CONFIG_ACPI_THERMAL=y
# CONFIG_ACPI_ASUS is not set
# CONFIG_ACPI_IBM is not set
# CONFIG_ACPI_TOSHIBA is not set
CONFIG_ACPI_BLACKLIST_YEAR=0
# CONFIG_ACPI_DEBUG is not set
CONFIG_ACPI_EC=y
CONFIG_ACPI_POWER=y
CONFIG_ACPI_SYSTEM=y
CONFIG_X86_PM_TIMER=y
CONFIG_ACPI_CONTAINER=m
Code: Select all
sd 0:0:0:0: Attached scsi generic sg0 type 0
1:0:0:0: Attached scsi generic sg1 type 5
sr0: scsi3-mmc drive: 24x/24x writer cd/rw xa/form2 cdda tray
Uniform CD-ROM driver Revision: 3.20
sr 1:0:0:0: Attached scsi CD-ROM sr0
First, I'm not using xine or others very often - but I've seen something like this as well. However, I don't know whether it is the same problem or something different. This is how it happens:juniper wrote:i have an i915 card and it has to do with xorg (7 in my case, but this was happening with 6.x), mplayer and STR/STD. basically, mplayer/xine/totem would lock X after a sleep cycle.
see
http://forums.gentoo.org/viewtopic-t-48 ... ight-.html
I don't have this issue at all because /dev/sr0 is still there after a STR. But my hibernate-ram script does unloading ofjuniper wrote:
your STR kernel/config works great but another problem I am having is that when I wake up from STR my cdrom can no longer be read. my /dev/sr0 is missing, this is where it is usually detected. i tried restarting udevd, coldplug, hald and dbus to no avail. in dmesg it does not seem to have detected it.
EDIT: i checked cdrecord -scanbus and it found my cdrom, but still sr0 was not there. i put a cd in and after a while, it simply showed up and dmesg says
Code: Select all
Unloading module snd_seq_dummy...
Unloading module snd_seq_oss...
Unloading module snd_pcm_oss...
Unloading module fuse...
Unloading module uhci_hcd...
Unloading module sr_mod...
Unloading module sg...
Unloading module evdev...
Unloading module ipw2200...
Unloading module ieee80211_crypt_tkip...
Unloading module snd_seq_midi_event...
Unloading module cdrom...
Unloading module ieee80211...
Unloading module firmware_class...
Unloading module snd_seq...
Unloading module ieee80211_crypt...
Unloading module snd_seq_device...Code: Select all
UnloadAllModules yesok, that gives me some info. I didn't change my modules.autoload file when i used your kernel. my sleep script unloads all modules listed in my modules.autoload file and only loads the ones in modules.autoload on wake up. i did not have sr_mod or sg in my autoload file. modprobing sr_mod did the trick. I just checked this works after and STR cycle, so great. by the way, if that last list is not a complete set of modules you load, can you post your autoload file?amaroc wrote:automatically byCode: Select all
Unloading module snd_seq_dummy... Unloading module snd_seq_oss... Unloading module snd_pcm_oss... Unloading module fuse... Unloading module uhci_hcd... Unloading module sr_mod... Unloading module sg... Unloading module evdev... Unloading module ipw2200... Unloading module ieee80211_crypt_tkip... Unloading module snd_seq_midi_event... Unloading module cdrom... Unloading module ieee80211... Unloading module firmware_class... Unloading module snd_seq... Unloading module ieee80211_crypt... Unloading module snd_seq_device...within my ram.conf.Code: Select all
UnloadAllModules yes
Maybe it's worth to check for unload/load sg or evdev module from your suspend script.
Autoload is even shorterjuniper wrote:by the way, if that last list is not a complete set of modules you load, can you post your autoload file?
Code: Select all
ieee80211
ieee80211_crypt
ieee80211_crypt_tkip
ipw2200
evdev
sg
cdrom
sr_mod
drm
i915
uhci_hcd
fuseYou're right, it's an issue and I should have complained about it earlier. But reading all the reports in relation to X-resolution, DRM and video-playback I was more than happy to havejuniper wrote:as for the video card issue. hmmmm, your solution is not the most convenient. i am actually surprised that this isn't a hot topic given how inconvenient it is. I guess i will do a little more poking around.
i don't really use xine, do you know if this trick works with mplayer? another problem with this solution, is a play most video files over nfs, so i don't know if this trick would work.amaroc wrote: btw - does the solution with a suspended xine-instance work for you? I've verified it here because I had to reboot anyway (new baselayout).
If you got some further information or want me to do some verification let me know.
I've done some testing with mplayer, both native and with KDE-frontend KMPlayer. I could do STR cycles w/ and w/o mplayer running - it didn't crashed X at all. If I leave an mplayer instance during STR active I could also start xine after a STR. However, if I used xine after a STR w/o having an instance of either mplayer or xine running it crashed immediately. The X.log shows very likely the same as you have seen:juniper wrote:i don't really use xine, do you know if this trick works with mplayer? another problem with this solution, is a play most video files over nfs, so i don't know if this trick would work.
Code: Select all
Error in I830WaitLpRing(), now is 266949712, start is 266947711
pgetbl_ctl: 0x7ffc0001 pgetbl_err: 0x3
ipeir: 0 iphdr: 1810000
LP ring tail: 580 head: 0 len: 1f801 start 0
eir: 0 esr: 10 emr: ffff
instdone: ffc0 instpm: 0
memmode: 108 instps: f0000
hwstam: fffe ier: 82 imr: 8 iir: 220
space: 129656 wanted 131064
(II) I810(0): [drm] removed 1 reserved context for kernel
(II) I810(0): [drm] unmapping 8192 bytes of SAREA 0xf8849000 at 0xa7847000
Fatal server error:
lockup
Error in I830WaitLpRing(), now is 266951725, start is 266949724
pgetbl_ctl: 0x7ffc0001 pgetbl_err: 0x3
ipeir: 0 iphdr: 1810000
LP ring tail: 588 head: 0 len: 1f801 start 0
eir: 0 esr: 10 emr: ffff
instdone: ffc0 instpm: 0
memmode: 108 instps: f0000
hwstam: ffff ier: 0 imr: ffff iir: 0
space: 129648 wanted 131064
FatalError re-entered, aborting
lockup