-
Notifications
You must be signed in to change notification settings - Fork 5.2k
RTL8192CU not possible to change tx-power #2164
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Have you tried |
yes. oot@raspberrypi4:/home/t759f# sudo iwconfig wlan1 power on |
From what I can see the rtl8192cu driver does not handle the SIOCSIWTXPOW ioctl. The |
To complicate things, this card has multiple drivers - can you check which driver is being loaded (using lsmod)? |
I think we ship three drivers for that card -
If you want to try another driver you need to blacklist the current driver:
Then comment out one of the other |
here ist my /etc/modprobe.d ls -al /etc/modprobe.d/ After Blacklist the driver lblacklist-8192cu.conf. |
Interesting - you have four blacklist files for three drivers. Judging by the timestamps, the original Raspbian-sourced blacklists (for rtl819cu and rtl8xxxu) are still active, so if your new blacklist files include 8192cu then no drivers should be loaded automatically. This actually works - you just have to manually modprobe the driver you want. I see that you have closed the issue - it would help other users if you could explain what you have discovered - but if you still need assistance then you'll need to show the contents of each of those files. |
Tho close |
The close was an error. |
|
I hope this will help. |
I don't recognise
That should activate the rtl8xxxu driver - confirm that with an lsmod after reconnecting the dongle. If that doesn't work for you, remove the '#' comment character and put another one in
and try again. |
[ 75.742174] usbcore: registered new interface driver rtl8xxxu
lo Link encap:Lokale Schleife wlan0 Link encap:Ethernet Hardware Adresse b8:27:eb:a0:0c:51 wlan1 Link encap:Ethernet Hardware Adresse 00:0d:81:ac:8b:f8 lo Link encap:Lokale Schleife wlan0 Link encap:Ethernet Hardware Adresse b8:27:eb:a0:0c:51 wlan1 Link encap:Ethernet Hardware Adresse 00:0d:81:ac:8b:f8 cat blacklist-rtl8192cu.conf ^C iwconfig wlan1 root@raspberrypi4:/etc/modprobe.d# iwconfig wlan1 tx-power 10 wlan0 IEEE 802.11 ESSID:"7050" eth0 no wireless extensions. wlan1 IEEE 802.11 ESSID:off/any With the driver rtl8192cu tx-Power is displayed and i can use the "iwconfig wlan1 txpower 10" without an error message, but the command does not change anything. iwconfig wlan0 IEEE 802.11 ESSID:"7050" eth0 no wireless extensions. wlan1 IEEE 802.11 ESSID:off/any root@raspberrypi4:/etc/modprobe.d# iwconfig wlan1 power on This driver is also not the best solution. I must now leave, thank you for your support, i will be back iin 2 Days. with regards |
Hmmm, I'd say none of the drivers supports any user control of TX power - they just set it based on channel number and regulatory domain. You either need to try hacking the driver or find another device with the required capability. Either way, it isn't a Pi-specific problem. |
Thank you Pelwell, |
I can't recommend a device because I haven't tested external WiFi dongles - sorry - but there is a page listing WiFi dongles supported on Raspberry Pi and some of their features here: http://elinux.org/RPi_USB_Wi-Fi_Adapters |
years later I ran into the same issue with the onboard wifi for a pi v 4. Turned out the issue I had was with iwconfig. I was able to fix it, and thought I would share. Power Status
Failure using iwconfig to set power off.
Solution - using iw instead of iwconfig
|
try : iw wlan0 set txpower fixed 3000 |
Nirfa514 Thank you ! |
Hello,
i have installed Linux raspberrypi4 4.9.35-v7+ #1014 SMP Fri Jun 30 14:47:43 BST 2017 armv7l GNU/Linux
and will use the raspberry as a hotspot.
I am not be able to change tx-power or power-management parameter on wlan1(RTL8192CU).
iwconfig wlan1 txpower 10
Error for wireless request "Set Tx Power" (8B26) :
SET failed on device wlan1 ; Operation not permitted.
or
iwconfig wlan1 power on
Error for wireless request "Set Power Management" (8B2C) :
SET failed on device wlan1 ; Operation not permitted.
iwconfig
lo no wireless extensions.
wlan0 IEEE 802.11 ESSID:"7050"
Mode:Managed Frequency:2.462 GHz Access Point: C4:6E:1F:3A:87:82
Bit Rate=14.4 Mb/s Tx-Power=31 dBm
Retry short limit:7 RTS thr:off Fragment thr:off
Encryption key:off
Power Management:on
Link Quality=38/70 Signal level=-72 dBm
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:36 Invalid misc:0 Missed beacon:0
eth0 no wireless extensions.
wlan1 unassociated Nickname:"WIFI@REALTEK"
Mode:Auto Frequency=2.412 GHz Access Point: Not-Associated
Sensitivity:0/0
Retry:off RTS thr:off Fragment thr:off
Encryption key:off
Power Management:off
Link Quality:0 Signal level:0 Noise level:0
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0
Bus 001 Device 007: ID 046d:0991 Logitech, Inc. QuickCam Pro for Notebooks
Bus 001 Device 006: ID 0bda:8178 Realtek Semiconductor Corp. RTL8192CU 802.11n WLAN Adapter
Bus 001 Device 005: ID 046d:082b Logitech, Inc.
Bus 001 Device 004: ID 04fa:2490 Dallas Semiconductor DS1490F 2-in-1 Fob, 1-Wire adapter
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp. SMSC9512/9514 Fast Ethernet Adapter
Bus 001 Device 002: ID 0424:9514 Standard Microsystems Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
with regards
Markus
The text was updated successfully, but these errors were encountered: