[LIVE] Problem suspend with IR receiver conected to USB port
#1
I have a clean live 9.11 installation.
When in USB port I have connected IR receiver - igorcesko and in XBMC I choose suspend, than I can see a black screen with blinking cursor in upper left corner of the screen, fan is still running and power led is on. Only ext.hdd which is connected to usb is stopped.
When IR receiver is disconnected, than suspend is working correctly - fan is stopped, led is flashing.
Is there any way how to force IR receiver to go into suspend ?

Here is lsmod - with IR connected :

xbmc@XBMCLive:~$ lsmod
Module Size Used by
udf 80900 1
crc_itu_t 1852 1 udf
lirc_mceusb 15520 0
snd_hda_codec_nvhdmi 4828 1
snd_hda_codec_realtek 203328 1
snd_hda_intel 26920 3
snd_hda_codec 75708 3 snd_hda_codec_nvhdmi,snd_hda_codec_realtek,snd_hda_intel
snd_hwdep 7200 1 snd_hda_codec
snd_pcm_oss 37920 0
snd_mixer_oss 16028 1 snd_pcm_oss
snd_pcm 75296 4 snd_hda_intel,snd_hda_codec,snd_pcm_oss
snd_seq_dummy 2656 0
snd_seq_oss 28576 0
snd_seq_midi 6432 0
snd_rawmidi 22208 1 snd_seq_midi
ses 6524 0
snd_seq_midi_event 6940 2 snd_seq_oss,snd_seq_midi
snd_seq 50224 6 snd_seq_dummy,snd_seq_oss,snd_seq_midi,snd_seq_midi_event
enclosure 7840 1 ses
snd_timer 22276 3 snd_pcm,snd_seq
nvidia 8880868 38
snd_seq_device 6920 5 snd_seq_dummy,snd_seq_oss,snd_seq_midi,snd_rawmidi,snd_seq
snd 59204 16 snd_hda_codec_realtek,snd_hda_intel,snd_hda_codec,snd_hwdep,snd_pcm_oss,snd_mixer_oss,snd_pcm,snd_seq_oss,snd_rawmidi,snd_seq,snd_timer,snd_seq_device
dm_crypt 12928 0
soundcore 7264 1 snd
snd_page_alloc 9156 2 snd_hda_intel,snd_pcm
i2c_nforce2 6784 0
shpchp 32272 0
agpgart 34988 1 nvidia
lp 8964 0
parport 35340 1 lp
lirc_igorplugusb 5116 1
lirc_dev 10804 4 lirc_mceusb,lirc_igorplugusb
usb_storage 52576 2
usbhid 38208 0
forcedeth 54152 0

Here is lsmod - without IR :
xbmc@XBMCLive:~$ lsmod
Module Size Used by
udf 80900 1
crc_itu_t 1852 1 udf
lirc_mceusb 15520 0
lirc_dev 10804 1 lirc_mceusb
snd_hda_codec_nvhdmi 4828 1
snd_hda_codec_realtek 203328 1
snd_hda_intel 26920 3
snd_hda_codec 75708 3 snd_hda_codec_nvhdmi,snd_hda_codec_realtek,snd_hda_intel
snd_hwdep 7200 1 snd_hda_codec
snd_pcm_oss 37920 0
snd_mixer_oss 16028 1 snd_pcm_oss
snd_pcm 75296 4 snd_hda_intel,snd_hda_codec,snd_pcm_oss
snd_seq_dummy 2656 0
snd_seq_oss 28576 0
snd_seq_midi 6432 0
snd_rawmidi 22208 1 snd_seq_midi
snd_seq_midi_event 6940 2 snd_seq_oss,snd_seq_midi
snd_seq 50224 6 snd_seq_dummy,snd_seq_oss,snd_seq_midi,snd_seq_midi_event
snd_timer 22276 3 snd_pcm,snd_seq
ses 6524 0
snd_seq_device 6920 5 snd_seq_dummy,snd_seq_oss,snd_seq_midi,snd_rawmidi,snd_seq
enclosure 7840 1 ses
dm_crypt 12928 0
snd 59204 16 snd_hda_codec_realtek,snd_hda_intel,snd_hda_codec,snd_hwdep,snd_pcm_oss,snd_mixer_oss,snd_pcm,snd_seq_oss,snd_rawmidi,snd_seq,snd_timer,snd_seq_device
nvidia 8880868 38
soundcore 7264 1 snd
snd_page_alloc 9156 2 snd_hda_intel,snd_pcm
i2c_nforce2 6784 0
shpchp 32272 0
agpgart 34988 1 nvidia
lp 8964 0
parport 35340 1 lp
usb_storage 52576 2
forcedeth 54152 0
usbhid 38208 0

and pm-suspend.log:
Initial commandline parameters: --quirk-dpms-suspend
--quirk-dpms-on
--quirk-vbestate-restore
--quirk-vbemode-restore
--quirk-vga-mode3
--quirk-vbe-post
Thu Aug 12 17:51:42 CEST 2010: Running hooks for suspend.
/usr/lib/pm-utils/sleep.d/000record suspend suspend: success.
/usr/lib/pm-utils/sleep.d/00auto-quirk suspend suspend: success.
/usr/lib/pm-utils/sleep.d/00logging suspend suspend: Linux XBMCLive 2.6.31-16-generic #53-Ubuntu SMP Tue Dec 8 04:01:29 UTC 2009 i686 GNU/Linux
Module Size Used by
udf 80900 1
crc_itu_t 1852 1 udf
lirc_mceusb 15520 0
snd_hda_codec_nvhdmi 4828 1
snd_hda_codec_realtek 203328 1
snd_hda_intel 26920 3
snd_hda_codec 75708 3 snd_hda_codec_nvhdmi,snd_hda_codec_realtek,snd_hda_intel
snd_hwdep 7200 1 snd_hda_codec
snd_pcm_oss 37920 0
snd_mixer_oss 16028 1 snd_pcm_oss
snd_pcm 75296 4 snd_hda_intel,snd_hda_codec,snd_pcm_oss
snd_seq_dummy 2656 0
snd_seq_oss 28576 0
snd_seq_midi 6432 0
snd_rawmidi 22208 1 snd_seq_midi
ses 6524 0
snd_seq_midi_event 6940 2 snd_seq_oss,snd_seq_midi
snd_seq 50224 6 snd_seq_dummy,snd_seq_oss,snd_seq_midi,snd_seq_midi_event
enclosure 7840 1 ses
snd_timer 22276 3 snd_pcm,snd_seq
nvidia 8880868 38
snd_seq_device 6920 5 snd_seq_dummy,snd_seq_oss,snd_seq_midi,snd_rawmidi,snd_seq
snd 59204 16 snd_hda_codec_realtek,snd_hda_intel,snd_hda_codec,snd_hwdep,snd_pcm_oss,snd_mixer_oss,snd_pcm,snd_seq_oss,snd_rawmidi,snd_seq,snd_timer,snd_seq_device
dm_crypt 12928 0
soundcore 7264 1 snd
snd_page_alloc 9156 2 snd_hda_intel,snd_pcm
i2c_nforce2 6784 0
shpchp 32272 0
agpgart 34988 1 nvidia
lp 8964 0
parport 35340 1 lp
lirc_igorplugusb 5116 1
lirc_dev 10804 4 lirc_mceusb,lirc_igorplugusb
usb_storage 52576 2
usbhid 38208 0
forcedeth 54152 0
total used free shared buffers cached
Mem: 1543612 238604 1305008 0 8412 118904
-/+ buffers/cache: 111288 1432324
Swap: 465844 0 465844
success.
/usr/lib/pm-utils/sleep.d/00powersave suspend suspend: success.
/etc/pm/sleep.d/10_grub-common suspend suspend: success.
/usr/lib/pm-utils/sleep.d/49bluetooth suspend suspend: not applicable.
/usr/lib/pm-utils/sleep.d/55NetworkManager suspend suspend: not applicable.
/usr/lib/pm-utils/sleep.d/75modules suspend suspend: FATAL: Module lirc_igorplugusb is in use.
/usr/lib/pm-utils/sleep.d/75modules: 29: log: not found
success.
/usr/lib/pm-utils/sleep.d/90clock suspend suspend: not applicable.
/usr/lib/pm-utils/sleep.d/94cpufreq suspend suspend: success.
/usr/lib/pm-utils/sleep.d/95led suspend suspend: not applicable.
/usr/lib/pm-utils/sleep.d/96laptop-mode suspend suspend: success.
/usr/lib/pm-utils/sleep.d/98smart-kernel-video suspend suspend: success.
/usr/lib/pm-utils/sleep.d/99video suspend suspend: kernel.acpi_video_flags = 0
success.
Thu Aug 12 17:51:43 CEST 2010: performing suspend


Thanks for help
Alda
Reply
#2
I tried remove modul lirc_igorplugusb before suspend :
into file /etc/pm/config.d/config I added SUSPEND_MODULES="lirc_igorplugusb" but it isn't working.
So I tried remove this module manualy with this error:
xbmc@XBMCLive:~$ rmmod lirc_igorplugusb
ERROR: Module lirc_igorplugusb is in use

what now ?

Alda
Reply
#3
Next step which I did :
I stopped lirc :
root@XBMCLive:~# sudo /etc/init.d/lirc stop
* Stopping remote control daemon(s): LIRC [ OK ]

and tried again stop lirc_igorplugusb module :

root@XBMCLive:~# rmmod lirc_igorplugusb
Killed

and from xbmc again suspend.
Now I can see on the screen this list :

PM:Syncing filesystems....done
PMTonguereparing system for mem sleep
Freezing user space processes...( elapsed 0.00 seconds ) done
Freezing remaining freezable tasks...( elapsed 0.00 seconds ) done
PM:entering mem sleep
Suspending console(s) ( use no_console_suspend to debug )

and still no suspend ..... Sad

please help

Alda
Reply
#4
so I found, that lirc_igorplugusb module is still in lsmod :

root@XBMCLive:~# lsmod
Module Size Used by
snd_hda_codec_nvhdmi 4828 1
snd_hda_codec_realtek 203328 1
snd_hda_intel 26920 3
snd_hda_codec 75708 3 snd_hda_codec_nvhdmi,snd_hda_codec_realtek,snd_hda_intel
snd_hwdep 7200 1 snd_hda_codec
snd_pcm_oss 37920 0
snd_mixer_oss 16028 1 snd_pcm_oss
snd_pcm 75296 4 snd_hda_intel,snd_hda_codec,snd_pcm_oss
snd_seq_dummy 2656 0
snd_seq_oss 28576 0
snd_seq_midi 6432 0
snd_rawmidi 22208 1 snd_seq_midi
snd_seq_midi_event 6940 2 snd_seq_oss,snd_seq_midi
snd_seq 50224 6 snd_seq_dummy,snd_seq_oss,snd_seq_midi,snd_seq_midi_event
snd_timer 22276 3 snd_pcm,snd_seq
snd_seq_device 6920 5 snd_seq_dummy,snd_seq_oss,snd_seq_midi,snd_rawmidi,snd_seq
snd 59204 16 snd_hda_codec_realtek,snd_hda_intel,snd_hda_codec,snd_hwdep,snd_pcm_oss,snd_mixer_oss,snd_pcm,snd_seq_oss,snd_rawmidi,snd_seq,snd_timer,snd_seq_device
dm_crypt 12928 0
nvidia 8880868 38
lirc_igorplugusb 5116 0
soundcore 7264 1 snd
snd_page_alloc 9156 2 snd_hda_intel,snd_pcm
i2c_nforce2 6784 0
lirc_dev 10804 1 lirc_igorplugusb
shpchp 32272 0
agpgart 34988 1 nvidia
lp 8964 0
parport 35340 1 lp
usb_storage 52576 0
usbhid 38208 0
forcedeth 54152 0

I tried next rmmod :

root@XBMCLive:~# rmmod -f lirc_igorplugusb
ERROR: Removing 'lirc_igorplugusb': Device or resource busy

and I also tested rmmod on lirc_dev :

root@XBMCLive:~# rmmod lirc_dev
ERROR: Module lirc_dev is in use by lirc_igorplugusb

What now ?

Alda
Reply
#5
run:
cat /proc/bus/input/devices
and choose a remote N: Name="igorcesko IR_USB" .
If successfully found , run :
sudo dpkg-reconfigure lirc
Image
then:
/dev/lirc0
sudo reboot
Reply
#6
root@XBMCLive:~# cat /proc/bus/input/devices
I: Bus=0019 Vendor=0000 Product=0001 Version=0000
N: Name="Power Button"
P: Phys=LNXPWRBN/button/input0
S: Sysfs=/devices/LNXSYSTM:00/LNXPWRBN:00/input/input0
U: Uniq=
H: Handlers=kbd event0
B: EV=3
B: KEY=100000 0 0 0

I: Bus=0019 Vendor=0000 Product=0001 Version=0000
N: Name="Power Button"
P: Phys=PNP0C0C/button/input0
S: Sysfs=/devices/LNXSYSTM:00/device:00/PNP0C0C:00/input/input1
U: Uniq=
H: Handlers=kbd event1
B: EV=3
B: KEY=100000 0 0 0

I: Bus=0017 Vendor=0001 Product=0001 Version=0100
N: Name="Macintosh mouse button emulation"
P: Phys=
S: Sysfs=/devices/virtual/input/input2
U: Uniq=
H: Handlers=mouse0 event2
B: EV=7
B: KEY=70000 0 0 0 0 0 0 0 0
B: REL=3

I: Bus=0011 Vendor=0001 Product=0001 Version=ab83
N: Name="AT Translated Set 2 keyboard"
P: Phys=isa0060/serio0/input0
S: Sysfs=/devices/platform/i8042/serio0/input/input3
U: Uniq=
H: Handlers=kbd event3
B: EV=120013
B: KEY=4 2000000 3803078 f800d001 feffffdf ffefffff ffffffff fffffffe
B: MSC=10
B: LED=7

I: Bus=0003 Vendor=046d Product=c018 Version=0111
N: Name="Logitech USB Optical Mouse"
P: Phys=usb-0000:00:04.0-2/input0
S: Sysfs=/devices/pci0000:00/0000:00:04.0/usb3/3-2/3-2:1.0/input/input4
U: Uniq=
H: Handlers=mouse1 event4
B: EV=17
B: KEY=70000 0 0 0 0 0 0 0 0
B: REL=103
B: MSC=10

I: Bus=0001 Vendor=10ec Product=0662 Version=0001
N: Name="HDA Digital PCBeep"
P: Phys=card0/codec#0/beep0
S: Sysfs=/devices/pci0000:00/0000:00:08.0/input/input5
U: Uniq=
H: Handlers=kbd event5
B: EV=40001
B: SND=6
Reply
#7
run:
dmesg | grep -i usb
Reply
#8
root@XBMCLive:~# dmesg | grep -i usb
[ 0.508154] usbcore: registered new interface driver usbfs
[ 0.508154] usbcore: registered new interface driver hub
[ 0.508164] usbcore: registered new device driver usb
[ 1.530389] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 1.531440] ehci_hcd 0000:00:04.1: new USB bus registered, assigned bus number 1
[ 1.540033] ehci_hcd 0000:00:04.1: USB 2.0 started, EHCI 1.00
[ 1.540204] usb usb1: configuration #1 chosen from 1 choice
[ 1.540273] hub 1-0:1.0: USB hub found
[ 1.541349] ehci_hcd 0000:00:06.1: new USB bus registered, assigned bus number 2
[ 1.552030] ehci_hcd 0000:00:06.1: USB 2.0 started, EHCI 1.00
[ 1.552186] usb usb2: configuration #1 chosen from 1 choice
[ 1.552253] hub 2-0:1.0: USB hub found
[ 1.552393] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[ 1.553356] ohci_hcd 0000:00:04.0: new USB bus registered, assigned bus number 3
[ 1.610163] usb usb3: configuration #1 chosen from 1 choice
[ 1.610231] hub 3-0:1.0: USB hub found
[ 1.611281] ohci_hcd 0000:00:06.0: new USB bus registered, assigned bus number 4
[ 1.666152] usb usb4: configuration #1 chosen from 1 choice
[ 1.666219] hub 4-0:1.0: USB hub found
[ 1.666351] uhci_hcd: USB Universal Host Controller Interface driver
[ 2.157577] usb 3-2: new low speed USB device using ohci_hcd and address 2
[ 2.387787] usb 3-2: configuration #1 chosen from 1 choice
[ 2.504881] usbcore: registered new interface driver hiddev
[ 2.510631] input: Logitech USB Optical Mouse as /devices/pci0000:00/0000:00:04.0/usb3/3-2/3-2:1.0/input/input4
[ 2.510811] generic-usb 0003:046D:C018.0001: input,hidraw0: USB HID v1.11 Mouse [Logitech USB Optical Mouse] on usb-0000:00:04.0-2/input0
[ 2.510847] usbcore: registered new interface driver usbhid
[ 2.510855] usbhid: v2.6:USB HID core driver
[ 2.704048] usb 3-4: new low speed USB device using ohci_hcd and address 3
[ 2.975554] usb 3-4: configuration #1 chosen from 1 choice
[ 3.088037] usb 2-4: new high speed USB device using ehci_hcd and address 2
[ 3.226657] usb 2-4: configuration #1 chosen from 1 choice
[ 3.255628] Initializing USB Mass Storage driver...
[ 3.256053] scsi6 : SCSI emulation for USB Mass Storage devices
[ 3.256349] usb-storage: device found at 2
[ 3.256357] usb-storage: waiting for device to settle before scanning
[ 3.256383] usbcore: registered new interface driver usb-storage
[ 3.256393] USB Mass Storage support registered.
[ 7.237414] lirc_igorplugusb: USB remote driver for LIRC v0.2
[ 7.237425] lirc_igorplugusb: Jan M. Hochstein <hochstein@algo.informatik.tu-darmstadt.de>
[ 7.272936] lirc_igorplugusb[3]: Ing. Igor Cesko, Copyright© 2003 IgorPlug USB (AVR) on usb3:3
[ 7.277973] usbcore: registered new interface driver lirc_igorplugusb
[ 8.252322] usb-storage: device scan complete
[ 8.254763] scsi 6:0:0:0: Direct-Access Generic USB SD Reader 1.00 PQ: 0 ANSI: 0
[ 8.255384] scsi 6:0:0:1: Direct-Access Generic USB MS Reader 1.03 PQ: 0 ANSI: 0
[ 15.077519] lirc_mceusb: Windows Media Center Edition USB IR Transceiver driver for LIRC 1.90
[ 15.077528] lirc_mceusb: Daniel Melander <[email protected]>, Martin Blatter <[email protected]>, Dan Conti <[email protected]>
[ 15.077600] usbcore: registered new interface driver lirc_mceusb
Reply
#9
sudo udevadm info -a -p $(udevadm info -q path -n /dev/input/input3/event3
http://paste.ubuntu.com/
Reply
#10
.
Reply
#11
http://www.cesko.host.sk/girderplugin.htm
Reply
#12
no it's this one :

http://www.cesko.host.sk/IgorPlugUSB/Igo...29_eng.htm
Reply
#13
bsmim Wrote:sudo udevadm info -a -p $(udevadm info -q path -n /dev/input/input3/event3
http://paste.ubuntu.com/

Sorry, I'm not sure what was requested output of this function, but I can see only > and that's all.

and path /dev/input/input3/event3 doesn't exist :

xbmc@XBMCLive:/$ cd dev
xbmc@XBMCLive:/dev$ cd input
xbmc@XBMCLive:/dev/input$ cd input3
-bash: cd: input3: No such file or directory
xbmc@XBMCLive:/dev/input$
Reply
#14
read here:
https://bugs.launchpad.net/ubuntu/+sourc...bug/364699
Reply
#15
sorry, but this link is for problem that IR receiver isn't working.
But for me it works ok - I can control xbmc via lirc.

But when I want switch PC to suspend, system will jump into blank ( black ) screen with blinking cursor in upper left corner.

When IR receiver isn't connected - suspend is working.

I'm searching for the way how to get suspend working with connected IR receiver.

Alda
Reply

Logout Mark Read Team Forum Stats Members Help
[LIVE] Problem suspend with IR receiver conected to USB port0