OSK5912 Deep Sleep
hi,
maybe my questions are too simple, but i?ll try again.
how can i set the osk5912 into deep sleep mode? i use the montavista preview kit. thx.
martin
G'Day,
Quoted 3 lines
maybe my questions are too simple, but i?ll try again. how can i set the osk5912 into deep sleep mode? i use the montavista preview kit.
Deep Sleep is nice and easy to do. Try this at a prompt:
# echo "standby" > /sys/power/state
Unless something goes wrong, your system will now be in Deep Sleep.
-- Matthew
hi matthew,
thanks for your answer.
i tried what you told me, but i got this message from the shell: cannot create /sys/power/state: No such file or directory so i looked for the sys directory and found it in /usr/include/sys, is this the right one?
may i have to export it to PATH? or is the 2.4 kernel the wrong one and i should use 2.6 kernel?
you have to excuse me, but i am a total newbie to embedded linux. its the first time i use it. ;)
martin
G'Day,
Quoted 2 lines
i tried what you told me, but i got this message from the shell: cannot create
/sys/power/state: No such file or directory
Ah, you either have not compiled the sysfs into kernel, or have not
mounted it. Ensure you have CONFIG_SYSFS=y in your kernel's .config (this is in the root source directory) --- =m is also OK, if you load the module later. If not, enable it, and recompile. Then, make sure you have the following line in your OSK's /etc/fstab:
none /sys sysfs defaults 0 0
This will load the sysfs on boot (make sure you have created /sys/ for it to mount there). If you check the contents of /sys/ (with ls) after it has been mounted, you should see a collection of directories: these can be very useful to running your system.
-- Matthew