My laptop supports suspending to ram, and it works fine, when I start it from root, but it fails some certain points when I start it from user.
When I ask information about my machine, or run a test, it tells me, that /dev/mem has god an invalid operation, (previously no permission, but I have added myself to the kmem group!) and all the parameters are empty.
In root, the result is the following:
:~ # s2ram -n Machine unknown This machine can be identified by: sys_vendor = "FUJITSU SIEMENS" sys_product = "AMILO Pro Series V3525 " sys_version = "20 " bios_version = "R01-A0S " See http://en.opensuse.org/S2ram for details. ...
Results with user:
:~ > s2ram -n /dev/mem: Operation not permitted Machine unknown This machine can be identified by: sys_vendor = "" sys_product = "" sys_version = "" bios_version = "" See http://en.opensuse.org/S2ram for details. ...
Every thing seems right…
If I give the command in force, user fails, root succeed.
result of user and root:
:~ > s2ram -f fgconsole: getconsolefd: Invalid argument Switching from vt-1 to vt1 chvt: VT_ACTIVATE: Bad file descriptor VT_WAITACTIVE: Bad file descriptor Szegmens hiba* :~ > su -lc 's2ram -f' Jelszó: Switching from vt7 to vt1 fbcon fb0 state 1 fbcon fb0 state 0 switching back to vt7 :~ >
*It says Segmentation fault
I know, that if I give the su command the l (L) parameter, it will change the environment, and I have not tested yet what it does if I don’t give that parameter.
I’ve already put my user name in to the kmem, and console group.
What else do I need to change to make the s2ram to access the peripherals, and what steps do I need to make, to make s2ram be a known machine, now and then?