[arch-general] Running setserial from rc.local
With the new Xorg, I need to run the command: setserial /dev/ttyS0 port 0x0200 irq 5 autoconfig At every boot to get the stylus working in a Tablet PC. I have put the line in /etc/rc.local, as it contains "all the things which are not daemons that you want to run at boot". But it is not working. KDM (therefore, X) starts without using the stylus. If I switch to a terminal, run the command, and the return to X, the stylus is recognised. Any clue about what is I am doing wrong? I know that the command can not be executed from an X terminal (this is why I switch to a "normal" terminal), but running it from rc.local should work, right?
On Sun, May 10, 2009 at 07:38:52PM +0200, Sergi Pons Freixes wrote:
With the new Xorg, I need to run the command:
setserial /dev/ttyS0 port 0x0200 irq 5 autoconfig
At every boot to get the stylus working in a Tablet PC. I have put the line in /etc/rc.local, as it contains "all the things which are not daemons that you want to run at boot".
But it is not working. KDM (therefore, X) starts without using the stylus. If I switch to a terminal, run the command, and the return to X, the stylus is recognised.
Any clue about what is I am doing wrong? I know that the command can not be executed from an X terminal (this is why I switch to a "normal" terminal), but running it from rc.local should work, right?
Just guessing. Is kdm in the DAEMONS array? In this case kdm starts before rc.local is called in rc.multi. You can try to start the display manager from inittab. Again. Just guessing.
On Sun, May 10, 2009 at 12:38 PM, Sergi Pons Freixes <sachiel@telefonica.net> wrote:
With the new Xorg, I need to run the command:
setserial /dev/ttyS0 port 0x0200 irq 5 autoconfig
At every boot to get the stylus working in a Tablet PC. I have put the line in /etc/rc.local, as it contains "all the things which are not daemons that you want to run at boot".
But it is not working. KDM (therefore, X) starts without using the stylus. If I switch to a terminal, run the command, and the return to X, the stylus is recognised.
Any clue about what is I am doing wrong? I know that the command can not be executed from an X terminal (this is why I switch to a "normal" terminal), but running it from rc.local should work, right?
Fully qualify your executables- PATH is probably not set. /usr/bin/setserial ...
On Sun, May 10, 2009 at 1:35 PM, Dan McGee <dpmcgee@gmail.com> wrote:
On Sun, May 10, 2009 at 12:38 PM, Sergi Pons Freixes <sachiel@telefonica.net> wrote:
With the new Xorg, I need to run the command:
setserial /dev/ttyS0 port 0x0200 irq 5 autoconfig
At every boot to get the stylus working in a Tablet PC. I have put the line in /etc/rc.local, as it contains "all the things which are not daemons that you want to run at boot".
But it is not working. KDM (therefore, X) starts without using the stylus. If I switch to a terminal, run the command, and the return to X, the stylus is recognised.
Any clue about what is I am doing wrong? I know that the command can not be executed from an X terminal (this is why I switch to a "normal" terminal), but running it from rc.local should work, right?
Fully qualify your executables- PATH is probably not set.
/usr/bin/setserial ...
If that doesn't work, I'd suggest a udev rule. It's entirely possible the device isn't there when rc.local is run.
A Dilluns 11 de maig 2009 21:05:06, Aaron Griffin va escriure:
On Sun, May 10, 2009 at 1:35 PM, Dan McGee <dpmcgee@gmail.com> wrote:
Fully qualify your executables- PATH is probably not set.
/usr/bin/setserial ...
Done. Still doesn't work. I tried also loading kdm with inittab method instead of by rc.conf.
If that doesn't work, I'd suggest a udev rule. It's entirely possible the device isn't there when rc.local is run.
I've never done it before, but after reading a bit I created: /etc/udev/rules.d/10-local.rules with the content: KERNEL=="ttyS0", RUN+="/usr/bin/setserial /dev/ttyS0 port 0x0200 irq 5 autoconfig" But still doesn't work. I would like to note that the setserial can be run while X is running (it just can not be run from "inside" X), so the order of execution is not critical.
participants (4)
-
Aaron Griffin
-
Alessandro Doro
-
Dan McGee
-
Sergi Pons Freixes