You are not logged in.

#1 2013-03-08 22:53:59

kriz
Member
Registered: 2009-06-29
Posts: 96

[dirty hackd]some unnecessary modules loaded at startup

hi
i just recognized that i have some modules loaded for which there is no hardware plugged or present like bluetooth, noveau and webcam driver

lspci -v

00:00.0 Host bridge: Intel Corporation Mobile 945GM/PM/GMS, 943/940GML and 945GT Express Memory Controller Hub (rev 03)
        Subsystem: Sony Corporation Device 820f
        Flags: bus master, fast devsel, latency 0
        Capabilities: <access denied>
        Kernel driver in use: agpgart-intel

00:02.0 VGA compatible controller: Intel Corporation Mobile 945GM/GMS, 943/940GML Express Integrated Graphics Controller (rev 03) (prog-if 00 [VGA controller])
        Subsystem: Sony Corporation Device 820f
        Flags: bus master, fast devsel, latency 0, IRQ 16
        Memory at d0100000 (32-bit, non-prefetchable) [size=512K]
        I/O ports at 1800 [size=8]
        Memory at b0000000 (32-bit, prefetchable) [size=256M]
        Memory at d0200000 (32-bit, non-prefetchable) [size=256K]
        Expansion ROM at <unassigned> [disabled]
        Capabilities: <access denied>
        Kernel driver in use: i915

00:02.1 Display controller: Intel Corporation Mobile 945GM/GMS/GME, 943/940GML Express Integrated Graphics Controller (rev 03)
        Subsystem: Sony Corporation Device 820f
        Flags: bus master, fast devsel, latency 0
        Memory at d0180000 (32-bit, non-prefetchable) [size=512K]
        Capabilities: <access denied>

00:1b.0 Audio device: Intel Corporation NM10/ICH7 Family High Definition Audio Controller (rev 02)
        Subsystem: Sony Corporation Device 820f
        Flags: bus master, fast devsel, latency 0, IRQ 44
        Memory at d0240000 (64-bit, non-prefetchable) [size=16K]
        Capabilities: <access denied>
        Kernel driver in use: snd_hda_intel

00:1c.0 PCI bridge: Intel Corporation NM10/ICH7 Family PCI Express Port 1 (rev 02) (prog-if 00 [Normal decode])
        Flags: bus master, fast devsel, latency 0
        Bus: primary=00, secondary=02, subordinate=03, sec-latency=0
        I/O behind bridge: 00002000-00002fff
        Memory behind bridge: c8000000-c9ffffff
        Prefetchable memory behind bridge: 00000000c0000000-00000000c1ffffff
        Capabilities: <access denied>
        Kernel driver in use: pcieport

00:1c.1 PCI bridge: Intel Corporation NM10/ICH7 Family PCI Express Port 2 (rev 02) (prog-if 00 [Normal decode])
        Flags: bus master, fast devsel, latency 0
        Bus: primary=00, secondary=04, subordinate=05, sec-latency=0
        I/O behind bridge: 00003000-00003fff
        Memory behind bridge: ca000000-cbffffff
        Prefetchable memory behind bridge: 00000000c2000000-00000000c3ffffff
        Capabilities: <access denied>
        Kernel driver in use: pcieport

00:1c.2 PCI bridge: Intel Corporation NM10/ICH7 Family PCI Express Port 3 (rev 02) (prog-if 00 [Normal decode])
        Flags: bus master, fast devsel, latency 0
        Bus: primary=00, secondary=06, subordinate=07, sec-latency=0
        I/O behind bridge: 00004000-00004fff
        Memory behind bridge: cc000000-cdffffff
        Prefetchable memory behind bridge: 00000000c4000000-00000000c5ffffff
        Capabilities: <access denied>
        Kernel driver in use: pcieport

00:1c.3 PCI bridge: Intel Corporation NM10/ICH7 Family PCI Express Port 4 (rev 02) (prog-if 00 [Normal decode])
        Flags: bus master, fast devsel, latency 0
        Bus: primary=00, secondary=08, subordinate=09, sec-latency=0
        I/O behind bridge: 00005000-00005fff
        Memory behind bridge: ce000000-cfffffff
        Prefetchable memory behind bridge: 00000000c6000000-00000000c7ffffff
        Capabilities: <access denied>
        Kernel driver in use: pcieport

00:1d.0 USB controller: Intel Corporation NM10/ICH7 Family USB UHCI Controller #1 (rev 02) (prog-if 00 [UHCI])
        Subsystem: Sony Corporation Device 820f
        Flags: bus master, medium devsel, latency 0, IRQ 23
        I/O ports at 1820 [size=32]
        Kernel driver in use: uhci_hcd

00:1d.1 USB controller: Intel Corporation NM10/ICH7 Family USB UHCI Controller #2 (rev 02) (prog-if 00 [UHCI])
        Subsystem: Sony Corporation Device 820f
        Flags: bus master, medium devsel, latency 0, IRQ 17
        I/O ports at 1840 [size=32]
        Kernel driver in use: uhci_hcd

00:1d.2 USB controller: Intel Corporation NM10/ICH7 Family USB UHCI Controller #3 (rev 02) (prog-if 00 [UHCI])
        Subsystem: Sony Corporation Device 820f
        Flags: bus master, medium devsel, latency 0, IRQ 18
        I/O ports at 1860 [size=32]
        Kernel driver in use: uhci_hcd

00:1d.3 USB controller: Intel Corporation NM10/ICH7 Family USB UHCI Controller #4 (rev 02) (prog-if 00 [UHCI])
        Subsystem: Sony Corporation Device 820f
        Flags: bus master, medium devsel, latency 0, IRQ 16
        I/O ports at 1880 [size=32]
        Kernel driver in use: uhci_hcd

00:1d.7 USB controller: Intel Corporation NM10/ICH7 Family USB2 EHCI Controller (rev 02) (prog-if 20 [EHCI])
        Subsystem: Sony Corporation Device 820f
        Flags: bus master, medium devsel, latency 0, IRQ 23
        Memory at d0444000 (32-bit, non-prefetchable) [size=1K]
        Capabilities: <access denied>
        Kernel driver in use: ehci_hcd

00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev e2) (prog-if 01 [Subtractive decode])
        Flags: bus master, fast devsel, latency 0
        Bus: primary=00, secondary=0a, subordinate=0e, sec-latency=32
        I/O behind bridge: 00006000-00006fff
        Memory behind bridge: d0000000-d00fffff
        Prefetchable memory behind bridge: 0000000080000000-0000000083ffffff
        Capabilities: <access denied>

00:1f.0 ISA bridge: Intel Corporation 82801GBM (ICH7-M) LPC Interface Bridge (rev 02)
        Subsystem: Sony Corporation Device 820f
        Flags: bus master, medium devsel, latency 0
        Capabilities: <access denied>
        Kernel driver in use: lpc_ich

00:1f.1 IDE interface: Intel Corporation 82801G (ICH7 Family) IDE Controller (rev 02) (prog-if 8a [Master SecP PriP])
        Subsystem: Sony Corporation Device 820f
        Flags: bus master, medium devsel, latency 0, IRQ 18
        I/O ports at 01f0 [size=8]
        I/O ports at 03f4
        I/O ports at 0170 [size=8]
        I/O ports at 0374
        I/O ports at 1810 [size=16]
        Kernel driver in use: ata_piix

00:1f.2 IDE interface: Intel Corporation 82801GBM/GHM (ICH7-M Family) SATA Controller [IDE mode] (rev 02) (prog-if 8f [Master SecP SecO PriP PriO])
        Subsystem: Sony Corporation Device 820f
        Flags: bus master, 66MHz, medium devsel, latency 0, IRQ 19
        I/O ports at 18d0 [size=8]
        I/O ports at 18c4 [size=4]
        I/O ports at 18c8 [size=8]
        I/O ports at 18c0 [size=4]
        I/O ports at 18b0 [size=16]
        Memory at d0444400 (32-bit, non-prefetchable) [size=1K]
        Capabilities: <access denied>
        Kernel driver in use: ata_piix

00:1f.3 SMBus: Intel Corporation NM10/ICH7 Family SMBus Controller (rev 02)
        Subsystem: Sony Corporation Device 820f
        Flags: medium devsel, IRQ 19
        I/O ports at 18e0 [size=32]
        Kernel driver in use: i801_smbus

02:00.0 Ethernet controller: Marvell Technology Group Ltd. 88E8036 PCI-E Fast Ethernet Controller (rev 16)
        Subsystem: Sony Corporation Device 820f
        Flags: bus master, fast devsel, latency 0, IRQ 45
        Memory at c8000000 (64-bit, non-prefetchable) [size=16K]
        I/O ports at 2000 [size=256]
        Capabilities: <access denied>
        Kernel driver in use: sky2

06:00.0 Network controller: Intel Corporation PRO/Wireless 3945ABG [Golan] Network Connection (rev 02)
        Subsystem: Intel Corporation Device 1050
        Flags: bus master, fast devsel, latency 0, IRQ 46
        Memory at cc000000 (32-bit, non-prefetchable) [size=4K]
        Capabilities: <access denied>
        Kernel driver in use: iwl3945

0a:03.0 CardBus bridge: Texas Instruments PCIxx12 Cardbus Controller
        Subsystem: Sony Corporation Device 820f
        Flags: bus master, medium devsel, latency 168, IRQ 16
        Memory at 84000000 (32-bit, non-prefetchable) [size=4K]
        Bus: primary=0a, secondary=0b, subordinate=0e, sec-latency=176
        Memory window 0: 80000000-83ffffff (prefetchable)
        Memory window 1: 88000000-8bffffff
        I/O window 0: 00006000-000060ff
        I/O window 1: 00006400-000064ff
        16-bit legacy interface ports at 0001
        Kernel driver in use: yenta_cardbus

0a:03.1 FireWire (IEEE 1394): Texas Instruments PCIxx12 OHCI Compliant IEEE 1394 Host Controller (prog-if 10 [OHCI])
        Subsystem: Sony Corporation Device 820f
        Flags: bus master, medium devsel, latency 64, IRQ 16
        Memory at d0005000 (32-bit, non-prefetchable) [size=2K]
        Memory at d0000000 (32-bit, non-prefetchable) [size=16K]
        Capabilities: <access denied>
        Kernel driver in use: firewire_ohci

0a:03.2 Mass storage controller: Texas Instruments 5-in-1 Multimedia Card Reader (SD/MMC/MS/MS PRO/xD)
        Subsystem: Sony Corporation Device 820f
        Flags: bus master, medium devsel, latency 64, IRQ 17
        Memory at d0004000 (32-bit, non-prefetchable) [size=4K]
        Capabilities: <access denied>
        Kernel driver in use: tifm_7xx1

lsusb

Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

lsmod

Module                  Size  Used by
btusb                  14645  0 
bluetooth             269252  1 btusb
nouveau               923929  0 
mxm_wmi                 1468  1 nouveau
wmi                     8380  2 mxm_wmi,nouveau
ttm                    64961  1 nouveau
uvcvideo               73462  0 
videobuf2_vmalloc       2789  1 uvcvideo
videobuf2_memops        2827  1 videobuf2_vmalloc
videobuf2_core         24073  1 uvcvideo
videodev              104777  2 uvcvideo,videobuf2_core
media                  10438  2 uvcvideo,videodev
coretemp                6231  0 
arc4                    2008  2 
iwl3945                54765  0 
iwlegacy               48837  1 iwl3945
phc_intel              14676  0 
i915                  526926  3 
pcmcia                 46261  0 
yenta_socket           32474  0 
pcmcia_rsrc             9210  1 yenta_socket
drm_kms_helper         33007  2 i915,nouveau
mac80211              432338  2 iwl3945,iwlegacy
iTCO_wdt                5288  0 
iTCO_vendor_support     1930  1 iTCO_wdt
cfg80211              179435  3 iwl3945,iwlegacy,mac80211
sony_laptop            38984  0 
drm                   225482  6 ttm,i915,drm_kms_helper,nouveau
i2c_i801               10917  0 
i2c_algo_bit            5392  2 i915,nouveau
kvm                   384721  0 
i2c_core               23076  7 drm,i915,i2c_i801,drm_kms_helper,i2c_algo_bit,nouveau,videodev
intel_agp              10745  1 i915
sky2                   49412  0 
pcmcia_core            14174  3 pcmcia,pcmcia_rsrc,yenta_socket
mperf                   1300  1 phc_intel
processor              27496  3 phc_intel
snd_hda_codec_realtek    61761  1 
psmouse                76176  0 
rfkill                 15997  4 cfg80211,sony_laptop,bluetooth
intel_gtt              15361  3 i915,intel_agp
lpc_ich                11346  0 
microcode              14434  0 
snd_hda_intel          27668  2 
snd_hda_codec         100743  2 snd_hda_codec_realtek,snd_hda_intel
serio_raw               5074  0 
snd_hwdep               6429  1 snd_hda_codec
snd_pcm                77827  2 snd_hda_codec,snd_hda_intel
snd_page_alloc          7427  2 snd_pcm,snd_hda_intel
snd_timer              18935  1 snd_pcm
snd                    60157  10 snd_hda_codec_realtek,snd_hwdep,snd_timer,snd_pcm,snd_hda_codec,snd_hda_intel
soundcore               5443  1 snd
thermal                 8418  0 
battery                 7099  0 
video                  11332  2 i915,nouveau
evdev                  10137  12 
button                  4670  2 i915,nouveau
ac                      2569  0 
uhci_hcd               25101  0 
tifm_7xx1               5194  0 
tifm_core               5018  1 tifm_7xx1
firewire_ohci          32102  0 
firewire_core          53270  1 firewire_ohci
crc_itu_t               1364  1 firewire_core
ehci_hcd               51701  0 
usbcore               174164  4 btusb,uhci_hcd,uvcvideo,ehci_hcd
usb_common               955  1 usbcore
ext4                  447457  3 
jbd2                   78834  1 ext4
crc16                   1360  2 ext4,bluetooth
reiserfs              240326  1 
mbcache                 6027  1 ext4
pata_acpi               3452  0 
sr_mod                 14824  0 
sd_mod                 31067  6 
cdrom                  35521  1 sr_mod
ata_piix               23353  5 
libata                168540  2 pata_acpi,ata_piix
scsi_mod              130423  3 libata,sd_mod,sr_mod

mkinicpio.conf

MODULES="ata_piix pata_acpi libata sd_mod scsi_mod mbcache reiserfs crc16 jbd2 ext4"
BINARIES=""
FILES=""
HOOKS="base udev autodetect modconf block keyboard fsck"

modprobe.conf

#
# /etc/modprobe.d/modprobe.conf
#
options ipv6 disable=1
install ipv6 /bin/false
install joydev /bin/false
blacklist pcspkr

what's wrong?
thanks for help.

Last edited by kriz (2013-03-10 10:50:56)


„Je verdinglichter die Welt, je dichter das Netz, das der Natur überworfen wurde, desto mehr beansprucht ideologisch das Denken, das jenes Netz spinnt, seinerseits Natur, Urerfahrung zu sein." Theodor W. Adorno [aus: Wozu noch Philosopie]

Offline

#2 2013-03-09 00:52:13

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,168

Re: [dirty hackd]some unnecessary modules loaded at startup

Have you installed e.g. the nouveau video drivers?


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

#3 2013-03-09 10:39:41

kriz
Member
Registered: 2009-06-29
Posts: 96

Re: [dirty hackd]some unnecessary modules loaded at startup

no i haven't, bluetooth and webcam either.
i thought it wouldn't be possible to load modules if theres no hardware

Last edited by kriz (2013-03-09 10:41:15)


„Je verdinglichter die Welt, je dichter das Netz, das der Natur überworfen wurde, desto mehr beansprucht ideologisch das Denken, das jenes Netz spinnt, seinerseits Natur, Urerfahrung zu sein." Theodor W. Adorno [aus: Wozu noch Philosopie]

Offline

#4 2013-03-09 23:35:45

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,168

Re: [dirty hackd]some unnecessary modules loaded at startup

I guess you will need to look through the logs to see why (or at least when) those modules are getting loaded and then take it from there.


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

#5 2013-03-10 10:49:27

kriz
Member
Registered: 2009-06-29
Posts: 96

Re: [dirty hackd]some unnecessary modules loaded at startup

just found this in logs, nothing else

... kernel: usbcore: registered new interface driver btusb

so i dirty hack'd it by adding

blacklist nouveau
blacklist mxm_wmi
blacklist wmi
blacklist ttm
blacklist uvcvideo
blacklist videobuf2_vmalloc
blacklist videobuf2_memops
blacklist videobuf2_core
blacklist videodev
blacklist media
blacklist joydev

to /etc/modprobe.d/modprobe.conf

doesn't solve the issue but at least those modules aren't loaded anymore


„Je verdinglichter die Welt, je dichter das Netz, das der Natur überworfen wurde, desto mehr beansprucht ideologisch das Denken, das jenes Netz spinnt, seinerseits Natur, Urerfahrung zu sein." Theodor W. Adorno [aus: Wozu noch Philosopie]

Offline

Board footer

Powered by FluxBB