Page 3 of 8 FirstFirst 12345 ... LastLast
Results 21 to 30 of 71

Thread: Understanding /proc/acpi/wakeup

  1. #21
    Join Date
    Jul 2007
    Location
    Christchurch, New Zealand
    Beans
    29
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: Understanding /proc/acpi/wakeup

    Hi,

    That would be ethZERO ("eth0") and not ethOH ("ethO").

    To change the execute permission (you want to "chmod +x" the file, not "chmod -x" as you have written) you would do:

    Code:
    sudo chmod +x /etc/pm/sleep.d/15enablewol
    and confirm with:

    Code:
    ls -l /etc/pm/sleep.d/15enablewol
    In the output from the ls command, you'll see something like:

    Code:
    lrwxrwxrwx 1 root root 31 2008-05-20 15:41 /etc/pm/sleep.d/15enablewol
    the "x"s in the first bit means that the file is executable.

    Hope that helps,

    Jon

  2. #22
    Join Date
    Jul 2008
    Beans
    2

    Re: Understanding /proc/acpi/wakeup

    I spent a couple of frustrating days trying to get suspend and hibernate working with wake on lan for 8.04 (hardy).

    Here is what I did to accomplish this:

    1. Configure your ethernet card for wake on lan:

    /usr/bin/sudo /usr/sbin/ethtool -s eth1 wol g

    replace eth1 with your interface

    2. Modify /proc/acpi/wakeup to enable S4 state for the PCI bridge that your ethernet card is connected to:

    root@desktop:# cat /proc/acpi/wakeup
    Device S-state Status Sysfs node
    PEGP S4 disabled
    P0P2 S4 enabled pci:0000:00:1e.0 <=========
    AC97 S4 disabled
    USB0 S3 disabled pci:0000:00:1d.0
    USB1 S3 disabled pci:0000:00:1d.1
    USB2 S3 disabled pci:0000:00:1d.2
    USB3 S3 disabled pci:0000:00:1d.3
    USB7 S3 disabled pci:0000:00:1d.7
    UAR1 S4 disabled pnp:00:06
    PEX1 S4 disabled pci:0000:00:1c.0
    PEX2 S4 disabled pci:0000:00:1c.1
    PEX3 S4 disabled pci:0000:00:1c.2
    PEX4 S4 disabled pci:0000:00:1c.3
    AZAL S4 disabled pci:0000:00:1b.0
    PWRB S4 *enabled

    grep 'P0P2.*enabled' < /proc/acpi/wakeup >/dev/null || echo P0P2 > /proc/acpi/wakeup

    Mine happens to be P0P2

    use the command lspci to figure this out for your machine.

    example:

    lspci
    00:00.0 Host bridge: Intel Corporation 82915G/P/GV/GL/PL/910GL Memory Controller Hub (rev 04)
    00:02.0 VGA compatible controller: Intel Corporation 82915G/GV/910GL Integrated Graphics Controller (rev 04)
    00:1b.0 Audio device: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) High Definition Audio Controller (rev 03)
    00:1c.0 PCI bridge: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) PCI Express Port 1 (rev 03)
    00:1c.1 PCI bridge: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) PCI Express Port 2 (rev 03)
    00:1c.2 PCI bridge: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) PCI Express Port 3 (rev 03)
    00:1c.3 PCI bridge: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) PCI Express Port 4 (rev 03)
    00:1d.0 USB Controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB UHCI #1 (rev 03)
    00:1d.1 USB Controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB UHCI #2 (rev 03)
    00:1d.2 USB Controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB UHCI #3 (rev 03)
    00:1d.3 USB Controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB UHCI #4 (rev 03)
    00:1d.7 USB Controller: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) USB2 EHCI Controller (rev 03)
    00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev d3) <=========
    00:1f.0 ISA bridge: Intel Corporation 82801FB/FR (ICH6/ICH6R) LPC Interface Bridge (rev 03)
    00:1f.1 IDE interface: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) IDE Controller (rev 03)
    00:1f.2 IDE interface: Intel Corporation 82801FB/FW (ICH6/ICH6W) SATA Controller (rev 03)
    00:1f.3 SMBus: Intel Corporation 82801FB/FBM/FR/FW/FRW (ICH6 Family) SMBus Controller (rev 03)
    05:02.0 Ethernet controller: Intel Corporation 82546GB Gigabit Ethernet Controller (rev 03)
    05:02.1 Ethernet controller: Intel Corporation 82546GB Gigabit Ethernet Controller (rev 03)


    3. Modify 50modules in /usr/lib/pm-utils/sleep.d

    Comment out the call to "unload_network"

    4. Run sudo pm-suspend or sudo pm-hibernate and test out WOL

  3. #23
    Join Date
    Sep 2008
    Beans
    2

    Re: Understanding /proc/acpi/wakeup

    I've finally found the info I need to get my server running how I want! Hurrah!

    Except - when I try to modify /proc/acpi/wakeup - I always get "permission denied"...

    > more wakeup

    PCI0 S5 disabled no-busci0000:00
    USB3 S3 disabled pci:0000:00:10.0
    USB4 S3 disabled pci:0000:00:10.1
    USB5 S3 disabled pci:0000:00:10.2
    USB6 S3 disabled pci:0000:00:10.3
    USB7 S3 disabled pci:0000:00:10.4
    AC97 S5 disabled
    UAR1 S5 disabled pnp:00:08

    then running either

    > echo PCI0 > /proc/acpi/wakeup

    or

    > sudo echo PCI0 > /proc/acpi/wakeup

    results in

    bash: wakeup: Permission denied

    I've also found (from other forums) that I might need to do

    > echo "LAN0 S3 enabled" > /proc/acpi/wakeup

    but that still gets "permission denied".

    I suspect I simply cannot "modify" what I'm trying to modify - as that PCI0 entry of "nobusci0000:0" looks suspicious.

    My lspci output shows my two ethernet ports as ;

    00:09.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8110SC/8169SC Gigabit Ethernet (rev 10)
    00:0b.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8110SC/8169SC Gigabit Ethernet (rev 10)

    neither of which are shown in /proc/acpi/wakeup - even though ethtool eth0 shows "pumpg" is supported and "g" is enabled (and WOL is indeed enabled in the BIOS).

    Can someone help? I'm guessing it's a "dumb noob" problem, if so - easily fixed I hope!

  4. #24
    Join Date
    Jan 2007
    Location
    $here ? $here : $there
    Beans
    3,717
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: Understanding /proc/acpi/wakeup

    Try:

    Code:
    sudo sh -c "echo PCI0 > /proc/acpi/wakeup"
    Anytime you do redirection like that with sudo, you'll need to to use the sudo sh -c syntax to keep the whole construct running as root.
    Don't try to make something "fast" until you are able to quantify "slow".

  5. #25
    Join Date
    Sep 2008
    Beans
    2

    Re: Understanding /proc/acpi/wakeup

    Thanks Vor, that hit the spot.

    more /proc/acpi/wakeup now shows me ;

    Code:
    Device	S-state	  Status   Sysfs node
    PCI0	  S5	 enabled   no-bus:pci0000:00
    USB3	  S3	 disabled  pci:0000:00:10.0
    USB4	  S3	 disabled  pci:0000:00:10.1
    USB5	  S3	 disabled  pci:0000:00:10.2
    USB6	  S3	 disabled  pci:0000:00:10.3
    USB7	  S3	 disabled  pci:0000:00:10.4
    AC97	  S5	 disabled  
    UAR1	  S5	 disabled  pnp:00:08
    However, still no joy on WOL from hibernate. It must be a hardware issue - because my understanding is that whilst "off", and with WOL enabled - the network light on the ethernet port should remain lit, and presumably the NIC should maintain it's IP address with my router - which is not being done, the IP drops off the router as soon as the PC hibernates.

    I'm chasing this down with VIA in their forums - and if I get anywhere, I'll post somewhere appropriate here for others to find.

    Thanks for the help!

  6. #26
    Join Date
    Sep 2006
    Beans
    55
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: Understanding /proc/acpi/wakeup

    hello,
    hibernate does not work, when my pc hibernates, nothing happens, just the display becomes dark and i can not wake it up!
    please help
    thanks
    Last edited by ccl4; September 20th, 2008 at 06:48 PM.

  7. #27
    Join Date
    Mar 2007
    Location
    wisconsin
    Beans
    109
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: Understanding /proc/acpi/wakeup

    does anyone know how to change the s-state of the /proc/acpi/wakeup entries?
    A: "Make me a sandwich."
    B: "What? Make it yourself."
    A: "Sudo Make me a sandwich."
    B: "Okay." -- XKCD

  8. #28
    Join Date
    Apr 2008
    Beans
    23
    Distro
    Ubuntu 8.04 Hardy Heron

    Talking Re: Understanding /proc/acpi/wakeup

    Edit: nevermind
    Last edited by Nameless Neko; October 15th, 2008 at 09:36 AM. Reason: already had it working, but didn't realize it apparently

  9. #29
    Join Date
    Mar 2008
    Beans
    42

    Re: Understanding /proc/acpi/wakeup

    did anybody figure out why a NIC listed with lspci is not available in /proc/acpi/wakeup?

    and has anybody managed to fix this resulting in a working WOL?
    if yes, what did you do?

  10. #30
    Join Date
    Feb 2007
    Location
    Kamloops, BC
    Beans
    310
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: Understanding /proc/acpi/wakeup

    Question: Why did the above folk want WOL ? What were your environments and reasons for doing so ?

    thxthx

Page 3 of 8 FirstFirst 12345 ... LastLast

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •