Ubuntu This forum is for the discussion of Ubuntu Linux. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
|
06-05-2008, 05:44 AM
|
#1
|
Member
Registered: Jul 2005
Distribution: Ubuntu 18.04
Posts: 71
Rep:
|
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?
|
|
|
06-05-2008, 06:12 AM
|
#2
|
LQ 5k Club
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842
Rep:
|
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
|
|
|
06-05-2008, 06:14 AM
|
#3
|
LQ 5k Club
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842
Rep:
|
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
|
|
|
06-05-2008, 07:12 AM
|
#4
|
Member
Registered: Jul 2005
Distribution: Ubuntu 18.04
Posts: 71
Original Poster
Rep:
|
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 07:22 AM.
Reason: I forgot an answer
|
|
|
06-05-2008, 07:18 AM
|
#5
|
LQ 5k Club
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842
Rep:
|
interrupts looks fine....now try the grub boot parameter please
|
|
|
06-05-2008, 11:13 AM
|
#6
|
Member
Registered: Jul 2005
Distribution: Ubuntu 18.04
Posts: 71
Original Poster
Rep:
|
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 12:40 PM.
|
|
|
06-05-2008, 12:40 PM
|
#7
|
Member
Registered: Jul 2005
Distribution: Ubuntu 18.04
Posts: 71
Original Poster
Rep:
|
Unfortunately on the third boot pcspeaker took the mouse's place even with the generic kernel.
|
|
|
06-05-2008, 08:47 PM
|
#8
|
LQ 5k Club
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842
Rep:
|
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
|
|
|
06-05-2008, 08:53 PM
|
#9
|
LQ 5k Club
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842
Rep:
|
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?
|
|
|
06-06-2008, 05:23 AM
|
#10
|
Member
Registered: Jul 2005
Distribution: Ubuntu 18.04
Posts: 71
Original Poster
Rep:
|
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.
|
|
|
06-06-2008, 08:02 AM
|
#11
|
LQ 5k Club
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842
Rep:
|
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.
|
|
|
06-06-2008, 11:41 AM
|
#12
|
Member
Registered: Jul 2005
Distribution: Ubuntu 18.04
Posts: 71
Original Poster
Rep:
|
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.
|
|
|
06-06-2008, 08:30 PM
|
#13
|
LQ 5k Club
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842
Rep:
|
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 09:52 PM.
|
|
|
06-07-2008, 07:06 AM
|
#14
|
Member
Registered: Jul 2005
Distribution: Ubuntu 18.04
Posts: 71
Original Poster
Rep:
|
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 07:44 AM.
|
|
|
06-07-2008, 09:58 AM
|
#15
|
Member
Registered: Jul 2005
Distribution: Ubuntu 18.04
Posts: 71
Original Poster
Rep:
|
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.
|
|
|
All times are GMT -5. The time now is 06:25 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|