Correct way to resume networking using /etc/rc.d/rc.inet1
Hey all,
I just fixed the problem that my laptop (on which I refuse to use wicd or NetworkManager) doesn't reconnect to the wifi when I resume from suspend. I just copied the file /usr/lib64/pm-utils/55wicd to /etc/pm/sleep.d/55networking and modified it as follows: Code:
#!/bin/sh
|
I'm running Slackware-14.1, and no wicd or NetworkManager, on which I share your views.
I have to do no fancy work for network resumption. I use XFCE - No time for high cholesterol WMs. Have you discovered pm-suspend & pm-hibernate? There are minor irrations around usb disks on resuming, but that's because I'm lazy. |
Quote:
I run i3wm without a DE. Maybe XFCE might do some magic to resume your network connection. Are you on wifi using wpa_supplicant? If not this might be the reason for my problem and I might be able to tell wpa_supplicant to reconnect somehow. |
I've a Samsung laptop, and the Bios are fairly sound in power management, but teetotally OTT in UEFI. UEFI is disabled, & disk replaced with ssd formatted with fdisk, not gdisk. Using gdisk invokes uefi again.
Then the only issue was XFCE'S power manager. The Bios did everything, & XFCE'S power manager did it again, so I suspended/hibernated twice for every button pressed. I chose to neuter XFCE & run on the bios.If your bios are dodgy, you might try disabling them & using the power manager. This is wherte you are really found out if your wm is half-assed because these things are not sorted. Yes, I have wpa_supplicant & wifi. It deletes the routes on suspend (192.168.178.26 & 192.168.178.0/24) & rebinds the leases on resume. That's all. cfg80211 seems to get a lot of mention in the logs |
Quote:
|
Correct way to resume networking using /etc/rc.d/rc.inet1
I run i3 without any DE and wicd reconnects on resume (must have the option "connect automatically" on a reachable ap I guess). So You're right, the trouble might come from hardware / bios...
Btw, I have in my todo list "find a good and working script / rule for acpi to suspend or hibernate on low bat". Do you have one you would share ? |
I looked into that but since the move of power stuff from /proc to /sys it's not that easy.
XFCE Power manager uses a battery percentage & triggers on it. You can try polling /sys/power/<your-battery>/state for an 'emergency' state, but I never got a reliable script together. |
All times are GMT -5. The time now is 04:59 PM. |