Kodi Community Forum
LIRC: Remote as Mouse? - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Discussions (https://forum.kodi.tv/forumdisplay.php?fid=222)
+--- Forum: Off-Topic (https://forum.kodi.tv/forumdisplay.php?fid=113)
+--- Thread: LIRC: Remote as Mouse? (/showthread.php?tid=66215)



LIRC: Remote as Mouse? - Stieffers - 2010-01-05

Has anyone successfully configured their remote to control the cursor when not running XBMC? I've been fiddling around with LIRC and such, but I haven't been able to get Xserver to recognize the remote as a desktop input device. Any help would be appreciated.


- Dilligaf - 2010-01-06

After a couple days research I got it working on Karmic, you have to set up a HAL mouse and not put a remote mouse in xorg.conf, then run scripts to start everything in the correct order. I have the files for a MS mouse in a zip that I was going to post but I don't think the forum allows attachments post or PM an e-mail and I'll send them.

Mike


- Dilligaf - 2010-01-07

E-mail sent


- Stieffers - 2010-01-07

Cool. I'll host them here on my webspace if you don't mind. Thay way anyone else can try them out.

Edit: I actually got it working! Big Grin Thanks for the help.


- divingmule - 2010-01-09

Stieffers Wrote:Cool. I'll host them here on my webspace if you don't mind. Thay way anyone else can try them out.

Link?? I would like to try this out.


- Stieffers - 2010-01-10

Files: http://www.mediafire.com/?gjkifwuczlw

"Email Wrote:Here's the file, replace dots in folder names with slashes to know where to put files, you will have to make the 30user directory, run the commands in the command.txt file and edit to allow the scripts to run.
Look in the lircmd.conf file to adjust buttons to suit you, right now mouse is activated with the clear button and the mouse moves with the 1-9 buttons. Good luck.

Also, there was a file missing, which is the lirc_mouse.sh file. See below.

Code:
#!/bin/bash

test -f /etc/lirc/lircmd.conf || exit 0
        
STA=`lshal |awk '/'"lirc_mouse"'/ { ++x } END { print x }'`

    if [ -z "$STA" ]; then
        sudo /usr/bin/hal-device -a /org/freedesktop/Hal/devices/lirc_mouse </dev/null> /dev/null
    fi

exit 0



- Dilligaf - 2010-01-10

Sorry I missed that file, I had to add a command to make lircmd run in the script, put script in use/local/bin and name it lirc-mouse.sh:

Code:
#!/bin/bash

sudo /usr/sbin/lircmd

  
test -f /etc/lirc/lircmd.conf || exit 0
        
STA=`lshal |awk '/'"lirc_mouse"'/ { ++x } END { print x }'`

    if [ -z "$STA" ]; then
        sudo /usr/bin/hal-device -a /org/freedesktop/Hal/devices/lirc_mouse </dev/null> /dev/null
        
    fi

exit 0