80-logitech-mouse.rules errors from udevd - Mandriva

This is a discussion on 80-logitech-mouse.rules errors from udevd - Mandriva ; system: 2008.1 x86_64, mouse is logitech wireless usb 046d:c510 On boot i get a lot of these messages: add_to_rules: invalid rule /etc/udev/rules.d/80-logitech-mouse.rules I discoverd that my mouse wasnt listed in /etc/udev/rules.d/80-logitech-mouse.rules so i added a line to the bottom: BUS="usb", ...

+ Reply to Thread
Results 1 to 6 of 6

Thread: 80-logitech-mouse.rules errors from udevd

  1. 80-logitech-mouse.rules errors from udevd

    system: 2008.1 x86_64, mouse is logitech wireless usb 046d:c510

    On boot i get a lot of these messages:
    add_to_rules: invalid rule /etc/udev/rules.d/80-logitech-mouse.rules

    I discoverd that my mouse wasnt listed
    in /etc/udev/rules.d/80-logitech-mouse.rules
    so i added a line to the bottom:
    BUS="usb", SYSFS{idVendor}="046d", SYSFS{idProduct}="c510",
    PROGRAM="/etc/udev/scripts/logitech-mouse.sh %s{idProduct}"

    This matches my mouse, but i still get the messages on boot
    I found a couple of things to check on google but they didnt pan out.
    Any ideas on how to fix this?
    Also, my mouse sticks badly(which shouldnt happen with an optical mouse)and
    is very annoying to use, i have fresh batteries in it
    Thanks
    Eric


  2. Re: 80-logitech-mouse.rules errors from udevd

    Em Terça, 26 de Agosto de 2008 02:07, Eric escreveu:

    > system: 2008.1 x86_64, mouse is logitech wireless usb 046d:c510
    >
    > On boot i get a lot of these messages:
    > add_to_rules: invalid rule /etc/udev/rules.d/80-logitech-mouse.rules
    >
    > I discoverd that my mouse wasnt listed
    > in /etc/udev/rules.d/80-logitech-mouse.rules
    > so i added a line to the bottom:
    > BUS="usb", SYSFS{idVendor}="046d", SYSFS{idProduct}="c510",
    > PROGRAM="/etc/udev/scripts/logitech-mouse.sh %s{idProduct}"
    >
    > This matches my mouse, but i still get the messages on boot
    > I found a couple of things to check on google but they didnt pan out.
    > Any ideas on how to fix this?
    > Also, my mouse sticks badly(which shouldnt happen with an optical
    > mouse)and is very annoying to use, i have fresh batteries in it
    > Thanks
    > Eric

    you're not respecting the sintaxe:

    BUS="usb" means you want to set BUS to be usb and that is wrong.
    for tests use doble == like BUS=="usb"

    resuming

    == test if is equal
    != test if is diferent
    = modifies a value
    += adds a value

    please read the udev manuals and revew the lines you've add to it.
    udev sintaxe is tricky.
    i think the 1st steps of your line should be:
    BUS=="usb", SYSFS{idVendor}=="046d", SYSFS{idProduct}=="c510",

    as for the PROGRAM part, i don't know...

    regards
    ArameFarpado



  3. Re: 80-logitech-mouse.rules errors from udevd

    ArameFarpado wrote:

    > Em Terça, 26 de Agosto de 2008 02:07, Eric escreveu:
    >
    >> system: 2008.1 x86_64, mouse is logitech wireless usb 046d:c510
    >>
    >> On boot i get a lot of these messages:
    >> add_to_rules: invalid rule /etc/udev/rules.d/80-logitech-mouse.rules
    >>
    >> I discoverd that my mouse wasnt listed
    >> in /etc/udev/rules.d/80-logitech-mouse.rules
    >> so i added a line to the bottom:
    >> BUS="usb", SYSFS{idVendor}="046d", SYSFS{idProduct}="c510",
    >> PROGRAM="/etc/udev/scripts/logitech-mouse.sh %s{idProduct}"
    >>
    >> This matches my mouse, but i still get the messages on boot
    >> I found a couple of things to check on google but they didnt pan out.
    >> Any ideas on how to fix this?
    >> Also, my mouse sticks badly(which shouldnt happen with an optical
    >> mouse)and is very annoying to use, i have fresh batteries in it
    >> Thanks
    >> Eric

    > you're not respecting the sintaxe:
    >
    > BUS="usb" means you want to set BUS to be usb and that is wrong.
    > for tests use doble == like BUS=="usb"
    >
    > resuming
    >
    > == test if is equal
    > != test if is diferent
    > = modifies a value
    > += adds a value
    >
    > please read the udev manuals and revew the lines you've add to it.
    > udev sintaxe is tricky.
    > i think the 1st steps of your line should be:
    > BUS=="usb", SYSFS{idVendor}=="046d", SYSFS{idProduct}=="c510",
    >
    > as for the PROGRAM part, i don't know...
    >
    > regards
    > ArameFarpado

    If you're correct then the whole file has this error (which means a mandriva
    bug) and that would probably explain why i get so many of these error
    messages from the logitech rules on boot.
    I'll experiment with that change and see if it cures things. I'm remote at
    the moment so i cant try it out until later on tonight.


  4. Re: 80-logitech-mouse.rules errors from udevd

    On Mon, 25 Aug 2008 22:56:36 -0400, Eric wrote:

    > ArameFarpado wrote:
    >
    >> Em Tera, 26 de Agosto de 2008 02:07, Eric escreveu:
    >>
    >>> system: 2008.1 x86_64, mouse is logitech wireless usb 046d:c510
    >>>
    >>> On boot i get a lot of these messages:
    >>> add_to_rules: invalid rule /etc/udev/rules.d/80-logitech-mouse.rules
    >>> I discoverd that my mouse wasnt listed
    >>> in /etc/udev/rules.d/80-logitech-mouse.rules
    >>> so i added a line to the bottom:
    >>> BUS="usb", SYSFS{idVendor}="046d", SYSFS{idProduct}="c510",
    >>> PROGRAM="/etc/udev/scripts/logitech-mouse.sh %s{idProduct}"


    > If you're correct then the whole file has this error (which means a mandriva
    > bug) and that would probably explain why i get so many of these error
    > messages from the logitech rules on boot.


    I'm not sure about the syntax, however, isn't the above file updated by udev,
    using the info from
    /usr/share/hal/fdi/information/10freedesktop/10-usbcsr-mice.fdi
    which on my i586 2008.1 system does include 046d:c510?

    Regards, Dave Hodgins

    --
    Change nomail.afraid.org to ody.ca to reply by email.
    (nomail.afraid.org has been set up specifically for
    use in usenet. Feel free to use it yourself.)

  5. Re: 80-logitech-mouse.rules errors from udevd

    Eric wrote:

    > system: 2008.1 x86_64, mouse is logitech wireless usb 046d:c510
    >
    > On boot i get a lot of these messages:
    > add_to_rules: invalid rule /etc/udev/rules.d/80-logitech-mouse.rules
    >
    > I discoverd that my mouse wasnt listed
    > in /etc/udev/rules.d/80-logitech-mouse.rules
    > so i added a line to the bottom:
    > BUS="usb", SYSFS{idVendor}="046d", SYSFS{idProduct}="c510",
    > PROGRAM="/etc/udev/scripts/logitech-mouse.sh %s{idProduct}"
    >

    In addition to the other poster mentioning the bad syntax, I notice there
    isn't any logitech rules file in my 2008.1 rules.d.
    Grepping for "mouse" gives these rules:
    50-udev-default.rules:KERNEL=="mouse*|mice|event*", NAME="input/%k",
    MODE="0640"
    60-persistent-input.rules:SUBSYSTEMS=="usb", ATTRS{bInterfaceClass}=="03",
    ATTRS{bInterfaceProtocol}=="02", ENV{ID_CLASS}="mouse"
    60-persistent-input.rulesRIVERS=="psmouse", ENV{ID_CLASS}="mouse"
    60-persistent-input.rules:KERNEL=="mouse*|js*", ENV{ID_BUS}=="?*",
    ENV{ID_CLASS}=="?*",
    SYMLINK+="input/by-id/$env{ID_BUS}-$env{ID_SERIAL}-$env{ID_CLASS}"
    60-persistent-input.rules:ENV{ID_PATH}=="?*", KERNEL=="mouse*|js*",
    SYMLINK+="input/by-path/$env{ID_PATH}-$env{ID_CLASS}"
    70-hotplug_map.rules:SUBSYSTEM=="usb", SYSFS{bInterfaceSubClass}=="01",
    SYSFS{bInterfaceProtocol}=="02", SYSFS{bInterfaceClass}=="03",
    RUN+="/sbin/modprobe mousedev"
    70-hotplug_map.rules:SUBSYSTEM=="usb", SYSFS{idProduct}=="9998",
    SYSFS{idVendor}=="05a4", RUN+="/sbin/modprobe mousedev"

    and grepping logitech says zilch.

    I guess you should first move your logitech-rules outside rules.d - it
    appears to be a remainder from some wanky prerelease.


  6. Re: 80-logitech-mouse.rules errors from udevd

    David W. Hodgins wrote:

    > On Mon, 25 Aug 2008 22:56:36 -0400, Eric wrote:
    >
    >> ArameFarpado wrote:
    >>
    >>> Em Terça, 26 de Agosto de 2008 02:07, Eric escreveu:
    >>>
    >>>> system: 2008.1 x86_64, mouse is logitech wireless usb 046d:c510
    >>>>
    >>>> On boot i get a lot of these messages:
    >>>> add_to_rules: invalid rule /etc/udev/rules.d/80-logitech-mouse.rules
    >>>> I discoverd that my mouse wasnt listed
    >>>> in /etc/udev/rules.d/80-logitech-mouse.rules
    >>>> so i added a line to the bottom:
    >>>> BUS="usb", SYSFS{idVendor}="046d", SYSFS{idProduct}="c510",
    >>>> PROGRAM="/etc/udev/scripts/logitech-mouse.sh %s{idProduct}"

    >
    >> If you're correct then the whole file has this error (which means a
    >> mandriva bug) and that would probably explain why i get so many of these
    >> error messages from the logitech rules on boot.

    >
    > I'm not sure about the syntax, however, isn't the above file updated by
    > udev, using the info from
    > /usr/share/hal/fdi/information/10freedesktop/10-usbcsr-mice.fdi
    > which on my i586 2008.1 system does include 046d:c510?
    >
    > Regards, Dave Hodgins
    >

    changing all the logitech rules to use the proper == syntax
    like this:
    BUS=="usb", SYSFS{idVendor}=="046d", SYSFS{idProduct}=="c510",
    PROGRAM="/etc/udev/scripts/logitech-mouse.sh %s{idProduct}"
    fixed the problem. Consider it a kind of IF statement. "If BUS==X and
    VendorID==Y and ProductID==Z then Program ="
    The errors in this file are there after a mandriva
    2008.1 x86_64 install.
    Its also, important to fix the /etc/udev/scripts/logitech-mouse.sh
    #lmctl=`which lmctl 2> /dev/null`
    lmctl=/usr/sbin/lmctl
    because, according to what i read, 'which' inst available at the boot stage
    that the logitech-mouse.sh script runs at.
    I found that this has been submitted to mandriva a couple of times, fixed,
    then winds up broken again.
    Eric



+ Reply to Thread