With any luck this will be resolved in the September update
Sam
With any luck this will be resolved in the September update
Sam
I can see the same issue also after September update
(Dmesg http://paste.osmc.io/emovebudol)
Full logs http://paste.osmc.io/decadipija
I am not sure what the issue could be then. It must be an upstream kernel bug.
Are there any downsides of getting these GPIO messages in the log ? Like extra memory consumption/exhaustionā¦ also does it affect filesystem (increases usage size via files/logs) ?
To enjoy the most amount of annoyance possible from this bug, try removing āquietā from /boot/cmdline.txt.
All of your terminals will be filled up with garbage in no time!
SMC: Open Source Media Center lilboy tty4
**lilboy login:** [ 1541.103019] GPIO_IN=08
[ 1541.103090] @@@@- #2 rtw_ps_processor==> rfstate:rf_on
[ 1543.103030] GPIO_IN=08
[ 1543.103093] @@@@- #2 rtw_ps_processor==> rfstate:rf_on
[ 1545.103027] GPIO_IN=08
[ 1545.103091] @@@@- #2 rtw_ps_processor==> rfstate:rf_on
[ 1547.103048] GPIO_IN=08
[ 1547.103111] @@@@- #2 rtw_ps_processor==> rfstate:rf_on
[ 1549.103051] GPIO_IN=08
[ 1549.103109] @@@@- #2 rtw_ps_processor==> rfstate:rf_on
[ 1551.103050] GPIO_IN=08
[ 1551.103111] @@@@- #2 rtw_ps_processor==> rfstate:rf_on
[ 1553.103058] GPIO_IN=08
[ 1553.103116] @@@@- #2 rtw_ps_processor==> rfstate:rf_on
[ 1555.103012] GPIO_IN=08
[ 1555.103079] @@@@- #2 rtw_ps_processor==> rfstate:rf_on
[ 1557.103022] GPIO_IN=08
[ 1557.106445] @@@@- #2 rtw_ps_processor==> rfstate:rf_on
This doesnāt happen in the Jessie or Wheezy Raspbian images. I overwrote my only SD card to install OSMC or Iād compare modules and what-not.
The first instance of this error in dmesg appears here:
9.076217] Set SSID under fw_state=0x00000008
[ 9.076241] <=rtw_wx_set_essid, ret 0
[ 9.163190] [rtw_wx_set_pmkid] IW_PMKSA_FLUSH!
[ 10.238141] survey done event(26) band:0 for wlan0
[ 10.272848] rtw_select_and_join_from_scanned_queue: return _FAIL(candidate == NULL)
[ 10.304811] try_to_join, but select scanning queue fail, to_roaming:0
[ 10.713282] GPIO_IN=08
**[ 10.746603] @@@@- #2 rtw_ps_processor==> rfstate:rf_on**
**[ 11.114813] wpa_set_auth_algs, AUTH_ALG_OPEN_SYSTEM**
[ 11.147536] set_mode = IW_MODE_INFRA
I imagine the problem is coming from this guy:
modinfo 8192cu
filename: /lib/modules/4.2.1-1-osmc/kernel/drivers/net/wireless/8192cu.ko
version: v4.0.2_9000.20130911
author: Realtek Semiconductor Corp.
description: Realtek Wireless Lan Driver
It seems so strange that a GPIO message is always accompanied by a rtw_ps_processor messageā¦
It looks like they left some debugging messages in this driver. Was it compiled with debug messaging enabled or something?
The GPIO line is happening here:
And the other entry is happening here:
Looks like it tries this power check stuff every 2 seconds:
/drivers/staging/rtl8188eu/include/rtw_pwrctrl.h
#define RTW_PWR_STATE_CHK_INTERVAL 2000
So that explains why weāre getting flooded with these messages.
lsusb output:
Bus 001 Device 004: ID 7392:7811 Edimax Technology Co., Ltd EW-7811Un 802.11n Wireless Adapter [Realtek RTL8188CUS]
Iād try setting this to ānā next time you build the osmc wifi modules.
config RTLWIFI_DEBUG
bool āDebugging output for rtlwifi driver familyā
depends on RTLWIFI
default y
āhelpā
To use the module option that sets the dynamic-debugging level for,
the front-end driver, this parameter must be āYā. For memory-limited
systems, choose āNā. If in doubt, choose āYā.
(Sorry - had to split this into 2 messages because I wasnāt allowed multiple links in a post)
Hi
Thanks for the insight
I will check the kernel configuration and check whether debugging is indeed enabled. Please keep in mind that the RTL8192CU driver is not built in-tree, so this kernel configuration option shouldnāt make a difference. Weāve been building 8192CU out of tree since around March, so this change may have been introduced by the addition of power-pin detection. I will still need to work out why itās affecting both in-tree (8188EU) and out of tree (8192cu / 8812au) devices.
Sam
Linux osmc 4.2.3-2-osmc #1 SMP PREEMPT Mon Oct 12 01:58:40 UTC 2015 armv7l GNU/Linux
Bus 001 Device 004: ID 2001:3308 D-Link Corp. DWA-121 802.11n Wireless N 150 Pico Adapter [Realtek RTL8188CUS]
Setting interface down:
ip link set wlan0 down
is not enough. Spamming messages continue:
Oct 25 17:39:19 osmc kernel: @@@@- #2 rtw_ps_processor==> rfstate:rf_on
Oct 25 17:39:21 osmc kernel: GPIO_IN=08
Removing the 8192cu module creates silence:
rmmod 8192cu
but then one canāt use that interface then
Cheers,
ā
Cristian
This was not fixed in the October 25th update.
If youāre building these modules out of tree, then you probably need to disable that debugging in the makefile for the module or something like that. It must ignore the kernel config.
Hi Bryan,
I never said it was fixed in the October update. I still havenāt had time to look at this thoroughly yet, but whatās noteworthy is that is that users have reported that in tree modules are also affected. We donāt have a persistent journal, so this will not degrade performance at all.
Iāll address this when I get some time and refresh WiFi drivers for OSMC. i certainly see the RT_TRACE pr_info calls but not the reason this has suddenly changed. If you can spot anything in our repo that would be helpful.
Sam
I think this is caused by power pin detection.
Would anyone like to try a newer kernel with CONFIG_HW_PWRP=n?. Although, with that said 8188CUS is built in-tree, so Iām not sure if these symbols are being redefined or what exactly is causing thisā¦
Sam
@sam_nazarko Iāll gladly do some tests for you. However, Iām out of the country for a couple of days. Wonāt be able to test before 22NOV2015.
If thatās not a problem for you, just let me know how I can be of assistance.
Sounds good.
deb http://apt.osmc.tv jessie main
to deb http:/apt.osmc.tv jessie-devel main
sudo apt-get update
sudo apt-get install rbp1-kernel-osmc
or sudo apt-get install rbp2-kernel-osmc
Sam
@sam_nazarko Hi, Just tried the new kernel as you suggested and the messages have stopped. Thank you
Thanks for confirming!
Sam
@sam_nazarko All thanks to you for fixing this issue as itās been irritating me since September and thought it was probably affecting the performance of my kodi box too
@sam_nazarko : Iāve tested with various dongles. I had to reinstall from the 01NOV2015 release of OSMC. Currently, I canāt reproduce the problem.
The odd thing is though that using the OSMC shop dongle now it is recognised as an Ralink dongle while previously (september) the same dongle was detected as Realtek. This confuses me a bit.
But given the fact things are up and running nicely Iām guessing it was all part of the problem.
Closing this issue. Feel free to re-open if needed.