advantages of DeviceKit support
#16
openelec.tv Wrote:udev are installed on every recent Linux System and HAL, DeviceKit-disks and udev depends also on HAL.
]

i mean:
udev are installed on every recent Linux System and HAL, DeviceKit-disks and HAL depends also on udev
greetings, Stephan

Image

Image
Reply
#17
Well downside with udev is that it might not play nice with the other tools? I'm not very read up on it tbh.

I've been in talks with the udisk guys and we will be adding the udisk namespace, just waited abit for it to make an appearance in ubuntu so I had something to work against. Should be fairly straightforward though, basically copy the DeviceKit-Disks class, strip the oldapi support and alter the namespace.

Regarding localdisks, I know it wasn't possible under HAL since it forced root for that, not sure if devicekit-disks can do this userspace. I guess it should in theory be able to do it if udev grants the disk node as userspace though? I'd love to see us able to mount internal ones aswell, especially the esata ones. Starting a discussion on udisk mailing list would be good for that.

Cheers,
Tobias
If you have problems please read this before posting

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.

Image

"Well Im gonna download the code and look at it a bit but I'm certainly not a really good C/C++ programer but I'd help as much as I can, I mostly write in C#."
Reply
#18
Hi Tobias,

topfs2 Wrote:Regarding localdisks, I know it wasn't possible under HAL since it forced root for that, not sure if devicekit-disks can do this userspace. I guess it should in theory be able to do it if udev grants the disk node as userspace though? I'd love to see us able to mount internal ones aswell, especially the esata ones. Starting a discussion on udisk mailing list would be good for that.

i have asked on udisks ML some days before (in this time it was not conscious to me that XBMC not supports udisks):

http://lists.freedesktop.org/archives/de...00774.html

maybe you can also talk on this ML, you know lot more things about this (i am not a coder :-( )

greetings and thanks
greetings, Stephan

Image

Image
Reply
#19
Hi,

I've tried to alter the namespace from DeviceKit.(Disks|Power) to UDisks & UPower and I've removed the oldapi check and like Tobias said, it works.

I haven't tried yet to duplicate the class so the thing works for both devicekit et uthings.

If anyone care about this quick&dirty&temporary fix it's here (that's for 28276):
udisks.diff
http://pastebin.com/hxyEga6z
upower.diff
http://pastebin.com/80ippHc6
Reply
#20
Thumbs Up 
tidalf Wrote:Hi,

I've tried to alter the namespace from DeviceKit.(Disks|Power) to UDisks & UPower and I've removed the oldapi check and like Tobias said, it works.

I haven't tried yet to duplicate the class so the thing works for both devicekit et uthings.

If anyone care about this quick&dirty&temporary fix it's here (that's for 28276):
udisks.diff
http://pastebin.com/hxyEga6z
upower.diff
http://pastebin.com/80ippHc6

great!

i would prefer to create an ticket with this patch(es). so it would be easyer for tobias to include this the next time. i will also try your patch the next days.

thanks
greetings, Stephan

Image

Image
Reply
#21
here is a ticket with a better patch (it should not break old devicekit support)
http://trac.xbmc.org/ticket/9101
Reply
#22
tidalf Wrote:here is a ticket with a better patch (it should not break old devicekit support)
http://trac.xbmc.org/ticket/9101

thanks, i using your second patch from this ticket for some days. and it works very great (upower part not tested).
greetings, Stephan

Image

Image
Reply
#23
Smile 
topfs2 Wrote:So if you don't have hal or consolekit but you have DeviceKit.Disks you'll get DiskManagement with devicekit.disks and nothing in the powerdepartment. I'll take a look at not needing ConsoleKit but for your distro it should work as DeviceKit.Disks but nothin in power.

If this doesn't work as supposed please provide a log (and ticket with me cc'd) and I'll take a closer look.

Hi Tobias,

now since udisks and upower works with my little distro very well and i have switched to the upcoming xorg-server-1.8, i have tryed again to build without HAL support. my problems without HAL was fixed (i think) with the change from r25863. but r25863 must be fixed (i heave made an patch, see http://trac.xbmc.org/ticket/9198).

An patch to let disable HAL at configure time (default enabled, automatically disabled if no HAL is installed) i have commited with http://trac.xbmc.org/ticket/9200.

It would be great if you can commit these patches to trunk, running without an installed HAL works great here.
greetings, Stephan

Image

Image
Reply

Logout Mark Read Team Forum Stats Members Help
advantages of DeviceKit support0