* Kernel module(r8712u) reload - suspend/resume - systemd
@ 2014-10-27 22:43 poma
[not found] ` <20141027231512.GF17084@gardel-login>
0 siblings, 1 reply; 3+ messages in thread
From: poma @ 2014-10-27 22:43 UTC (permalink / raw)
To: systemd Mailing List; +Cc: linux-wireless, Network Manager, Larry Finger
It is tested and works,
# systemctl suspend
[ 144.218876] PM: Entering mem sleep
[ 144.219249] r8712u 2-3:1.0 wlp0s4f1u3: Suspending...
[ 144.219255] r8712u 2-3:1.0 wlp0s4f1u3: Unable to suspend
& RESUME
[ 146.844240] r8712u 2-3:1.0 wlp0s4f1u3: Resuming...
[ 146.844241] r8712u 2-3:1.0 wlp0s4f1u3: Unable to resume
[ 147.015962] PM: Finishing wakeup.
[ 154.029573] r8712u 2-3:1.0 wlp0s4f1u3: In r8711_wx_set_scan: bDriverStopped=1
[ 177.489082] r8712u 2-3:1.0 wlp0s4f1u3: In r8711_wx_set_scan: bDriverStopped=1
[ 200.499708] r8712u 2-3:1.0 wlp0s4f1u3: In r8711_wx_set_scan: bDriverStopped=1
[ 233.514654] r8712u 2-3:1.0 wlp0s4f1u3: In r8711_wx_set_scan: bDriverStopped=1
[ 276.498402] r8712u 2-3:1.0 wlp0s4f1u3: In r8711_wx_set_scan: bDriverStopped=1
[ 329.498037] r8712u 2-3:1.0 wlp0s4f1u3: In r8711_wx_set_scan: bDriverStopped=1
[ 392.507363] r8712u 2-3:1.0 wlp0s4f1u3: In r8711_wx_set_scan: bDriverStopped=1
[ 455.559545] r8712u 2-3:1.0 wlp0s4f1u3: In r8711_wx_set_scan: bDriverStopped=1
[ 518.540179] r8712u 2-3:1.0 wlp0s4f1u3: In r8711_wx_set_scan: bDriverStopped=1
[ 581.533404] r8712u 2-3:1.0 wlp0s4f1u3: In r8711_wx_set_scan: bDriverStopped=1
~~~~~~~~~~~~~~
# nmcli device
DEVICE TYPE STATE CONNECTION
wlp0s4f1u3 wifi disconnected --
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/etc/systemd/system/r8712u-reload.service
[Unit]
Description=Reload rtl871x wireless lan driver after system resume
After=hibernate.target suspend.target hybrid-sleep.target
[Service]
Type=oneshot
ExecStart=/usr/sbin/modprobe -r r8712u
ExecStart=/usr/sbin/modprobe r8712u
[Install]
WantedBy=hibernate.target suspend.target hybrid-sleep.target
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# systemctl enable r8712u-reload.service
~~~~~~~~~~~~~~~~~~~
# systemctl suspend
[ 616.251430] PM: Entering mem sleep
[ 616.251962] r8712u 2-3:1.0 wlp0s4f1u3: Suspending...
[ 616.251965] r8712u 2-3:1.0 wlp0s4f1u3: Unable to suspend
& RESUME
[ 619.008122] r8712u 2-3:1.0 wlp0s4f1u3: Resuming...
[ 619.008124] r8712u 2-3:1.0 wlp0s4f1u3: Unable to resume
[ 619.195001] PM: Finishing wakeup.
[ 620.073126] usb 2-3: reset high-speed USB device number 3 using ehci-pci
[ 620.209187] r8712u: module is from the staging directory, the quality is unknown, you have been warned.
[ 620.209785] r8712u: Staging version
[ 620.209802] r8712u: register rtl8712_netdev_ops to netdev_ops
[ 620.209807] usb 2-3: r8712u: USB_SPEED_HIGH with 4 endpoints
[ 620.210253] usb 2-3: r8712u: Boot from EFUSE: Autoload OK
[ 620.583476] usb 2-3: r8712u: CustomerID = 0x0000
[ 620.583489] usb 2-3: r8712u: MAC Address from efuse = 00:01:02:03:04:05
[ 620.583498] usb 2-3: r8712u: Loading firmware from "rtlwifi/rtl8712u.bin"
[ 620.584238] usbcore: registered new interface driver r8712u
[ 620.589721] r8712u 2-3:1.0 wlp0s4f1u3: renamed from wlan0
[ 627.183840] r8712u 2-3:1.0 wlp0s4f1u3: 1 RCR=0x153f00e
[ 627.184345] r8712u 2-3:1.0 wlp0s4f1u3: 2 RCR=0x553f00e
[ 627.288231] IPv6: ADDRCONF(NETDEV_UP): wlp0s4f1u3: link is not ready
[ 627.592219] IPv6: ADDRCONF(NETDEV_UP): wlp0s4f1u3: link is not ready
[ 627.896222] IPv6: ADDRCONF(NETDEV_UP): wlp0s4f1u3: link is not ready
[ 628.201217] IPv6: ADDRCONF(NETDEV_UP): wlp0s4f1u3: link is not ready
[ 648.740663] IPv6: ADDRCONF(NETDEV_CHANGE): wlp0s4f1u3: link becomes ready
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# nmcli device
DEVICE TYPE STATE CONNECTION
wlp0s4f1u3 wifi connected AP
but is there a better way to do it?
poma
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Kernel module(r8712u) reload - suspend/resume - systemd
[not found] ` <20141027231512.GF17084@gardel-login>
@ 2014-10-27 23:43 ` poma
[not found] ` <1414659160.25445.0.camel@belphegor>
0 siblings, 1 reply; 3+ messages in thread
From: poma @ 2014-10-27 23:43 UTC (permalink / raw)
To: Lennart Poettering
Cc: systemd Mailing List, linux-wireless, Network Manager,
Larry Finger
On 28.10.2014 00:15, Lennart Poettering wrote:
> On Mon, 27.10.14 23:43, poma (pomidorabelisima@gmail.com) wrote:
>
>> but is there a better way to do it?
>
> This appears to be a kernel driver bug. Please report this issue
> against the kernel driver in question, systemd is not the right place
> to work around that.
>
> Lennart
>
It's not a bug, it's a feature, just as true for the systemd. :)
Given the condition of the entire Linux Wireless LAN stack this can go actually.
poma
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Kernel module(r8712u) reload - suspend/resume - systemd
[not found] ` <1414659160.25445.0.camel@belphegor>
@ 2014-10-30 9:29 ` poma
0 siblings, 0 replies; 3+ messages in thread
From: poma @ 2014-10-30 9:29 UTC (permalink / raw)
To: Lubomir Rintel, Larry Finger, Florian Schilhabel
Cc: networkmanager-list@gnome.org, linux-wireless
On 30.10.2014 09:52, Lubomir Rintel wrote:
>
> On Tue, 2014-10-28 at 00:43 +0100, poma wrote:
>> On 28.10.2014 00:15, Lennart Poettering wrote:
>>> On Mon, 27.10.14 23:43, poma (pomidorabelisima@gmail.com) wrote:
>>>
>>>> but is there a better way to do it?
>>>
>>> This appears to be a kernel driver bug. Please report this issue
>>> against the kernel driver in question, systemd is not the right place
>>> to work around that.
>>>
>>> Lennart
>>>
>>
>> It's not a bug, it's a feature, just as true for the systemd. :)
>> Given the condition of the entire Linux Wireless LAN stack this can go actually.
>
> Correct.
>
> Moreover the driver is actually only in the staging/ ("crap") tree which
> means it has known serious quality issues and needs work. You may want
> to forward your original bug report to Larry & Florian. See [1].
>
> [1] https://github.com/torvalds/linux/blob/master/drivers/staging/rtl8712/TODO
>
> Lastly, please do _NOT_ cross-post to multiple unrelated mailing lists.
> The discussion then gets disconnected.
>
> Regards,
> Lubo
>
>
Thanks Lubo.
[1]
TODO:
- merge Realtek's bugfixes and new features into the driver
- switch to use LIB80211
- switch to use MAC80211
- checkpatch.pl fixes - only a few remain
...
Guys, is it gonna happen?
poma
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2014-10-30 9:30 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-10-27 22:43 Kernel module(r8712u) reload - suspend/resume - systemd poma
[not found] ` <20141027231512.GF17084@gardel-login>
2014-10-27 23:43 ` poma
[not found] ` <1414659160.25445.0.camel@belphegor>
2014-10-30 9:29 ` poma
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).