LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Laptop and Netbook (https://www.linuxquestions.org/questions/linux-laptop-and-netbook-25/)
-   -   IBM Thinkpad T22 won't resume (https://www.linuxquestions.org/questions/linux-laptop-and-netbook-25/ibm-thinkpad-t22-wont-resume-319983/)

db391 05-04-2005 05:36 AM

IBM Thinkpad T22 won't resume
 
Hiya everyone

I'm having a problem with the suspend on my ThinkPad. (which btw is 100% linux.)

When I run suspend, it goes normally (screen blank, moon symbol...)

and when I resume, the screen backlight and the power LED comes on and the hard disk spins up as usual.
The only problem is that i get no screen, but a white line across the top. Also the keyboard does not work (some of the Fn controls work: brightness and thinklight)

I have also tried switching to a tty (crtl-alt-F1 etc) but nothing.

This problem affects both APM and ACPI. (ThinkPad extras is compiled into ACPI)...

Does anyone know how I'm able to get the suspend to work properly or would it be my acpid is misconfigured?

Cheers in advance

db.

littlemidget 05-07-2005 03:18 PM

Re: IBM Thinkpad T22 won't resume
 
Quote:

Originally posted by db391
Does anyone know how I'm able to get the suspend to work properly or would it be my acpid is misconfigured?
I have a thinkpad x31, and to suspend it - I use this script:
Code:

#!/bin/bash
# sove.sh

#Stop the bluetooth service.
modprobe -r ehci_hcd
modprobe -r uhci_hcd

#sync the disks.
 sync && sync && sync

#Change the screen to VT1 (text mode)
  /usr/bin/chvt 1

#turn off the backlight on the laptop
# (Note: You must have the radeontool installed....)
  radeontool light off

#perform the actual "go-to-sleep" function.
echo "mem" > /sys/power/state

#Pause a second or two to let us sleep.
 sleep 2
#Sleepytime...Everything after this line gets exectued
#after the user resumes...
#switch back to the Xterminal (automatically turns on backlight)
  /usr/bin/chvt 7

#restart services...
modprobe ehci_hcd
modprobe uhci_hcd

You might wonder why I need to modprobe ehci_hcd and uhci_hcd - that's because they refused to 'wake up' after a suspend, if I did not 'remove' them before suspending the laptop. I hope this works for you :)

finegan 05-17-2005 08:30 PM

I've got a T22, never had much luck with cpufreq scaling under 2.6 so I stick to 2.4 and apm, but I've only ever gotten hang on resume out of buggedy drivers, usually the sound driver or something pcmcia. If you've got an onboard wireless card, rip out that driver, same with e100, it has resume issues eepro100 is safe on. I think my magic combo with 2.6 was eepro and the alsa driver for the soundcard, then I got wake events to work properly, but it depended on the 2.6.

Cheers,

Finegan

slackie1000 05-18-2005 05:30 AM

hi there,

i will drop my :twocents: cause i spent a lot of time with some of the issues here.
i am poor so mine is a R51 :)
but i think most of the things apply.
first of all the thing with cpufreq:
finegan, i got cpufreq running smooth after loading the module "ondemand" changing the governor scale in acpi - ondemand. i didn't want to use daemons.
you need to "echo" somewhere in /sys/device/... and change the scaling_governor file to "ondemand".
be sure that you don't have "performance" this will push the fan load. i solved that recompiling the kernel without apm and only the necessary things in acpi as modules.
db391, the thinkpad extras from the kernel are pretty outdated so, if you have the possbility take them out from your kernel and get the new one from the web. in my case, this extras just bring me the possibility to read the fan speed. nothing else.
last of all, the thing with resume only works like described. you write a script removing most of the "weird" modules of your kernel, and when resumed you "modprobe" them again.
sorry for the bad english. :)
some tips about thinkpad notebooks
regards
slackie1000

finegan 05-18-2005 11:15 AM

Quote:

Originally posted by slackie1000
hi there,

i will drop my :twocents: cause i spent a lot of time with some of the issues here.
i am poor so mine is a R51 :)


In all seriousness, that was humour right? I mean... I'm gettin CPU envy here.

Quote:

Originally posted by slackie1000

but i think most of the things apply.
first of all the thing with cpufreq:
finegan, i got cpufreq running smooth after loading the module "ondemand" changing the governor scale in acpi - ondemand. i didn't want to use daemons.
you need to "echo" somewhere in /sys/device/... and change the scaling_governor file to "ondemand".
be sure that you don't have "performance" this will push the fan load. i solved that recompiling the kernel without apm and only the necessary things in acpi as modules.

Haven't tried the ondemand governor, but earlier when I said I hadn't had much luck with acpi, I really meant cpufreq control. As far as I can tell none of the device drivers for my cpu speed scaling will load, so acpi-cpufreq.ko, speedstep-ich.ko, and speedstep-smi.ko all kick when I try to load them. I don't have anything in /sys/device/cpu/... etc (booted into an apm kernel now, so I can't look).

The only time I did get acpi and cpu speed scaling to work was under the depricated /proc interface which gave me 3 cpuspeeds to play with, and with cpufreqd, I got about 1/3 as effective battery time as under apm.

Other then that, I got all the IBM acpi latop extras to work, including hotswap, the port replication registration, etc... and found a lot of fun crash bugs too :) Mostly things like ndiswrapper not handling sleep, nor the orinoco_cs driver v 0.13e being able to handle acpi sleep.

If I missed something with cpu speed scaling under a T22, please let me know, I've not gotten an answer here at LQ, nor the Linux-TP mailing list.

Cheers,

Finegan

FredL2 05-18-2005 11:35 AM

I've got a HP/Compaq nc6000, and I don't know if this applies to your thinkpads, but I'm using the "ACPI frequency modulation" module and the "userspace" governor, along with a dockapp called "wmlaptop". Everything works smooth, with very few problems. One of my friends had a problem with wmlaptop finding the battery slots, although he has a nc6000 too, so i think it depens on your kernel version and/or acpid version.
I experience suspend problems too, but these is mostly about the graphics card(ATI) and wlan nic (Intel PRO/Wireless 2100).

slackie1000 05-18-2005 11:45 AM

hi there,

Quote:

Originally posted by finegan
In all seriousness, that was humour right? I mean... I'm gettin CPU envy here.
lol.. it is ok... no envy...

Quote:

Originally posted by finegan
Haven't tried the ondemand governor, but earlier when I said I hadn't had much luck with acpi, I really meant cpufreq control. As far as I can tell none of the device drivers for my cpu speed scaling will load, so acpi-cpufreq.ko, speedstep-ich.ko, and speedstep-smi.ko all kick when I try to load them. I don't have anything in /sys/device/cpu/... etc (booted into an apm kernel now, so I can't look).
[/B]
i misunderstood your point before... you can't load the modules.. now i got it.
in order to get the /sys/wherever thing i think the "cpufreq statistics details" in the kernel will help. this will "read" the speedstepish info and write there. if your cpu do not send info there is a module called "speedstep relaxed capability check" that accepts the parameter relaxed_check=1 to bypass some weird things that cpu is reporting. like you wrote you get with the old /proc interface, maybe this bypass can help..

regards

slackie1000

finegan 05-18-2005 11:48 AM

Quote:

Originally posted by slackie1000
hi there,



lol.. it is ok... no envy...



i misunderstood your point before... you can't load the modules.. now i got it.
in order to get the /sys/wherever thing i think the "cpufreq statistics details" in the kernel will help. this will "read" the speedstepish info and write there. if your cpu do not send info there is a module called "speedstep relaxed capability check" that accepts the parameter relaxed_check=1 to bypass some weird things that cpu is reporting. like you wrote you get with the old /proc interface, maybe this bypass can help..

regards

slackie1000

image = /boot/2611-three
root = /dev/hda3
label = 2611-evil3
append = "relaxed_check=1"
read-only

Yeah been there too... I honestly think the bugger won't load.... sad, but the only time it bugs me is when I'm trying to use a driver thats newer and not APM safe, like the madwifi driver for atheros cards.

Honestly you've suggested in 1 day everything I researched over a week, keep it comin... got another? It still bugs me I'm stuck in 2.4-land.

Cheers,

Finegan

slackie1000 05-18-2005 12:09 PM

hi there,

Quote:

Originally posted by finegan

Honestly you've suggested in 1 day everything I researched over a week, keep it comin... got another? It still bugs me I'm stuck in 2.4-land.

happy to help.. :)

ok. there is one last thing that can happen. if you have the "speedstep enhanced" as builtin - i don't mean a module here - in your kernel this can conflict somehow with your cpu - don't ask why. i have no idea.
i would wipe all the speedstep drivers from the kernel and leave only the smi interface - this one is "special" for Intel 440BX/ZX/MX southbridge - that i think is the case of the t22. compiling this driver with the relaxed check and the details in your sysfs would be my guess..

regards
slackie1000

soupy 02-08-2006 12:57 AM

forgive me if my comment here is out of place, and i can see that this is an older thread, but i just have a simple question from all of this. i have a thinkpad T22 900mhz p3. is it possible under some flavor (i don't even care which one) of linux for my thinkpad T22 to work correctly, including hotswapping ultrabay drives (i.e. floppy, cdrw/dvd, zip, etc.) and the suspend/hibernate functions? if so, would someone, anyone, be so very kind as to tell me which distro comes closest to doing these things 'out of the box'? i would very much love to make/keep my thinkpad a linux machine. weeks of googling and frustration are starting to fray my edges. thanks for any responses.

soupy


All times are GMT -5. The time now is 06:49 AM.