1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Power saving ..

Discussion in 'Mobile Computing' started by loop, Aug 18, 2010.

  1. loop

    loop New Member

    Messages:
    52
    Thanks Received:
    3
    Is it possible to power down the PC Card slots on a Thinkpad (mine is a T42)

    Code:
    # lspci -lv -c
    cbb0@pci0:2:0:0:        class=0x060700 card=0x05521014 chip=0xac46104c rev=0x01 hdr=0x02
        vendor     = 'Texas Instruments (TI)'
        device     = 'PCCard CardBus Controller (PCI4520)'
        class      = bridge
        subclass   = PCI-CardBus
        cap 01[a0] = powerspec 2  supports D0 D1 D2 D3  current D0
    cbb1@pci0:2:0:1:        class=0x060700 card=0x05521014 chip=0xac46104c rev=0x01 hdr=0x02
        vendor     = 'Texas Instruments (TI)'
        device     = 'PCCard CardBus Controller (PCI4520)'
        class      = bridge
        subclass   = PCI-CardBus
        cap 01[a0] = powerspec 2  supports D0 D1 D2 D3  current D0
    


    I'd love to be able to get them to D3, especially since I very rarely use them.
     
  2. vermaden

    vermaden Well-Known Member

    Messages:
    2,361
    Thanks Received:
    677
    @loop

    Add hw.pci.do_power_nodriver=3 to the /boot/loader.conf file, then recompile kernel WITHOUT cbb(4) driver in config file.

    With that option all devices that do not have driver attached will not draw power, and everytime You would need Your PCCard slot You will only have to load a module.

    ... btw, Your command should look like pciconf -l -v rather then like lspci -lv -c :p
     
  3. loop

    loop New Member

    Messages:
    52
    Thanks Received:
    3
    I've done that now - should I see any difference in the # pciconf -lv -c output?

    Code:
    none2@pci0:2:0:0:       class=0x060700 card=0x05521014 chip=0xac46104c rev=0x01 hdr=0x02
        vendor     = 'Texas Instruments (TI)'
        device     = 'PCCard CardBus Controller (PCI4520)'
        class      = bridge
        subclass   = PCI-CardBus
        cap 01[a0] = powerspec 2  supports D0 D1 D2 D3  current D0
    none3@pci0:2:0:1:       class=0x060700 card=0x05521014 chip=0xac46104c rev=0x01 hdr=0x02
        vendor     = 'Texas Instruments (TI)'
        device     = 'PCCard CardBus Controller (PCI4520)'
        class      = bridge
        subclass   = PCI-CardBus
        cap 01[a0] = powerspec 2  supports D0 D1 D2 D3  current D0
    


    BTW: The command was indeed pciconf ... brain learnt lspci about 10 years ago when I started running Debian ;)
     
  4. vermaden

    vermaden Well-Known Member

    Messages:
    2,361
    Thanks Received:
    677
    Code:
    BEFORE [cbb(4) is attached]
    cbb0@pci0:2:0:0:       class=0x060700 card=0x05521014 chip=0xac46104c rev=0x01 hdr=0x02
    cbb1@pci0:2:0:1:       class=0x060700 card=0x05521014 chip=0xac46104c rev=0x01 hdr=0x02
    
    AFTER [no driver attached]
    none2@pci0:2:0:0:       class=0x060700 card=0x05521014 chip=0xac46104c rev=0x01 hdr=0x02
    none3@pci0:2:0:1:       class=0x060700 card=0x05521014 chip=0xac46104c rev=0x01 hdr=0x02