Power saving ..

This forum discusses issues related to running FreeBSD on notebooks, laptops, and other mobile equipment.

Power saving ..

Postby loop » 18 Aug 2010, 01:31

Is it possible to power down the PC Card slots on a Thinkpad (mine is a T42)

Code: Select all
# 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.
loop
Junior Member
 
Posts: 52
Joined: 19 Nov 2008, 00:26

Postby vermaden » 18 Aug 2010, 05:55

@loop

Add [file]hw.pci.do_power_nodriver=3[/file] to the [FILE]/boot/loader.conf[/FILE] 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 [cmd=]pciconf -l -v[/cmd] rather then like [cmd=]lspci -lv -c[/cmd] :P
Religions, worst damnation of mankind.
"FreeBSD has always been the operating system that GNU/Linux should have been." Frank Pohlmann, IBM
[FILE][color="DarkSlateBlue"]http://vermaden.blogspot.com[/color][/FILE]
User avatar
vermaden
Giant Locked
 
Posts: 2316
Joined: 16 Nov 2008, 19:37
Location: pl_PL.lodz

Postby loop » 18 Aug 2010, 23:18

I've done that now - should I see any difference in the [CMD="#"]pciconf -lv -c[/CMD] output?

Code: Select all
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 ;)
loop
Junior Member
 
Posts: 52
Joined: 19 Nov 2008, 00:26

Postby vermaden » 19 Aug 2010, 05:35

loop wrote:I've done that now - should I see any difference in the [color="Gray"][font="Courier New"]pciconf -lv -c[/font][/color] output?


Code: Select all
[U]BEFORE [[B]cbb(4)[/B] is attached][/U]
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

[U]AFTER [no driver attached][/U]
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
Religions, worst damnation of mankind.
"FreeBSD has always been the operating system that GNU/Linux should have been." Frank Pohlmann, IBM
[FILE][color="DarkSlateBlue"]http://vermaden.blogspot.com[/color][/FILE]
User avatar
vermaden
Giant Locked
 
Posts: 2316
Joined: 16 Nov 2008, 19:37
Location: pl_PL.lodz


Return to Mobile Computing

Who is online

Users browsing this forum: No registered users and 1 guest