Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
echo "mem" > /sys/power/state does nothing [SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
cyberjun
Apprentice
Apprentice


Joined: 06 Nov 2005
Posts: 293

PostPosted: Sun Nov 06, 2005 6:04 am    Post subject: echo "mem" > /sys/power/state does nothing [SOL Reply with quote

Hi,
Have compiled the latest 2.6.14-gentoo kernel on my toshiba M30-742 laptop. The compilation went smoothly and now the system is also running normally. However the sleep states are not working. The commands:

echo "mem" > /sys/power/state
echo "standby" > /sys/power/state

do nothing. The output of cat /sys/power/state is

standby mem

The state "disk" is also missing. There are no error produced in any of the logfiles. One thing I noticed while configuring the kernel
was that the "suspend" option was not visible under ACPI options.

Please provide some pointers. Thanks a lot

--cyberjun


Last edited by cyberjun on Mon Dec 12, 2005 8:38 am; edited 3 times in total
Back to top
View user's profile Send private message
kylezhou
n00b
n00b


Joined: 10 May 2005
Posts: 64
Location: Australia

PostPosted: Sun Nov 06, 2005 6:27 am    Post subject: Reply with quote

I got similar problem.
I am using 2.6.13-gentoo-r3 kernel in Toshiba Tecra 8100
I have standby, mem, disk
but echo standby and mem does nothing
echo disk will cause kernel panic
no idea what is wrong. I can only assume the kernel is not mature enough to support my hardware.
_________________
You won't know the benefit of a heater unless it's cold enough.
Back to top
View user's profile Send private message
Bollenator
n00b
n00b


Joined: 12 Apr 2004
Posts: 44
Location: WA, USA

PostPosted: Mon Nov 14, 2005 2:35 am    Post subject: Reply with quote

Don't you need to include the "-n" switch for echo so it looks like this?
Code:
$ echo -n "mem" > /sys/power/state

I've been researching standby and hibernate for a little while and I always see the "-n" switch to not echo the trailing newline character. If you've tried this and it was just a typo, disregard; otherwise, HIH!
_________________
Bollenator

"This one's a mystery, wrapped in an enigma, baked in a conundrum, splashed with brain-twisters, diced, and served cold on a riddle roll with secret sauce."
Back to top
View user's profile Send private message
cyberjun
Apprentice
Apprentice


Joined: 06 Nov 2005
Posts: 293

PostPosted: Mon Nov 14, 2005 6:33 am    Post subject: Reply with quote

Hi,

Thanks for the suggestion. Well have tried that...doesn't work. I think gentoo custom kernels lack suspend/standby completely. Probably they have removed all that functionality from gentoo-sources and put it in suspend2-sources....can't bet on that though.

Has anybody seen this ?

--cyberjun
Back to top
View user's profile Send private message
cyberjun
Apprentice
Apprentice


Joined: 06 Nov 2005
Posts: 293

PostPosted: Fri Nov 18, 2005 2:50 pm    Post subject: Reply with quote

Hi,

I think I have found out the source of this trouble. I can't verify now as I am in the process of compiling the new suspend2 kernel. The reason Suspend options were not visible in the kernel configuration is that Suspend and CONFIG_SMP don't like each other. Details can be found in one of my other threads. And probably for the same reason, sleep states don't work. This is the link

https://forums.gentoo.org/viewtopic-t-403496-highlight-cyberjun.html

cheers,

--cyberjun
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum