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

Offline jmm

  • Jr. Member
  • **
  • Posts: 38
[SOLVED] Sleep mode problems....
« on: January 30, 2012, 06:33:40 PM »
Wireless will not restart after waking from sleep mode.  I have to restart computer for wireless signal to be recognized.  Any ideas?

Thanks for your help.
« Last Edit: February 02, 2012, 05:02:53 AM by jmm »

Offline rubentje1991

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 2110
  • Rubenus Parvus MCMXCI
Re: Sleep mode problems....
« Reply #1 on: January 31, 2012, 01:58:33 AM »
Not much information....  ???

What wireless card are you using?
Is your PCLinuxOS installation completely up to date (and which version and desktop environment (KDE, LXDE, ....?) are you using?

Offline jmm

  • Jr. Member
  • **
  • Posts: 38
Re: Sleep mode problems....
« Reply #2 on: January 31, 2012, 03:15:22 AM »
RTL8191 SEvA Wireless LAN Controller is modem

KDE Fresh Install as of yesterday...Should I install LXDE as alternative and see if same issue happens with sleep mode?

Thanks for the assistance.

Offline MtnMan

  • Sr. Member
  • ****
  • Posts: 258
  • Aged to perfection
Re: Sleep mode problems....
« Reply #3 on: January 31, 2012, 07:54:49 AM »
Wireless will not restart after waking from sleep mode.  I have to restart computer for wireless signal to be recognized.  Any ideas?

Thanks for your help.
RTL8191 SEvA Wireless LAN Controller is modem

KDE Fresh Install as of yesterday...Should I install LXDE as alternative and see if same issue happens with sleep mode?

Thanks for the assistance.

jmm> I too would be interested to know if there is a solution to this.  I have both KDE and LXDE and use a wired connection.  Sometimes on resume the network does not connect and I just open the Network Center and click connect to solve the issue.  A reboot sounds extreme and would seem unnecessary - have you tried the Network Center to make the connection?

Maybe someone higher up on the food chain will drop in with a suggestion.
I worry that the person who thought up Muzak may be thinking up something else. - Lily Tomlin

Offline jmm

  • Jr. Member
  • **
  • Posts: 38
Re: Sleep mode problems....
« Reply #4 on: January 31, 2012, 09:13:16 AM »
MtnMan, have tried re-establishing connection through network center unsuccessfully.   Restart is the only option coming out of sleep mode.  Any help with this would be appreciated.

Offline rubentje1991

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 2110
  • Rubenus Parvus MCMXCI
Re: Sleep mode problems....
« Reply #5 on: January 31, 2012, 09:39:01 AM »
Your fresh KDE install is fully up-to-date (with Synaptic)?

Normally, pm-utils is installed...
=> I did a little search on internet, and apparently the Realtek cards can be reactivated by unloading and loading the kernel module (after suspend for example)...

Quote
If you know which modules could cause such issues, adding a SUSPEND_MODULES config to /etc/pm/config.d/modules of the form

SUSPEND_MODULES="uhci_hd button ehci_hd"

should cause these modules to be specifically unloaded before suspend and reloaded after resume.

Maybe we can get it to work that way....? (now the only thing that has to be done is finding the name of the specific module)

Offline rubentje1991

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 2110
  • Rubenus Parvus MCMXCI
Re: Sleep mode problems....
« Reply #6 on: January 31, 2012, 09:48:53 AM »
We can get the needed information via this post:
http://www.pclinuxos.com/forum/index.php?topic=56672.0

I'd first try it the GUI way (as explained in the linked post):
Quote
You can also check in PCLinuxOS Control Center (PCC), if your wireless card is recongnized+loaded modul. Press on pcc icon
or hit Alt+F2 and type pcc. Than click on Hardware/Browse and configure hardware


Locate on the left side your wireless card. Click on it and you'll get needed informations:


As you can see in my case, my wifi card was recognized (PRO/Wireless 3945ABG [Golan] Network Connection) and loaded modul is iwl3945.

Offline rubentje1991

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 2110
  • Rubenus Parvus MCMXCI
Re: Sleep mode problems....
« Reply #7 on: January 31, 2012, 11:39:21 AM »
Please search the module in PCLinuxOS Control Center as asked in previous post
for your wireless card....

Otherwise, if you want it the terminal way:
Code: [Select]
cat /etc/modprobe.conf


EDIT: or maybe there is some option in your BIOS, but I doubt about that....  ;)

Offline jmm

  • Jr. Member
  • **
  • Posts: 38
Re: Sleep mode problems....
« Reply #8 on: January 31, 2012, 11:50:38 AM »
I think this is what you asked for...???  Thanks again.


cat /etc/modprobe.conf
install scsi_hostadapter /sbin/modprobe ahci; /sbin/modprobe ata_piix; /bin/true
install usb-interface /sbin/modprobe ohci_hcd; /sbin/modprobe ehci_hcd; /bin/true
alias wlan0 r8192se_pci
alias sound-slot-0 unknown
alias eth0 r8169
alias sound-slot-1 snd-hda-intel
options snd_hda_intel index=1
options snd-ac97-codec power_save=0
alias pci:v000010ECd00008171sv0000103Csd00001467bc02sc80i00 r8192se_pci
alias snd-1 snd-hda-intel

Offline rubentje1991

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 2110
  • Rubenus Parvus MCMXCI
Re: Sleep mode problems....
« Reply #9 on: January 31, 2012, 02:16:29 PM »
I think this is what you asked for...???  Thanks again.


cat /etc/modprobe.conf
install scsi_hostadapter /sbin/modprobe ahci; /sbin/modprobe ata_piix; /bin/true
install usb-interface /sbin/modprobe ohci_hcd; /sbin/modprobe ehci_hcd; /bin/true
alias wlan0 r8192se_pci
alias sound-slot-0 unknown
alias eth0 r8169
alias sound-slot-1 snd-hda-intel
options snd_hda_intel index=1
options snd-ac97-codec power_save=0
alias pci:v000010ECd00008171sv0000103Csd00001467bc02sc80i00 r8192se_pci
alias snd-1 snd-hda-intel


I hope I'm going to tell the right thing now.... if not we'll correct it later (it won't break your install or so, no worries - except if you're doing yet 10 other rare things at the same time  :D 8))

Press <Alt><F2>, and in the krunner that appears, enter: "kdesu dolphin" (without quotes)
=> put in the root password when prompted

Navigate to the main directory (the root dir), and then go to following path:
/etc/pm/config.d/
In that directory, please make a new file, named config (for example, normally it doesn't exist yet I think)...
=> in that file, copy paste the following line:
Quote
SUSPEND_MODULES="rtl8192se_pci"

=> I'm still not sure about the name of the module (because I'm not an expert in this commands)
I'll try to ask it a bit more detailed...
When opening PCLinuxOS Control Center (the grey circle with the crossed tools inside on the bar at the bottom of the screen), and going to "Hardware", and then selecting "Browse and configuring hardware"
=> please select the wireless card you have (maybe under Ethernet Devices or something like that), and look in the main window at what's defined as "module".....

So, you may indeed just try the directions above, or first get sure about the module which is activated for your wireless card (sorry that this is taking so long - maybe someone else would have helped you much faster  ::))

Please let us know the results  ;)

Offline AS

  • Hero Member
  • *****
  • Posts: 4111
  • Have a nice ... night!
Re: Sleep mode problems....
« Reply #10 on: January 31, 2012, 02:44:55 PM »
=> in that file, copy paste the following line:
Quote
SUSPEND_MODULES="rtl8192se_pci"

=> I'm still not sure about the name of the module (because I'm not an expert in this commands)

Look fine, except for a little typo: the module name is r8192se_pci (without the "tl")   ;)

copy and paste the following instead:
Quote
SUSPEND_MODULES="r8192se_pci"

AS


Offline jmm

  • Jr. Member
  • **
  • Posts: 38
Re: Sleep mode problems....
« Reply #11 on: January 31, 2012, 04:02:43 PM »
AS and rubentje1991:  Thank you so much for your help.  the line I pasted into new config file is below.  Yes, AS was correct as the right name of the module is below.  Unfortunately, I still have to do a restart after I return from sleep mode as no wireless signals are recognized.  On restart, it is recognized great.  Out of sleep and hibernate, nothing.  If you have any more ideas they would be welcomed.  Again, thank you for your time.

SUSPEND_MODULES="r8192se_pci"

Offline AS

  • Hero Member
  • *****
  • Posts: 4111
  • Have a nice ... night!
Re: Sleep mode problems....
« Reply #12 on: January 31, 2012, 04:08:21 PM »
AS and rubentje1991:  Thank you so much for your help.  the line I pasted into new config file is below.  Yes, AS was correct as the right name of the module is below.  Unfortunately, I still have to do a restart after I return from sleep mode as no wireless signals are recognized.  On restart, it is recognized great.  Out of sleep and hibernate, nothing.  If you have any more ideas they would be welcomed.  Again, thank you for your time.

SUSPEND_MODULES="r8192se_pci"

... Hmmm ... try the following, after return from sleep, open a terminal and su to root:
Code: [Select]
modprobe  -r  r8192se_pci
modprobe  r8192se_pci
service  network  restart

Offline jmm

  • Jr. Member
  • **
  • Posts: 38
Re: Sleep mode problems....
« Reply #13 on: January 31, 2012, 04:30:08 PM »
AS, does this tell you anything?  Thanks again.


Password:
[root@localhost ~]# modprobe  -r  r8192se_pci
[root@localhost ~]# modprobe  r8192se_pci
[root@localhost ~]# service  network  restart
Shutting down interface eth0:                                      [  OK  ]
Shutting down loopback interface:                                  [  OK  ]
Bringing up loopback interface:                                    [  OK  ]
Bringing up interface eth0:                                        [  OK  ]
Bringing up interface wlan0:  RTNETLINK answers: Operation not possible due to RF-kill
RTNETLINK answers: Operation not possible due to RF-kill
Error for wireless request "Set Encode" (8B2A) :
    SET failed on device wlan0 ; Network is down.
Error for wireless request "Set Encode" (8B2A) :
    SET failed on device wlan0 ; Network is down.
Could not set interface wlan0 flags: Operation not possible due to RF-kill
Failed to initialize driver interface
Sorry, there is already an instance of ifplugd for wlan0 running.
                                                                   [FAILED]

Offline AS

  • Hero Member
  • *****
  • Posts: 4111
  • Have a nice ... night!
Re: Sleep mode problems....
« Reply #14 on: January 31, 2012, 04:41:02 PM »
AS, does this tell you anything?  Thanks again.


Password:
[root@localhost ~]# modprobe  -r  r8192se_pci
[root@localhost ~]# modprobe  r8192se_pci
[root@localhost ~]# service  network  restart
Shutting down interface eth0:                                      [  OK  ]
Shutting down loopback interface:                                  [  OK  ]
Bringing up loopback interface:                                    [  OK  ]
Bringing up interface eth0:                                        [  OK  ]
Bringing up interface wlan0:  RTNETLINK answers: Operation not possible due to RF-kill
RTNETLINK answers: Operation not possible due to RF-kill
Error for wireless request "Set Encode" (8B2A) :
    SET failed on device wlan0 ; Network is down.
Error for wireless request "Set Encode" (8B2A) :
    SET failed on device wlan0 ; Network is down.
Could not set interface wlan0 flags: Operation not possible due to RF-kill
Failed to initialize driver interface
Sorry, there is already an instance of ifplugd for wlan0 running.
                                                                   [FAILED]

Yes!  :D  your device don't come up because it has been switched off. There is an utility in repo: rfkill, install it if not already installed, then try:
Code: [Select]
rfkill list
should report something like:

Quote
0: dell-wifi: Wireless LAN
        Soft blocked: no
        Hard blocked: no
1: dell-bluetooth: Bluetooth
        Soft blocked: no
        Hard blocked: no
2: phy0: Wireless LAN
        Soft blocked: no
        Hard blocked: no
3: hci0: Bluetooth
        Soft blocked: no
        Hard blocked: no

supposing you wireless card is listed as device 0 (zero) and is blocked, the following command should unblock it:
Code: [Select]
rfkill unblock 0