LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   starting script to run sony vaio jogdial in vector linux at boot (https://www.linuxquestions.org/questions/linux-newbie-8/starting-script-to-run-sony-vaio-jogdial-in-vector-linux-at-boot-931141/)

danthemannewtolinux 02-24-2012 08:03 PM

starting script to run sony vaio jogdial in vector linux at boot
 
Hi, can someone help me with this, i want to load the drivers for my jogdial on my sony vaio laptop at boot....the jogdial works when i run the program from command but it's annoying to have to do that every time i boot up. i tried editing the rc.d/local file and it says that it loads and the jogdial works at boot but it stops booting as soon as the sony vaio jodial driver loads and says on the next line cannot start display, i also tried adding the & symbol to make it run in background and system completely boots but jogdial yet again will not work unless i run program from command...what do i have to do to get this to work at boot..help please

catkin 02-25-2012 09:34 PM

What is the command you use to load the drivers for the jogdial and what is the exact error message?

danthemannewtolinux 02-25-2012 10:46 PM

the command i use is sonypid. I compiled the program from a site i found on google and the jogdial works fine when i run it in command then close the command window but doesn't stick when i reboot, when i edited my rc/local file and added the path for it and rebooted, i get the error cannot open display

catkin 02-25-2012 11:28 PM

It sounds as if sonypid tries to start a GUI and that is failing when rc.local is run because nobody has logged on at the graphical logon prompt (maybe the graphical logon prompt hasn't appeared at that time either).

Would you be OK with enabling the jogdial at logon instead of at boot? If so, you could autostart it when the desktop initialises. Exactly how to do that depends on which desktop you are using.

danthemannewtolinux 02-25-2012 11:45 PM

yes, id be fine with that, how would i go about doing that

danthemannewtolinux 02-25-2012 11:47 PM

im using the xfce desktop

catkin 02-26-2012 09:51 AM

Menu -> Settings -> Session and Startup -> Application Autostart: Add

danthemannewtolinux 02-26-2012 10:44 AM

ok, i tried that and it still doesn't load at startup, unless i open command, go into su mode and run the sonypid command

catkin 02-26-2012 09:25 PM

sonypid uses a GUI but has to be run by root?! Are there any usage instructions for it? A man page? A --help option? A usage message when it is given a wrong option?


All times are GMT -5. The time now is 07:59 PM.