Hi
I've been trying getting a HAL script to work, but it has some strange
issues. The idea would be to use the script to get the layout etc. from
the system, and then use hal-set-property to set the values for the
current device. First of all, h-s-p fails because hald is not ready, and
if I add 'sleep' or similar to wait for hald, it doesn't run any
remaining commands after that...
To test this you need to add a "info.callouts.add" key to
10-x11-input.fdi:
----
.
.
<match key="info.capabilities" contains="input.keys">
<append key="info.callouts.add" type="strlist">script-to-run</append>
.
.
----
then the script itself has something like:
----
#!/bin/sh
# this works on ubuntu
. /etc/default/console-setup
hal-set-property --udi $UDI --key "input.xkb.layout" --string "$XKBLAYOUT"
----
Then restart hal using '--daemon=no' and scroll back to see the error
about hald not being ready. Ok, so add 'sleep 15' before h-s-p and try
again. Now it doesn't complain, but that's because h-s-p is not run at
all..
any ideas why that happens?
t
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]