[kde4] suspend-to-ram nie bangla.
Paweł Sikora
pluto w agmk.net
Śro, 4 Sty 2012, 19:17:35 CET
On Wednesday 04 of January 2012 19:03:13 Łukasz Maśko wrote:
> Dnia środa, 4 stycznia 2012, Paweł Sikora napisał:
> [...]
> > # pm-suspend
> > flock: 3: Błędny deskryptor pliku
>
> U mnie pm-suspend odpalony z usera nie działa (This utility may only be run
> by the root user), ale przez sudo usypia komputer.
ok, a wiec coraz cieplej, u mnie w szczegolnosci wyglada to tak:
# LANG=C strace flock -x -n 3 /var/run/pm-utils/locks/pm-suspend.lock
execve("/usr/bin/flock", ["flock", "-x", "-n", "3", "/var/run/pm-utils/locks/pm-suspe"...], [/* 26 vars */]) = 0
brk(0) = 0xee1000
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f592d806000
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=72108, ...}) = 0
mmap(NULL, 72108, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f592d7f4000
close(3) = 0
open("/lib64/libc.so.6", O_RDONLY) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\240\23\2\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=1615792, ...}) = 0
mmap(NULL, 3730296, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f592d258000
mprotect(0x7f592d3de000, 2093056, PROT_NONE) = 0
mmap(0x7f592d5dd000, 20480, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x185000) = 0x7f592d5dd000
mmap(0x7f592d5e2000, 19320, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f592d5e2000
close(3) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f592d7f3000
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f592d7f2000
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f592d7f1000
arch_prctl(ARCH_SET_FS, 0x7f592d7f2700) = 0
mprotect(0x7f592d5dd000, 16384, PROT_READ) = 0
mprotect(0x602000, 4096, PROT_READ) = 0
mprotect(0x7f592d807000, 4096, PROT_READ) = 0
munmap(0x7f592d7f4000, 72108) = 0
brk(0) = 0xee1000
brk(0xf02000) = 0xf02000
access("3", R_OK|W_OK) = 0
open("3", O_RDWR|O_CREAT|O_NOCTTY, 0666) = 3
flock(3, LOCK_EX|LOCK_NB) = 0
rt_sigaction(SIGCHLD, {SIG_DFL, [CHLD], SA_RESTORER|SA_RESTART, 0x7f592d28cd30}, {SIG_DFL, [], 0}, 8) = 0
clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x7f592d7f29d0) = 29532
wait4(29532, flock: /var/run/pm-utils/locks/pm-suspend.lock: Permission denied
# LANG=C stat /var/run/pm-utils/locks/pm-suspend.lock
File: `/var/run/pm-utils/locks/pm-suspend.lock'
Size: 0 Blocks: 0 IO Block: 4096 regular empty file
Device: fd00h/64768d Inode: 1798 Links: 1
Access: (0644/-rw-r--r--) Uid: ( 0/ root) Gid: ( 0/ root)
Access: 2012-01-04 19:11:06.575875092 +0100
Modify: 2012-01-04 19:11:06.575875092 +0100
Change: 2012-01-04 19:11:06.575875092 +0100
Birth: -
czyli root ma rw do pliku, ale nie moze zalozyc file-lock. dziwne troche...
Więcej informacji o liście pld-users-pl