Dbus doesnt works with HAL without X

Robert Jobbagy jobbagy.robert at gmail.com
Tue Sep 13 06:11:49 PDT 2011


It's okay, but if check attachment you can see that it's different

without X
signal sender=org.freedesktop.DBus -> dest=:1.19 serial=2
path=/org/freedesktop/DBus; interface=org.freedesktop.DBus;
member=NameAcquired
   string ":1.19"

and here called this

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
   int32 1
   array [
      struct {
         string "storage.removable.media_available"
         boolean false
         boolean false
      }
   ]

and this is useless for me.

withX
signal sender=org.freedesktop.DBus -> dest=:1.160 serial=2
path=/org/freedesktop/DBus; interface=org.freedesktop.DBus;
member=NameAcquired
   string ":1.160"
method call sender=:1.160 -> dest=org.freedesktop.DBus serial=3
path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=AddMatch
   string "type='method_call'"
method call sender=:1.160 -> dest=org.freedesktop.DBus serial=4
path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=AddMatch
   string "type='method_return'"
method call sender=:1.160 -> dest=org.freedesktop.DBus serial=5
path=/org/freedesktop/DBus; interface=org.freedesktop.DBus; member=AddMatch
   string "type='error'"

and after called our dbus-java class when watch dbus signals


maybe I don't set something enviroment variable or something else what when
x init run set ?



2011/9/13 Thiago Macieira <thiago at kde.org>

> On Tuesday, 13 de September de 2011 14:22:00 Robert Jobbagy wrote:
> > Hi Guys,
> >
> > I would like to use DBUS signals without X.
>
> D-Bus doesn't require X. So I guess you're set? :-)
>
> > When I put cd/dvd in optical drive with X it works fine.
> > But If I do that without X I give these errors:
> >
> > Sep 12 11:51:08 localhost kernel: cdrom: This disc doesn't have any
> tracks I
> > recognize!
> > Sep 12 11:51:08 localhost kernel: sr 1:0:1:0: [sr0] Result:
> hostbyte=DID_OK
> > driverbyte=DRIVER_SENSE
> > Sep 12 11:51:08 localhost kernel: sr 1:0:1:0: [sr0] Sense Key : Illegal
> > Request [current]
> > Sep 12 11:51:08 localhost kernel: sr 1:0:1:0: [sr0] Add. Sense: Logical
> > block address out of range
> > Sep 12 11:51:08 localhost kernel: sr 1:0:1:0: [sr0] CDB: Read(10): 28 00
> 00
> > 00 00 00 00 00 01 00
> > Sep 12 11:51:08 localhost kernel: end_request: I/O error, dev sr0, sector
> 0
>
> That above has nothing to do with X or D-Bus. That's the kernel alone.
>
> > and I see this with dbus-monitor with X and without X , I attached two
> > files.
> >
> > Do you have any idea what's wrong?
> >
> > If I remove HAL packages then I dont give I/O error messages,but It
> doesnt
> > recognize cd/dvd :(
>
> That's also not a D-Bus thing. D-Bus has nothing to do with CD/DVD
> recognition.
>
> Some daemons, like HAL and udisks, may perform some activities with the
> device. They may also report status changes via D-Bus. But again the
> activities are separate.
>
> --
> Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
>   Software Architect - Intel Open Source Technology Center
>      PGP/GPG: 0x6EF45358; fingerprint:
>      E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358
>
> _______________________________________________
> dbus mailing list
> dbus at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/dbus
>
>


-- 
Best Regards,

Robert
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/dbus/attachments/20110913/aa818abf/attachment-0001.htm>


More information about the dbus mailing list