LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 04-02-2006, 06:22 PM   #1
Rhatlinux
Member
 
Registered: Sep 2004
Distribution: Arch 0.7.1 (Noodle)
Posts: 128

Rep: Reputation: 15
sleep mode from console?


"echo mem > /sys/power/state" works well from X, but from the console it locks up. Is there any way to fix this?
 
Old 04-02-2006, 06:28 PM   #2
cyber-worx
Member
 
Registered: May 2004
Location: England / Switzerland
Distribution: Gentoo, Ubuntu, Debian, Slackware
Posts: 138

Rep: Reputation: 15
its most likely the tty thats hanging for some odd reason.

2 possible fixes,

a) If you can, ssh into your computer for another, and issue the command, in the case that the tty would ordinarily lock up you should still have access to the system and therfore the error logs.
b) You may want to try booting up without any special frame buffer support.


Hope this helps
-Rob
 
Old 04-02-2006, 06:52 PM   #3
Rhatlinux
Member
 
Registered: Sep 2004
Distribution: Arch 0.7.1 (Noodle)
Posts: 128

Original Poster
Rep: Reputation: 15
It sleeps just fine, but when resume from sleep mode, the screen is blank. I sshed into my box when it was blank and it still worked. I do not have any special framebuffer support enabled.
 
Old 04-03-2006, 05:36 AM   #4
cyber-worx
Member
 
Registered: May 2004
Location: England / Switzerland
Distribution: Gentoo, Ubuntu, Debian, Slackware
Posts: 138

Rep: Reputation: 15
When you say screen, do you mean laptop screen?

If thats true is it a newer, possibly dell? Intel based?

Anyhoo, its usually an easy fix, whack this in a script and run it when you want the screen to wake up:

Code:
#!/bin/sh
LID_STATE="/proc/acpi/button/lid/LID/state"
LCD_STATE="/proc/acpi/video/VID/LCD/state"

grep -q open $LID_STATE

if [ $? -eq 0 ]; then
        echo 0x80000001 > $LCD_STATE
fi

grep -q closed $LID_STATE

if [ $? -eq 0 ]; then
        echo "mem" > /sys/power/state
fi
OR

You could ssh into your now awake (but blank) box and type

Code:
echo "0x80000001" > /proc/acpi/video/VID/LCD/state
If that works id be happy to show you how to tie it in with acpid so it happens automagically.

Regards
Rob

Last edited by cyber-worx; 04-03-2006 at 05:38 AM.
 
Old 04-04-2006, 10:05 AM   #5
Rhatlinux
Member
 
Registered: Sep 2004
Distribution: Arch 0.7.1 (Noodle)
Posts: 128

Original Poster
Rep: Reputation: 15
This is a Dell Inspiron 600m laptop.

Code:
echo "0x80000001" > /proc/acpi/video/VID/LCD/state
My screen was still blank after entering the preceding command.

Here is what /proc/acpi/video/VID/LCD/state currently displays:
Code:
# cat /proc/acpi/video/VID/LCD/state
state:     0x0f
query:     0x01

Last edited by Rhatlinux; 04-04-2006 at 10:06 AM.
 
Old 04-04-2006, 10:15 AM   #6
cyber-worx
Member
 
Registered: May 2004
Location: England / Switzerland
Distribution: Gentoo, Ubuntu, Debian, Slackware
Posts: 138

Rep: Reputation: 15
Try This
http://www.hep.phy.cam.ac.uk/~anders...titude600.html

Cheers
-Rob
 
Old 04-04-2006, 11:21 AM   #7
Rhatlinux
Member
 
Registered: Sep 2004
Distribution: Arch 0.7.1 (Noodle)
Posts: 128

Original Poster
Rep: Reputation: 15
That is not going to work for me. /etc/acpi does not exist.
 
Old 04-04-2006, 12:23 PM   #8
cyber-worx
Member
 
Registered: May 2004
Location: England / Switzerland
Distribution: Gentoo, Ubuntu, Debian, Slackware
Posts: 138

Rep: Reputation: 15
Well then I think you found a big part of your problem.

Sort ACPI out first :P

Hint: Kernel Configuration


Cheers
Rob
 
Old 04-04-2006, 03:18 PM   #9
Rhatlinux
Member
 
Registered: Sep 2004
Distribution: Arch 0.7.1 (Noodle)
Posts: 128

Original Poster
Rep: Reputation: 15
I already have ACPI enabled in the kernel.

Last edited by Rhatlinux; 04-04-2006 at 03:21 PM.
 
Old 04-05-2006, 05:11 PM   #10
cyber-worx
Member
 
Registered: May 2004
Location: England / Switzerland
Distribution: Gentoo, Ubuntu, Debian, Slackware
Posts: 138

Rep: Reputation: 15
Fair enough, but do you have any userland tools for it?

ie acpid?
 
Old 04-06-2006, 09:30 PM   #11
Rhatlinux
Member
 
Registered: Sep 2004
Distribution: Arch 0.7.1 (Noodle)
Posts: 128

Original Poster
Rep: Reputation: 15
I do not have any tools installed. I thought acpid was unnecessary with newer kernels. I have the kernel 2.6.16 installed.
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
sleep mode command? uv1 Linux - Newbie 1 09-15-2004 10:38 AM
console mode sleep ?? johnyy Linux - Software 1 04-05-2004 12:41 PM
Where's sleep mode in RH 8.0? bobterri Linux - Distributions 4 11-26-2002 11:13 PM
Sleep mode mrsolo Linux - Hardware 4 11-26-2002 08:05 PM
sleep mode mr.moto Linux - General 2 12-29-2001 09:43 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 07:05 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
Open Source Consulting | Domain Registration