It's okay, but if check attachment you can see that it's different<div><br></div><div>without X</div><div><div>signal sender=org.freedesktop.DBus -> dest=:1.19 serial=2 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=NameAcquired</div>
<div> string ":1.19"</div></div><div><br></div><div>and here called this</div><div><br></div><div><div>signal sender=:1.2 -> dest=(null destination) serial=136 path=/org/freedesktop/Hal/devices/storage_model_CDDVDW_SH_S223B; interface=org.freedesktop.Hal.Device; member=PropertyModified</div>
<div> int32 1</div><div> array [</div><div> struct {</div><div> string "storage.removable.media_available"</div><div> boolean false</div><div> boolean false</div><div> }</div>
<div> ]</div></div><div><br></div><div>and this is useless for me.</div><div><br></div><div>withX</div><div><div>signal sender=org.freedesktop.DBus -> dest=:1.160 serial=2 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=NameAcquired</div>
<div> string ":1.160"</div><div>method call sender=:1.160 -> dest=org.freedesktop.DBus serial=3 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=AddMatch</div><div> string "type='method_call'"</div>
<div>method call sender=:1.160 -> dest=org.freedesktop.DBus serial=4 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=AddMatch</div><div> string "type='method_return'"</div><div>method call sender=:1.160 -> dest=org.freedesktop.DBus serial=5 path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=AddMatch</div>
<div> string "type='error'"</div></div><div><br></div><div>and after called our dbus-java class when watch dbus signals</div><div><br></div><div><br></div><div>maybe I don't set something enviroment variable or something else what when x init run set ?</div>
<div><br></div><div><br><br><div class="gmail_quote">2011/9/13 Thiago Macieira <span dir="ltr"><<a href="mailto:thiago@kde.org">thiago@kde.org</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">On Tuesday, 13 de September de 2011 14:22:00 Robert Jobbagy wrote:<br>
> Hi Guys,<br>
><br>
> I would like to use DBUS signals without X.<br>
<br>
</div>D-Bus doesn't require X. So I guess you're set? :-)<br>
<div class="im"><br>
> When I put cd/dvd in optical drive with X it works fine.<br>
> But If I do that without X I give these errors:<br>
><br>
> Sep 12 11:51:08 localhost kernel: cdrom: This disc doesn't have any tracks I<br>
> recognize!<br>
> Sep 12 11:51:08 localhost kernel: sr 1:0:1:0: [sr0] Result: hostbyte=DID_OK<br>
> driverbyte=DRIVER_SENSE<br>
> Sep 12 11:51:08 localhost kernel: sr 1:0:1:0: [sr0] Sense Key : Illegal<br>
> Request [current]<br>
> Sep 12 11:51:08 localhost kernel: sr 1:0:1:0: [sr0] Add. Sense: Logical<br>
> block address out of range<br>
> Sep 12 11:51:08 localhost kernel: sr 1:0:1:0: [sr0] CDB: Read(10): 28 00 00<br>
> 00 00 00 00 00 01 00<br>
> Sep 12 11:51:08 localhost kernel: end_request: I/O error, dev sr0, sector 0<br>
<br>
</div>That above has nothing to do with X or D-Bus. That's the kernel alone.<br>
<div class="im"><br>
> and I see this with dbus-monitor with X and without X , I attached two<br>
> files.<br>
><br>
> Do you have any idea what's wrong?<br>
><br>
> If I remove HAL packages then I dont give I/O error messages,but It doesnt<br>
> recognize cd/dvd :(<br>
<br>
</div>That's also not a D-Bus thing. D-Bus has nothing to do with CD/DVD<br>
recognition.<br>
<br>
Some daemons, like HAL and udisks, may perform some activities with the<br>
device. They may also report status changes via D-Bus. But again the<br>
activities are separate.<br>
<font color="#888888"><br>
--<br>
Thiago Macieira - thiago (AT) <a href="http://macieira.info" target="_blank">macieira.info</a> - thiago (AT) <a href="http://kde.org" target="_blank">kde.org</a><br>
Software Architect - Intel Open Source Technology Center<br>
PGP/GPG: 0x6EF45358; fingerprint:<br>
E067 918B B660 DBD1 105C 966C 33F5 F005 6EF4 5358<br>
</font><br>_______________________________________________<br>
dbus mailing list<br>
<a href="mailto:dbus@lists.freedesktop.org">dbus@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/dbus" target="_blank">http://lists.freedesktop.org/mailman/listinfo/dbus</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br>Best Regards,<br><br>Robert <br>
</div>