Announcement

Collapse
No announcement yet.

lirc multi-user configuration

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    lirc multi-user configuration

    Ref: http://www.kubuntuforums.net/showthr...332#post307332

    Here are the configuration changes and scripts I have created to enable multi-user LIRC. They could possibly use some improvement.

    /etc/lirc/start_ir.sh
    Code:
    #!/bin/bash
    
    date >> ~/irlog.txt
    echo "Starting IR" >> ~/irlog.txt
    irexec &
    lircrcd ~/.lircrc &
    /etc/lirc/stop_ir.sh
    Code:
    #!/bin/bash
    
    date >> ~/irlog.txt
    echo "Stopping IR" >> ~/irlog.txt
    killall irexec
    killall lircrcd
    /etc/lirc/all_user_lircrc
    Code:
    #! lircrcd
    
    *** stuff that should work for all users ***
    Everything below this is for each user that can login. If these are not created for a user, they will not get LIRC to run for them.

    ~/.lircrc
    Code:
    #! lircrcd
    
    include /etc/lirc/all_user_lircrc
    
    *** lirc stuff specific to this user ***
    ~/lock_script.sh
    Code:
    #!/bin/bash
    ~/.kde/shutdown/stop_ir.sh
    #other things to do when the users screen gets locked
    ~/unlock_script.sh
    Code:
    #!/bin/bash
    ~/.kde/Autostart/start_ir.sh
    #other things to do when the users screen gets unlocked
    ~/.kde/Autostart/start_ir.sh is a soft link to /etc/lirc/start_ir.sh

    ~/.kde/shutdown/stop_ir.sh is a soft link to /etc/lirc/stop_ir.sh

    ~/.kde/share/config/kscreenlocker.notifyrc
    Code:
    [Event/locked]
    Action=Execute
    Execute=~/lock_script.sh
    KTTS=
    Logfile=
    Sound=
    
    [Event/unlocked]
    Action=Execute
    Execute=~/unlock_script.sh
    KTTS=
    Logfile=
    Sound=
    Last edited by Snowhog; Aug 28, 2012, 11:52 PM.
Working...
X