View previous topic :: View next topic |
Author |
Message |
Headrush Watchman
Joined: 06 Nov 2003 Posts: 5597 Location: Bizarro World
|
Posted: Tue Jul 12, 2005 3:47 am Post subject: |
|
|
Try this rule: Code: | KERNEL="event[0-9]*", SYSFS{manufacturer}="Logitech", SYSFS{product}="USB Receiver", SYMLINK="input/logitech%s{bInterfaceNumber}", MODE="0644 |
No matter what event the mouse and keyboard are, /dev/input/logitech00 is always the keyboard, and /dev/input/logitech01 should be the mouse.
(Or vice versa, I can't remember which one came first, I'm not using it right now)
Last edited by Headrush on Tue Jul 12, 2005 5:29 am; edited 1 time in total |
|
Back to top |
|
|
firephoto Veteran
Joined: 29 Oct 2003 Posts: 1612 Location: +48° 5' 23.40", -119° 48' 30.00"
|
Posted: Tue Jul 12, 2005 4:07 am Post subject: |
|
|
*edit The rule is working now but I have no explanation for the segfault below. edit*
Code: |
Jul 11 13:55:08 tshaw 10-udev.hotplug[922]: segfault at 00002aaaaaac2000
rip 0000000000401ffb rsp 00007fffff8873c8 error 4
|
followed by fsck.ext3 errors on my boot partition and a bunch of services puking. _________________ #gentoo-kde on freenode
Last edited by firephoto on Tue Jul 12, 2005 5:33 am; edited 1 time in total |
|
Back to top |
|
|
Headrush Watchman
Joined: 06 Nov 2003 Posts: 5597 Location: Bizarro World
|
Posted: Tue Jul 12, 2005 4:13 am Post subject: |
|
|
What version of udev are you using? The only part of this rule that creates anything new is the symlink.
A symlink shouldn't cause that.
Or maybe a collision with another custom udev rule.
Can you post your entire rules file? |
|
Back to top |
|
|
firephoto Veteran
Joined: 29 Oct 2003 Posts: 1612 Location: +48° 5' 23.40", -119° 48' 30.00"
|
Posted: Tue Jul 12, 2005 4:31 am Post subject: |
|
|
*edit see below edit* _________________ #gentoo-kde on freenode
Last edited by firephoto on Tue Jul 12, 2005 5:33 am; edited 1 time in total |
|
Back to top |
|
|
Headrush Watchman
Joined: 06 Nov 2003 Posts: 5597 Location: Bizarro World
|
Posted: Tue Jul 12, 2005 4:34 am Post subject: |
|
|
firephoto wrote: | That's the only rule that was in there. I think for just making a symlink from an existing input/event* it doesn't need to be too complicated.
This might work.
Code: |
KERNEL="event[0-9]*", SYSFS{manufacturer}="Logitech", SYSFS{product}="USB Receiver", SYMLINK="input/mxduo%n"
|
|
That will not work. the %n will be the same number as the event number, which can change.
So you would get a /dev/input/mxduo1 one time, and the next time possibly a /dev/input/mxduo2, etc
firephoto wrote: | It would depend on that the logitech usb bus getting discovered in the same order every time but I think it would. |
The reason to have custom udev rules is so the detection order doesn't matter! |
|
Back to top |
|
|
Headrush Watchman
Joined: 06 Nov 2003 Posts: 5597 Location: Bizarro World
|
Posted: Tue Jul 12, 2005 4:40 am Post subject: |
|
|
firephoto, what udev version are you using?
That rule I posted is 100% acceptable according to man udev.
We should make sure this isn't something specific to your system or version before posting that people should not use it. |
|
Back to top |
|
|
firephoto Veteran
Joined: 29 Oct 2003 Posts: 1612 Location: +48° 5' 23.40", -119° 48' 30.00"
|
Posted: Tue Jul 12, 2005 4:48 am Post subject: |
|
|
heh, you beat me to a reply before i could nuke my stupidity. I realized that it would be variable while I was rebooting.
I'm using the lastest ~arch version. 062.
*edit rule didn't work edit* _________________ #gentoo-kde on freenode
Last edited by firephoto on Tue Jul 12, 2005 5:35 am; edited 1 time in total |
|
Back to top |
|
|
Headrush Watchman
Joined: 06 Nov 2003 Posts: 5597 Location: Bizarro World
|
Posted: Tue Jul 12, 2005 4:53 am Post subject: |
|
|
firephoto wrote: |
Your NAME= part doesn't make sense to have for just a symlink either since the actual node is already created without issue so you just need to detect it and link to it. |
You have to have a NAME= section in every udev rule.
Correction: If NAME= not specified, default is used
If you feel more comfortable, you can eliminate the symlink and make it the node directly. Code: | KERNEL="event[0-9]*", SYSFS{manufacturer}="Logitech", SYSFS{product}="USB Receiver", NAME="input/logitech%s{bInterfaceNumber}", MODE="0644 |
I always leave the original kernel name and create symlinks to be safe.
Last edited by Headrush on Tue Jul 12, 2005 5:31 am; edited 1 time in total |
|
Back to top |
|
|
firephoto Veteran
Joined: 29 Oct 2003 Posts: 1612 Location: +48° 5' 23.40", -119° 48' 30.00"
|
Posted: Tue Jul 12, 2005 5:09 am Post subject: |
|
|
Headrush wrote: |
You have to have a NAME= section in every udev rule.
|
No you don't.
http://www.reactivated.net/udevrules.php
But it is probably needed in this case.
*edit _________________ #gentoo-kde on freenode
Last edited by firephoto on Tue Jul 12, 2005 5:36 am; edited 1 time in total |
|
Back to top |
|
|
Headrush Watchman
Joined: 06 Nov 2003 Posts: 5597 Location: Bizarro World
|
Posted: Tue Jul 12, 2005 5:24 am Post subject: |
|
|
firephoto wrote: | Headrush wrote: |
You have to have a NAME= section in every udev rule.
|
No you don't.
http://www.reactivated.net/udevrules.php
But it is probably needed in this case.
If you don't believe me that your rule is broken you can load it up and reboot with it to find out. |
I stand corrected on NAME=. It is not needed, but if removed then you lose the ability of setting the device permissions. It would then use the values set in the 50-udev.rules files. Since we don't want to edit this file, best to leave the NAME= section in.
I restarted and the rule works fine. (I'm using udev-0.58 ) |
|
Back to top |
|
|
firephoto Veteran
Joined: 29 Oct 2003 Posts: 1612 Location: +48° 5' 23.40", -119° 48' 30.00"
|
Posted: Tue Jul 12, 2005 5:42 am Post subject: |
|
|
Well the rule is working now, I tested it with udevstart then rebooted and the system came up so i'm not sure what happened that caused the udev-10 segfault.
Hopefully some more info will emerge about using evdev with xorg since evtest relays lots of good info but it seems like there's some conflicts going on somewhere. It could be the logitech hardware too but my ms keyboard splits up the the events too.
I noticed the fps with glxgears was about the same with this new xorg but the actual gears spinning was REALLY smooth. I haven't noticed or had any other issues so far and I've rebooted and restarted X dozens of times today. _________________ #gentoo-kde on freenode |
|
Back to top |
|
|
Headrush Watchman
Joined: 06 Nov 2003 Posts: 5597 Location: Bizarro World
|
Posted: Tue Jul 12, 2005 5:49 am Post subject: |
|
|
It will be nice when all these nagging issues are cleaned up and the next xorg is released.
I went back to xorg 6.8.2 for now and the evdev support between the two is a lot different.
Since you're using 6.99, did you get all 10 buttons working on your mx700 mouse? I had a weird problem where 1 of the buttons didn't work so I went back to 6.8.
(9 buttons is unacceptable for UT2004, need all 10 ) |
|
Back to top |
|
|
firephoto Veteran
Joined: 29 Oct 2003 Posts: 1612 Location: +48° 5' 23.40", -119° 48' 30.00"
|
Posted: Tue Jul 12, 2005 6:00 am Post subject: |
|
|
Yes all 10 work but I don't use the "Cruise" buttons anyway so I don't bother with disabling/enabling their link to the scroll. The top button works just fine which is usually the hold out. There's something funky with the cruise up button right now, I disabled sms on it but it reports that it's "i", similar to the other misbehaving mm buttons on the keyboard that are reporting as "1" and "2". With sms on it still reports as "i" but it scrolls down too.
I also am noticing that I can't seem to "xset m 2/1 4" the mouse either. Any value seems to act the same, no change in speeds? _________________ #gentoo-kde on freenode |
|
Back to top |
|
|
Headrush Watchman
Joined: 06 Nov 2003 Posts: 5597 Location: Bizarro World
|
Posted: Tue Jul 12, 2005 7:15 am Post subject: |
|
|
firephoto wrote: | Yes all 10 work but I don't use the "Cruise" buttons anyway so I don't bother with disabling/enabling their link to the scroll. The top button works just fine which is usually the hold out. There's something funky with the cruise up button right now, I disabled sms on it but it reports that it's "i", similar to the other misbehaving mm buttons on the keyboard that are reporting as "1" and "2". With sms on it still reports as "i" but it scrolls down too.
I also am noticing that I can't seem to "xset m 2/1 4" the mouse either. Any value seems to act the same, no change in speeds? |
I was testing with xev and it showed incorrect inputs. Running evtest in a konsole window gave no ouput, but running it outside X (CTRL-ALT-F1) all all buttons were recognized. |
|
Back to top |
|
|
Headrush Watchman
Joined: 06 Nov 2003 Posts: 5597 Location: Bizarro World
|
Posted: Tue Jul 12, 2005 8:03 am Post subject: |
|
|
firephoto, are you using a MX700?
When I use lmctl it says my MX700 is unsupported. |
|
Back to top |
|
|
firephoto Veteran
Joined: 29 Oct 2003 Posts: 1612 Location: +48° 5' 23.40", -119° 48' 30.00"
|
Posted: Tue Jul 12, 2005 3:25 pm Post subject: |
|
|
MX700 mouse, Y-RJ20 keyboard and a C-BK16A-DUAL charger/receiver.
I don't get anything out of evtest when in X either. _________________ #gentoo-kde on freenode |
|
Back to top |
|
|
Headrush Watchman
Joined: 06 Nov 2003 Posts: 5597 Location: Bizarro World
|
Posted: Tue Jul 12, 2005 3:32 pm Post subject: |
|
|
firephoto wrote: | MX700 mouse, Y-RJ20 keyboard and a C-BK16A-DUAL charger/receiver.
I don't get anything out of evtest when in X either. |
Does lmctl recognize your mouse? |
|
Back to top |
|
|
firephoto Veteran
Joined: 29 Oct 2003 Posts: 1612 Location: +48° 5' 23.40", -119° 48' 30.00"
|
Posted: Tue Jul 12, 2005 3:37 pm Post subject: |
|
|
Yes, works fine.
Code: |
# lmctl -i
002.002: 046d:c50b Receiver for Cordless Desktop MX (C-BK16A-DUAL) Caps: CSR SMS
Receiver type: Unknown (type 3f)
Mouse type: Mx700 Cordless Optical Mouse (2ch)
Connect button on mouse pressed: yes
Active RF Channel: 1
Battery status: 5 (good)
Cordless security ID: 0x0000
Receiver talking: yes
Lock Request (CONNECT button pressed): no
Mouse Powerup (First time out of the box auto-locking): no
Receiver Unlocked (Mouse disconnected): no
Wait Lock (Searching for mouse): no
Writing to USB device: Broken pipe
|
_________________ #gentoo-kde on freenode |
|
Back to top |
|
|
Headrush Watchman
Joined: 06 Nov 2003 Posts: 5597 Location: Bizarro World
|
Posted: Tue Jul 12, 2005 3:44 pm Post subject: |
|
|
Strange. I get this: Code: | 004.005: 046d:c50b Unknown or Unsupported Logitech device |
You can see the product and device ids are the same.
What version of lmctl do you have? |
|
Back to top |
|
|
firephoto Veteran
Joined: 29 Oct 2003 Posts: 1612 Location: +48° 5' 23.40", -119° 48' 30.00"
|
Posted: Tue Jul 12, 2005 3:50 pm Post subject: |
|
|
I just emerge lmctl, so whatever version that is. I'm running ~arch so it could be you just have that "stable" thing going for you. _________________ #gentoo-kde on freenode |
|
Back to top |
|
|
Headrush Watchman
Joined: 06 Nov 2003 Posts: 5597 Location: Bizarro World
|
Posted: Tue Jul 12, 2005 3:52 pm Post subject: |
|
|
firephoto wrote: | I just emerge lmctl, so whatever version that is. I'm running ~arch so it could be you just have that "stable" thing going for you. |
Amazing how you can miss such easy stuff sometimes.
I was still running an old version and not the one that is in portage. Doh!
(I'm not running ~arch, but I have tons of packages that are ) |
|
Back to top |
|
|
Master Shake l33t
Joined: 10 Apr 2005 Posts: 755 Location: Wilmington, Delaware
|
Posted: Wed Jul 13, 2005 5:28 pm Post subject: |
|
|
Is there any word as to when version 6.9.0 is coming out? And is it true about what I hear about gtk 2.8 being optomized for the new version of xorg? _________________ System Specs:
64-bit gentoo linux
Q6600 @ 3.2Ghz
P35 Chipset
4 Gigs 800mhz 4-4-4-12
Nvidia GeForce 8800 GTX @ 630mhz |
|
Back to top |
|
|
Master Shake l33t
Joined: 10 Apr 2005 Posts: 755 Location: Wilmington, Delaware
|
Posted: Thu Jul 14, 2005 9:52 pm Post subject: |
|
|
I've noticed on my machine that xorg version 6.8.99.14 runs with less memory than 6.8.99.13. I also compiled this one under gcc 4.0.1 so idunno if that is also a factor. _________________ System Specs:
64-bit gentoo linux
Q6600 @ 3.2Ghz
P35 Chipset
4 Gigs 800mhz 4-4-4-12
Nvidia GeForce 8800 GTX @ 630mhz |
|
Back to top |
|
|
c.graves n00b
Joined: 03 Jan 2004 Posts: 24 Location: San Jose, California, USA
|
Posted: Wed Jul 20, 2005 6:47 pm Post subject: |
|
|
if I move to anything beyond 6.8.99.8, I lose my second screen. I use Xinerama, and according to the logs everything comes up OK, just like in 6.8.99.8, X sets up the screen right, but the card's output is not enabled and nothing shows up on the monitor. I have a radeon mobility m7 lw (aka radeon 7500).
Any ideas? _________________ cheers,
-c |
|
Back to top |
|
|
hacnslash n00b
Joined: 23 Dec 2004 Posts: 54 Location: west virginia
|
Posted: Thu Jul 21, 2005 5:18 am Post subject: |
|
|
I just attempted to emerge xorg-6.8.99.15 and failed thusly:
Code: | {standard input}: Assembler messages:
{standard input}:7047: Error: symbol `skip' is already defined
{standard input}:7155: Error: symbol `skip2' is already defined
make[5]: *** [fbmmx.o] Error 1
make[5]: Leaving directory `/var/tmp/portage/xorg-x11-6.8.99.15/work/xc/programs/Xserver/fb'
make[4]: *** [fb] Error 2
make[4]: Leaving directory `/var/tmp/portage/xorg-x11-6.8.99.15/work/xc/programs/Xserver'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/var/tmp/portage/xorg-x11-6.8.99.15/work/xc/programs'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/var/tmp/portage/xorg-x11-6.8.99.15/work/xc'
make[1]: *** [World] Error 2
make[1]: Leaving directory `/var/tmp/portage/xorg-x11-6.8.99.15/work/xc'
make: *** [World] Error 2
!!! ERROR: x11-base/xorg-x11-6.8.99.15 failed.
!!! Function build, Line 968, Exitcode 2
!!! make World failed
!!! If you need support, post the topmost build error, NOT this status message.
|
_________________ http://freshmeat.net/projecs/hacburn |
|
Back to top |
|
|
|