Page 1 of 2 12 LastLast
Results 1 to 10 of 20

Thread: Remote control in Hardy.

  1. #1
    Join Date
    Jan 2007
    Location
    Newcastle upon Tyne
    Beans
    148
    Distro
    Kubuntu 8.04 Hardy Heron

    Remote control in Hardy.

    Can someone please help with a remote problem I am having on Ubuntu 8.04.

    I am getting the following output when running this command-
    sudo /etc/init.d/lirc restart --verbose
    Stopping remote control daemon(s): LIRC [fail]
    * Loading LIRC modules [ OK ]
    * Unable to load LIRC kernel modules. Verify your
    * selected kernel modules in /etc/lirc/hardware.conf

    The hardware conf is-
    # /etc/lirc/hardware.conf
    #
    #Chosen Remote Control
    REMOTE="Hauppauge TV card"
    REMOTE_MODULES="lirc_dev lirc_i2c"
    REMOTE_DRIVER=""
    REMOTE_DEVICE="/dev/lirc0"
    REMOTE_LIRCD_CONF="hauppauge/lircd.conf.hauppauge"
    REMOTE_LIRCD_ARGS=""

    #Chosen IR Transmitter
    TRANSMITTER="None"
    TRANSMITTER_MODULES=""
    TRANSMITTER_DRIVER=""
    TRANSMITTER_DEVICE=""
    TRANSMITTER_LIRCD_CONF=""
    TRANSMITTER_LIRCD_ARGS=""

    #Enable lircd
    START_LIRCD="true"

    #Don't start lircmd even if there seems to be a good config file
    #START_LIRCMD="false"

    #Try to load appropriate kernel modules
    LOAD_MODULES="true"

    # Default configuration files for your hardware if any
    LIRCMD_CONF=""

    #Forcing noninteractive reconfiguration
    #If lirc is to be reconfigured by an external application
    #that doesn't have a debconf frontend available, the noninteractive
    #frontend can be invoked and set to parse REMOTE and TRANSMITTER
    #It will then populate all other variables without any user input
    #If you would like to configure lirc via standard methods, be sure
    #to leave this set to "false"
    FORCE_NONINTERACTIVE_RECONFIGURATION="false"
    START_LIRCMD=""

    Thanks in advance for any help, Kenneth.

  2. #2
    Join Date
    Nov 2006
    Beans
    18

    Re: Remote control in Hardy.

    I too have the same problem since upgrading to Hardy.

    Lirc used to work fine in Gutsy.

    I have tried to search everywhere, but I have no luck yet.


    Code:
    $ sudo /etc/init.d/lirc restart
    [sudo] password for toohtaah:
     * Stopping remote control daemon(s): LIRC                                                               [fail]
     * Loading LIRC modules                                                                                  [ OK ]
     * Unable to load LIRC kernel modules. Verify your
     * selected kernel modules in /etc/lirc/hardware.conf
    Code:
    $ cat /etc/lirc/hardware.conf
    # /etc/lirc/hardware.conf
    #
    #Chosen Remote Control
    REMOTE="Home-brew (16x50 UART compatible serial port)"
    REMOTE_MODULES="lirc_dev lirc_serial"
    REMOTE_DRIVER=""
    REMOTE_DEVICE="/dev/lirc0"
    REMOTE_LIRCD_CONF=""
    REMOTE_LIRCD_ARGS=""
    
    #Chosen IR Transmitter
    TRANSMITTER="None"
    TRANSMITTER_MODULES=""
    TRANSMITTER_DRIVER=""
    TRANSMITTER_DEVICE=""
    TRANSMITTER_LIRCD_CONF=""
    TRANSMITTER_LIRCD_ARGS=""
    
    #Enable lircd
    START_LIRCD="true"
    
    #Don't start lircmd even if there seems to be a good config file
    #START_LIRCMD="false"
    
    #Try to load appropriate kernel modules
    LOAD_MODULES="true"
    
    # Default configuration files for your hardware if any
    LIRCMD_CONF=""
    
    #Forcing noninteractive reconfiguration
    #If lirc is to be reconfigured by an external application
    #that doesn't have a debconf frontend available, the noninteractive
    #frontend can be invoked and set to parse REMOTE and TRANSMITTER
    #It will then populate all other variables without any user input
    #If you would like to configure lirc via standard methods, be sure
    #to leave this set to "false"
    FORCE_NONINTERACTIVE_RECONFIGURATION="false"
    START_LIRCMD=""
    Code:
    $ dmesg | grep lirc
    [   63.244535] lirc_dev: IR Remote Control driver registered, major 61
    [   63.782724] lirc_serial_igor: auto-detected active high receiver
    [   63.782729] lirc_dev: lirc_register_plugin: sample_rate: 0
    [775690.954966] lirc_dev: IR Remote Control driver registered, major 61
    [775690.973468] lirc_serial: no version for "lirc_unregister_plugin" found: kernel tainted.
    [775691.473829] lirc_serial: auto-detected active low receiver
    [775691.473834] lirc_dev: lirc_register_plugin: sample_rate: 0
    Please help me to fix this problem.

    TIA

  3. #3
    Join Date
    Mar 2007
    Beans
    180

    Re: Remote control in Hardy.

    I have the same issue with a streamzap remote.
    My /etc/lirc/hardware.conf is:

    # /etc/lirc/hardware.conf
    #
    #Chosen Remote Control
    REMOTE="Streamzap PC Remote"
    REMOTE_MODULES="lirc_streamzap"
    REMOTE_DRIVER=""
    REMOTE_DEVICE="/dev/lirc0"
    REMOTE_LIRCD_CONF="/etc/lirc/lircd.conf"
    REMOTE_LIRCD_ARGS=""

    #Chosen IR Transmitter
    TRANSMITTER="None"
    TRANSMITTER_MODULES=""
    TRANSMITTER_DRIVER=""
    TRANSMITTER_DEVICE=""
    TRANSMITTER_LIRCD_CONF=""
    TRANSMITTER_LIRCD_ARGS=""

    #Enable lircd
    START_LIRCD="true"

    #Don't start lircmd even if there seems to be a good config file
    #START_LIRCMD="false"

    #Try to load appropriate kernel modules
    LOAD_MODULES="true"

    # Default configuration files for your hardware if any
    LIRCMD_CONF=""

    #Forcing noninteractive reconfiguration
    #If lirc is to be reconfigured by an external application
    #that doesn't have a debconf frontend available, the noninteractive
    #frontend can be invoked and set to parse REMOTE and TRANSMITTER
    #It will then populate all other variables without any user input
    #If you would like to configure lirc via standard methods, be sure
    #to leave this set to "false"
    FORCE_NONINTERACTIVE_RECONFIGURATION="false"
    START_LIRCMD=""
    I don't know if it helps, when I had lirc_dev in the module list, starting lirc reported failure, I changed that line to just load lirc_streamzap and the error went away. I now get your error when turning on verbose.

    Interesting, but the lirc_module is loaded and so is lirc_dev

    Trying irw, just produces nothing. I think the developers of Hardy have broken a lot of packages, ALSA doesn't work with several sound cards that used to work great under Gutsy as well, it's a real pain !!

  4. #4
    Join Date
    Mar 2007
    Beans
    180

    Re: Remote control in Hardy.

    Actually I got mine going, I have had this problem in the past. A new device gets created /dev/lirc1 as well as /dev/lirc0, where /dev/lirc0 used to work, it doesn't now.

    As a tempory fix do the following if you have the /dev/lirc1 device.

    1. /etc/init.d/lirc stop
    2. lircd -d /dev/lirc1
    3. Stop and restart the app that is using lirc and you should be good
    try with irw

  5. #5
    Join Date
    Jan 2007
    Location
    Newcastle upon Tyne
    Beans
    148
    Distro
    Kubuntu 8.04 Hardy Heron

    Re: Remote control in Hardy.

    Tried that but still the same.
    After the last kernel upgrade vmware server will also not work.
    Regards, Kenneth.

  6. #6
    Join Date
    Feb 2007
    Beans
    Hidden!
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: Remote control in Hardy.

    Hi,
    I had the same problem, here's what i did to solve it.

    I read somewhere that i had to remove dkms and lirc-modules-source with apt-get --purge and it would work. But it didn't for me.

    So i tried "insmod"ing it with insmod lirc_dev and insmod lirc_mceusb. It gave an error that it couldn't find the modules. So i did a locate lirc_dev and did "insmod /lib/modules/2.6.24-17-generic/kernel/drivers/input/misc/lirc_dev.ko" and "insmod /lib/modules/2.6.24-17-generic/kernel/drivers/input/misc/lirc_mceusb2.ko". It went fine, dmesg even showed my remote information.

    But when i tried to do /etc/init.d/lirc start it gave the same error of not being able to load. I saw the script, it was trying to load the modules with modprobe -k. I tried to do that manually, i.e modprobe -k lirc_dev , it gave error like "FATAL: Could not open '/lib/modules/2.6.24-17-generic/updates/dkms/lirc_dev.ko': No such file or directory"

    So i thought that the script needs dkms to place the modules. So i opened synaptic and installed dkms and lirc-modules-source again. It automatically made the modules and kept it in proper place. I did a locate lirc_dev and it was there in proper place.

    /etc/init.d/lirc start works now.

    I guess you need to remove dkms and lirc-modules-source and install it again to make it work.

    Hope this helps

  7. #7
    Join Date
    Jan 2007
    Location
    Newcastle upon Tyne
    Beans
    148
    Distro
    Kubuntu 8.04 Hardy Heron

    Re: Remote control in Hardy.

    Quote Originally Posted by sandi.newton View Post
    Hi,
    I had the same problem, here's what i did to solve it.

    I read somewhere that i had to remove dkms and lirc-modules-source with apt-get --purge and it would work. But it didn't for me.

    So i tried "insmod"ing it with insmod lirc_dev and insmod lirc_mceusb. It gave an error that it couldn't find the modules. So i did a locate lirc_dev and did "insmod /lib/modules/2.6.24-17-generic/kernel/drivers/input/misc/lirc_dev.ko" and "insmod /lib/modules/2.6.24-17-generic/kernel/drivers/input/misc/lirc_mceusb2.ko". It went fine, dmesg even showed my remote information.

    But when i tried to do /etc/init.d/lirc start it gave the same error of not being able to load. I saw the script, it was trying to load the modules with modprobe -k. I tried to do that manually, i.e modprobe -k lirc_dev , it gave error like "FATAL: Could not open '/lib/modules/2.6.24-17-generic/updates/dkms/lirc_dev.ko': No such file or directory"

    So i thought that the script needs dkms to place the modules. So i opened synaptic and installed dkms and lirc-modules-source again. It automatically made the modules and kept it in proper place. I did a locate lirc_dev and it was there in proper place.

    /etc/init.d/lirc start works now.

    I guess you need to remove dkms and lirc-modules-source and install it again to make it work.

    Hope this helps
    Tried that and with locate after installing dkms and lirc-modules-source I get -

    locate lirc_dev
    /lib/modules/2.6.24-16-generic/kernel/drivers/input/misc/lirc_dev.ko
    /lib/modules/2.6.24-16-generic/ubuntu/media/lirc/lirc_dev
    /lib/modules/2.6.24-17-generic/ubuntu/media/lirc/lirc_dev
    /lib/modules/2.6.24-17-generic/ubuntu/media/lirc/lirc_dev/lirc_dev.ko

    but still get -

    * Stopping remote control daemon(s): LIRC [fail]
    * Loading LIRC modules [ OK ]
    * Unable to load LIRC kernel modules. Verify your
    * selected kernel modules in /etc/lirc/hardware.conf

    when I restart lirc.

    Regards, Kenneth.

  8. #8
    Join Date
    Feb 2007
    Beans
    Hidden!
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: Remote control in Hardy.

    Quote Originally Posted by kenmiles View Post
    Tried that and with locate after installing dkms and lirc-modules-source I get -

    locate lirc_dev
    /lib/modules/2.6.24-16-generic/kernel/drivers/input/misc/lirc_dev.ko
    /lib/modules/2.6.24-16-generic/ubuntu/media/lirc/lirc_dev
    /lib/modules/2.6.24-17-generic/ubuntu/media/lirc/lirc_dev
    /lib/modules/2.6.24-17-generic/ubuntu/media/lirc/lirc_dev/lirc_dev.ko

    but still get -

    * Stopping remote control daemon(s): LIRC [fail]
    * Loading LIRC modules [ OK ]
    * Unable to load LIRC kernel modules. Verify your
    * selected kernel modules in /etc/lirc/hardware.conf

    when I restart lirc.

    Regards, Kenneth.
    Sorry for late reply,

    What does locate lirc_dev give (do an updatedb before you do locate) ??
    Mine gives

    /lib/modules/2.6.24-16-generic/kernel/drivers/input/misc/lirc_dev.ko
    /lib/modules/2.6.24-16-generic/ubuntu/media/lirc/lirc_dev
    /lib/modules/2.6.24-17-generic/ubuntu/media/lirc/lirc_dev
    /lib/modules/2.6.24-17-generic/updates/dkms/lirc_dev.ko
    /usr/src/lirc-0.8.3~pre1/drivers/lirc_dev
    /usr/src/lirc-0.8.3~pre1/drivers/lirc_dev/.deps
    /usr/src/lirc-0.8.3~pre1/drivers/lirc_dev/Makefile
    /usr/src/lirc-0.8.3~pre1/drivers/lirc_dev/lirc_dev.c
    /usr/src/lirc-0.8.3~pre1/drivers/lirc_dev/lirc_dev.h
    /usr/src/lirc-0.8.3~pre1/drivers/lirc_dev/.deps/lirc_dev.Po
    /var/lib/dkms/lirc/0.8.3~pre1/2.6.24-17-generic/i686/module/lirc_dev.ko
    /var/lib/dkms/lirc/0.8.3~pre1/build/drivers/lirc_dev
    /var/lib/dkms/lirc/0.8.3~pre1/build/drivers/lirc_dev/.deps
    /var/lib/dkms/lirc/0.8.3~pre1/build/drivers/lirc_dev/.lirc_dev.ko.cmd
    /var/lib/dkms/lirc/0.8.3~pre1/build/drivers/lirc_dev/.lirc_dev.mod.o.cmd
    /var/lib/dkms/lirc/0.8.3~pre1/build/drivers/lirc_dev/.lirc_dev.o.cmd
    /var/lib/dkms/lirc/0.8.3~pre1/build/drivers/lirc_dev/.tmp_versions
    /var/lib/dkms/lirc/0.8.3~pre1/build/drivers/lirc_dev/Makefile
    /var/lib/dkms/lirc/0.8.3~pre1/build/drivers/lirc_dev/Module.symvers
    /var/lib/dkms/lirc/0.8.3~pre1/build/drivers/lirc_dev/lirc_dev.c
    /var/lib/dkms/lirc/0.8.3~pre1/build/drivers/lirc_dev/lirc_dev.h
    /var/lib/dkms/lirc/0.8.3~pre1/build/drivers/lirc_dev/lirc_dev.ko
    /var/lib/dkms/lirc/0.8.3~pre1/build/drivers/lirc_dev/lirc_dev.mod.c
    /var/lib/dkms/lirc/0.8.3~pre1/build/drivers/lirc_dev/lirc_dev.mod.o
    /var/lib/dkms/lirc/0.8.3~pre1/build/drivers/lirc_dev/lirc_dev.o
    /var/lib/dkms/lirc/0.8.3~pre1/build/drivers/lirc_dev/.deps/lirc_dev.Po
    /var/lib/dkms/lirc/0.8.3~pre1/build/drivers/lirc_dev/.tmp_versions/lirc_dev.mod
    /var/lib/dkms/lirc/0.8.3~pre1/build/modules/lirc_dev.ko
    /var/lib/dkms/lirc/0.8.3~pre1/build/modules/lirc_dev.ko.KVERS
    /var/lib/dkms/lirc/original_module/2.6.24-17-generic/i686/lirc_dev.ko


    When you installed lirc-modules-source did synaptic did the compile thing required for dkms (You can see it in the details window)? Also dkms needs to be installed first , then lirc_modules_source.

    Also, locate your lirc modules and try insmod'ding them . If it works, you can edit /etc/init.d/lirc to do insmod instead of modprobe (function load_module()).

  9. #9
    Join Date
    Jan 2007
    Location
    Newcastle upon Tyne
    Beans
    148
    Distro
    Kubuntu 8.04 Hardy Heron

    Re: Remote control in Hardy.

    Thanks for your reply.

    /home/kenneth-->locate lirc_dev
    /lib/modules/2.6.24-16-generic/kernel/drivers/input/misc/lirc_dev.ko
    /lib/modules/2.6.24-16-generic/ubuntu/media/lirc/lirc_dev
    /lib/modules/2.6.24-17-generic/ubuntu/media/lirc/lirc_dev
    /lib/modules/2.6.24-17-generic/updates/dkms/lirc_dev.ko
    /usr/src/lirc-0.8.3~pre1/drivers/lirc_dev
    /usr/src/lirc-0.8.3~pre1/drivers/lirc_dev/.deps
    /usr/src/lirc-0.8.3~pre1/drivers/lirc_dev/Makefile
    /usr/src/lirc-0.8.3~pre1/drivers/lirc_dev/lirc_dev.c
    /usr/src/lirc-0.8.3~pre1/drivers/lirc_dev/lirc_dev.h
    /usr/src/lirc-0.8.3~pre1/drivers/lirc_dev/.deps/lirc_dev.Po
    /var/lib/dkms/lirc/0.8.3~pre1/2.6.24-17-generic/i686/module/lirc_dev.ko
    /var/lib/dkms/lirc/0.8.3~pre1/build/drivers/lirc_dev
    /var/lib/dkms/lirc/0.8.3~pre1/build/drivers/lirc_dev/.deps
    /var/lib/dkms/lirc/0.8.3~pre1/build/drivers/lirc_dev/.lirc_dev.ko.cmd
    /var/lib/dkms/lirc/0.8.3~pre1/build/drivers/lirc_dev/.lirc_dev.mod.o.cmd
    /var/lib/dkms/lirc/0.8.3~pre1/build/drivers/lirc_dev/.lirc_dev.o.cmd
    /var/lib/dkms/lirc/0.8.3~pre1/build/drivers/lirc_dev/.tmp_versions
    /var/lib/dkms/lirc/0.8.3~pre1/build/drivers/lirc_dev/Makefile
    /var/lib/dkms/lirc/0.8.3~pre1/build/drivers/lirc_dev/Module.symvers
    /var/lib/dkms/lirc/0.8.3~pre1/build/drivers/lirc_dev/lirc_dev.c
    /var/lib/dkms/lirc/0.8.3~pre1/build/drivers/lirc_dev/lirc_dev.h
    /var/lib/dkms/lirc/0.8.3~pre1/build/drivers/lirc_dev/lirc_dev.ko
    /var/lib/dkms/lirc/0.8.3~pre1/build/drivers/lirc_dev/lirc_dev.mod.c
    /var/lib/dkms/lirc/0.8.3~pre1/build/drivers/lirc_dev/lirc_dev.mod.o
    /var/lib/dkms/lirc/0.8.3~pre1/build/drivers/lirc_dev/lirc_dev.o
    /var/lib/dkms/lirc/0.8.3~pre1/build/drivers/lirc_dev/.deps/lirc_dev.Po
    /var/lib/dkms/lirc/0.8.3~pre1/build/drivers/lirc_dev/.tmp_versions/lirc_dev.mod
    /var/lib/dkms/lirc/0.8.3~pre1/build/modules/lirc_dev.ko
    /var/lib/dkms/lirc/0.8.3~pre1/build/modules/lirc_dev.ko.KVERS
    /var/lib/dkms/lirc/original_module/2.6.24-17-generic/i686/lirc_dev.ko

    dkms was installed first and synaptic did the compile as you said.

    "Also, locate your lirc modules and try insmod'ding them . If it works, you can edit /etc/init.d/lirc to do insmod instead of modprobe (function load_module())."

    I am not sure how to do this.

    Regards, Kenneth.

  10. #10
    Join Date
    Feb 2007
    Beans
    Hidden!
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: Remote control in Hardy.

    Quote Originally Posted by kenmiles View Post
    Thanks for your reply.

    /home/kenneth-->locate lirc_dev
    /lib/modules/2.6.24-16-generic/kernel/drivers/input/misc/lirc_dev.ko
    /lib/modules/2.6.24-16-generic/ubuntu/media/lirc/lirc_dev
    /lib/modules/2.6.24-17-generic/ubuntu/media/lirc/lirc_dev
    /lib/modules/2.6.24-17-generic/updates/dkms/lirc_dev.ko
    /usr/src/lirc-0.8.3~pre1/drivers/lirc_dev
    /usr/src/lirc-0.8.3~pre1/drivers/lirc_dev/.deps
    /usr/src/lirc-0.8.3~pre1/drivers/lirc_dev/Makefile
    /usr/src/lirc-0.8.3~pre1/drivers/lirc_dev/lirc_dev.c
    /usr/src/lirc-0.8.3~pre1/drivers/lirc_dev/lirc_dev.h
    /usr/src/lirc-0.8.3~pre1/drivers/lirc_dev/.deps/lirc_dev.Po
    /var/lib/dkms/lirc/0.8.3~pre1/2.6.24-17-generic/i686/module/lirc_dev.ko
    /var/lib/dkms/lirc/0.8.3~pre1/build/drivers/lirc_dev
    /var/lib/dkms/lirc/0.8.3~pre1/build/drivers/lirc_dev/.deps
    /var/lib/dkms/lirc/0.8.3~pre1/build/drivers/lirc_dev/.lirc_dev.ko.cmd
    /var/lib/dkms/lirc/0.8.3~pre1/build/drivers/lirc_dev/.lirc_dev.mod.o.cmd
    /var/lib/dkms/lirc/0.8.3~pre1/build/drivers/lirc_dev/.lirc_dev.o.cmd
    /var/lib/dkms/lirc/0.8.3~pre1/build/drivers/lirc_dev/.tmp_versions
    /var/lib/dkms/lirc/0.8.3~pre1/build/drivers/lirc_dev/Makefile
    /var/lib/dkms/lirc/0.8.3~pre1/build/drivers/lirc_dev/Module.symvers
    /var/lib/dkms/lirc/0.8.3~pre1/build/drivers/lirc_dev/lirc_dev.c
    /var/lib/dkms/lirc/0.8.3~pre1/build/drivers/lirc_dev/lirc_dev.h
    /var/lib/dkms/lirc/0.8.3~pre1/build/drivers/lirc_dev/lirc_dev.ko
    /var/lib/dkms/lirc/0.8.3~pre1/build/drivers/lirc_dev/lirc_dev.mod.c
    /var/lib/dkms/lirc/0.8.3~pre1/build/drivers/lirc_dev/lirc_dev.mod.o
    /var/lib/dkms/lirc/0.8.3~pre1/build/drivers/lirc_dev/lirc_dev.o
    /var/lib/dkms/lirc/0.8.3~pre1/build/drivers/lirc_dev/.deps/lirc_dev.Po
    /var/lib/dkms/lirc/0.8.3~pre1/build/drivers/lirc_dev/.tmp_versions/lirc_dev.mod
    /var/lib/dkms/lirc/0.8.3~pre1/build/modules/lirc_dev.ko
    /var/lib/dkms/lirc/0.8.3~pre1/build/modules/lirc_dev.ko.KVERS
    /var/lib/dkms/lirc/original_module/2.6.24-17-generic/i686/lirc_dev.ko

    dkms was installed first and synaptic did the compile as you said.

    "Also, locate your lirc modules and try insmod'ding them . If it works, you can edit /etc/init.d/lirc to do insmod instead of modprobe (function load_module())."

    I am not sure how to do this.

    Regards, Kenneth.
    Ok try this,
    sudo insmod /lib/modules/2.6.24-17-generic/updates/dkms/lirc_dev.ko
    sudo insmod /lib/modules/2.6.24-17-generic/updates/dkms/lirc_i2c.ko

    This should happen cleanly. dmesg|grep lirc should have some output.
    If it doesn't tell me your 'uname -r'

Page 1 of 2 12 LastLast

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
  •