You are not logged in.

#1 2009-04-02 23:46:11

speed145a
Member
Registered: 2008-05-02
Posts: 60
Website

tons of extra modules being loaded recently Xorg? hid modules

I feel like this is a new thing, but I looked as lsmod and found many hid* modules that I don't need.  I haven't noticed them there before so I'm trying to figure out what is going on. Or perhaps how to avoid loading extra modules?

lsmod output:

Module                  Size  Used by
xt_tcpudp               3408  4 
ipt_REJECT              3472  3 
nf_conntrack_ipv4      15464  2 
nf_defrag_ipv4          2064  1 nf_conntrack_ipv4
xt_state                2288  2 
nf_conntrack           68480  2 nf_conntrack_ipv4,xt_state
iptable_filter          3024  1 
ip_tables              18688  1 iptable_filter
x_tables               20408  4 xt_tcpudp,ipt_REJECT,xt_state,ip_tables
fuse                   64080  2 
hid_pl                  3824  0 
hid_cypress             3120  0 
hid_zpff                3536  0 
hid_gyration            3376  0 
hid_sony                3408  0 
hid_ntrig               2256  0 
hid_samsung             2800  0 
hid_microsoft           4372  0 
hid_tmff                4528  0 
hid_monterey            2736  0 
hid_ezkey               2416  0 
hid_apple               7600  0 
hid_a4tech              3344  0 
hid_logitech           11152  0 
ff_memless              5784  4 hid_pl,hid_zpff,hid_tmff,hid_logitech
hid_cherry              2640  0 
hid_sunplus             2608  0 
hid_petalynx            3344  0 
hid_belkin              2832  0 
hid_chicony             2896  0 
usbhid                 40288  4 hid_pl,hid_zpff,hid_tmff,hid_logitech
hid                    49504  20 hid_pl,hid_cypress,hid_zpff,hid_gyration,hid_sony,hid_ntrig,hid_samsung,hid_microsoft,hid_tmff,hid_monterey,hid_ezkey,hid_apple,hid_a4tech,hid_logitech,hid_cherry,hid_sunplus,hid_petalynx,hid_belkin,hid_chicony,usbhid
amd74xx                 7064  0 
fan                     5240  0 
ide_pci_generic         4660  0 
ide_core              111236  2 amd74xx,ide_pci_generic
cpufreq_powersave       1712  0 
powernow_k8            14516  0 
pata_amd               14260  0 
freq_table              4144  1 powernow_k8
usb_storage           111392  0 
cpufreq_userspace       3732  0 
cpufreq_conservative     7736  2 
snd_hda_codec_nvhdmi     3504  1 
snd_hda_codec_conexant    25232  1 
ohci_hcd               25612  0 
ata_generic             5908  0 
snd_hda_intel          29064  2 
snd_hda_codec          61872  3 snd_hda_codec_nvhdmi,snd_hda_codec_conexant,snd_hda_intel
arc4                    1968  2 
ecb                     3088  2 
snd_hwdep               8536  1 snd_hda_codec
snd_pcm_oss            43392  0 
snd_pcm                81016  3 snd_hda_intel,snd_hda_codec,snd_pcm_oss
snd_timer              22752  1 snd_pcm
snd_page_alloc          9792  2 snd_hda_intel,snd_pcm
snd_mixer_oss          17200  1 snd_pcm_oss
snd                    65480  12 snd_hda_codec_conexant,snd_hda_intel,snd_hda_codec,snd_hwdep,snd_pcm_oss,snd_pcm,snd_timer,snd_mixer_oss
soundcore               7584  1 snd
ath5k                 116852  0 
mac80211              177032  1 ath5k
led_class               4344  1 ath5k
sg                     29632  0 
ehci_hcd               39260  0 
serio_raw               6132  0 
cfg80211               42144  2 ath5k,mac80211
shpchp                 36204  0 
pci_hotplug            30880  1 shpchp
wmi                     7424  0 
pata_acpi               5168  0 
sr_mod                 16804  0 
cdrom                  37928  1 sr_mod
battery                12504  0 
video                  20196  5 
output                  3152  1 video
button                  7312  0 
thermal                18928  0 
processor              44712  2 powernow_k8,thermal
ac                      4984  0 
forcedeth              59808  0 
usbcore               161232  6 hid_sony,usbhid,usb_storage,ohci_hcd,ehci_hcd
evdev                  11616  15 
psmouse                45900  0 
nvidia               8116024  48 
i2c_core               24096  1 nvidia
rtc_cmos               11992  0 
rtc_core               20068  1 rtc_cmos
rtc_lib                 2864  1 rtc_core

I can post other info if needed.


ARCH x86_64 ZEN

Offline

#2 2009-04-03 00:04:39

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,183

Re: tons of extra modules being loaded recently Xorg? hid modules

if you are sure you dont need them, you can simply blacklist them in the MODULES array in rc.conf


Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

#3 2009-04-03 00:14:35

speed145a
Member
Registered: 2008-05-02
Posts: 60
Website

Re: tons of extra modules being loaded recently Xorg? hid modules

any idea why it would suddenly start loading all these extra modules?


ARCH x86_64 ZEN

Offline

#4 2009-04-03 00:18:45

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,183

Re: tons of extra modules being loaded recently Xorg? hid modules

I don't know when you last updated, but the latest hal/xorg doesn't require explicitly loading modules. They are detected and loaded automatically. This could mean that some that you don't need also get loaded.


Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

#5 2009-04-03 12:06:27

Dieter@be
Forum Fellow
From: Belgium
Registered: 2006-11-05
Posts: 2,001
Website

Re: tons of extra modules being loaded recently Xorg? hid modules

heh, funny that all those modules have "required by" counts of 0. so they must be loaded explicitly somewhere.


< Daenyth> and he works prolifically
4 8 15 16 23 42

Offline

#6 2009-04-03 16:30:34

speed145a
Member
Registered: 2008-05-02
Posts: 60
Website

Re: tons of extra modules being loaded recently Xorg? hid modules

Dieter@be wrote:

heh, funny that all those modules have "required by" counts of 0. so they must be loaded explicitly somewhere.

my thought exactly!  perhaps it's in my xorg.conf?

#Section "ServerFlags"
    #Option         "AutoAddDevices" "False"
#EndSection

Section "ServerLayout"
    Identifier     "X.org Configured"
    Screen      0  "Screen0" 0 0
    InputDevice    "Mouse0" "CorePointer"
    InputDevice    "Keyboard0" "CoreKeyboard"
    InputDevice    "SynapticsTouchpad" "SendCoreEvents"
EndSection

Section "Files"
    ModulePath      "/usr/lib/xorg/modules"
    #ModulePath      "/usr/lib64/xorg/modules"
    FontPath        "/usr/share/fonts/misc"
    FontPath        "/usr/share/fonts/100dpi:unscaled"
    FontPath        "/usr/share/fonts/75dpi:unscaled"
    FontPath        "/usr/share/fonts/TTF"
    FontPath        "/usr/share/fonts/Type1"
EndSection

Section "Module"
    #Load           "xtrap"
    Load           "glx"
    Load           "dbe"
    Load           "extmod"
    #Load           "freetype"
    Load           "synaptics"
EndSection

Section "ServerFlags"
    Option         "Xinerama" "0"
EndSection

Section "InputDevice"
    Identifier     "Keyboard0"
    Driver         "kbd"
EndSection

Section "InputDevice"
    Identifier     "Mouse0"
    Driver         "mouse"
    Option         "Protocol" "auto"
    Option         "Device" "/dev/input/mice"
    Option         "ZAxisMapping" "4 5 6 7"
EndSection

Section "InputDevice"

  #Option      "Device"            "/dev/input/mice"
   #Option      "HorizEdgeScroll"   "true"  # enable horizontal scroll zone
   #Option      "VertTwoFingerScroll"   "true"    # vertical scroll anywhere with two fingers
#   Option      "HorizTwoFingerScroll"  "true"    # horizontal scroll anywhere with two fingers
    Identifier     "SynapticsTouchpad"
    Driver         "synaptics"
    Option         "AlwaysCore" "true"  # send events to CorePointer
    Option         "Device" "/dev/psaux"
    Option         "Protocol" "auto-dev"
    Option         "SHMConfig" "true" # configurable at runtime? security risk
    Option         "LeftEdge" "1700"  # x coord left
    Option         "RightEdge" "5300"  # x coord right
    Option         "TopEdge" "1700"  # y coord top
    Option         "BottomEdge" "4200"  # y coord bottom
    Option         "FingerLow" "25"    # pressure below this level triggers release
    Option         "FingerHigh" "30"    # pressure above this level triggers touch
    Option         "MaxTapTime" "180"   # max time in ms for detecting tap
    Option         "VertEdgeScroll" "true"  # enable vertical scroll zone
    Option         "CornerCoasting" "true"  # enable continuous scroll with finger in corner
    Option         "CoastingSpeed" "0.30"  # corner coasting speed
    Option         "VertScrollDelta" "100"   # edge-to-edge scroll distance of the vertical scroll
    Option         "HorizScrollDelta" "100"   # edge-to-edge scroll distance of the horizontal scroll
    Option         "MinSpeed" "0.25"  # speed factor for low pointer movement
    Option         "MaxSpeed" "0.60"  # maximum speed factor for fast pointer movement
    Option         "AccelFactor" "0.0030"    # acceleration factor for normal pointer movements
    Option         "TapButton1" "1"
EndSection

Section "Monitor"
    Identifier     "Monitor0"
    VendorName     "Unknown"
    ModelName      "SAMSUNG"
    HorizSync       30.0 - 61.0
    VertRefresh     60.0 - 75.0
EndSection

Section "Monitor"
    Identifier     "Monitor1"
    VendorName     "Unknown"
    ModelName      "SAMSUNG"
    HorizSync       30.0 - 61.0
    VertRefresh     60.0 - 75.0
EndSection

Section "Device"
    Identifier     "Card0"
    Driver         "nvidia"
    VendorName     "NVIDIA Corporation"
    Option         "NvAGP" "1"
    BoardName      "GeForce 8200M G"
    Option         "NoLogo" "True"
EndSection

#Section "Device"
    #Identifier     "Card1"
    #Driver         "nvidia"
    #VendorName     "NVIDIA Corporation"
    #Option         "NvAGP" "1"
    #BoardName      "GeForce 8200M G"
    #Option         "NoLogo" "True"
    #BusID          "PCI:2:0:0"
    #Screen          1
#EndSection

Section "Screen"

    Identifier     "Screen0"
    Device         "Card0"
    Monitor        "Monitor0"
    DefaultDepth    24
    Option         "TwinView" "0"
    Option         "TwinViewXineramaInfoOrder" "DFP-0"
    Option         "metamodes" "CRT: nvidia-auto-select +1280+0, DFP: nvidia-auto-select +0+0"
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection


Section "Screen"
    Identifier     "Screen1"
    Device         "Card0"
    Monitor        "Monitor1"
    DefaultDepth    24
    Option         "TwinView" "0"
    Option         "TwinViewXineramaInfoOrder" "CRT-0"
    Option         "metamodes" "CRT: nvidia-auto-select +0+0"
    SubSection     "Display"
        Depth       24
    EndSubSection
EndSection
#Section "Screen"
    #Identifier     "Screen1"
    #Device         "Card1"
    #Monitor        "Monitor1"
    #DefaultDepth    24
    #Option         "TwinView" "0"
    #Option         "TwinViewXineramaInfoOrder" "CRT-0"
    #Option         "metamodes" "CRT: nvidia-auto-select +0+0"
    #SubSection     "Display"
        #Depth       24
    #EndSubSection
#EndSection

ARCH x86_64 ZEN

Offline

#7 2009-04-03 18:21:54

broch
Banned
From: L.A. California
Registered: 2006-11-13
Posts: 975

Re: tons of extra modules being loaded recently Xorg? hid modules

this is new stuff in the kernel (HID -> human interface devices), simply get rid of these in the kernel config
HID Devices ->
---------------------->Special HID Drivers

you can kill all of the special (check if there is something you may need though), however you need to leave stuff in the main branch of HID (you can customize it if you know what you do)

Offline

#8 2009-04-03 20:50:37

speed145a
Member
Registered: 2008-05-02
Posts: 60
Website

Re: tons of extra modules being loaded recently Xorg? hid modules

broch wrote:

this is new stuff in the kernel

assuming we are talking about the *29 kernel, then that makes sense.  thanks!

is it a problem with my initscripts?  should i simply expect extra modules to be loaded?


ARCH x86_64 ZEN

Offline

#9 2009-04-04 00:40:32

broch
Banned
From: L.A. California
Registered: 2006-11-13
Posts: 975

Re: tons of extra modules being loaded recently Xorg? hid modules

yes, this is 2.6.29
I believe that extra HID drivers appeared somewhere in 2.6.28.x (or earlier). Arch kernel has these enabled.

No this has nothing to do with initscripts. You can either blacklist these or remove from kernel. I removed all special HID drivers from custom kernel as I don't have any of listed devices.

Offline

#10 2009-04-04 09:17:21

Dieter@be
Forum Fellow
From: Belgium
Registered: 2006-11-05
Posts: 2,001
Website

Re: tons of extra modules being loaded recently Xorg? hid modules

But the question is : _why_ are they loaded.
No need to customize/recompile kernel.  the hid things are built as modules for a reason.  they just shouldn't get loaded.


< Daenyth> and he works prolifically
4 8 15 16 23 42

Offline

#11 2009-04-04 14:46:59

broch
Banned
From: L.A. California
Registered: 2006-11-13
Posts: 975

Re: tons of extra modules being loaded recently Xorg? hid modules

Dieter@be wrote:

But the question is : _why_ are they loaded.
No need to customize/recompile kernel.  the hid things are built as modules for a reason.  they just shouldn't get loaded.

Default Arch kernel loads a lot of useless stuff from specific user having whatever hardware point of view. This may seem to be excessive for some but it assures universality of Arch kernel. HID devices are loaded as are modules for USB, Firewire, SD, MMC and so on. You do not pay attention to these because either you got used to them or you are using these (and if you don't need them then you blacklist devices, this also indicates that by default these are loaded).
If module is not loaded when system starts device will not be recognized.

Kill all USB related stuff and then insert USB pen. Nothing will happen. You would have to load modules first, to make kernel recognize USB device. Same idea is related to any other device.

Because I build custom kernel, so I am simply removing these from kernel config, but you can blacklist these.

Last edited by broch (2009-04-04 14:48:52)

Offline

Board footer

Powered by FluxBB