s2ram_do: Device or resource busy

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
0
down vote

favorite
1












I ran s2ram on my Ubuntu laptop, but I get the following error message.




s2ram_do: Device or resource busy



What does that mean? How can I fix it?



$ sudo strace -ff s2ram
execve("/usr/sbin/s2ram", ["s2ram"], [/* 16 vars */]) = 0
brk(NULL) = 0x14ae000
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
mmap(NULL, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f64ae897000
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
fstat(3, 0644, st_size=173631, ...) = 0
mmap(NULL, 173631, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f64ae86c000
close(3) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
open("/lib/x86_64-linux-gnu/libx86.so.1", O_RDONLY|O_CLOEXEC) = 3
read(3, "177ELF2113>1260202"..., 832) = 832
fstat(3, 0644, st_size=248880, ...) = 0
mmap(NULL, 2347520, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f64ae437000
mprotect(0x7f64ae471000, 2097152, PROT_NONE) = 0
mmap(0x7f64ae671000, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x3a000) = 0x7f64ae671000
mmap(0x7f64ae674000, 512, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f64ae674000
close(3) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
open("/lib/x86_64-linux-gnu/libpci.so.3", O_RDONLY|O_CLOEXEC) = 3
read(3, "177ELF2113>120'"..., 832) = 832
fstat(3, st_mode=S_IFREG) = 0
mmap(NULL, 2147536, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f64ae22a000
mprotect(0x7f64ae236000, 2093056, PROT_NONE) = 0
mmap(0x7f64ae435000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xb000) = 0x7f64ae435000
close(3) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
open("/lib/x86_64-linux-gnu/libc.so.6", O_RDONLY|O_CLOEXEC) = 3
read(3, "177ELF21133>12052"..., 832) = 832
fstat(3, 0755, st_size=1856752, ...) = 0
mmap(NULL, 3959200, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f64ade63000
mprotect(0x7f64ae021000, 2093056, PROT_NONE) = 0
mmap(0x7f64ae220000, 24576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1bd000) = 0x7f64ae220000
mmap(0x7f64ae226000, 14752, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f64ae226000
close(3) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
open("/lib/x86_64-linux-gnu/libz.so.1", O_RDONLY|O_CLOEXEC) = 3
read(3, "177ELF2113>132037"..., 832) = 832
fstat(3, st_mode=S_IFREG) = 0
mmap(NULL, 2207920, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f64adc47000
mprotect(0x7f64adc62000, 2093056, PROT_NONE) = 0
mmap(0x7f64ade61000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1a000) = 0x7f64ade61000
close(3) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
open("/lib/x86_64-linux-gnu/libresolv.so.2", O_RDONLY|O_CLOEXEC) = 3
read(3, "177ELF2113>1p9"..., 832) = 832
fstat(3, 0644, st_size=101200, ...) = 0
mmap(NULL, 2206280, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f64ada2c000
mprotect(0x7f64ada43000, 2097152, PROT_NONE) = 0
mmap(0x7f64adc43000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x17000) = 0x7f64adc43000
mmap(0x7f64adc45000, 6728, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f64adc45000
close(3) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
open("/lib/x86_64-linux-gnu/libudev.so.1", O_RDONLY|O_CLOEXEC) = 3
read(3, "177ELF2113>1"..., 832) = 832
fstat(3, st_mode=S_IFREG) = 0
mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f64ae86a000
mmap(NULL, 135152, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f64ae849000
mmap(0x7f64ae868000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1e000) = 0x7f64ae868000
close(3) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
open("/lib/x86_64-linux-gnu/librt.so.1", O_RDONLY|O_CLOEXEC) = 3
read(3, "177ELF2113>1340 "..., 832) = 832
fstat(3, st_mode=S_IFREG) = 0
mmap(NULL, 2128832, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f64ad824000
mprotect(0x7f64ad82b000, 2093056, PROT_NONE) = 0
mmap(0x7f64ada2a000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x6000) = 0x7f64ada2a000
close(3) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
open("/lib/x86_64-linux-gnu/libpthread.so.0", O_RDONLY|O_CLOEXEC) = 3
read(3, "177ELF2113>1240`"..., 832) = 832
fstat(3, st_mode=S_IFREG) = 0
mmap(NULL, 2217000, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f64ad606000
mprotect(0x7f64ad61e000, 2097152, PROT_NONE) = 0
mmap(0x7f64ad81e000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x18000) = 0x7f64ad81e000
mmap(0x7f64ad820000, 13352, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f64ad820000
close(3) = 0
mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f64ae847000
arch_prctl(ARCH_SET_FS, 0x7f64ae847b80) = 0
mprotect(0x7f64ae220000, 16384, PROT_READ) = 0
mprotect(0x7f64ad81e000, 4096, PROT_READ) = 0
mprotect(0x7f64ada2a000, 4096, PROT_READ) = 0
mprotect(0x7f64ae868000, 4096, PROT_READ) = 0
mprotect(0x7f64adc43000, 4096, PROT_READ) = 0
mprotect(0x7f64ade61000, 4096, PROT_READ) = 0
mprotect(0x7f64ae435000, 4096, PROT_READ) = 0
mprotect(0x7f64ae671000, 4096, PROT_READ) = 0
mprotect(0x60a000, 4096, PROT_READ) = 0
mprotect(0x7f64ae89a000, 4096, PROT_READ) = 0
munmap(0x7f64ae86c000, 173631) = 0
set_tid_address(0x7f64ae847e50) = 23029
set_robust_list(0x7f64ae847e60, 24) = 0
rt_sigaction(SIGRTMIN, 0x7f64ad60bb40, , SA_RESTORER, NULL, 8) = 0
rt_sigaction(SIGRT_1, SA_SIGINFO, 0x7f64ad617670, NULL, 8) = 0
rt_sigprocmask(SIG_UNBLOCK, [RTMIN RT_1], NULL, 8) = 0
getrlimit(RLIMIT_STACK, rlim_cur=8192*1024, rlim_max=RLIM64_INFINITY) = 0
stat("/etc/uswsusp.conf", 0644, st_size=250, ...) = 0
brk(NULL) = 0x14ae000
brk(0x14cf000) = 0x14cf000
open("/etc/uswsusp.conf", O_RDONLY) = 3
fstat(3, 0644, st_size=250, ...) = 0
read(3, "# /etc/uswsusp.conf(5) -- Config"..., 4096) = 250
read(3, "", 4096) = 0
close(3) = 0
open("/sys/class/drm", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = 3
fstat(3, 0755, st_size=0, ...) = 0
getdents(3, /* 11 entries */, 32768) = 352
close(3) = 0
fstat(1, st_mode=S_IFCHR) = 0
write(1, "KMS graphics driver is in use, s"..., 48KMS graphics driver is in use, skipping quirks.
) = 48
open("/sys/power/state", O_WRONLY|O_CREAT|O_TRUNC, 0666) = 3
fstat(3, st_mode=S_IFREG) = 0
write(3, "mem", 3

# The whole system blocks for 30 seconds

) = -1 EBUSY (Device or resource busy)
close(3) = 0
dup(2) = 3
fcntl(3, F_GETFL) = 0x8002 (flags O_RDWR|O_LARGEFILE)
fstat(3, st_mode=S_IFCHR) = 0
write(3, "s2ram_do: Device or resource bus"..., 34s2ram_do: Device or resource busy
) = 34
close(3) = 0
exit_group(16) = ?
+++ exited with 16 +++






share|improve this question






















  • Your strace can be summarised as “writing mem to /sys/power/state fails with EBUSY. To find out why, I suspect the kernel logs would be more useful (dmesg).
    – Stephen Kitt
    Nov 6 '17 at 6:56














up vote
0
down vote

favorite
1












I ran s2ram on my Ubuntu laptop, but I get the following error message.




s2ram_do: Device or resource busy



What does that mean? How can I fix it?



$ sudo strace -ff s2ram
execve("/usr/sbin/s2ram", ["s2ram"], [/* 16 vars */]) = 0
brk(NULL) = 0x14ae000
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
mmap(NULL, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f64ae897000
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
fstat(3, 0644, st_size=173631, ...) = 0
mmap(NULL, 173631, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f64ae86c000
close(3) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
open("/lib/x86_64-linux-gnu/libx86.so.1", O_RDONLY|O_CLOEXEC) = 3
read(3, "177ELF2113>1260202"..., 832) = 832
fstat(3, 0644, st_size=248880, ...) = 0
mmap(NULL, 2347520, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f64ae437000
mprotect(0x7f64ae471000, 2097152, PROT_NONE) = 0
mmap(0x7f64ae671000, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x3a000) = 0x7f64ae671000
mmap(0x7f64ae674000, 512, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f64ae674000
close(3) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
open("/lib/x86_64-linux-gnu/libpci.so.3", O_RDONLY|O_CLOEXEC) = 3
read(3, "177ELF2113>120'"..., 832) = 832
fstat(3, st_mode=S_IFREG) = 0
mmap(NULL, 2147536, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f64ae22a000
mprotect(0x7f64ae236000, 2093056, PROT_NONE) = 0
mmap(0x7f64ae435000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xb000) = 0x7f64ae435000
close(3) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
open("/lib/x86_64-linux-gnu/libc.so.6", O_RDONLY|O_CLOEXEC) = 3
read(3, "177ELF21133>12052"..., 832) = 832
fstat(3, 0755, st_size=1856752, ...) = 0
mmap(NULL, 3959200, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f64ade63000
mprotect(0x7f64ae021000, 2093056, PROT_NONE) = 0
mmap(0x7f64ae220000, 24576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1bd000) = 0x7f64ae220000
mmap(0x7f64ae226000, 14752, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f64ae226000
close(3) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
open("/lib/x86_64-linux-gnu/libz.so.1", O_RDONLY|O_CLOEXEC) = 3
read(3, "177ELF2113>132037"..., 832) = 832
fstat(3, st_mode=S_IFREG) = 0
mmap(NULL, 2207920, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f64adc47000
mprotect(0x7f64adc62000, 2093056, PROT_NONE) = 0
mmap(0x7f64ade61000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1a000) = 0x7f64ade61000
close(3) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
open("/lib/x86_64-linux-gnu/libresolv.so.2", O_RDONLY|O_CLOEXEC) = 3
read(3, "177ELF2113>1p9"..., 832) = 832
fstat(3, 0644, st_size=101200, ...) = 0
mmap(NULL, 2206280, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f64ada2c000
mprotect(0x7f64ada43000, 2097152, PROT_NONE) = 0
mmap(0x7f64adc43000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x17000) = 0x7f64adc43000
mmap(0x7f64adc45000, 6728, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f64adc45000
close(3) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
open("/lib/x86_64-linux-gnu/libudev.so.1", O_RDONLY|O_CLOEXEC) = 3
read(3, "177ELF2113>1"..., 832) = 832
fstat(3, st_mode=S_IFREG) = 0
mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f64ae86a000
mmap(NULL, 135152, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f64ae849000
mmap(0x7f64ae868000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1e000) = 0x7f64ae868000
close(3) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
open("/lib/x86_64-linux-gnu/librt.so.1", O_RDONLY|O_CLOEXEC) = 3
read(3, "177ELF2113>1340 "..., 832) = 832
fstat(3, st_mode=S_IFREG) = 0
mmap(NULL, 2128832, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f64ad824000
mprotect(0x7f64ad82b000, 2093056, PROT_NONE) = 0
mmap(0x7f64ada2a000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x6000) = 0x7f64ada2a000
close(3) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
open("/lib/x86_64-linux-gnu/libpthread.so.0", O_RDONLY|O_CLOEXEC) = 3
read(3, "177ELF2113>1240`"..., 832) = 832
fstat(3, st_mode=S_IFREG) = 0
mmap(NULL, 2217000, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f64ad606000
mprotect(0x7f64ad61e000, 2097152, PROT_NONE) = 0
mmap(0x7f64ad81e000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x18000) = 0x7f64ad81e000
mmap(0x7f64ad820000, 13352, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f64ad820000
close(3) = 0
mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f64ae847000
arch_prctl(ARCH_SET_FS, 0x7f64ae847b80) = 0
mprotect(0x7f64ae220000, 16384, PROT_READ) = 0
mprotect(0x7f64ad81e000, 4096, PROT_READ) = 0
mprotect(0x7f64ada2a000, 4096, PROT_READ) = 0
mprotect(0x7f64ae868000, 4096, PROT_READ) = 0
mprotect(0x7f64adc43000, 4096, PROT_READ) = 0
mprotect(0x7f64ade61000, 4096, PROT_READ) = 0
mprotect(0x7f64ae435000, 4096, PROT_READ) = 0
mprotect(0x7f64ae671000, 4096, PROT_READ) = 0
mprotect(0x60a000, 4096, PROT_READ) = 0
mprotect(0x7f64ae89a000, 4096, PROT_READ) = 0
munmap(0x7f64ae86c000, 173631) = 0
set_tid_address(0x7f64ae847e50) = 23029
set_robust_list(0x7f64ae847e60, 24) = 0
rt_sigaction(SIGRTMIN, 0x7f64ad60bb40, , SA_RESTORER, NULL, 8) = 0
rt_sigaction(SIGRT_1, SA_SIGINFO, 0x7f64ad617670, NULL, 8) = 0
rt_sigprocmask(SIG_UNBLOCK, [RTMIN RT_1], NULL, 8) = 0
getrlimit(RLIMIT_STACK, rlim_cur=8192*1024, rlim_max=RLIM64_INFINITY) = 0
stat("/etc/uswsusp.conf", 0644, st_size=250, ...) = 0
brk(NULL) = 0x14ae000
brk(0x14cf000) = 0x14cf000
open("/etc/uswsusp.conf", O_RDONLY) = 3
fstat(3, 0644, st_size=250, ...) = 0
read(3, "# /etc/uswsusp.conf(5) -- Config"..., 4096) = 250
read(3, "", 4096) = 0
close(3) = 0
open("/sys/class/drm", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = 3
fstat(3, 0755, st_size=0, ...) = 0
getdents(3, /* 11 entries */, 32768) = 352
close(3) = 0
fstat(1, st_mode=S_IFCHR) = 0
write(1, "KMS graphics driver is in use, s"..., 48KMS graphics driver is in use, skipping quirks.
) = 48
open("/sys/power/state", O_WRONLY|O_CREAT|O_TRUNC, 0666) = 3
fstat(3, st_mode=S_IFREG) = 0
write(3, "mem", 3

# The whole system blocks for 30 seconds

) = -1 EBUSY (Device or resource busy)
close(3) = 0
dup(2) = 3
fcntl(3, F_GETFL) = 0x8002 (flags O_RDWR|O_LARGEFILE)
fstat(3, st_mode=S_IFCHR) = 0
write(3, "s2ram_do: Device or resource bus"..., 34s2ram_do: Device or resource busy
) = 34
close(3) = 0
exit_group(16) = ?
+++ exited with 16 +++






share|improve this question






















  • Your strace can be summarised as “writing mem to /sys/power/state fails with EBUSY. To find out why, I suspect the kernel logs would be more useful (dmesg).
    – Stephen Kitt
    Nov 6 '17 at 6:56












up vote
0
down vote

favorite
1









up vote
0
down vote

favorite
1






1





I ran s2ram on my Ubuntu laptop, but I get the following error message.




s2ram_do: Device or resource busy



What does that mean? How can I fix it?



$ sudo strace -ff s2ram
execve("/usr/sbin/s2ram", ["s2ram"], [/* 16 vars */]) = 0
brk(NULL) = 0x14ae000
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
mmap(NULL, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f64ae897000
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
fstat(3, 0644, st_size=173631, ...) = 0
mmap(NULL, 173631, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f64ae86c000
close(3) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
open("/lib/x86_64-linux-gnu/libx86.so.1", O_RDONLY|O_CLOEXEC) = 3
read(3, "177ELF2113>1260202"..., 832) = 832
fstat(3, 0644, st_size=248880, ...) = 0
mmap(NULL, 2347520, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f64ae437000
mprotect(0x7f64ae471000, 2097152, PROT_NONE) = 0
mmap(0x7f64ae671000, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x3a000) = 0x7f64ae671000
mmap(0x7f64ae674000, 512, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f64ae674000
close(3) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
open("/lib/x86_64-linux-gnu/libpci.so.3", O_RDONLY|O_CLOEXEC) = 3
read(3, "177ELF2113>120'"..., 832) = 832
fstat(3, st_mode=S_IFREG) = 0
mmap(NULL, 2147536, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f64ae22a000
mprotect(0x7f64ae236000, 2093056, PROT_NONE) = 0
mmap(0x7f64ae435000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xb000) = 0x7f64ae435000
close(3) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
open("/lib/x86_64-linux-gnu/libc.so.6", O_RDONLY|O_CLOEXEC) = 3
read(3, "177ELF21133>12052"..., 832) = 832
fstat(3, 0755, st_size=1856752, ...) = 0
mmap(NULL, 3959200, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f64ade63000
mprotect(0x7f64ae021000, 2093056, PROT_NONE) = 0
mmap(0x7f64ae220000, 24576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1bd000) = 0x7f64ae220000
mmap(0x7f64ae226000, 14752, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f64ae226000
close(3) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
open("/lib/x86_64-linux-gnu/libz.so.1", O_RDONLY|O_CLOEXEC) = 3
read(3, "177ELF2113>132037"..., 832) = 832
fstat(3, st_mode=S_IFREG) = 0
mmap(NULL, 2207920, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f64adc47000
mprotect(0x7f64adc62000, 2093056, PROT_NONE) = 0
mmap(0x7f64ade61000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1a000) = 0x7f64ade61000
close(3) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
open("/lib/x86_64-linux-gnu/libresolv.so.2", O_RDONLY|O_CLOEXEC) = 3
read(3, "177ELF2113>1p9"..., 832) = 832
fstat(3, 0644, st_size=101200, ...) = 0
mmap(NULL, 2206280, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f64ada2c000
mprotect(0x7f64ada43000, 2097152, PROT_NONE) = 0
mmap(0x7f64adc43000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x17000) = 0x7f64adc43000
mmap(0x7f64adc45000, 6728, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f64adc45000
close(3) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
open("/lib/x86_64-linux-gnu/libudev.so.1", O_RDONLY|O_CLOEXEC) = 3
read(3, "177ELF2113>1"..., 832) = 832
fstat(3, st_mode=S_IFREG) = 0
mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f64ae86a000
mmap(NULL, 135152, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f64ae849000
mmap(0x7f64ae868000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1e000) = 0x7f64ae868000
close(3) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
open("/lib/x86_64-linux-gnu/librt.so.1", O_RDONLY|O_CLOEXEC) = 3
read(3, "177ELF2113>1340 "..., 832) = 832
fstat(3, st_mode=S_IFREG) = 0
mmap(NULL, 2128832, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f64ad824000
mprotect(0x7f64ad82b000, 2093056, PROT_NONE) = 0
mmap(0x7f64ada2a000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x6000) = 0x7f64ada2a000
close(3) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
open("/lib/x86_64-linux-gnu/libpthread.so.0", O_RDONLY|O_CLOEXEC) = 3
read(3, "177ELF2113>1240`"..., 832) = 832
fstat(3, st_mode=S_IFREG) = 0
mmap(NULL, 2217000, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f64ad606000
mprotect(0x7f64ad61e000, 2097152, PROT_NONE) = 0
mmap(0x7f64ad81e000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x18000) = 0x7f64ad81e000
mmap(0x7f64ad820000, 13352, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f64ad820000
close(3) = 0
mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f64ae847000
arch_prctl(ARCH_SET_FS, 0x7f64ae847b80) = 0
mprotect(0x7f64ae220000, 16384, PROT_READ) = 0
mprotect(0x7f64ad81e000, 4096, PROT_READ) = 0
mprotect(0x7f64ada2a000, 4096, PROT_READ) = 0
mprotect(0x7f64ae868000, 4096, PROT_READ) = 0
mprotect(0x7f64adc43000, 4096, PROT_READ) = 0
mprotect(0x7f64ade61000, 4096, PROT_READ) = 0
mprotect(0x7f64ae435000, 4096, PROT_READ) = 0
mprotect(0x7f64ae671000, 4096, PROT_READ) = 0
mprotect(0x60a000, 4096, PROT_READ) = 0
mprotect(0x7f64ae89a000, 4096, PROT_READ) = 0
munmap(0x7f64ae86c000, 173631) = 0
set_tid_address(0x7f64ae847e50) = 23029
set_robust_list(0x7f64ae847e60, 24) = 0
rt_sigaction(SIGRTMIN, 0x7f64ad60bb40, , SA_RESTORER, NULL, 8) = 0
rt_sigaction(SIGRT_1, SA_SIGINFO, 0x7f64ad617670, NULL, 8) = 0
rt_sigprocmask(SIG_UNBLOCK, [RTMIN RT_1], NULL, 8) = 0
getrlimit(RLIMIT_STACK, rlim_cur=8192*1024, rlim_max=RLIM64_INFINITY) = 0
stat("/etc/uswsusp.conf", 0644, st_size=250, ...) = 0
brk(NULL) = 0x14ae000
brk(0x14cf000) = 0x14cf000
open("/etc/uswsusp.conf", O_RDONLY) = 3
fstat(3, 0644, st_size=250, ...) = 0
read(3, "# /etc/uswsusp.conf(5) -- Config"..., 4096) = 250
read(3, "", 4096) = 0
close(3) = 0
open("/sys/class/drm", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = 3
fstat(3, 0755, st_size=0, ...) = 0
getdents(3, /* 11 entries */, 32768) = 352
close(3) = 0
fstat(1, st_mode=S_IFCHR) = 0
write(1, "KMS graphics driver is in use, s"..., 48KMS graphics driver is in use, skipping quirks.
) = 48
open("/sys/power/state", O_WRONLY|O_CREAT|O_TRUNC, 0666) = 3
fstat(3, st_mode=S_IFREG) = 0
write(3, "mem", 3

# The whole system blocks for 30 seconds

) = -1 EBUSY (Device or resource busy)
close(3) = 0
dup(2) = 3
fcntl(3, F_GETFL) = 0x8002 (flags O_RDWR|O_LARGEFILE)
fstat(3, st_mode=S_IFCHR) = 0
write(3, "s2ram_do: Device or resource bus"..., 34s2ram_do: Device or resource busy
) = 34
close(3) = 0
exit_group(16) = ?
+++ exited with 16 +++






share|improve this question














I ran s2ram on my Ubuntu laptop, but I get the following error message.




s2ram_do: Device or resource busy



What does that mean? How can I fix it?



$ sudo strace -ff s2ram
execve("/usr/sbin/s2ram", ["s2ram"], [/* 16 vars */]) = 0
brk(NULL) = 0x14ae000
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
mmap(NULL, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f64ae897000
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
fstat(3, 0644, st_size=173631, ...) = 0
mmap(NULL, 173631, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f64ae86c000
close(3) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
open("/lib/x86_64-linux-gnu/libx86.so.1", O_RDONLY|O_CLOEXEC) = 3
read(3, "177ELF2113>1260202"..., 832) = 832
fstat(3, 0644, st_size=248880, ...) = 0
mmap(NULL, 2347520, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f64ae437000
mprotect(0x7f64ae471000, 2097152, PROT_NONE) = 0
mmap(0x7f64ae671000, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x3a000) = 0x7f64ae671000
mmap(0x7f64ae674000, 512, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f64ae674000
close(3) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
open("/lib/x86_64-linux-gnu/libpci.so.3", O_RDONLY|O_CLOEXEC) = 3
read(3, "177ELF2113>120'"..., 832) = 832
fstat(3, st_mode=S_IFREG) = 0
mmap(NULL, 2147536, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f64ae22a000
mprotect(0x7f64ae236000, 2093056, PROT_NONE) = 0
mmap(0x7f64ae435000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xb000) = 0x7f64ae435000
close(3) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
open("/lib/x86_64-linux-gnu/libc.so.6", O_RDONLY|O_CLOEXEC) = 3
read(3, "177ELF21133>12052"..., 832) = 832
fstat(3, 0755, st_size=1856752, ...) = 0
mmap(NULL, 3959200, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f64ade63000
mprotect(0x7f64ae021000, 2093056, PROT_NONE) = 0
mmap(0x7f64ae220000, 24576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1bd000) = 0x7f64ae220000
mmap(0x7f64ae226000, 14752, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f64ae226000
close(3) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
open("/lib/x86_64-linux-gnu/libz.so.1", O_RDONLY|O_CLOEXEC) = 3
read(3, "177ELF2113>132037"..., 832) = 832
fstat(3, st_mode=S_IFREG) = 0
mmap(NULL, 2207920, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f64adc47000
mprotect(0x7f64adc62000, 2093056, PROT_NONE) = 0
mmap(0x7f64ade61000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1a000) = 0x7f64ade61000
close(3) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
open("/lib/x86_64-linux-gnu/libresolv.so.2", O_RDONLY|O_CLOEXEC) = 3
read(3, "177ELF2113>1p9"..., 832) = 832
fstat(3, 0644, st_size=101200, ...) = 0
mmap(NULL, 2206280, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f64ada2c000
mprotect(0x7f64ada43000, 2097152, PROT_NONE) = 0
mmap(0x7f64adc43000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x17000) = 0x7f64adc43000
mmap(0x7f64adc45000, 6728, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f64adc45000
close(3) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
open("/lib/x86_64-linux-gnu/libudev.so.1", O_RDONLY|O_CLOEXEC) = 3
read(3, "177ELF2113>1"..., 832) = 832
fstat(3, st_mode=S_IFREG) = 0
mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f64ae86a000
mmap(NULL, 135152, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f64ae849000
mmap(0x7f64ae868000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1e000) = 0x7f64ae868000
close(3) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
open("/lib/x86_64-linux-gnu/librt.so.1", O_RDONLY|O_CLOEXEC) = 3
read(3, "177ELF2113>1340 "..., 832) = 832
fstat(3, st_mode=S_IFREG) = 0
mmap(NULL, 2128832, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f64ad824000
mprotect(0x7f64ad82b000, 2093056, PROT_NONE) = 0
mmap(0x7f64ada2a000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x6000) = 0x7f64ada2a000
close(3) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
open("/lib/x86_64-linux-gnu/libpthread.so.0", O_RDONLY|O_CLOEXEC) = 3
read(3, "177ELF2113>1240`"..., 832) = 832
fstat(3, st_mode=S_IFREG) = 0
mmap(NULL, 2217000, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f64ad606000
mprotect(0x7f64ad61e000, 2097152, PROT_NONE) = 0
mmap(0x7f64ad81e000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x18000) = 0x7f64ad81e000
mmap(0x7f64ad820000, 13352, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f64ad820000
close(3) = 0
mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f64ae847000
arch_prctl(ARCH_SET_FS, 0x7f64ae847b80) = 0
mprotect(0x7f64ae220000, 16384, PROT_READ) = 0
mprotect(0x7f64ad81e000, 4096, PROT_READ) = 0
mprotect(0x7f64ada2a000, 4096, PROT_READ) = 0
mprotect(0x7f64ae868000, 4096, PROT_READ) = 0
mprotect(0x7f64adc43000, 4096, PROT_READ) = 0
mprotect(0x7f64ade61000, 4096, PROT_READ) = 0
mprotect(0x7f64ae435000, 4096, PROT_READ) = 0
mprotect(0x7f64ae671000, 4096, PROT_READ) = 0
mprotect(0x60a000, 4096, PROT_READ) = 0
mprotect(0x7f64ae89a000, 4096, PROT_READ) = 0
munmap(0x7f64ae86c000, 173631) = 0
set_tid_address(0x7f64ae847e50) = 23029
set_robust_list(0x7f64ae847e60, 24) = 0
rt_sigaction(SIGRTMIN, 0x7f64ad60bb40, , SA_RESTORER, NULL, 8) = 0
rt_sigaction(SIGRT_1, SA_SIGINFO, 0x7f64ad617670, NULL, 8) = 0
rt_sigprocmask(SIG_UNBLOCK, [RTMIN RT_1], NULL, 8) = 0
getrlimit(RLIMIT_STACK, rlim_cur=8192*1024, rlim_max=RLIM64_INFINITY) = 0
stat("/etc/uswsusp.conf", 0644, st_size=250, ...) = 0
brk(NULL) = 0x14ae000
brk(0x14cf000) = 0x14cf000
open("/etc/uswsusp.conf", O_RDONLY) = 3
fstat(3, 0644, st_size=250, ...) = 0
read(3, "# /etc/uswsusp.conf(5) -- Config"..., 4096) = 250
read(3, "", 4096) = 0
close(3) = 0
open("/sys/class/drm", O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC) = 3
fstat(3, 0755, st_size=0, ...) = 0
getdents(3, /* 11 entries */, 32768) = 352
close(3) = 0
fstat(1, st_mode=S_IFCHR) = 0
write(1, "KMS graphics driver is in use, s"..., 48KMS graphics driver is in use, skipping quirks.
) = 48
open("/sys/power/state", O_WRONLY|O_CREAT|O_TRUNC, 0666) = 3
fstat(3, st_mode=S_IFREG) = 0
write(3, "mem", 3

# The whole system blocks for 30 seconds

) = -1 EBUSY (Device or resource busy)
close(3) = 0
dup(2) = 3
fcntl(3, F_GETFL) = 0x8002 (flags O_RDWR|O_LARGEFILE)
fstat(3, st_mode=S_IFCHR) = 0
write(3, "s2ram_do: Device or resource bus"..., 34s2ram_do: Device or resource busy
) = 34
close(3) = 0
exit_group(16) = ?
+++ exited with 16 +++








share|improve this question













share|improve this question




share|improve this question








edited Nov 6 '17 at 7:50









Vlastimil

6,4711147120




6,4711147120










asked Nov 6 '17 at 6:47









Ole Tange

11.4k1344102




11.4k1344102











  • Your strace can be summarised as “writing mem to /sys/power/state fails with EBUSY. To find out why, I suspect the kernel logs would be more useful (dmesg).
    – Stephen Kitt
    Nov 6 '17 at 6:56
















  • Your strace can be summarised as “writing mem to /sys/power/state fails with EBUSY. To find out why, I suspect the kernel logs would be more useful (dmesg).
    – Stephen Kitt
    Nov 6 '17 at 6:56















Your strace can be summarised as “writing mem to /sys/power/state fails with EBUSY. To find out why, I suspect the kernel logs would be more useful (dmesg).
– Stephen Kitt
Nov 6 '17 at 6:56




Your strace can be summarised as “writing mem to /sys/power/state fails with EBUSY. To find out why, I suspect the kernel logs would be more useful (dmesg).
– Stephen Kitt
Nov 6 '17 at 6:56















active

oldest

votes











Your Answer







StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "106"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
convertImagesToLinks: false,
noModals: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













 

draft saved


draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f402773%2fs2ram-do-device-or-resource-busy%23new-answer', 'question_page');

);

Post as a guest



































active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes















 

draft saved


draft discarded















































 


draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f402773%2fs2ram-do-device-or-resource-busy%23new-answer', 'question_page');

);

Post as a guest













































































Popular posts from this blog

How to check contact read email or not when send email to Individual?

Displaying single band from multi-band raster using QGIS

How many registers does an x86_64 CPU actually have?