Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 156665 - sys-apps/lomoco is missing udev support
Summary: sys-apps/lomoco is missing udev support
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Benedikt Böhm (RETIRED)
URL: http://lomoco.linux-gamers.net/
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-11-29 15:08 UTC by skolima
Modified: 2010-03-07 12:39 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
sys-apps/lomoco/lomoco-1.0-r1.ebuild (lomoco-1.0-r1.ebuild,1.54 KB, text/plain)
2006-11-29 15:09 UTC, skolima
Details
sys-apps/lomoco/files/lomoco-1.0-updated-udev.patch (lomoco-1.0-updated-udev.patch,1.07 KB, patch)
2006-11-29 15:09 UTC, skolima
Details | Diff
sys-apps/lomoco/files/lomoco-1.0-settings (lomoco-1.0-settings,59 bytes, text/plain)
2006-11-29 15:10 UTC, skolima
Details

Note You need to log in before you can comment on or make changes to this bug.
Description skolima 2006-11-29 15:08:03 UTC
lomoco comes with udev rules and a helper script, which allows for an easy way of making the configuration permanent. However, the ebuild neither installs this, nor even informs user of this possibility. I've update the ebuild to fix this, please consult the attachements.
Comment 1 skolima 2006-11-29 15:09:12 UTC
Created attachment 103026 [details]
sys-apps/lomoco/lomoco-1.0-r1.ebuild
Comment 2 skolima 2006-11-29 15:09:52 UTC
Created attachment 103027 [details, diff]
sys-apps/lomoco/files/lomoco-1.0-updated-udev.patch
Comment 3 skolima 2006-11-29 15:10:18 UTC
Created attachment 103028 [details]
sys-apps/lomoco/files/lomoco-1.0-settings
Comment 4 Matthias Schwarzott gentoo-dev 2007-03-17 15:19:33 UTC
Looks good, only changes required:
change SYSFS to ATTR oder ATTRS where ATTRS is better if you do not know exactly each supported hardware.
Comment 5 skolima 2007-04-17 09:43:07 UTC
This is an upstream patch (from lomoco mailing list AFAIR) , and I am totally lame with udev...

[Sorry for the delayed answer, I had no net access for 2 months]
Comment 6 Benedikt Böhm (RETIRED) gentoo-dev 2007-07-30 09:19:27 UTC
fixed in 1.0-r2, thanks.
Comment 7 Julien Allanos (RETIRED) gentoo-dev 2007-08-15 21:56:38 UTC
lomoco-1.0-r2 isn't working here.

I have a Logitech MX310 Optical Mouse (046d:c01b), udev-114, and nothing is happening : resolution is still 400 cpi although I have LOGITECH_MOUSE_RESOLUTION=800 in /etc/lomoco.conf.

1/ I wonder if 'SUBSYSTEM != "usb_device"' is adapted in /etc/udev/rules/40-lomoco.rules. Why is SUBSYSTEM "usb_device", and not "usb" ?

2/ I have /usr/ on a LVM2 volume, so /usr/ isn't available at boot, which makes udev fail because lomoco is installed into /usr/bin/. It would be much better if lomoco was installed into /sbin/. The /lib/udev/lomoco script should then be corrected "/usr/bin/lomoco" -> "/sbin/lomoco".

3/ In the /lib/udev/lomoco script, path to logger is not correct: "/bin/logger" instead of "/usr/bin/logger". Considering some users (like me) might have /usr/ unavailable at boot time, the logger program should be installed into /bin/, not into /usr/bin/. This might be a bug for the base-system herd.

4/ I traced $DEVPATH in the /lib/udev/lomoco script, and it doesn't fit into the "*usbdev*.*" expression. So, even by manually correcting the previous remarks, the script itself does nothing but exiting nicely. As I'm far from being a libusb/udev guru, I wonder how can we get the $bus and $dev variables right.

Thoughts?
Comment 8 Matthias Schwarzott gentoo-dev 2007-08-18 15:06:58 UTC
I suggest to change the rules to do
SUBSYSTEM != "usb|usb_device", GOTO="lomoco_end"

and do RDEPEND="!<sys-fs/udev-114" as the older version do not support that syntax.
Comment 9 Anton Bolshakov 2008-10-23 21:23:06 UTC
Ping?

Lomoko is the only package to control Logitech mouses in the portage.
It would be good is somebody could have a look and fix this bug with further package stabilization.
I would like to remove it from the keywords file on my stable x86 system (trying to help as suggested in http://planet.gentoo.org/developers/betelgeuse/2008/10/23/challenge_to_all_users)
Comment 10 Benedikt Böhm (RETIRED) gentoo-dev 2010-03-07 12:39:32 UTC
should be fixed in 1.0-r3, please test, as i no longer have the device