注册 登录  
 加关注
查看详情
   显示下一条  |  关闭
温馨提示!由于新浪微博认证机制调整,您的新浪微博帐号绑定已过期,请重新绑定!立即重新绑定新浪微博》  |  关闭

jasy.ice 的小房子

iceplayer gtk linux c

 
 
 

日志

 
 

关于关掉linux(ubuntu)的无线(摄像头)硬件(功能)  

2009-12-19 19:43:16|  分类: Linux |  标签: |举报 |字号 订阅

  下载LOFTER 我的照片书  |
>——今天有同学问我如何关掉笔记本上的linux的无线上网功能以节省电量(不连网时,灯却是亮的仍然耗电)
         他说他在网上搜索了半天都找不到方法,,,
         那就把方法贴出供人搜索吧。

加载模块:
>——man insmod:
INSMOD(8)                                                            INSMOD(8)

NAME
       insmod - simple program to insert a module into the Linux Kernel

SYNOPSIS
       insmod [ filename ]  [ module options... ]

DESCRIPTION
       insmod  is a trivial program to insert a module into the kernel: if the
       filename is a hyphen, the module is taken  from  standard  input.  Most
       users will want to use modprobe(8) instead, which is more clever.

       Only  the  most  general of error messages are reported: as the work of
       trying to link the module is now done inside the kernel, the dmesg usu‐
       ally gives more information about errors.

COPYRIGHT
       This manual page Copyright 2002, Rusty Russell, IBM Corporation.

SEE ALSO
       modprobe(8), rmmod(8), lsmod(8)

                                  2002-12-27                         INSMOD(8)
卸载模块:
>——man rmmod
RMMOD(8)                                                                                                    RMMOD(8)

NAME
       rmmod - simple program to remove a module from the Linux Kernel

SYNOPSIS
       rmmod [ -f ]  [ -w ]  [ -s ]  [ -v ]  [ modulename ]

DESCRIPTION
       rmmod  is  a trivial program to remove a module from the kernel. Most users will want to use modprobe(8) with
       the -r option instead.

OPTIONS
       -v --verbose
              Print messages about what the program is doing.  Usually rmmod prints messages only if something  goes
              wrong.

       -f --force
              This  option  can  be  extremely dangerous: it has no effect unless CONFIG_MODULE_FORCE_UNLOAD was set
              when the kernel was compiled. With this option, you can remove modules which are being used, or  which
              are not designed to be removed, or have been marked as unsafe (see lsmod(8)).

       -w --wait
              Normally,  rmmod  will refuse to unload modules which are in use. With this option, rmmod will isolate
              the module, and wait until the module is no longer used. Nothing new will be able to use  the  module,
              but it's up to you to make sure the current users eventually finish with it.  See lsmod(8)) for infor‐
              mation on usage counts.

       -s --syslog
              Send errors to syslog instead of standard error.

       -V --version
              Show version of program and exit.

COPYRIGHT
       This manual page Copyright 2002, Rusty Russell, IBM Corporation.

SEE ALSO
       modprobe(8), insmod(8), lsmod(8)

                                                     2002-12-27                                             RMMOD(8)



>——在我电脑里是ath5k模块负责ath(wireless)。具体可看lsmod。
——————————
想卸载的时候:
sudo rmmod ath5k
——————————
想加载的时候:
sudo insmod /lib/modules/2.6.32-8-generic/kernel/drivers/net/wireless/ath/ath5k/ath5k.ko
注:2.6.32-8-generic 是我内核版本~~
——————————
顺便加个摄像头的:
sudo rmmod uvcvideo
sudo insmod /lib/modules/2.6.32-8-generic/kernel/drivers/media/video/uvc/uvcvideo.ko

附:
lsmod
slax@slax:/$ lsmod
Module                  Size  Used by
nls_iso8859_1           3209  0
nls_cp437               4879  0
vfat                    8733  0
fat                    46983  1 vfat
usb_storage            38195  0
aes_i586                7260  2
aes_generic            26791  1 aes_i586
nvidia               9976108  41
binfmt_misc             6419  1
bridge                 43727  0
stp                     1583  1 bridge
bnep                    9268  2
snd_hda_codec_nvhdmi     3714  1
snd_hda_codec_realtek   200623  1
arc4                    1113  2
snd_hda_intel          21050  4
snd_hda_codec          72523  3 snd_hda_codec_nvhdmi,snd_hda_codec_realtek,snd_hda_intel
snd_hwdep               5244  1 snd_hda_codec
snd_pcm_oss            34440  0
ath5k                 120002  0
snd_mixer_oss          14152  1 snd_pcm_oss
mac80211              199293  1 ath5k
snd_pcm                69078  4 snd_hda_intel,snd_hda_codec,snd_pcm_oss
joydev                  8514  0
ath                     7639  1 ath5k
snd_seq_dummy           1298  0
snd_seq_oss            26047  0
snd_seq_midi            4429  0
snd_rawmidi            18604  1 snd_seq_midi
cfg80211              124166  3 ath5k,mac80211,ath
psmouse                60792  0
snd_seq_midi_event      5771  2 snd_seq_oss,snd_seq_midi
serio_raw               3812  0
btusb                  10725  2
snd_seq                45825  6 snd_seq_dummy,snd_seq_oss,snd_seq_midi,snd_seq_midi_event
led_class               2792  1 ath5k
snd_timer              19133  2 snd_pcm,snd_seq
snd_seq_device          5500  5 snd_seq_dummy,snd_seq_oss,snd_seq_midi,snd_rawmidi,snd_seq
uvcvideo               56458  0
videodev               34073  1 uvcvideo
v4l1_compat            13437  2 uvcvideo,videodev
snd                    53200  19 snd_hda_codec_realtek,snd_hda_intel,snd_hda_codec,snd_hwdep,snd_pcm_oss,snd_mixer_oss,snd_pcm,snd_seq_oss,snd_rawmidi,snd_seq,snd_timer,snd_seq_device
lp                      6964  0
soundcore               6428  1 snd
snd_page_alloc          7204  2 snd_hda_intel,snd_pcm
parport                32027  1 lp
reiserfs              221828  1
vesafb                  3502  0
fbcon                  34750  71
tileblit                1927  1 fbcon
font                    7517  1 fbcon
bitblit                 4603  1 fbcon
softcursor              1181  1 bitblit
usbhid                 35328  0
vga16fb                11085  1
sky2                   39958  0
vgastate                8889  1 vga16fb
intel_agp              23634  0
agpgart                31015  2 nvidia,intel_agp
video                  16555  0
output                  1799  1 video
slax@slax:/$
  评论这张
 
阅读(679)| 评论(2)
推荐 转载

历史上的今天

评论

<#--最新日志,群博日志--> <#--推荐日志--> <#--引用记录--> <#--博主推荐--> <#--随机阅读--> <#--首页推荐--> <#--历史上的今天--> <#--被推荐日志--> <#--上一篇,下一篇--> <#-- 热度 --> <#-- 网易新闻广告 --> <#--右边模块结构--> <#--评论模块结构--> <#--引用模块结构--> <#--博主发起的投票-->
 
 
 
 
 
 
 
 
 
 
 
 
 
 

页脚

网易公司版权所有 ©1997-2018