Linux Minimal 12.10 - flirc not present after resume
#1
Hi guys.

I have "flirc" ir usb receiver which is represented to system as HID keyboard.

It suspend and resume ussing flirc worked just fine both on openelec and XBMCbuntu. I could resume system with any button on my remote,
but I am having problems on MInimal 12.10.

My knowledge of Linux is very limted so hopefully someone can help me out.

- linux is: Ubuntu 12.10 quantal

- kernel version: Linux xbmc 3.5.0-21-generic

I found how to setup minimal so i can resume it with my flirc and that works, but after resume flirc is not present in my system,
I have to unplug it and plug it to a different USB port to get it to work again.

I made new udev rule for flrc like this:
Code:
cd /etc/udev/rules.d/

sudo nano  90-flircwakeup.rules


and entered this:
Code:
SUBSYSTEM=="usb", ATTRS{idVendor}=="20a0", ATTRS{idProduct}=="0001" RUN+="/bin/sh -c 'echo enabled > /sys$env{DEVPATH}/../power/wakeup'"

I also found on internet that changing default grub could help si I did:
Code:
sudo nano /etc/default/grub

and changed
Code:
GRUB_CMDLINE_LINUX_DEFAULT="splash quiet"

to
Code:
GRUB_CMDLINE_LINUX_DEFAULT="splash quiet usbcore.autosuspend=-1"

So wake works but here is my lsusb before suspend "clay logic" is flirc:
Code:
Bus 001 Device 002: ID 05e3:0608 Genesys Logic, Inc. USB-2.0 4-Port HUB
Bus 008 Device 002: ID 20a0:0001 Clay Logic
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 008 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

and here is my dmesg .

After resume using flirc:
Code:
Bus 001 Device 002: ID 05e3:0608 Genesys Logic, Inc. USB-2.0 4-Port HUB
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 008 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

and dmesg after resume.

I found some program to reset usb port but it does not work when port is "empty".

As I said I am new to linux so if you need any more info just ask.

Thank you.
Reply

Logout Mark Read Team Forum Stats Members Help
Minimal 12.10 - flirc not present after resume0