You are not logged in.
Pages: 1
Topic closed
After suspend to ram any r8712u wireless usb device won't wake up, killing the wireless network.
The solution I found was to stop the network and unload the module before going into suspend. The following systemd service file does the trick:
/etc/systemd/system/root-suspend.service
[Unit]
Description=Local system suspend actions
Before=sleep.target
[Service]
Type=oneshot
ExecStart=/usr/bin/systemctl stop network ; /usr/bin/rmmod r8712u
[Install]
WantedBy=sleep.target
To load the module and start the network:
/etc/systemd/system/root-resume.service
[Unit]
Description=Local system resume actions
After=suspend.target
[Service]
Type=oneshot
ExecStart=/sbin/modprobe r8712u ; /usr/bin/systemctl start network
[Install]
WantedBy=suspend.target
After enabling
systemctl enable root-resume root-suspend
and starting the unit files
systemctl start root-resume root-suspend
the wireless network works after suspend to ram.
Offline
I was facing exact same problem with my Airlive WN-370USB witch uses r8712u driver and my solution is almost same as yours except I didn't stop the network. Is there any particular reason for doing this? And after resume it takes about a minute to connect.
The only thing different I had to do because of Airlive card is UDEV rule.
in /etc/udev/rules.d/10-local.rules
ACTION=="add", SUBSYSTEM=="usb", ATTRS{idVendor}=="1b75", ATTRS{idProduct}=="8171", RUN+="/bin/wlan"
VID and PID are specific to my adapter, if anyone faces same problems, lsusb will get you VID and PID.
For quick solution to get wireless working when installing. This works on all linux systems that I tried.
modprobe r8712u
echo VID PID > /sys/bus/usb/drivers/r8712u/new_id
Hope this will help someone.
Last edited by Mihael (2013-02-15 11:01:08)
Offline
JoeS Thanks. Very helpful.
Offline
Please don't necrobump,especially if you have nothing to add.
https://wiki.archlinux.org/index.php/Co … bumping.22
https://wiki.archlinux.org/index.php/Co … mpty_posts
Closing.
Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD
Making lemonade from lemons since 2015.
Offline
Pages: 1
Topic closed