Hi all,

I'm trying to be able to wake on lan a computer. I have tried directly with ethtool but i have the classic error :
"Cannot get current wake-on-lan settings: Operation not supported"
So, after hours of searching on the web, i found that it's possible to address directly the bus to have "wake on lan" enabled

My lspci returns :
deb-multi:~# lspci -s 01:08.0 -vvvxxx
01:08.0 Ethernet controller: 3Com Corporation 3c905B 100BaseTX [Cyclone] (rev 30)
       Subsystem: 3Com Corporation 3C905B Fast Etherlink XL 10/100
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV+ VGASnoop- ParErr- Stepping- SERR+ FastB2B- Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=medium >TAbort- <TAbort- <MAbort- >SERR- <PERR-
       Latency: 64 (2500ns min, 2500ns max), Cache Line Size: 32 bytes
       Interrupt: pin A routed to IRQ 10
       Region 0: I/O ports at ec00 [size=128]
       Region 1: Memory at fdfffc00 (32-bit, non-prefetchable) [size=128]
       Expansion ROM at f9000000 [disabled] [size=128K]
       Capabilities: [dc] Power Management version 1
Flags: PMEClk- DSI- D1+ D2+ AuxCurrent=0mA PME(D0-,D1+,D2+,D3hot+,D3cold+)
               Status: D0 PME-Enable- DSel=0 DScale=0 PME-
00: b7 10 55 90 17 01 10 02 30 00 00 02 08 40 00 00
10: 01 ec 00 00 00 fc ff fd 00 00 00 00 00 00 00 00
20: 00 00 00 00 00 00 00 00 00 00 00 00 b7 10 55 90
30: 00 00 00 fe dc 00 00 00 00 00 00 00 0a 01 0a 0a
40: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
50: 00 00 00 00 40 00 00 00 00 00 00 00 00 00 00 00
60: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
70: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
90: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
c0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
d0: 00 00 00 00 00 00 00 00 00 00 00 00 01 00 01 f6
e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00


I want to change the status to D3 PME-Enable+, so i use setpci as this :
setpci -v -s 01:08.0 ?.w=0100
where "?" is the register i want to modify in order to have "D3 PME-Enable+"

Is there an easy way to find the correct value or must i try all the possibilities ?


I have tested :
setpci -v -s 01:08.0 58.w=0100
setpci -v -s 01:08.0 4C.w=0100
but lspci showed me that the value was not modified .... Strange, isn't it ?


Thanks in advance for your help
Christophe


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to