You are not logged in.
Pages: 1
My Laptop : TOSHIBA SATELLITE L735
My DE : XFCE
hi, my laptop is resuming right after suspend, and then suspend, then resume, i had this problem before and the soultion was making a new file
/etc/pm/config.d/modules
and put this line in it
SUSPEND_MODULES="ehci_hd usbcore"
but now i have the same problem again after update, so what is the solution and what is the replacement for the previous solution?
i know from wiki that i sholud make a file in
/usr/lib/systemd/system-sleep/
but what i should name it and what i should write in it?
whan i try to suspend from the cli using systemd
systemctl suspend
it fails and make the weird behaviour described earlier.
when i try to suspend usinf this command
sudo pm-suspend
it succeed.
Last edited by shalaby (2012-09-14 19:21:08)
Offline
You can still use pm-utils to suspend.
Offline
yes, but the laptop never suspend automatically
Offline
If you want to replace this functionality of pm-utils, create en executable shell script in system-sleep, that does the following:
#!/bin/sh
action="$1-$2"
case $action in
pre-suspend)
# do something here (e.g. rmmod)
;;
post-suspend)
# do something here (e.g. modprobe)
;;
pre-hibernate)
# do something here (e.g. rmmod)
;;
post-hibernate)
# do something here (e.g. modprobe)
;;
esac
Last edited by progandy (2012-09-14 15:57:36)
| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |
Offline
thanks progandy i used the script you posted but no luck
#!/bin/sh
action="$1-$2"
case $action in
pre-suspend)
# do something here (e.g. rmmod)
rmmod ehci_hd
rmmod usbcore
;;
post-suspend)
# do something here (e.g. modprobe)
modprobe ehci_hd
modprobe usbcore
;;
pre-hibernate)
# do something here (e.g. rmmod)
;;
post-hibernate)
# do something here (e.g. modprobe)
;;
esac
Last edited by shalaby (2012-09-14 18:14:34)
Offline
Did you made it executable? Is it owned by root?
Last edited by nierro (2012-09-14 16:20:38)
Offline
yes i did, and yes it's owned by root.
Offline
but now i have the same problem again after update
What packages did you update?
Offline
i don't know nierro, i just updated.
Offline
Post here your /var/log/pacman.log
Offline
[2012-09-01 00:35] Running 'pacman -Syu'
[2012-09-01 00:35] synchronizing package lists
[2012-09-01 00:38] starting full system upgrade
[2012-09-01 10:44] Running 'pacman -Syu'
[2012-09-01 10:44] synchronizing package lists
[2012-09-01 10:45] starting full system upgrade
[2012-09-01 21:39] Running 'pacman -Syu'
[2012-09-01 21:39] synchronizing package lists
[2012-09-01 21:41] starting full system upgrade
[2012-09-01 22:08] upgraded lib32-libdrm (2.4.38-1 -> 2.4.39-1)
[2012-09-01 22:08] upgraded libedit (20120311_3.0-1 -> 20120601_3.0-1)
[2012-09-01 22:08] upgraded libevent (2.0.19-1 -> 2.0.20-1)
[2012-09-01 22:08] warning: /etc/ssh/sshd_config installed as /etc/ssh/sshd_config.pacnew
[2012-09-01 22:08] upgraded openssh (6.0p1-3 -> 6.1p1-1)
[2012-09-01 22:08] upgraded sdl (1.2.15-1 -> 1.2.15-2)
[2012-09-01 22:09] Running 'pacman -R chmsee'
[2012-09-01 22:09] removed chmsee (1.99.12-1)
[2012-09-01 22:09] Running 'pacman -S chmsee'
[2012-09-01 22:09] installed chmsee (1.99.12-1)
[2012-09-01 22:18] Running 'pacman -R chmsee'
[2012-09-01 22:18] removed chmsee (1.99.12-1)
[2012-09-01 22:18] Running 'pacman -S extra/xchm'
[2012-09-01 22:21] installed wxgtk (2.8.12.1-3)
[2012-09-01 22:21] installed xchm (1.20-2)
[2012-09-03 15:24] Running 'pacman -Syu'
[2012-09-03 15:24] synchronizing package lists
[2012-09-03 15:26] starting full system upgrade
[2012-09-03 18:16] upgraded fribidi (0.19.2-2 -> 0.19.4-1)
[2012-09-03 18:16] upgraded gnutls (3.1.0-1 -> 3.1.1-1)
[2012-09-03 18:16] upgraded mpfr (3.1.1-1 -> 3.1.1.p2-1)
[2012-09-03 18:16] installed lib32-v4l-utils (0.8.8-1)
[2012-09-03 18:17] upgraded skype (4.0.0.8-1 -> 4.0.0.8-3)
[2012-09-03 18:17] upgraded systemd (189-3 -> 189-4)
[2012-09-03 18:17] installed sysvinit-tools (2.88-7)
[2012-09-03 18:17] upgraded systemd-sysvcompat (189-3 -> 189-4)
[2012-09-03 18:17] upgraded xf86-video-intel (2.20.5-1 -> 2.20.6-1)
[2012-09-04 07:22] Running 'pacman -Syu'
[2012-09-04 07:22] synchronizing package lists
[2012-09-04 07:23] starting full system upgrade
[2012-09-04 07:32] upgraded inetutils (1.9.1-3 -> 1.9.1-4)
[2012-09-04 07:32] upgraded xulrunner (14.0.1-1 -> 15.0-1)
[2012-09-04 10:17] Running 'pacman -Syu'
[2012-09-04 10:17] synchronizing package lists
[2012-09-04 10:18] starting full system upgrade
[2012-09-05 08:37] Running 'pacman -Syu'
[2012-09-05 08:37] synchronizing package lists
[2012-09-05 08:40] starting full system upgrade
[2012-09-05 10:42] Running 'pacman -Syu'
[2012-09-05 10:42] synchronizing package lists
[2012-09-05 10:43] starting full system upgrade
[2012-09-05 11:21] removed lib32-sqlite3 (3.7.13-1)
[2012-09-05 11:21] upgraded sqlite (3.7.13-1 -> 3.7.14-1)
[2012-09-05 11:21] installed lib32-sqlite (3.7.14-2)
[2012-09-05 11:21] upgraded libcups (1.6.1-5 -> 1.6.1-6)
[2012-09-05 11:22] upgraded libreoffice-en-GB (3.5.6-1 -> 3.6.1-1)
[2012-09-05 11:22] installed clucene (2.3.3.4-6)
[2012-09-05 11:22] upgraded libreoffice-common (3.5.6-1 -> 3.6.1-4)
[2012-09-05 11:22] upgraded libreoffice-base (3.5.6-1 -> 3.6.1-4)
[2012-09-05 11:22] upgraded libreoffice-calc (3.5.6-1 -> 3.6.1-4)
[2012-09-05 11:22] upgraded libreoffice-draw (3.5.6-1 -> 3.6.1-4)
[2012-09-05 11:22] upgraded libreoffice-gnome (3.5.6-1 -> 3.6.1-4)
[2012-09-05 11:22] upgraded libreoffice-impress (3.5.6-1 -> 3.6.1-4)
[2012-09-05 11:22] upgraded libreoffice-math (3.5.6-1 -> 3.6.1-4)
[2012-09-05 11:22] upgraded libwps (0.2.2-2 -> 0.2.7-1)
[2012-09-05 11:22] upgraded libreoffice-writer (3.5.6-1 -> 3.6.1-4)
[2012-09-05 11:22] upgraded libvdpau (0.4.1-2 -> 0.5-1)
[2012-09-05 11:22] upgraded mercurial (2.3-1 -> 2.3.1-1)
[2012-09-05 11:22] upgraded openssh (6.1p1-1 -> 6.1p1-2)
[2012-09-09 14:58] Running 'pacman -Syu'
[2012-09-09 14:58] synchronizing package lists
[2012-09-09 15:00] starting full system upgrade
[2012-09-09 15:53] Running 'pacman -Syu'
[2012-09-09 15:53] synchronizing package lists
[2012-09-09 15:54] starting full system upgrade
[2012-09-09 16:12] Running 'pacman -Syu'
[2012-09-09 16:12] synchronizing package lists
[2012-09-09 16:12] starting full system upgrade
[2012-09-09 16:14] upgraded alsa-lib (1.0.25-1 -> 1.0.26-1)
[2012-09-09 16:14] upgraded alsa-plugins (1.0.25-2 -> 1.0.26-1)
[2012-09-09 16:14] upgraded alsa-utils (1.0.25-3 -> 1.0.26-1)
[2012-09-09 16:14] upgraded firefox (15.0-1 -> 15.0.1-1)
[2012-09-09 16:14] upgraded firefox-i18n-en-gb (15.0-1 -> 15.0.1-1)
[2012-09-09 16:14] updating font cache... Fontconfig warning: "/etc/fonts/infinality/conf.d/60-group-non-tt-fonts.conf", line 483: Having multiple values in <test> isn't supported and may not works as expected
[2012-09-09 16:14] Fontconfig warning: "/etc/fonts/infinality/conf.d/60-group-tt-fonts.conf", line 262: Having multiple values in <test> isn't supported and may not works as expected
[2012-09-09 16:14] Fontconfig warning: "/etc/fonts/infinality/conf.d/62-tt-monospace-rendering.conf", line 27: Having multiple values in <test> isn't supported and may not works as expected
[2012-09-09 16:14] Fontconfig warning: "/etc/fonts/infinality/conf.d/62-tt-traced-bitmap-rendering.conf", line 21: Having multiple values in <test> isn't supported and may not works as expected
[2012-09-09 16:14] Fontconfig warning: "/etc/fonts/infinality/conf.d/62-tt-traced-bitmap-rendering.conf", line 50: Having multiple values in <test> isn't supported and may not works as expected
[2012-09-09 16:14] Fontconfig warning: "/etc/fonts/infinality/conf.d/80-selective-rendering-inf-win-lin.conf", line 16: Having multiple values in <test> isn't supported and may not works as expected
[2012-09-09 16:14] Fontconfig warning: "/etc/fonts/infinality/conf.d/80-selective-rendering-inf-win-lin.conf", line 31: Having multiple values in <test> isn't supported and may not works as expected
[2012-09-09 16:14] Fontconfig warning: "/etc/fonts/infinality/conf.d/80-selective-rendering-inf-win-lin.conf", line 102: Having multiple values in <test> isn't supported and may not works as expected
[2012-09-09 16:14] Fontconfig warning: "/etc/fonts/infinality/conf.d/80-selective-rendering-inf-win-lin.conf", line 119: Having multiple values in <test> isn't supported and may not works as expected
[2012-09-09 16:14] Fontconfig warning: "/etc/fonts/infinality/conf.d/80-selective-rendering-inf-win-lin.conf", line 138: Having multiple values in <test> isn't supported and may not works as expected
[2012-09-09 16:14] Fontconfig warning: "/etc/fonts/infinality/conf.d/80-selective-rendering-inf-win-lin.conf", line 158: Having multiple values in <test> isn't supported and may not works as expected
[2012-09-09 16:15] done.
[2012-09-09 16:15] upgraded fontconfig (2.8.0-2 -> 2.10.1-2)
[2012-09-09 16:15] upgraded freemind (0.9.0-2 -> 0.9.0-3)
[2012-09-09 16:15] upgraded gegl (0.2.0-2 -> 0.2.0-3)
[2012-09-09 16:15] upgraded gimp (2.8.0-2 -> 2.8.2-1)
[2012-09-09 16:15] upgraded gtk2-xfce-engine (3.0.0-1 -> 3.0.1-1)
[2012-09-09 16:15] upgraded gtk3-xfce-engine (3.0.0-1 -> 3.0.1-1)
[2012-09-09 16:15] upgraded hwids (20120815-1 -> 20120831-1)
[2012-09-09 16:15] upgraded less (444-3 -> 451-1)
[2012-09-09 16:15] upgraded lib32-alsa-lib (1.0.25-1 -> 1.0.26-1)
[2012-09-09 16:15] upgraded lib32-fontconfig (2.8.0-4 -> 2.10.1-1)
[2012-09-09 16:15] upgraded libmpc (1.0-1 -> 1.0.1-1)
[2012-09-09 16:15] upgraded libmysqlclient (5.5.27-3 -> 5.5.27-4)
[2012-09-09 16:15] upgraded mysql-clients (5.5.27-3 -> 5.5.27-4)
[2012-09-09 16:15] upgraded mysql (5.5.27-3 -> 5.5.27-4)
[2012-09-09 16:15] upgraded os-prober (1.54-1 -> 1.55-1)
[2012-09-09 16:15] warning: /etc/pacman.d/mirrorlist installed as /etc/pacman.d/mirrorlist.pacnew
[2012-09-09 16:15] upgraded pacman-mirrorlist (20120626-1 -> 20120908-1)
[2012-09-09 16:15] upgraded ppp (2.4.5-3 -> 2.4.5-4)
[2012-09-09 16:15] upgraded sudo (1.8.5.p3-1 -> 1.8.6-1)
[2012-09-09 16:16] In order to use the new version, reload all virtualbox modules manually.
[2012-09-09 16:16] upgraded virtualbox-modules (4.1.20-3 -> 4.1.22-1)
[2012-09-09 16:16] upgraded virtualbox (4.1.20-2 -> 4.1.22-1)
[2012-09-09 16:16] upgraded virtualbox-additions (4.1.20-1 -> 4.1.22-1)
[2012-09-09 16:16] upgraded xchm (1.20-2 -> 1.21-1)
[2012-09-09 16:16] upgraded xf86-video-intel (2.20.6-1 -> 2.20.7-1)
[2012-09-10 08:31] Running 'pacman -Syu'
[2012-09-10 08:31] synchronizing package lists
[2012-09-10 08:32] starting full system upgrade
[2012-09-10 09:33] upgraded avahi (0.6.31-3 -> 0.6.31-4)
[2012-09-10 09:33] upgraded networkmanager (0.9.4.0-6 -> 0.9.6.0-1)
[2012-09-10 09:33] upgraded network-manager-applet (0.9.4.1-1 -> 0.9.6.2-1)
[2012-09-10 09:33] upgraded upower (0.9.17-2 -> 0.9.18-2)
[2012-09-11 09:53] Running 'pacman -Syu'
[2012-09-11 09:53] synchronizing package lists
[2012-09-11 09:54] starting full system upgrade
[2012-09-11 09:55] upgraded aria2 (1.15.1-2 -> 1.15.2-1)
[2012-09-11 11:18] Running 'pacman -Syu'
[2012-09-11 11:18] synchronizing package lists
[2012-09-11 11:18] starting full system upgrade
[2012-09-11 11:20] Running 'pacman --noconfirm -U broadcom-wl-5.100.82.112-6-x86_64.pkg.tar.xz'
[2012-09-11 11:21] upgraded broadcom-wl (5.100.82.112-5 -> 5.100.82.112-6)
[2012-09-11 11:29] Running 'pacman --noconfirm -U dropbox-1.4.17-1-x86_64.pkg.tar.xz'
[2012-09-11 11:30] upgraded dropbox (1.4.12-1 -> 1.4.17-1)
[2012-09-11 11:54] Running 'pacman --noconfirm -U google-chrome-21.0.1180.89-1-x86_64.pkg.tar.xz'
[2012-09-11 11:54] upgraded google-chrome (21.0.1180.81-1 -> 21.0.1180.89-1)
[2012-09-13 10:53] Running 'pacman -Syu'
[2012-09-13 10:53] synchronizing package lists
[2012-09-13 10:54] starting full system upgrade
[2012-09-13 11:00] upgraded gtk-update-icon-cache (2.24.11-2 -> 2.24.12-1)
[2012-09-13 11:00] upgraded gtk2 (2.24.11-2 -> 2.24.12-1)
[2012-09-13 11:00] upgraded imagemagick (6.7.9.2-1 -> 6.7.9.4-1)
[2012-09-13 11:00] upgraded jansson (2.3-1 -> 2.3.1-1)
[2012-09-13 11:00] upgraded kmod (9-2 -> 10-1)
[2012-09-13 11:00] upgraded librsvg (2.36.1-1 -> 2.36.3-1)
[2012-09-13 11:00] upgraded nodejs (0.8.8-1 -> 0.8.9-1)
[2012-09-13 11:00] upgraded optipng (0.7.1-1 -> 0.7.2-1)
[2012-09-13 11:00] upgraded syslog-ng (3.3.5-2 -> 3.3.6-1)
[2012-09-13 11:00] upgraded xfce4-weather-plugin (0.8.1-1 -> 0.8.2-1)
[2012-09-14 11:34] Running 'pacman -Syu'
[2012-09-14 11:34] synchronizing package lists
[2012-09-14 11:35] starting full system upgrade
[2012-09-14 11:45] upgraded djvulibre (3.5.24-3 -> 3.5.25.3-1)
[2012-09-14 11:45] upgraded php (5.4.6-1 -> 5.4.7-1)
[2012-09-14 11:45] upgraded php-apache (5.4.6-1 -> 5.4.7-1)
[2012-09-14 11:45] upgraded php-gd (5.4.6-1 -> 5.4.7-1)
[2012-09-14 11:45] upgraded php-mcrypt (5.4.6-1 -> 5.4.7-1)
[2012-09-14 14:05] Running 'pacman -R pm-utils'
[2012-09-14 14:06] Running 'pacman -R upower'
[2012-09-14 15:51] Running 'pacman -S laptop-mode-tools'
[2012-09-14 15:51] installed laptop-mode-tools (1.61-2)
[2012-09-14 16:00] Running 'pacman -S cpupower'
[2012-09-14 16:00] installed cpupower (3.5-5)
[2012-09-14 16:11] Running 'pacman -S --asdeps --needed extra/docbook-xsl'
[2012-09-14 16:11] installed docbook-xml (4.5-5)
[2012-09-14 16:11] installed docbook-xsl (1.77.1-2)
[2012-09-14 16:22] Running 'pacman -U /tmp/yaourt-tmp-muhammad/PKGDEST.lSQ/systemd-ui-git-20120914-1-x86_64.pkg.tar.xz'
[2012-09-14 16:22] installed systemd-ui-git (20120914-1)
[2012-09-14 16:43] Running 'pacman -R laptop_mode'
[2012-09-14 16:44] Running 'pacman -R laptop-mode-tools'
[2012-09-14 16:44] removed laptop-mode-tools (1.61-2)
[2012-09-14 17:14] Running 'pacman -Syu'
[2012-09-14 17:14] synchronizing package lists
[2012-09-14 17:16] starting full system upgrade
[2012-09-14 17:57] upgraded dhcpcd (5.6.0-1 -> 5.6.2-1)
[2012-09-14 17:57] upgraded hyphen (2.8.5-1 -> 2.8.6-1)
Last edited by shalaby (2012-09-14 17:55:38)
Offline
Please edit your previous post and use code tag
this!
Offline
whan i try to suspend from the cli using systemd
systemctl suspend
it fails and make the weird behaviour described earlier.
when i try to suspend usinf this command
sudo pm-suspend
it succeed.
Last edited by shalaby (2012-09-14 18:17:16)
Offline
Please try this: rmmod those 2 modules before running systemctl suspend, then try, and let us know if it worked. So we can understand if it's a problem in modules unloading or in systemctl suspend.
Offline
Error: Module usbcore is in use by: ath3k btusb snd_usb_audio uvcvideo rts5139 snd_usbmidi_lib ehci_hcd usbhid
Offline
Already tried to rmmod only ehci_hd and then resume?
If this won't work, then probably it's not a module problem...
Offline
maybe there is no need for modules unload, instead i use
#!/bin/bash
# Shutdown problems with power management
for i in /sys/bus/pci/devices/*/power/control; do
echo on > $i
done
with combination of
cat /etc/systemd/system/multi-user.target.wants/runonshutdown.service
[Service]
Type=forking
ExecStart=/bin/echo "HELLO this is just wrong way to do this, but it works"
ExecStop=/bin/sh /path/to/script.sh
TimeoutSec=0
RemainAfterExit=yes
[Install]
WantedBy=multi-user.target
at least on my poor crappy samsung this helps
O' rly ? Ya rly Oo
Offline
Thanks all guys i just modified this
#!/bin/sh
action="$1-$2"
case $action in
pre-suspend)
# do something here (e.g. rmmod)
rmmod ehci_hcd
;;
post-suspend)
# do something here (e.g. modprobe)
modprobe ehci_hcd
;;
pre-hibernate)
# do something here (e.g. rmmod)
;;
post-hibernate)
# do something here (e.g. modprobe)
;;
esac
Offline
For completeness and people that find this thread when looking for suspend bugs:
If you have a Toshiba z930 and are suffering from this problem: https://code.google.com/p/toshiba-pmfix/
you can install the toshiba-pmfix from AUR as long as the patch is not integrated in the kernel.
Offline
Pages: 1