LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 06-05-2008, 04:44 AM   #1
sloteel
Member
 
Registered: Jul 2005
Distribution: Ubuntu 18.04
Posts: 71

Rep: Reputation: 15
Errors in /proc/bus/input/devices


Hi, I hope you could understand my poor english. I'm running a Kubuntu hardy with this huge problem: input peripherals are randomly associated with the devices in /proc/bus/input/devices, but they work only if associated with one of them. Here the example, this is a good one:

Quote:
I: Bus=0017 Vendor=0001 Product=0001 Version=0100
N: Name="Macintosh mouse button emulation"
P: Phys=
S: Sysfs=/devices/virtual/input/input0
U: Uniq=
H: Handlers=mouse0 event0
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=ab41
N: Name="AT Translated Set 2 keyboard"
P: Phys=isa0060/serio0/input0
S: Sysfs=/devices/platform/i8042/serio0/input/input1
U: Uniq=
H: Handlers=kbd event1
B: EV=120013
B: KEY=4 2000000 3803078 f800d001 feffffdf ffefffff ffffffff fffffffe
B: MSC=10
B: LED=7

I: Bus=0019 Vendor=0000 Product=0002 Version=0000
N: Name="Power Button (FF)"
P: Phys=LNXPWRBN/button/input0
S: Sysfs=/devices/virtual/input/input2
U: Uniq=
H: Handlers=kbd event2
B: EV=3
B: KEY=100000 0 0 0

I: Bus=0019 Vendor=0000 Product=0001 Version=0000
N: Name="Power Button (CM)"
P: Phys=PNP0C0C/button/input0
S: Sysfs=/devices/virtual/input/input3
U: Uniq=
H: Handlers=kbd event3
B: EV=3
B: KEY=100000 0 0 0

I: Bus=0010 Vendor=001f Product=0001 Version=0100
N: Name="PC Speaker"
P: Phys=isa0061/input0
S: Sysfs=/devices/platform/pcspkr/input/input4
U: Uniq=
H: Handlers=kbd event4
B: EV=40001
B: SND=6

I: Bus=0001 Vendor=5618 Product=0138 Version=0001
N: Name="saa7134 IR (LifeView/Typhoon Fl"
P: Phys=pci-0000:01:08.0/ir0
S: Sysfs=/devices/pci0000:00/0000:00:08.0/0000:01:08.0/input/input5
U: Uniq=
H: Handlers=kbd event5
B: EV=100003
B: KEY=c0304 310000 0 0 0 0 0 0 2 1e0000 0 0 10000ffc

I: Bus=0011 Vendor=0002 Product=0005 Version=0000
N: Name="ImPS/2 Generic Wheel Mouse"
P: Phys=isa0060/serio1/input0
S: Sysfs=/devices/platform/i8042/serio1/input/input6
U: Uniq=
H: Handlers=mouse1 event6
B: EV=7
B: KEY=70000 0 0 0 0 0 0 0 0
B: REL=103
Everything works: I can use my remote for the tvcard, the mouse works and the pc speaker do. Sometimes the remote is in "...event6" and "...input6", the mouse in "....input5" and "...event5" and when it happens they don't work. Sometimes the pc speaker steal the place of the remote or the mouse, so I have wesnoth without sound and the mouse or the remote broken.
Is there something I can do to stop this?
 
Old 06-05-2008, 05:12 AM   #2
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842

Rep: Reputation: Disabled
Has this happened with other distrubutions that you have tried?....if so....I suspect you have the wrong bios options

2) have you got your motherboard manual or can you download it....so you can see the various options in your bios

3) what is the name of the bios supplier? award or phoenix etc

4) what is the name of your bootloader? is it lilo or grub or what?

5) assuming its grub you add (with root powers so save works).to your /boot/grub/menu.lst kernel line at end..........pci=routeirq

but please be aware that we can only make one change at a time.

6) also you may have a interrupt conflict.....a conflict is more serious than a interrupt that is shared.

conflicts normally occur if your bios is set to pic and not apic

open a shell and run commands
Code:
su
cat /proc/interrupts
if you see 2 or more devices on the same line you either have a share or conflict but the lines at the bottom of the command as above will tell us so post the output please
 
Old 06-05-2008, 05:14 AM   #3
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842

Rep: Reputation: Disabled
oops you do not need root powers to run cat command and here is my output
cat /proc/interrupts
CPU0
0: 287 IO-APIC-edge timer
1: 3670 IO-APIC-edge i8042
3: 1 IO-APIC-edge
4: 2 IO-APIC-edge
6: 9 IO-APIC-edge floppy
9: 0 IO-APIC-fasteoi acpi
12: 73194 IO-APIC-edge i8042
14: 17956 IO-APIC-edge pata_via
15: 0 IO-APIC-edge pata_via
16: 175455 IO-APIC-fasteoi EMU10K1, nvidia
18: 6909 IO-APIC-fasteoi eth0
20: 10724 IO-APIC-fasteoi sata_via
21: 0 IO-APIC-fasteoi ehci_hcd:usb1, uhci_hcd:usb2, uhci_hcd:usb3, uhci_hcd:usb4, uhci_hcd:usb5
NMI: 0 Non-maskable interrupts
LOC: 1725704 Local timer interrupts
RES: 0 Rescheduling interrupts
CAL: 0 function call interrupts
TLB: 0 TLB shootdowns
TRM: 0 Thermal event interrupts
SPU: 0 Spurious interrupts
ERR: 0

notice the APIC shows up and a number of devices SHARE the same interrupt but ERR is zero so there are no errors
 
Old 06-05-2008, 06:12 AM   #4
sloteel
Member
 
Registered: Jul 2005
Distribution: Ubuntu 18.04
Posts: 71

Original Poster
Rep: Reputation: 15
The output of "cat /proc/interrupts" is:

Quote:

CPU0
0: 319 IO-APIC-edge timer
1: 5879 IO-APIC-edge i8042
3: 7 IO-APIC-edge
4: 6 IO-APIC-edge
6: 5 IO-APIC-edge floppy
7: 0 IO-APIC-edge parport0
8: 124400 IO-APIC-edge rtc
9: 0 IO-APIC-fasteoi acpi
10: 2 IO-APIC-edge MPU401 UART
12: 547986 IO-APIC-edge i8042
14: 34054 IO-APIC-edge libata
15: 72267 IO-APIC-edge libata
16: 894426 IO-APIC-fasteoi ehci_hcd:usb3, eth0
17: 1482896 IO-APIC-fasteoi ohci_hcd:usb1, NVidia nForce2
18: 1 IO-APIC-fasteoi ohci_hcd:usb2
19: 0 IO-APIC-fasteoi saa7130[0], saa7130[0]
20: 0 IO-APIC-fasteoi fglrx
NMI: 0 Non-maskable interrupts
LOC: 1708347 Local timer interrupts
RES: 0 Rescheduling interrupts
CAL: 0 function call interrupts
TLB: 0 TLB shootdowns
TRM: 0 Thermal event interrupts
SPU: 0 Spurious interrupts
ERR: 0
MIS: 0
Do you see something wrong? It's the first time it happens, I have used for a long time suse (9.1,9.2,9.3) , kanotix and pclinuxos (0.92,0.93,2007,2008). My bios is made by phoenix.
I have grub, but I don't understand this:

Quote:
but please be aware that we can only make one change at a time.
What does it mean? I have to change only one kernel line at a time?

Last edited by sloteel; 06-05-2008 at 06:22 AM. Reason: I forgot an answer
 
Old 06-05-2008, 06:18 AM   #5
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842

Rep: Reputation: Disabled
interrupts looks fine....now try the grub boot parameter please
 
Old 06-05-2008, 10:13 AM   #6
sloteel
Member
 
Registered: Jul 2005
Distribution: Ubuntu 18.04
Posts: 71

Original Poster
Rep: Reputation: 15
First of all, here it is my menu.lst:

Quote:
default 0
timeout 10
color cyan/black white/black

title Ubuntu 8.04, kernel 2.6.24-18-generic
root (hd0,4)
kernel /boot/vmlinuz-2.6.24-18-generic root=UUID=50b20193-b0fe-4221-a90d-5d26c129dde8 ro quiet splash pci=routeirq
initrd /boot/initrd.img-2.6.24-18-generic
quiet

title Ubuntu 8.04, kernel 2.6.24-18-generic (recovery mode)
root (hd0,4)
kernel /boot/vmlinuz-2.6.24-18-generic root=UUID=50b20193-b0fe-4221-a90d-5d26c129dde8 ro single pci=routeirq
initrd /boot/initrd.img-2.6.24-18-generic

title Ubuntu 8.04, kernel 2.6.24-18-rt
root (hd0,4)
kernel /boot/vmlinuz-2.6.24-18-rt root=UUID=50b20193-b0fe-4221-a90d-5d26c129dde8 ro quiet splash pci=routeirq
initrd /boot/initrd.img-2.6.24-18-rt
quiet

title Ubuntu 8.04, kernel 2.6.24-18-rt (recovery mode)
root (hd0,4)
kernel /boot/vmlinuz-2.6.24-18-rt root=UUID=50b20193-b0fe-4221-a90d-5d26c129dde8 ro single pci=routeirq
initrd /boot/initrd.img-2.6.24-18-rt

title Ubuntu 8.04, memtest86+
root (hd0,4)
kernel /boot/memtest86+.bin
quiet

title Other operating systems:
root

title Windows XP Home Edition
root (hd0,0)
chainloader +1
savedefault
makeactive
Do I write it right?
By the way, I have booted 2 times the generic kernel and 2 times the rt kernel: the generic one seems to work now, the rt doesn't: maybe this option is not supported by that kernel?

Last edited by sloteel; 06-05-2008 at 11:40 AM.
 
Old 06-05-2008, 11:40 AM   #7
sloteel
Member
 
Registered: Jul 2005
Distribution: Ubuntu 18.04
Posts: 71

Original Poster
Rep: Reputation: 15
Unfortunately on the third boot pcspeaker took the mouse's place even with the generic kernel.
 
Old 06-05-2008, 07:47 PM   #8
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842

Rep: Reputation: Disabled
did you write it correctly....yes....your observations are good as well...I do not use ubuntu but I have requests for you.

1) from now on ignore the recovery kernels pls
2) try only the generic and whatever the rt is....btw in your package manager there should be a description of rt...if you find it let me know pls....it may help others as well

now for both...kernels...upload your /var/log/syslog to a online site that you can link to....if you do not have one...use www.ripway.com and its free.

this is more work for you...and for others to read....but these logs tend to be large and may turn off others reading it so the link posted here is easier on the eye if you agree?

3) for each kernel I would like a link for the output of your cat /proc/interrupts AND I would like a link for each for the output of lsmod command....this lsmod command may not be useful...but we won't know until we read it eh?

4) can I suggest you name each file something like
gen-syslog and rt-syslog
gen-irq (for interrupts) and rt-irq
gen-lsmod and rt-lsmod

5) Please remove that grub parameter from your (recovery mode) kernel kernel lines
 
Old 06-05-2008, 07:53 PM   #9
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842

Rep: Reputation: Disabled
Now the other questions you ask and my reasons are:

to troubleshoot...you only want to make change at a time...so you know what u did and so know what has changed the effects.

2) did you have the same issue with the other distros?......what was wrong with them if it did not? as if I or others can not help....it may not be you....I suspect it never was...but your choice of distro....leaping ahead pclinuxos is based on mandriva....heh heh

3) knowing it is phoenix allows us to think about whether we should flash it...and where to get the flash files.....but altho I am experienced at it....it is the last resort and not recommended in case we can solve it for software issues.

again...if your other distros did not have the problem....it is not your bios...but until you answer I am not sure ok?
 
Old 06-06-2008, 04:23 AM   #10
sloteel
Member
 
Registered: Jul 2005
Distribution: Ubuntu 18.04
Posts: 71

Original Poster
Rep: Reputation: 15
First of all, thanks a lot for you help, really. Then, here is the description of the rt-kernel:

Quote:
Linux kernel image for version 2.6.24 on Ingo Molnar's full real time preemption patch (2.6.24.3-rt3)
This package contains the Linux kernel image for version 2.6.24 on
Ingo Molnar's full real time preemption patch (2.6.24.3-rt3).

Also includes the corresponding System.map file, the modules built by the
packager, and scripts that try to ensure that the system is not left in an
unbootable state after an update.

Supports Generic processors.

RT kernel

You likely do not want to install this package directly. Instead, install
the linux-rt meta-package, which will ensure that upgrades work
correctly, and that supporting packages are also installed.
The links:

http://www.webalice.it/villasilvana/linux/gen-irq
http://www.webalice.it/villasilvana/linux/gen-lsmod
http://www.webalice.it/villasilvana/linux/gen-syslog
http://www.webalice.it/villasilvana/linux/gen-devices (a save of the "cat /proc/bus/input/devices" command)



http://www.webalice.it/villasilvana/linux/rt-irq
http://www.webalice.it/villasilvana/linux/rt-syslog
http://www.webalice.it/villasilvana/linux/rt-lsmod
http://www.webalice.it/villasilvana/linux/rt-devices (the same as above, in this case mouse and ircommand are not working)

I can't install more distros because my burner is broken, but the ones I used in the past worked well.
 
Old 06-06-2008, 07:02 AM   #11
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842

Rep: Reputation: Disabled
bad luck on burner....and at least we know this is a distro specific issue and you previously had working hw with other distros you tried.

$50 burner is looking good

2) easy stuff first....
http://h1.ripway.com/aus9/sloteel/irq-diff.png

see the main diff is irq 21 for flgx which is for graphics...I used to think that it was ati but then I spotted in your lsmod.... nvidia graphics.

3) I propose the following suggestions

assume from now on....boot only the generic pls

a) if you do not need pcspeaker, you can get rid of it completely

ubuntu should have a folder in /etc/ called module or modules whatever....you will find files called blacklist

just add a new line to one with the new line

pcspkr

b) if you do need it.....run a command with root powers after you have booted

....check your input devices first

modprobe pcskr

if there are no conflicts now add it to /etc/rc.local with root powers and see if on reboot your input devices is still good.

pls report if any success....but do a few reboots so we have more confidence it is the pcskr.
 
Old 06-06-2008, 10:41 AM   #12
sloteel
Member
 
Registered: Jul 2005
Distribution: Ubuntu 18.04
Posts: 71

Original Poster
Rep: Reputation: 15
No, it still doesn't work, but maybe I forgot something important:
To make the ircommand work I put in rc.local this line:

/usr/sbin/lircd -H dev/input -d /dev/input/event5

I tried to erase "-d /dev/input/event5" and reboot: even with the mouse in "...input5" (the place that the remote should have) the mouse itself works.... but the ircommand doesn't.
Following the guide I use to configure the tvcard to indicate the device is a condition not escapable. Maybe this is the root of the problem? I have used this trick in every distro I got.
 
Old 06-06-2008, 07:30 PM   #13
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842

Rep: Reputation: Disabled
not that I have infrared remote but you can see your device in here and can you name pls
http://lirc.sourceforge.net/remotes/


EDIT

remove all work you did on attempt for pcskr since it failed.

2) you won't like it but please try this

remove that rc.local line that fixes ir device to event5
reboot
run your cat /proc/bus/input/devices command to see what events are free
run manually /usr/sbin/lircd -H dev/input -d /dev/input/eventN where N is a free number

Last edited by aus9; 06-06-2008 at 08:52 PM.
 
Old 06-07-2008, 06:06 AM   #14
sloteel
Member
 
Registered: Jul 2005
Distribution: Ubuntu 18.04
Posts: 71

Original Poster
Rep: Reputation: 15
My remote isn't there: I have one bundled with the tv card, a lifeview flyvideo 2000.
After a reboot as in 2) I got this:

Quote:

I: Bus=0017 Vendor=0001 Product=0001 Version=0100
N: Name="Macintosh mouse button emulation"
P: Phys=
S: Sysfs=/devices/virtual/input/input0
U: Uniq=
H: Handlers=mouse0 event0
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=ab41
N: Name="AT Translated Set 2 keyboard"
P: Phys=isa0060/serio0/input0
S: Sysfs=/devices/platform/i8042/serio0/input/input1
U: Uniq=
H: Handlers=kbd event1
B: EV=120013
B: KEY=4 2000000 3803078 f800d001 feffffdf ffefffff ffffffff fffffffe
B: MSC=10
B: LED=7

I: Bus=0019 Vendor=0000 Product=0002 Version=0000
N: Name="Power Button (FF)"
P: Phys=LNXPWRBN/button/input0
S: Sysfs=/devices/virtual/input/input2
U: Uniq=
H: Handlers=kbd event2
B: EV=3
B: KEY=100000 0 0 0

I: Bus=0019 Vendor=0000 Product=0001 Version=0000
N: Name="Power Button (CM)"
P: Phys=PNP0C0C/button/input0
S: Sysfs=/devices/virtual/input/input3
U: Uniq=
H: Handlers=kbd event3
B: EV=3
B: KEY=100000 0 0 0

I: Bus=0010 Vendor=001f Product=0001 Version=0100
N: Name="PC Speaker"
P: Phys=isa0061/input0
S: Sysfs=/devices/platform/pcspkr/input/input4
U: Uniq=
H: Handlers=kbd event4
B: EV=40001
B: SND=6

I: Bus=0001 Vendor=5618 Product=0138 Version=0001
N: Name="saa7134 IR (LifeView/Typhoon Fl"
P: Phys=pci-0000:01:08.0/ir0
S: Sysfs=/devices/pci0000:00/0000:00:08.0/0000:01:08.0/input/input5
U: Uniq=
H: Handlers=kbd event5
B: EV=100003
B: KEY=c0304 310000 0 0 0 0 0 0 2 1e0000 0 0 10000ffc

I: Bus=0011 Vendor=0002 Product=0005 Version=0000
N: Name="ImPS/2 Generic Wheel Mouse"
P: Phys=isa0060/serio1/input0
S: Sysfs=/devices/platform/i8042/serio1/input/input6
U: Uniq=
H: Handlers=mouse1 event6
B: EV=7
B: KEY=70000 0 0 0 0 0 0 0 0
B: REL=103
And irKick said that there weren't any remotes available. So I lunched "sudo /usr/sbin/lircd -H dev/input -d /dev/input/event5" and it stars to work.
I know that /dev/input/event5 is the place where it always worked but after 10 boots I couldn't have it in another place! But I think that this is the problem. Maybe I should write a script that read the content of /proc/bus/input/devices and sets the line I use to start lircd...

Last edited by sloteel; 06-07-2008 at 06:44 AM.
 
Old 06-07-2008, 08:58 AM   #15
sloteel
Member
 
Registered: Jul 2005
Distribution: Ubuntu 18.04
Posts: 71

Original Poster
Rep: Reputation: 15
I hopefully solved the problem with a very rough solution. First, I blacklisted pcspkr: I don't really need it, and its presence is going to complicate the situation. Then, I made this script:
Quote:
#!/bin/bash
STRINGA=$(/bin/cat /proc/bus/input/devices | /bin/grep -n saa)
I="4"
if [[ $STRINGA != '41:N: Name="saa7134 IR (LifeView/Typhoon Fl"' ]]
then
I="5"
fi
/usr/sbin/lircd -H dev/input -d /dev/input/event$I
This script start lircd with "-d /dev/input/event4" if the remote is in event4, "-d /dev/input/event5" if it is elsewhere, but without the pc speaker I'm confident that the remote will be only in input4 or input5. So I copied this in /usr/bin and I wrote /usr/bin/remotestart (the name of the script) in rc.local. Now I'm studying bash programming to upgrade the script and make it handle more situations.

Aus9, thanks a lot for your time, your help and your learnings.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Format of /proc/bus/pci/devices file. chuckleberry Linux - Software 2 02-08-2006 11:40 AM
where is /proc/bus/usb/devices???? mrchaos Linux - Software 4 12-04-2005 10:26 PM
Can't find eof in proc/bus/pci/devices pappsynz Programming 3 04-08-2005 03:26 AM
/proc/bus/usb/devices missing shellcode Linux - General 11 02-24-2004 10:15 PM
/proc/bus/pci/devices file question sleepymish Linux - Newbie 6 11-12-2003 10:16 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 06:42 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration