Archive:HOW-TO:Enable Wake-On-Device for Ubuntu: Difference between revisions

From Official Kodi Wiki
Jump to navigation Jump to search
>Outleradam
No edit summary
>Outleradam
No edit summary
Line 89: Line 89:


=== Troubleshooting auto-resume ===
=== Troubleshooting auto-resume ===
If an enabled device resumes the computer from standby at an undesired time, you may choose to disable it using the same command you used to enable it.
If an enabled device resumes the computer from standby at an undesired time, you may choose to disable it by using the following command where **** is the device you wish to disable
echo **** > /proc/acpi/wakeup
 
EG.
echo USB0 > /proc/acpi/wakeup

Revision as of 23:06, 15 November 2009

This Article discusses enabling wake-up from your remote device.


Identification of resume devices

This section discusses identification of the resume devices

Authorized resume devices

  • From your terminal type the following to gain a list of all authorized resume devices
cat /proc/acpi/wakeup

You will see a list of authorized resume devices

EG.

root@XBMCLive:~# cat /proc/acpi/wakeup
Device  S-state   Status   Sysfs node
HUB0      S5     disabled  pci:0000:00:04.0
XVR0      S5     disabled  pci:0000:00:09.0
XVR1      S5     disabled  pci:0000:00:0b.0
XVR2      S5     disabled  pci:0000:00:0c.0
PS2M      S4     disabled  pnp:00:08
PS2K      S4     disabled  pnp:00:09
USB0      S3     disabled  pci:0000:00:02.0
USB2      S3     disabled  pci:0000:00:02.1
AZAD      S5     disabled  pci:0000:00:05.0
MMAC      S5     disabled  pci:0000:00:07.0

more information on devices

  • You can get more information on wakeup devices by typing the following in a console
lspci

You will see a list of PCI devices. The first coloumn in lspci will match the Sysfs node coloumn in /proc/acpi/wakeup

EG.

root@XBMCLive:~# lspci
00:00.0 RAM memory: nVidia Corporation MCP61 Memory Controller (rev a1)
00:01.0 ISA bridge: nVidia Corporation MCP61 LPC Bridge (rev a2)
00:01.1 SMBus: nVidia Corporation MCP61 SMBus (rev a2)
00:01.2 RAM memory: nVidia Corporation MCP61 Memory Controller (rev a2)
00:02.0 USB Controller: nVidia Corporation MCP61 USB Controller (rev a3)
00:02.1 USB Controller: nVidia Corporation MCP61 USB Controller (rev a3)
00:04.0 PCI bridge: nVidia Corporation MCP61 PCI bridge (rev a1)
00:05.0 Audio device: nVidia Corporation MCP61 High Definition Audio (rev a2)
00:06.0 IDE interface: nVidia Corporation MCP61 IDE (rev a2)
00:07.0 Bridge: nVidia Corporation MCP61 Ethernet (rev a2)
00:08.0 IDE interface: nVidia Corporation MCP61 SATA Controller (rev a2)
00:08.1 IDE interface: nVidia Corporation MCP61 SATA Controller (rev a2)
00:09.0 PCI bridge: nVidia Corporation MCP61 PCI Express bridge (rev a2)
00:0b.0 PCI bridge: nVidia Corporation MCP61 PCI Express bridge (rev a2)
00:0c.0 PCI bridge: nVidia Corporation MCP61 PCI Express bridge (rev a2)
00:0d.0 VGA compatible controller: nVidia Corporation C61 [GeForce 6150SE nForce 430] (rev a2)
00:18.0 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] HyperTransport Technology Configuration
00:18.1 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] Address Map
00:18.2 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] DRAM Controller
00:18.3 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] Miscellaneous Control


Enabling wakeup status for devices

  • enable wakeup devices to resume the computer by typing the following where **** is replaced with the corresponding device
echo **** > /proc/acpi/wakeup

EG.

root@XBMCLive:~# echo USB0 > /proc/acpi/wakeup
root@XBMCLive:~# echo USB2 > /proc/acpi/wakeup


Verification of wakeup status

This section discusses verifying proper operation of the resume function

Verifying enabled devices

  • Type the following to verify proper wakeup device status
cat /proc/acpi/wakeup

EG.

root@XBMCLive:~# cat /proc/acpi/wakeup
Device  S-state   Status   Sysfs node
HUB0      S5     disabled  pci:0000:00:04.0
XVR0      S5     disabled  pci:0000:00:09.0
XVR1      S5     disabled  pci:0000:00:0b.0
XVR2      S5     disabled  pci:0000:00:0c.0
PS2M      S4     disabled  pnp:00:08
PS2K      S4     disabled  pnp:00:09
USB0      S3     enabled   pci:0000:00:02.0
USB2      S3     enabled   pci:0000:00:02.1
AZAD      S5     disabled  pci:0000:00:05.0
MMAC      S5     disabled  pci:0000:00:07.0

You should now see that your devices are enabled. Test your resume function at this time and verify proper operation.

Troubleshooting auto-resume

If an enabled device resumes the computer from standby at an undesired time, you may choose to disable it by using the following command where **** is the device you wish to disable

echo **** > /proc/acpi/wakeup

EG.

echo USB0 > /proc/acpi/wakeup