Author Topic: [SOLVED] Sleep mode problems....  (Read 3892 times)

Offline jmm

  • Jr. Member
  • **
  • Posts: 38
Re: Sleep mode problems....
« Reply #15 on: January 31, 2012, 05:47:11 PM »
AS, you are a big help.

Now when it returns from sleep I have to do rfkill list command in Konsole and then rfkill unblock 4 (in this case, see below)....Each time I return from sleep it comes back with one number higher (next time I will have to do rfkill unblock 5....is there a fix so I don't have to do this every time I return from sleep?


[joe@localhost ~]$ rfkill list
0: acer-wireless: Wireless LAN
        Soft blocked: yes
        Hard blocked: no
4: phy0: Wireless LAN
        Soft blocked: no
        Hard blocked: yes
[joe@localhost ~]$ rfkill unblock 0
[joe@localhost ~]$ rfkill unblock 4

Offline AS

  • Hero Member
  • *****
  • Posts: 4098
  • Have a nice ... night!
Re: Sleep mode problems....
« Reply #16 on: January 31, 2012, 05:52:58 PM »
AS, you are a big help.

Now when it returns from sleep I have to do rfkill list command in Konsole and then rfkill unblock 4 (in this case, see below)....Each time I return from sleep it comes back with one number higher (next time I will have to do rfkill unblock 5....is there a fix so I don't have to do this every time I return from sleep?


[joe@localhost ~]$ rfkill list
0: acer-wireless: Wireless LAN
        Soft blocked: yes
        Hard blocked: no
4: phy0: Wireless LAN
        Soft blocked: no
        Hard blocked: yes
[joe@localhost ~]$ rfkill unblock 0
[joe@localhost ~]$ rfkill unblock 4


not sure if the renumbering is a side effect of the module removal ... you could try to undo the change in /etc/pm/config.d ...

When you do rfkill unblock your network restart ? right ?
you can use:
Quote
rfkill unblock all

Offline jmm

  • Jr. Member
  • **
  • Posts: 38
Re: Sleep mode problems....
« Reply #17 on: January 31, 2012, 06:18:06 PM »
AS, when I run (in Konsole) rfkill unblock all it still shows 0: acer-wireless: Wireless LAN
        Soft blocked: yes
        Hard blocked: no

Is there a way I can delete or uninstall this so everything points to 1: phy0: Wireless LAN
        Soft blocked: no
        Hard blocked: no

on restart and coming out of sleep.  I think the problem lies in the acer-wireless?



[joe@localhost ~]$ rfkill list
0: acer-wireless: Wireless LAN
        Soft blocked: yes
        Hard blocked: no
1: phy0: Wireless LAN
        Soft blocked: no
        Hard blocked: no
[joe@localhost ~]$

Offline AS

  • Hero Member
  • *****
  • Posts: 4098
  • Have a nice ... night!
Re: Sleep mode problems....
« Reply #18 on: January 31, 2012, 06:36:49 PM »
Sorry ... the situation is not clear ... to me at least ...

please post the complete output of:

Quote
lsmod

lspci -nn -k

Offline jmm

  • Jr. Member
  • **
  • Posts: 38
Re: Sleep mode problems....
« Reply #19 on: January 31, 2012, 07:00:35 PM »
[joe@localhost ~]$ lsmod
Module                  Size  Used by
snd_usbmidi_lib        15440  0
snd_rawmidi            15287  1 snd_usbmidi_lib
cryptd                  6989  0
aes_i586                6948  2
aes_generic            25998  1 aes_i586
af_packet              17321  4
arc4                    1126  0
ecb                     1645  0
ipv6                  266689  14
snd_hda_codec_conexant    35862  1
snd_hda_codec_hdmi     20480  1
snd_hda_intel          19109  4
snd_hda_codec          66310  3 snd_hda_codec_conexant,snd_hda_codec_hdmi,snd_hda_intel
snd_hwdep               4820  1 snd_hda_codec
snd_seq_dummy           1135  0
snd_seq_oss            25264  0
snd_seq_midi_event      4648  1 snd_seq_oss
snd_seq                42136  5 snd_seq_dummy,snd_seq_oss,snd_seq_midi_event
snd_seq_device          4457  4 snd_rawmidi,snd_seq_dummy,snd_seq_oss,snd_seq
snd_pcm_oss            33854  0
sr_mod                 13510  0
r8192se_pci           461485  0
cdrom                  31506  1 sr_mod
snd_pcm                60446  4 snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec,snd_pcm_oss
snd_timer              15383  2 snd_seq,snd_pcm
snd_mixer_oss          12981  1 snd_pcm_oss
r8169                  34277  0
snd                    43189  22 snd_usbmidi_lib,snd_rawmidi,snd_hda_codec_conexant,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec,snd_hwdep,snd_seq_oss,snd_seq,snd_seq_device,snd_pcm_oss,snd_pcm,snd_timer,snd_mixer_oss
uvcvideo               55339  0
i2c_piix4               7124  0
soundcore               5025  1 snd
videodev               56533  1 uvcvideo
mii                     3382  1 r8169
i2c_core               16500  2 i2c_piix4,videodev
cfg80211              126787  1 r8192se_pci
snd_page_alloc          5877  2 snd_hda_intel,snd_pcm
sg                     23483  0
sp5100_tco              3764  0
binfmt_misc             5850  1
input_polldev           2478  0
nvram                   4805  0
firewire_ohci          25329  0
firewire_sbp2          11541  0
firewire_core          43040  2 firewire_ohci,firewire_sbp2
crc_itu_t               1103  1 firewire_core
dm_mod                 58938  0
fuse                   59455  3
fglrx                2734427  220
k10temp                 2147  0
joydev                  7663  0
ideapad_laptop          3658  0
acer_wmi               15087  0
sparse_keymap           2484  2 ideapad_laptop,acer_wmi
rfkill                 12694  3 cfg80211,ideapad_laptop,acer_wmi
video                  10008  0
thermal                 6670  0
evdev                   7275  16
ac                      2545  0
processor              22399  2
wmi                     7495  1 acer_wmi
battery                 8843  0
button                  4021  1 fglrx
ata_piix               18602  0
ahci                   17997  3
libahci                16163  1 ahci
libata                154591  3 ata_piix,ahci,libahci
sd_mod                 31682  4
scsi_mod              150520  5 sr_mod,sg,firewire_sbp2,libata,sd_mod
crc_t10dif              1104  1 sd_mod
ext4                  312169  2
jbd2                   59959  1 ext4
crc16                   1099  1 ext4
uhci_hcd               19499  0
ohci_hcd               19566  0
ehci_hcd               35439  0
usbhid                 31267  0
hid                    63565  1 usbhid
usbcore               117639  7 snd_usbmidi_lib,uvcvideo,uhci_hcd,ohci_hcd,ehci_hcd,usbhid
[joe@localhost ~]$ lspci -nn -k
00:00.0 Host bridge [0600]: Advanced Micro Devices [AMD] Family 14h Processor Root Complex [1022:1510]
        Subsystem: Lenovo Device [17aa:397b]
00:01.0 VGA compatible controller [0300]: ATI Technologies Inc Device [1002:9802]
        Subsystem: Lenovo Device [17aa:397b]
        Kernel driver in use: fglrx_pci
        Kernel modules: fglrx
00:01.1 Audio device [0403]: ATI Technologies Inc Device [1002:1314]
        Subsystem: Lenovo Device [17aa:397b]
        Kernel driver in use: HDA Intel
        Kernel modules: snd-hda-intel
00:11.0 SATA controller [0106]: ATI Technologies Inc SB7x0/SB8x0/SB9x0 SATA Controller [AHCI mode] [1002:4391]
        Subsystem: Lenovo Device [17aa:397b]
        Kernel driver in use: ahci
        Kernel modules: ahci
00:12.0 USB Controller [0c03]: ATI Technologies Inc SB7x0/SB8x0/SB9x0 USB OHCI0 Controller [1002:4397]
        Subsystem: Lenovo Device [17aa:397b]
        Kernel driver in use: ohci_hcd
        Kernel modules: ohci-hcd
00:12.2 USB Controller [0c03]: ATI Technologies Inc SB7x0/SB8x0/SB9x0 USB EHCI Controller [1002:4396]
        Subsystem: Lenovo Device [17aa:397b]
        Kernel driver in use: ehci_hcd
        Kernel modules: ehci-hcd
00:13.0 USB Controller [0c03]: ATI Technologies Inc SB7x0/SB8x0/SB9x0 USB OHCI0 Controller [1002:4397]
        Subsystem: Lenovo Device [17aa:397b]
        Kernel driver in use: ohci_hcd
        Kernel modules: ohci-hcd
00:13.2 USB Controller [0c03]: ATI Technologies Inc SB7x0/SB8x0/SB9x0 USB EHCI Controller [1002:4396]
        Subsystem: Lenovo Device [17aa:397b]
        Kernel driver in use: ehci_hcd
        Kernel modules: ehci-hcd
00:14.0 SMBus [0c05]: ATI Technologies Inc SBx00 SMBus Controller [1002:4385] (rev 42)
        Subsystem: Lenovo Device [17aa:397b]
        Kernel modules: i2c-piix4, sp5100_tco
00:14.2 Audio device [0403]: ATI Technologies Inc SBx00 Azalia (Intel HDA) [1002:4383] (rev 40)
        Subsystem: Lenovo Device [17aa:397b]
        Kernel driver in use: HDA Intel
        Kernel modules: snd-hda-intel
00:14.3 ISA bridge [0601]: ATI Technologies Inc SB7x0/SB8x0/SB9x0 LPC host controller [1002:439d] (rev 40)
        Subsystem: Lenovo Device [17aa:397b]
00:14.4 PCI bridge [0604]: ATI Technologies Inc SBx00 PCI to PCI Bridge [1002:4384] (rev 40)
00:14.5 USB Controller [0c03]: ATI Technologies Inc SB7x0/SB8x0/SB9x0 USB OHCI2 Controller [1002:4399]
        Subsystem: Lenovo Device [17aa:397b]
        Kernel driver in use: ohci_hcd
        Kernel modules: ohci-hcd
00:15.0 PCI bridge [0604]: ATI Technologies Inc Device [1002:43a0]
        Kernel driver in use: pcieport
        Kernel modules: shpchp
00:15.2 PCI bridge [0604]: ATI Technologies Inc Device [1002:43a2]
        Kernel driver in use: pcieport
        Kernel modules: shpchp
00:18.0 Host bridge [0600]: Advanced Micro Devices [AMD] Family 12h/14h Processor Function 0 [1022:1700] (rev 43)
00:18.1 Host bridge [0600]: Advanced Micro Devices [AMD] Family 12h/14h Processor Function 1 [1022:1701]
00:18.2 Host bridge [0600]: Advanced Micro Devices [AMD] Family 12h/14h Processor Function 2 [1022:1702]
00:18.3 Host bridge [0600]: Advanced Micro Devices [AMD] Family 12h/14h Processor Function 3 [1022:1703]
        Kernel driver in use: k10temp
        Kernel modules: k10temp
00:18.4 Host bridge [0600]: Advanced Micro Devices [AMD] Family 12h/14h Processor Function 4 [1022:1704]
00:18.5 Host bridge [0600]: Advanced Micro Devices [AMD] Family 12h/14h Processor Function 6 [1022:1718]
00:18.6 Host bridge [0600]: Advanced Micro Devices [AMD] Family 12h/14h Processor Function 5 [1022:1716]
00:18.7 Host bridge [0600]: Advanced Micro Devices [AMD] Family 12h/14h Processor Function 7 [1022:1719]
02:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller [10ec:8168] (rev 06)
        Subsystem: Lenovo Device [17aa:3975]
        Kernel driver in use: r8169
        Kernel modules: r8169
03:00.0 Network controller [0280]: Realtek Semiconductor Co., Ltd. RTL8191SEvA Wireless LAN Controller [10ec:8171] (rev 10)
        Subsystem: Hewlett-Packard Company Device [103c:1467]
        Kernel driver in use: rtl819xSE
        Kernel modules: r8192se_pci
[joe@localhost ~]$

Offline AS

  • Hero Member
  • *****
  • Posts: 4098
  • Have a nice ... night!
Re: Sleep mode problems....
« Reply #20 on: January 31, 2012, 07:20:11 PM »
Try to add the following two lines to /etc/modprobe.conf

Code: [Select]
option rfkill master_switch_mode=2
option rfkill default_state=1

then reboot, make some test, and report back. Among others test, retry:
Code: [Select]
rfkill unblock all

Offline jmm

  • Jr. Member
  • **
  • Posts: 38
Re: Sleep mode problems....
« Reply #21 on: January 31, 2012, 07:33:34 PM »
[joe@localhost ~]$ rfkill list
0: acer-wireless: Wireless LAN
        Soft blocked: yes
        Hard blocked: no
1: phy0: Wireless LAN
        Soft blocked: no
        Hard blocked: no
[joe@localhost ~]$ rfkill unblock all
[joe@localhost ~]$ rfkill list
0: acer-wireless: Wireless LAN
        Soft blocked: yes
        Hard blocked: no
1: phy0: Wireless LAN
        Soft blocked: no
        Hard blocked: no
[joe@localhost ~]$

Offline AS

  • Hero Member
  • *****
  • Posts: 4098
  • Have a nice ... night!
Re: Sleep mode problems....
« Reply #22 on: January 31, 2012, 07:45:27 PM »
rfkill unblock 0 works ?

Offline jmm

  • Jr. Member
  • **
  • Posts: 38
Re: Sleep mode problems....
« Reply #23 on: February 01, 2012, 02:26:44 AM »
AS, it does not look like the rfkill unblock 0 command works (please see below):


[joe@localhost ~]$ rfkill unblock 0
[joe@localhost ~]$ rfkill list
0: acer-wireless: Wireless LAN
        Soft blocked: yes
        Hard blocked: no
1: phy0: Wireless LAN
        Soft blocked: no
        Hard blocked: no
[joe@localhost ~]$

Offline jmm

  • Jr. Member
  • **
  • Posts: 38
Re: Sleep mode problems....
« Reply #24 on: February 01, 2012, 10:50:52 AM »
AS, I learned today that if I come out of sleep mode-run a rfkill unblock all command-go to network center-connect with my wireless signal that now works....

It's just not doing it automatically coming out of sleep mode.

I don't know if this helps you but wanted to mention in case it helps with a solution.

Anyway, thanks again for the help.

Offline AS

  • Hero Member
  • *****
  • Posts: 4098
  • Have a nice ... night!
Re: Sleep mode problems....
« Reply #25 on: February 01, 2012, 11:35:12 AM »
AS, it does not look like the rfkill unblock 0 command works (please see below):

AS, I learned today that if I come out of sleep mode-run a rfkill unblock all command-go to network center-connect with my wireless signal that now works....

Glad it work ... beware that we rely on the info you report ...

Quote
It's just not doing it automatically coming out of sleep mode.

It's important to know that at least one rfkill unblock command works, now it's only a matter to discover how to execute it automatically upon wake up ....

Offline rubentje1991

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 2108
  • Rubenus Parvus MCMXCI
Re: Sleep mode problems....
« Reply #26 on: February 01, 2012, 12:50:26 PM »
AS, I have no experience with the following, but it may be helpful:      ;)

Quote
You can place your scripts in following directory. They are executed at suspend and resume:

    /etc/pm/sleep.d - Almost all distro including Debian looks here first to run script.
    /usr/lib/pm-utils/sleep.d - Default Debian location.

(source: http://www.pclinuxos.com/forum/index.php?topic=93050.0)



Quote
Creating your own hooks

If you want to do something specific to your setup during suspend or hibernate, then you can easily put your own hook into /etc/pm/sleep.d. The hooks in this directory will be called in alphabetic order during suspend (that is the reason their names all start with 2 digits, to make the ordering explicit) and in the reverse order during resume. The general convention to be followed on number ordering is:.

00 - 49
    User and most package supplied hooks. If a hook assumes that all of the usual services and userspace infrastructure is still running, it should be here.
50 - 74
    Service handling hooks. Hooks that start or stop a service belong in this range. At or before 50, hooks can assume that all services are still enabled.
75 - 89
    Module and non-core hardware handling. If a hook needs to load/unload a module, or if it needs to place non-video hardware that would otherwise break suspend or hibernate into a safe state, it belongs in this range. At or before 75, hooks can assume all modules are still loaded.
90 - 99
    Reserved for critical suspend hooks.

I am showing a pretty useless demonstration hook here, that will just put some informative lines into your log file:

#!/bin/bash
case $1 in
    hibernate)
        echo "Hey guy, we are going to suspend to disk!"
        ;;
    suspend)
        echo "Oh, this time we are doing a suspend to RAM. Cool!"
        ;;
    thaw)
        echo "Oh, suspend to disk is over, we are resuming..."
        ;;
    resume)
        echo "Hey, the suspend to RAM seems to be over..."
        ;;
    *)  echo "Somebody is calling me totally wrong."
        ;;
esac

Put this into /etc/pm/sleep.d/66dummy, do a chmod +x /etc/pm/sleep.d/66dummy and it will spew some useless lines during suspend and resume.

(source: https://wiki.archlinux.org/index.php/Pm-utils)

EDITS: highlighted some things  :)
« Last Edit: February 01, 2012, 12:53:19 PM by rubentje1991 »

Offline AS

  • Hero Member
  • *****
  • Posts: 4098
  • Have a nice ... night!
Re: Sleep mode problems....
« Reply #27 on: February 01, 2012, 01:06:37 PM »
AS, I have no experience with the following, but it may be helpful:      ;)

Thanks, the info looks very useful and exactly what jmm is in need.

jmm,
copy and paste the following script in /etc/pm/sleep.d/88wakeup       (create the file as new)

Quote

#!/bin/bash

case $1 in
    hibernate)
        echo "Hey guy, we are going to suspend to disk!"
        ;;
    suspend)
        echo "Oh, this time we are doing a suspend to RAM. Cool!"
        ;;
    thaw)
        echo "Oh, suspend to disk is over, we are resuming..."
       /sbin/rfkill unblock all
        ;;
    resume)
        echo "Hey, the suspend to RAM seems to be over..."
       /sbin/rfkill unblock all
        ;;
    *)  echo "Somebody is calling me totally wrong."
        ;;
esac

when done: chmod  700  /etc/pm/sleep.d/88wakeup

report back your results   ;)
« Last Edit: February 01, 2012, 01:10:41 PM by AS »

Offline rubentje1991

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 2108
  • Rubenus Parvus MCMXCI
Re: Sleep mode problems....
« Reply #28 on: February 01, 2012, 01:40:07 PM »
oh, and thanks for correcting my typo on page 1  :P ;D...

Offline AS

  • Hero Member
  • *****
  • Posts: 4098
  • Have a nice ... night!
Re: Sleep mode problems....
« Reply #29 on: February 01, 2012, 02:00:25 PM »
oh, and thanks for correcting my typo on page 1  :P ;D...

... happens to me too ... when looking for info about RTLink devices ...  ;D