BlueWave Studio forum
  • Login
  • Register
  • Login Register
    Login
    Username:
    Password:
  • Home
  • Help
  • View Today's Post
  • More
    • BlueWave Studio
    • Shop
User Links
  • Login
  • Register
  • Login Register
    Login
    Username:
    Password:

    Quick Links Home Help View Today's Post
    More
    • BlueWave Studio
    • Shop
    BlueWave Studio forum OpenAuto Pro User interface Correct way to set up multiple controller_service?

    Correct way to set up multiple controller_service?
    BoostedGS300
    Offline

    Junior Member

    Posts: 43
    Threads: 6
    Joined: Mar 2019
    Reputation: 1
    #1
    05-15-2022, 01:49 AM (This post was last modified: 05-15-2022, 01:01 PM by BoostedGS300.)
    I want to verify I am doing this right before I go any further and haven't found anything searching that clarified it. Here is what I have done thus far, please let me know if this is correct for setting up a 2nd controller service (first is Idrive, 2nd is tactile buttons). 

    1 - Created a document named controller_service_i2c.ini in the home folder. 
    2 - Copied contents of code provided by openauto for tactile buttons (ADS1115 I2C).
    3 - Made executable by using chmod +x
    4 - Added /home/pi/controller_service_i2c.ini to /etc/xdg/lxsession/LXDE-pi/autostart

    Is this all that's required besides editing values provided by Openauto? It's not working so I presume I did something wrong.
    BlueWave
    Offline

    Administrator

    Posts: 2,750
    Threads: 64
    Joined: Jun 2019
    Reputation: 67
    #2
    05-15-2022, 02:08 PM (This post was last modified: 05-16-2022, 12:24 PM by BlueWave.)
    Just put

    controller_service /home/pi/controller_service_i2c.ini to the /etc/xdg/lxsession/LXDE-pi/autostart file. First part of the command points to the executable (controller_service in that case) and second one is the config file that controller_service will use. Currently you are trying to run an ini file as executable which will not work on Linux.
    BoostedGS300
    Offline

    Junior Member

    Posts: 43
    Threads: 6
    Joined: Mar 2019
    Reputation: 1
    #3
    05-16-2022, 12:41 AM
    Okay I made the change, thank you. I am still not sure if it's running as it isn't working. Is there a command I can use to verify that it's actually running? I may have made a mistake when I did the chmod +x command, I used chmod -x but am not sure if it just needs to be re-entered now.

    Thanks
    BlueWave
    Offline

    Administrator

    Posts: 2,750
    Threads: 64
    Joined: Jun 2019
    Reputation: 67
    #4
    05-16-2022, 05:32 AM
    Please post content of /home/pi/.cache/lxsession/LXDE-pi/run.log file
    BoostedGS300
    Offline

    Junior Member

    Posts: 43
    Threads: 6
    Joined: Mar 2019
    Reputation: 1
    #5
    05-16-2022, 11:38 AM (This post was last modified: 05-16-2022, 12:10 PM by BoostedGS300.)
    (05-16-2022, 05:32 AM)BlueWave Wrote: Please post content of /home/pi/.cache/lxsession/LXDE-pi/run.log file

    Please see the attached file. The IDrive controller isn't plugged in (currently installed in car), which is why it is showing an error. I can try with that plugged in if needed.


    Attached Files
    .log   run.log (Size: 23.9 KB / Downloads: 49)
    BlueWave
    Offline

    Administrator

    Posts: 2,750
    Threads: 64
    Joined: Jun 2019
    Reputation: 67
    #6
    05-16-2022, 12:22 PM (This post was last modified: 05-16-2022, 12:26 PM by BlueWave.)
    Path to the controller_service_i2c.ini is wrong (looks like it is missing / at the beginning). Where controller_service_i2c.ini is located in your system? Please verify path of the config file that you put as ciontroller_service command line argument in /etc/xdg/lxsession/LXDE-pi/autostart.

    Absolute path in Linux must start with / otherwise it will be treated as relative (to the runtime directory which in case of autostart is /home/pi/) path.
    BoostedGS300
    Offline

    Junior Member

    Posts: 43
    Threads: 6
    Joined: Mar 2019
    Reputation: 1
    #7
    05-16-2022, 09:39 PM (This post was last modified: 05-16-2022, 09:42 PM by BoostedGS300.)
    (05-16-2022, 12:22 PM)BlueWave Wrote: Path to the controller_service_i2c.ini is wrong (looks like it is missing / at the beginning). Where controller_service_i2c.ini is located in your system? Please verify path of the config file that you put as ciontroller_service command line argument in /etc/xdg/lxsession/LXDE-pi/autostart.

    Absolute path in Linux must start with / otherwise it will be treated as relative (to the runtime directory which in case of autostart is /home/pi/) path.

    Thanks, didn't have the / at the beginning. I did verify the location of the config file. Here is the updated autostart that I have not tested yet. Please see attached updated log file as well.


    Attached Files Thumbnail(s)
       

    .log   run.log (Size: 64 KB / Downloads: 46)
    BoostedGS300
    Offline

    Junior Member

    Posts: 43
    Threads: 6
    Joined: Mar 2019
    Reputation: 1
    #8
    05-17-2022, 12:31 AM
    (05-16-2022, 09:39 PM)BoostedGS300 Wrote:
    (05-16-2022, 12:22 PM)BlueWave Wrote: Path to the controller_service_i2c.ini is wrong (looks like it is missing / at the beginning). Where controller_service_i2c.ini is located in your system? Please verify path of the config file that you put as ciontroller_service command line argument in /etc/xdg/lxsession/LXDE-pi/autostart.

    Absolute path in Linux must start with / otherwise it will be treated as relative (to the runtime directory which in case of autostart is /home/pi/) path.

    Thanks, didn't have the / at the beginning. I did verify the location of the config file. Here is the updated autostart that I have not tested yet. Please see attached updated log file as well.


    - Final update, it works! Thank you for the help, I really appreciate it.
    « Next Oldest | Next Newest »

    Users browsing this thread: 1 Guest(s)



    • View a Printable Version
    • Subscribe to this thread
    Forum Jump:

    Home · Help · BlueWave Studio · Shop

    Copyright © bluewavestudio.io. All rights reserved.

    Linear Mode
    Threaded Mode