device issues with 'hald'

spir denis.spir at free.fr
Wed Nov 18 12:07:43 GMT 2009


Hello,

Upgraded to kde 4.3.2 (by upgrading kubuntu from 9.04 to 9.10). All
works fine except for serious issue, namely that no device seems be
taken into account. I have no feedback from device notifier, I
cannot see them inside Dolphin. when I tey to "open" from device
notifier (predefined action), nothing happens, Dolphin does not even
start, no error. The same issue applies to:
* usb memory sticks (both at front back of computer)
* internal CD drive (with data CD inside)
* extrenal CD drive through usb port (ditto)
* EDIT: also tried audio CD without success
But there is a difference between memory sticks & CDs (see below). 

I found some possibly related threads at
http://forum.kde.org/viewtopic.php?f=67&t=62449 and
http://forums.freebsd.org/showthread.php?t=5672, and also
http://forum.kde.org/viewtopic.php?f=66&t=82975&start=0. Tried to
follow approaches described there:
* Get feedback from 'dmesg'.
* Check 'hald' runs.
* Check PolicyKit config
* Get info from 'solid-hardware'.
* "Manually" enable devices.
See console output copies below for detailed results of these
actions.


Summary of trials:

* dmesg shows feedback when usb sticks are plugged, nothing about
  CDs. Why, I cannot guess?

* There is an issue about hal and solid, or rather they do not seem
  to understand each other. Seems to be rather on hald's side, for
  even if hald runs I cannot execute 'lshal'; output: spir at o:~$
  lshal Could not initialise connection to hald. Normally this means
  the HAL daemon (hald) is not running or not ready.

* There is nothing at all about hal in System Settings/PolicyKit
  (only about PolicyKit itself, PackageKit and k3b). PolicyKit.conf
  seems to be default (should work as is?). Anyway, the issue when
  solid requests info does not look like related to authorisations.
  I tried anyway to add the following lines about device management,
  as proposed in thread #2: <match
  action="org.freedesktop.hal.storage.mount-removable"> <return
  result="yes"/> </match> <match
  action="org.freedesktop.hal.storage.eject"> <return result="yes"/>
  </match> <match action="org.freedesktop.hal.storage.mount-fixed">
  <return result="yes"/> </match>
There was no change, so I reverted the modif.

* I also tried (found on another thread):
    spir at o:/media/cdrom0$ hal-disable-polling --enable
  --device /dev/cdrom Could not initialise connection to hald.
    Normally this means the HAL daemon (hald) is not running or not
  ready.

* Finally, I found 'hal-info' installed, according to KPackageKit,
  but: spir at o:/media/cdrom0$ hal-info
  No command 'hal-info' found, did you mean:
  Command 'al-info' from package 'flightgear' (universe)
  hal-info: command not found

Can someone help me with this issue? It is especially ennoying now
because, having just upgraded, all my personal data are saved on
CDs and usb memory sticks.

Thank you,
Denis



=== feedback from dmesg (latest/relevant lines) ===

plug usb memory stick:

[12891.508035] usb 1-6: new high speed USB device using ehci_hcd and
address 8 [12891.642730] usb 1-6: configuration #1 chosen from 1
choice [12891.643102] scsi12 : SCSI emulation for USB Mass Storage
devices [12891.643301] usb-storage: device found at 8
[12891.643305] usb-storage: waiting for device to settle before
scanning [12896.640296] usb-storage: device scan complete
[12896.641016] scsi 12:0:0:0: Direct-Access     JetFlash Transcend
4GB    8.07 PQ: 0 ANSI: 2 [12896.641817] sd 12:0:0:0: Attached scsi
generic sg3 type 0 [12896.651238] sd 12:0:0:0: [sdb] 7843840
512-byte logical blocks: (4.01 GB/3.74 GiB) [12896.651725] sd
12:0:0:0: [sdb] Write Protect is off [12896.651731] sd 12:0:0:0:
[sdb] Mode Sense: 03 00 00 00 [12896.651736] sd 12:0:0:0: [sdb]
Assuming drive cache: write through [12896.656232] sd 12:0:0:0:
[sdb] Assuming drive cache: write through [12896.656243]  sdb:
unknown partition table [12897.204927] sd 12:0:0:0: [sdb] Assuming
drive cache: write through [12897.204939] sd 12:0:0:0: [sdb]
Attached SCSI removable disk

remove:
[13180.163990] usb 1-6: USB disconnect, address 8


plug other usb memory stick:
[13232.276040] usb 1-5: new high speed USB device using ehci_hcd and
address 9 [13232.412332] usb 1-5: configuration #1 chosen from 1
choice [13232.412704] scsi13 : SCSI emulation for USB Mass Storage
devices [13232.412923] usb-storage: device found at 9
[13232.412927] usb-storage: waiting for device to settle before
scanning [13237.412271] usb-storage: device scan complete
[13237.412865] scsi 13:0:0:0: Direct-Access              USB DISK
28X     PMAP PQ: 0 ANSI: 0 CCS [13237.413670] sd 13:0:0:0: Attached
scsi generic sg3 type 0 [13237.642125] sd 13:0:0:0: [sdb] 2015232
512-byte logical blocks: (1.03 GB/984 MiB) [13237.642603] sd
13:0:0:0: [sdb] Write Protect is off [13237.642610] sd 13:0:0:0:
[sdb] Mode Sense: 23 00 00 00 [13237.642615] sd 13:0:0:0: [sdb]
Assuming drive cache: write through [13237.647106] sd 13:0:0:0:
[sdb] Assuming drive cache: write through [13237.647117]  sdb: sdb1
[13237.659743] sd 13:0:0:0: [sdb] Assuming drive cache: write through
[13237.659754] sd 13:0:0:0: [sdb] Attached SCSI removable disk

remove:
[13389.222385] usb 1-5: USB disconnect, address 9

put data CD in internal drive:
<nothing happens -- no feedback by dmesg>

put data CD in external drive:
<nothing happens -- no feedback by dmesg>


=== tweaking with hal & solid ===
spir at o:~$ hald --daemon=yes --verbose=yes
11:28:01.010 [I] hald.c:680: hal 0.5.13
11:28:01.010 [I] hald.c:681: using child timeout 250s
11:28:01.010 [I] hald.c:690: Will daemonize
11:28:01.010 [I] hald.c:691: Becoming a daemon

spir at o:~$ lshal
Could not initialise connection to hald.
Normally this means the HAL daemon (hald) is not running or not
ready.

spir at o:~$ solid-hardware list
virtual QStringList Solid::Backends::Hal::HalManager::allDevices()
error:  "org.freedesktop.DBus.Error.ServiceUnknown"


=== content of /etc/PolicyKit/PolicyKit.conf ===
<config version="0.1">
    <match user="root">
        <return result="yes"/>
    </match>
    <define_admin_auth group="admin"/>
</config>


== dir list from console --> none ==
spir at o:~$ cd /media/cdrom0
spir at o:/media/cdrom0$ ls
spir at o:/media/cdrom0$ 


___________________________________________________
This message is from the kde mailing list.
Account management:  https://mail.kde.org/mailman/listinfo/kde.
Archives: http://lists.kde.org/.
More info: http://www.kde.org/faq.html.




More information about the kde mailing list