LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook
User Name
Password
Linux - Laptop and Netbook Having a problem installing or configuring Linux on your laptop? Need help running Linux on your netbook? This forum is for you. This forum is for any topics relating to Linux and either traditional laptops or netbooks (such as the Asus EEE PC, Everex CloudBook or MSI Wind).

Notices



Reply
 
Search this Thread
Old 11-29-2005, 01:39 AM   #1
cyberjun
Member
 
Registered: Mar 2005
Distribution: Gentoo kernel 2.6.14
Posts: 96

Rep: Reputation: 15
Toshiba M30 ACPI-suspend and Resume [SOLVED]


Hi,
Am running gentoo on my Toshiba M30-742 laptop. The kernel is 2.6.14 (gentoo sources). I am trying to make acpi-suspend (not swsusp or suspend-to-disk) work.
I do:
Code:
echo "mem" > /sys/power/state
The system suspends fine. I can see the front LED flashing. Now when I try to resume it. Either by pressing the power button or by closing and opening the lid, the resume process starts fine. I can say that since it appears to be working (lot of disk activity and LEDs light up). At the point when it should show me the display, it reboots. Please note that during whole of this resume process, the screen remains switched off (yes! not even the backlight is on. Its off.)

I tried this after unloading nvidia, agpgart and USB modules. I have not configured anything in the /etc/acpi directory for lid close or power button events.

Would appreciate all the tips, tricks and pointers.

Thanks a lot!

--cyberjun

Last edited by cyberjun; 12-03-2005 at 10:18 PM.
 
Old 11-30-2005, 05:53 PM   #2
biophysics
Member
 
Registered: Jan 2002
Location: Germany
Distribution: Kubuntu
Posts: 444

Rep: Reputation: 30
Re: Toshiba M30 ACPI-suspend and Resume

Quote:
Originally posted by cyberjun
Hi,
Am running gentoo on my Toshiba M30-742 laptop. The kernel is 2.6.14 (gentoo sources). I am trying to make acpi-suspend (not swsusp or suspend-to-disk) work.
I do:
Code:
echo "mem" > /sys/power/state

--cyberjun
Check if there are any log files in /var/log.
In my system I stop following services: network, alsasound
unload modules: usb, ieee usb_storage sbp2 uhci_hcd ehci_hcd ipw2200 <network card module>

check the file: /usr/src/linux/Documentation/power/swsusp.txt (part is given below)
Code:
You need to append resume=/dev/your_swap_partition to kernel command
line. Then you suspend by

echo shutdown > /sys/power/disk; echo disk > /sys/power/state

. If you feel ACPI works pretty well on your system, you might try

echo platform > /sys/power/disk; echo disk > /sys/power/state
Most machines work only with "shutdown"

If you like a bit of adventure try: suspend2
http://gentoo-wiki.com/HOWTO_Software_Suspend_v2
 
Old 11-30-2005, 09:22 PM   #3
cyberjun
Member
 
Registered: Mar 2005
Distribution: Gentoo kernel 2.6.14
Posts: 96

Original Poster
Rep: Reputation: 15
Hi,
Thanks for the reply. I have yet to do testing with Swsusp2. However, for the time being I am more interested in the ACPI Suspend (Suspend to RAM). Well have sorted out the "shutdown" problem by commenting out "/sbin/init 0" in the
/etc/acpi/default.sh file like this:
Code:
case "$group" in
        button)
                case "$action" in
#                       power)  /sbin/init 0
#                               ;;
                        *)      logger "ACPI action $action is not defined"
                                ;;
                esac
                ;;

        *)
                logger -p user.info "ACPI group $group / action $action is not defined"
                ;;
Now the machine stays up after resume. However the video doesn't comeup. So the screen remains off. I have
tried all this without X and without loading the nvidia module. USB hasn't been a problem. Have read something about
video_post and vbetool utilities but am not sure if they would work with my system which has NVIDIA graphics card.

Any pointers?

cheers,
--cyberjun
 
Old 12-03-2005, 10:17 PM   #4
cyberjun
Member
 
Registered: Mar 2005
Distribution: Gentoo kernel 2.6.14
Posts: 96

Original Poster
Rep: Reputation: 15
Hi,
The display problem gets solved with vbetool utility. So in effect the acpi-suspend looks to be solved. An issue that is still left is suspending from within X. The current nvidia binary driver has some problem with it due to recent changes in the linux kernel. This is supposed to get solved when nvidia release their new driver.It can be noted though that the vbetool works successfully from within X also. So

vbetool dpms off
vbetool dpms on

both work from within X also.

Cheers,
--cyberjun
 
Old 03-10-2006, 02:27 AM   #5
jturnbul
Member
 
Registered: Sep 2004
Location: Toronto, Canada
Distribution: Fedora 4 - Slackware 10 - PHLAK
Posts: 92

Rep: Reputation: 15
I have the same laptop running FC4, and had the same problem. I installed acpitool

using the command

acpitool w

this dispalys the various wakeup devices, and there numbers.
Then used

acpitool W x # x= the device number listed in acpitool w

this allowed me to eneble/disable the devices, aswell as their sleep state. The funny thing is, none of them worked, so I just used the tool to set the settings back to default, and it worked. Go figure.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Toshiba M30 won't boot CD evilregis Linux - Laptop and Netbook 8 11-06-2005 09:04 PM
Can't resume from ACPI S3 suspend cdhgee Fedora 3 08-18-2005 03:39 AM
ACPI shuts down after resume from suspend on SuSE 9.1 pmehta1613 Linux - Laptop and Netbook 0 01-18-2005 12:08 PM
touchpad on my toshiba m30-841 Miky Linux - Laptop and Netbook 2 04-09-2004 06:02 AM
Toshiba M30 TwinView dorakyura Linux - Laptop and Netbook 0 03-24-2004 09:47 AM


All times are GMT -5. The time now is 03:09 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration