Gentoo Archives: gentoo-user

From: Mick <michaelkintzios@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] RTL8192CU
Date: Sun, 22 Mar 2015 10:26:21
Message-Id: 13340043.fcPFpTpKDM@aspire
In Reply to: Re: [gentoo-user] RTL8192CU by German
1 On Sunday 22 Mar 2015 05:19:41 German wrote:
2 > On Sun, 22 Mar 2015 09:01:03 +0000
3 > Mick <michaelkintzios@×××××.com> wrote:
4
5 > > In addidion, use modinfo to find out what parameters the particular module
6 > > has and add these when you modprobe to switch off power management -
7 > > which on buggy drivers tends to power down the card.
8 >
9 > Where do I have to use "modinfo". Can you give an example. From my research,
10 > that is exactly the power management which powers down the buggy drivers,
11 > but I don't know what what are these module options which will prevent to
12 > power the card down.
13
14 I don't have your NIC, but in a laptop I post this in I get:
15 =========================================
16 $ modinfo iwlwifi
17 filename: /lib/modules/3.18.7-
18 gentoo/kernel/drivers/net/wireless/iwlwifi/iwlwifi.ko.gz
19 license: GPL
20 author: Copyright(c) 2003- 2014 Intel Corporation
21 <ilw@×××××××××××.com>
22 version: in-tree:
23 description: Intel(R) Wireless WiFi driver for Linux
24 firmware: iwlwifi-100-5.ucode
25 firmware: iwlwifi-1000-5.ucode
26 firmware: iwlwifi-135-6.ucode
27 firmware: iwlwifi-105-6.ucode
28 firmware: iwlwifi-2030-6.ucode
29 firmware: iwlwifi-2000-6.ucode
30 firmware: iwlwifi-5150-2.ucode
31 firmware: iwlwifi-5000-5.ucode
32 firmware: iwlwifi-6000g2b-6.ucode
33 firmware: iwlwifi-6000g2a-5.ucode
34 firmware: iwlwifi-6050-5.ucode
35 firmware: iwlwifi-6000-4.ucode
36 srcversion: FDA022BCC86979326790D21
37 alias: pci:v00008086d00000892sv*sd00000462bc*sc*i*
38 [snip ...]
39
40 depends:
41 intree: Y
42 vermagic: 3.18.7-gentoo SMP preempt mod_unload
43 parm: swcrypto:using crypto in software (default 0 [hardware]) (int)
44 parm: 11n_disable:disable 11n functionality, bitmap: 1: full, 2:
45 disable agg TX, 4: disable agg RX, 8 enable agg TX (uint)
46 parm: amsdu_size_8K:enable 8K amsdu size (default 0) (int)
47 parm: fw_restart:restart firmware in case of error (default true)
48 (bool)
49 parm: antenna_coupling:specify antenna coupling in dB (default: 0
50 dB) (int)
51 parm: wd_disable:Disable stuck queue watchdog timer 0=system
52 default, 1=disable (default: 1) (int)
53 parm: nvm_file:NVM file name (charp)
54 parm: uapsd_disable:disable U-APSD functionality (default: Y) (bool)
55 parm: bt_coex_active:enable wifi/bt co-exist (default: enable)
56 (bool)
57 parm: led_mode:0=system default, 1=On(RF On)/Off(RF Off),
58 2=blinking, 3=Off (default: 0) (int)
59 parm: power_save:enable WiFi power management (default: disable)
60 (bool)
61 parm: power_level:default power save level (range from 1 - 5,
62 default: 1) (int)
63 parm: fw_monitor:firmware monitor - to debug FW (default: false -
64 needs lots of memory) (bool)
65 =========================================
66
67 So in my card I have: "parm: power_save:enable WiFi power management" which
68 is by default disabled. If I wanted to enable this parameter I would need to
69 use a boolean term, e.g. 'true', or 'on', or '1', or 'enable'. Yours would be
70 similar, but the exact parameter would be revealed when you run 'modinfo
71 <your_module_name>'
72
73 Then call this parameter when you modprobe the module. For example:
74
75 modprobe -r <your_module_name>
76 modprobe -v <your_module_name> power_level=0
77
78 Look at dmesg or syslog to see the result of your incantantion.
79
80 If this solves your problem you can permanently define such a parameter in
81 your /etc/conf.d/modules.
82
83 --
84 Regards,
85 Mick

Replies

Subject Author
Re: [gentoo-user] RTL8192CU German <gentgerman@×××××.com>