Kodi Community Forum

Full Version: Problems turning on HTPC by IR receiver
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Hi,

I really need your help, due I’m not able to solve this problem by my own.
I got a HTPC with Ubuntu 14.04 LTS and Kodi running. It has taken some time, by except of one issue, everything is working fine now.
This remaining issue is, that I’m sometimes not able to turn on the HTPC via my remote (Logitech Harmony One+).
I could not figure out a pattern, when this issue occurs. For me it seems to be random..

Hardware:
MB: ASRock B85M-ITX
CPU: Intel i3-4150
RAM: 4GB
IR Receiver: CoHaus RC6 USB Dongle
Remote: Logitech Harmony One+

The remote is working pretty good out of the box with lirc, when kodi is started.

Example of the issue:
In the evening (when I’m going to bet), I turn of the HTPC with my remote (should be power toggle which is deposited and the harmony took for the action).
At the morning, I try to turn on the HTPC. I’m pressing my defined action.. TV turns on.. AVR turns on .. HTPC does not turn on.
Therefore I configured the power toggle button in the Harmony screen. When I’m pressing this button two times, the HTPC turns on.
When I now would shutdown the HTPC, I normally just had to click power toggle one time and the HTPC turns on..
If I wait some time, I need two press it two times again to power on (if he turns on at all..)
So far.. this is the „working“ setup..

Ok.. when I drive to work, I shutdown the HTPC. 10 hours later, when I came back from work, I’m no able to turn on the HTPC as described above and need to press the power button on the chase.
The 10 hours is not a fixed value for this issue. This could also occur after 2-3 hours, or 5 hours, or 1 hour.. As written before, I could not find a repeatable behavior.

I pretty much crawled the whole internet for fixes for this problem, without any success so far.

What I’ve done so far:

Code:
root@xbmc:~# tail -3 /etc/rc.local
echo enabled > /sys/bus/usb/devices/3-2/power/wakeup
echo enabled > /sys/bus/usb/devices/usb3/power/wakeup
exit 0

Code:
root@xbmc:~# cat /etc/udev/rules.d/90-mcewakeup.rules
SUBSYSTEM=="usb", ENV{ID_VENDOR_ID}=="147a", ENV{ID_MODEL_ID}=="e03e" RUN+="/bin/sh -c 'echo enabled > /sys$env{DEVPATH}/../power/wakeup;echo enabled > /sys$env{DEVPATH}/power/wakeup'"

Code:
root@xbmc:~# cat /proc/cmdline
BOOT_IMAGE=/vmlinuz-3.13.0-44-generic root=/dev/mapper/live--vg-root ro quiet splash usbcore.autosuspend=-1 acpi_enforce_resources=lax vt.handoff=7

Code:
root@xbmc:~# grep ^DISABLE_KERNEL_SUPPORT /etc/init.d/lirc
DISABLE_KERNEL_SUPPORT=false

Also enabled power on by usb in BIOS.

What I do not unterstand is, that here:

Code:
root@xbmc:~# cat /proc/acpi/wakeup
Device    S-state      Status   Sysfs node
USB1      S3    *disabled
RP01      S4    *disabled  pci:0000:00:1c.0
RP03      S4    *disabled  pci:0000:00:1c.2
GLAN      S4    *disabled
EHC1      S4    *enabled   pci:0000:00:1d.0
EHC2      S4    *enabled   pci:0000:00:1a.0
XHC      S4    *enabled   pci:0000:00:14.0
HDEF      S4    *disabled  pci:0000:00:1b.0
PEG0      S4    *disabled
PEGP      S4    *disabled
PEG1      S4    *disabled
PEG2      S4    *disabled

are just shown one USB port. I’ve got at least 3x USB 2.0 and 3x USB 3.0.
The dongle is connected to a USB 2.0 port. Regardless of which USB port I connect the USB dongle, there keeps just USB1 without the possibility to enable this one (because of missing pic address I guess).

Pretty don’t know what to do next.
Hoping one of you have an idea.

Thanks in advance.
Two of us had this problem with the Chromebox. He found sending a useless command right before the power toggle woke up the box/ir dongle and then it turns on with the next command (power toggle). Try that. Go into the harmony setup, device, power settings for the HTPC, and say you don't have the original remote but I know the commands and put in the back command for the 1st, and power toggle for the 2nd command.

See if that helps.
Did this only solve the problem with multiple pressing power toggle button or the whole set turn on problem.
Will try this later
Sadly did not solve the problem.
crappy
Someone else might have an idea?
Hi,

If i understand well, sometimes it works, sometimes not Nod.
Can you put a USB keyboard/mouse, when it happens, try to wake up with it.
It should tell us if it's the remote/dongle which cause the issue.

If it works, please give the result of
"lsusb".
"dmesg"

If it doesnt work it means there is a problem with your motherboard/software configuration inside linux.
then, you can :
-Try with Openelec (test the software config, works with pretty much everything)
- Update your BIOS (if it's a hardware issue)

Good luck !

Bibi
BIOS is already update to date.
With OpenELEC my remote is not working out of the box with this dongle.
Furthermore I ran some daemons, which are not existing in openelec.

I will paste data later.
Doublepost..
Ok, we will start again from the beginning, so save what you did (local.conf, kernel options, udev rules...), and put everything as it was from the start. Reboot.
Give the result of lsusb and dmesg.

edit : forgot "cat /proc/acpi/wakeup" and "lsmod"
First removed my changes.
Afterwards I did reboot the HTPC, as requested. Did not start it with remote:

lsusb http://paste.ubuntu.com/9763106/
dmesg //paste.ubuntu.com/9763113/
lsmod http://paste.ubuntu.com/9763116/
/proc/acpi/wakeup http://paste.ubuntu.com/9763117/
Similar issue. In openelec remote drops out. Switched to kodibuntu and can't resume from sleep. Used to work fine. Everything showing as enabled. Ever since Linux changed use handling there are quite a few remote issues.
In my case I do not return from sleep. I really shutdown the HTPC. Should be S5, or?
If you let kodi suspend, can you resume from there?
At the moment Kodi have problems with suspending.So I don't really followed up this.

This are the same logs, when power on via remote has worked:

lsusb http://paste.ubuntu.com/9767092/
dmesg http://paste.ubuntu.com/9767093/
lsmod http://paste.ubuntu.com/9767095/
/proc/acpi/wakeup http://paste.ubuntu.com/9767096/

EDIT
Don't now if necesarry, but my OS is running on USB 3 stick.
Furthermore suspend is not working. Same problem
Pages: 1 2