Add an FAQ on how to disable hald from polling CD/DVD drives when trying

to use them.
This commit is contained in:
Joe Marcus Clarke 2009-08-08 18:41:20 +00:00
parent 3c5bcd25bf
commit d9da9ff215
Notes: svn2git 2020-12-08 03:00:23 +00:00
svn path=/www/; revision=34593

View file

@ -1,6 +1,6 @@
<!DOCTYPE HTML PUBLIC "-//FreeBSD//DTD HTML 4.01 Transitional-Based Extension//EN" [
<!ENTITY base CDATA "../../">
<!ENTITY date "$FreeBSD: www/en/gnome/docs/halfaq.sgml,v 1.9 2009/01/11 22:30:02 danger Exp $">
<!ENTITY date "$FreeBSD: www/en/gnome/docs/halfaq.sgml,v 1.10 2009/01/11 22:33:54 marcus Exp $">
<!ENTITY title "FreeBSD GNOME Project: Hardware Abstraction Layer (HAL) FAQ">
<!ENTITY % navinclude.gnome "INCLUDE">
]>
@ -18,6 +18,9 @@
<li> <a href="#q4">How do I troubleshoot problems with
hal?</a></li>
<li> <a href="#q5">Does hal support Fuse file systems?</a></li>
<li> <a href="#q6">Hal is interfering with my CD/DVD drive when I
want to play a disc or burn something. How can I stop this from
happening?</a></li>
</ol>
<h2>Full Text</h2>
@ -331,6 +334,40 @@ proc /proc procfs rw 0 0
for more details.</p>
</li>
<!-- Q6 -->
<li style="padding-bottom: 0.5em"><a name="q6"></a>
<p><b>Hal is interfering with my CD/DVD drive when I want to play
a disc or burn something. How can I stop this from
happening?</b></p>
<!-- A6 -->
<p>Applications which are not hal-aware will not be able to
tell hald to stop polling CD/DVD drives when they begin to use
them. Because of this, hald may cause these applications to
abort because two different processes are trying to use the
device at the same time. Applications such as totem, k3b,
sound-juicer, etc. should not be affected as they are
hal-aware. For other applications, you can start them using
the <tt>hal-lock</tt> command. This command will try and
lock the device in question. If successful, hald will stop
polling the device, and <tt>hal-lock</tt> will spawn the
desired application. The arguments to <tt>hal-lock</tt> are
as follows:</p>
<pre>
% hal-lock --interface org.freedesktop.Hal.Device.Storage --udi UDI --run COMMAND
</pre>
<p>You can use <tt>lshal</tt> to determine the proper
<tt>UDI</tt> value. For example, to run <tt>abcde</tt> to
extract tracks from a CD:</p>
<pre>
% hal-lock --interface org.freedesktop.Hal.Device.Storage --udi /org/freedesktop/Hal/devices/storage_model_DVD__RW_DVD8801 --run abcde
</pre>
<p>As soon as the application finishes, the lock will be
released.</p>
</li>
</ol>
&footer;