Results 1 to 10 of 25

Thread: Lircm and X

Hybrid View

  1. #1
    Join Date
    Mar 2007
    Location
    Portsmouth, UK
    Beans
    Hidden!
    Distro
    Ubuntu 11.10 Oneiric Ocelot

    [SOLVED] Lircm and X

    Greetings!

    I'm posting for some input after exhausting just about every angle I can come up with. I'm using Lirc to use my remote in mplayer etc, and this is working perfectly. The problem I am having here is using the lircm extension to control the mouse cursor with the remote control.

    The device output is /dev/lircm (standard) and running cat /dev/lircm does generate output using the correct remote keys. I have to assume that this means Lirc(m) is running just fine, and that the problem is my xorg.conf (God only knows how). The relevant parts of my current config are:

    Code:
    Section "ServerLayout"
        Identifier     "Layout0"
        Screen      0  "Screen0" 0 0
        InputDevice    "Keyboard0" "CoreKeyboard"
        InputDevice    "Mouse0" "CorePointer"
        InputDevice    "LIRC-Mouse"
    EndSection
    
    Section "InputDevice"
        Identifier     "Mouse0"
        Driver         "mouse"
        Option         "Protocol" "auto"
        Option         "Device" "/dev/psaux"
        Option         "Emulate3Buttons" "no"
        Option         "ZAxisMapping" "4 5"
    EndSection
    
    Section "InputDevice"
        Identifier     "LIRC-Mouse"
        Driver         "mouse"
        Option         "Device" "/dev/lircm"
        Option         "Protocol" "IntelliMouse"
        Option         "SendCoreEvents"
        Option         "Buttons" "5"
        Option         "ZAxisMapping" "4 5"
    EndSection
    
    Section "InputDevice"
        # generated from default
        Identifier     "Keyboard0"
        Driver         "kbd"
    EndSection

    I believe my lircmd.conf is fine, but I'll post it anyway:

    Code:
    #UNCONFIGURED
    #
    # To find out how to get a proper configuration file please read:
    # 
    #	/usr/share/doc/lirc/README.Debian
    # 
    # lircmd config file
    # 
    PROTOCOL IntelliMouse
    # ACCELERATOR start max multiplier
    
    ACCELERATOR 2 30 5
    TOGGLE_ACTIVATE * Green
    
    MOVE_N  * Two
    MOVE_NE * Three
    MOVE_E  * Six
    MOVE_SE * Nine
    MOVE_S  * Eight
    MOVE_SW * Seven
    MOVE_W  * Four
    MOVE_NW * One
    
    BUTTON1_TOGGLE * Five
    BUTTON2_TOGGLE * Down
    
    BUTTON1_CLICK * Five
    BUTTON2_CLICK * Star
    BUTTON3_CLICK * Hash

    If anyone's got any ideas about where I'm going wrong, I'd be really grateful

    Grenage.
    Last edited by Grenage; July 20th, 2009 at 09:55 AM.

  2. #2
    Join Date
    Mar 2007
    Location
    Portsmouth, UK
    Beans
    Hidden!
    Distro
    Ubuntu 11.10 Oneiric Ocelot

    Re: Lircm and X

    Shameless one-off bump.

  3. #3
    Join Date
    Jun 2005
    Location
    Canada
    Beans
    94
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: Lircm and X

    I have the same problem. Have you gotten lircmd to work?

  4. #4
    Join Date
    Mar 2007
    Location
    Portsmouth, UK
    Beans
    Hidden!
    Distro
    Ubuntu 11.10 Oneiric Ocelot

    Re: Lircm and X

    Alas no, I never managed to get it working.

  5. #5
    Join Date
    Jun 2005
    Location
    Canada
    Beans
    94
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: Lircm and X

    I fixed the problem for me. All I had to do was add the following to my ServerLayout section:

    Code:
    Option "AutoAddDevices" "off"
    Prior to adding the above line, I noticed that my Lirc-mouse was disabled because AllowEmptyInput is on (according to /var/log/Xorg.0.log). When I turned AllowEmptyInput off, my lirc mouse was working but pressing a key on my keyboard caused the key to be repeated 3 times on the screen.

    Cheers.

  6. #6
    Join Date
    Nov 2006
    Beans
    29

    Re: Lircm and X

    Blackie_Chans solution works, but it dissables HAL which is used for auto mouse and keyboard config since 8.10.
    The more elegant solution is leaving AutoAddDevices enabled and configuring lirc mouse in hal and not in xorg.conf:
    see: https://bugzilla.redhat.com/show_bug.cgi?id=498580

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •