Bug 253729

Summary: Duplicated devices due to several backends
Product: [Unmaintained] solid Reporter: Andrey Borzenkov <arvidjaar>
Component: generalAssignee: Kevin Ottens <ervin>
Status: RESOLVED DUPLICATE    
Severity: normal CC: bastianholst
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Mandriva RPMs   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Andrey Borzenkov 2010-10-10 10:49:34 UTC
Version:           unspecified (using Devel) 
OS:                Linux

KDE 4.5.71 in Mandriva cooker.

Due to various package dependencies I have both HAL and upower installed. As a result Solid gets information about the same underlying object (in this case battery, but it applies to HAL/udisks as well) fron two different backends. This causes battery applet to display two "different" batteries.

Here is:

{pts/1}% solid-hardware list | grep battery
udi = '/org/freedesktop/Hal/devices/computer_power_supply_battery_BAT0'
udi = '/org/freedesktop/UPower/devices/battery_BAT0'

respectively

{pts/1}% solid-hardware list | grep sda    
udi = '/org/kde/solid/udev/sys/devices/pci0000:00/0000:00:1f.2/host2/target2:0:0/2:0:0:0/block/sda'
udi = '/org/kde/solid/udev/sys/devices/pci0000:00/0000:00:1f.2/host2/target2:0:0/2:0:0:0/block/sda/sda1'
udi = '/org/kde/solid/udev/sys/devices/pci0000:00/0000:00:1f.2/host2/target2:0:0/2:0:0:0/block/sda/sda2'
udi = '/org/kde/solid/udev/sys/devices/pci0000:00/0000:00:1f.2/host2/target2:0:0/2:0:0:0/block/sda/sda5'
udi = '/org/kde/solid/udev/sys/devices/pci0000:00/0000:00:1f.2/host2/target2:0:0/2:0:0:0/block/sda/sda6'
udi = '/org/kde/solid/udev/sys/devices/pci0000:00/0000:00:1f.2/host2/target2:0:0/2:0:0:0/block/sda/sda7'
udi = '/org/kde/solid/udev/sys/devices/pci0000:00/0000:00:1f.2/host2/target2:0:0/2:0:0:0/block/sda/sda8'
udi = '/org/freedesktop/UDisks/devices/sda1'
udi = '/org/freedesktop/UDisks/devices/sda2'
udi = '/org/freedesktop/UDisks/devices/sda5'
udi = '/org/freedesktop/UDisks/devices/sda6'
udi = '/org/freedesktop/UDisks/devices/sda7'
udi = '/org/freedesktop/UDisks/devices/sda8'
udi = '/org/freedesktop/UDisks/devices/sda'


Reproducible: Always
Comment 1 Kevin Ottens 2010-10-11 08:53:58 UTC

*** This bug has been marked as a duplicate of bug 253557 ***