You are not logged in.

#1 2012-07-06 11:32:27

manc0ntr0
Member
Registered: 2012-07-06
Posts: 8

[SOLVED] Device Notifier doesn't work in KDE 4.8.4

Hi.
I searched for this problem but can't find any solution that works for me.


Have been using Arch since years, but never had this problem.
I did a fresh install few days ago. I installed KDE, but only minimal packages to work. Everything seems work ok but Device Notifier doesn't work in any way. It doesn't detects USB nor CD/DVD, but system does and I can mount USB pendrive manually, for example, using pmount.


Any help will be appreciated.
Regards.

Last edited by manc0ntr0 (2012-07-19 22:04:31)

Offline

#2 2012-07-06 11:45:46

arojas
Developer
From: Spain
Registered: 2011-10-09
Posts: 2,103

Re: [SOLVED] Device Notifier doesn't work in KDE 4.8.4

Does udisks detect the USB drive? what happens if you run 'udisks --monitor' and then plug in the USB drive?

Offline

#3 2012-07-06 13:00:20

manc0ntr0
Member
Registered: 2012-07-06
Posts: 8

Re: [SOLVED] Device Notifier doesn't work in KDE 4.8.4

It said me this:

$ udisks --enumerate

(udisks:13161): udisks-WARNING **: Couldn't enumerate devices: Message did not receive a reply (timeout by message bus)

And nothing happens when I execute monitor command.

Offline

#4 2012-07-09 11:29:37

manc0ntr0
Member
Registered: 2012-07-06
Posts: 8

Re: [SOLVED] Device Notifier doesn't work in KDE 4.8.4

Nobody can help me?

Offline

#5 2012-07-09 17:40:20

mkkot
Member
From: Poland
Registered: 2009-12-20
Posts: 287

Re: [SOLVED] Device Notifier doesn't work in KDE 4.8.4

arojas asked for udisks --monitor, not --enumerate. From your output though, I can see you have some problem with dbus. Are you sure it is added to DAEMONS array in /etc/rc.conf and it works? Also, check how you start KDE, via display manager or .xinitrc, if you use the second, make sure it's up to date with version in /etc/skel

Offline

#6 2012-07-09 19:07:29

mann138
Member
Registered: 2010-05-08
Posts: 34

Re: [SOLVED] Device Notifier doesn't work in KDE 4.8.4

So I'm having the same problem now, it's the first time I fully try KDE in arch and did a fresh install for my system... everything was going quite well till I needed to mount a usb stick, nothing happens when I plug it in, although  when I look at dmesg it's there and I can mount/umount manually...

dmesg tail:

[ 1204.637373] scsi 20:0:0:0: Direct-Access     Kingston DT 101 G2        1.00 PQ: 0 ANSI: 2
[ 1204.638419] sd 20:0:0:0: [sdb] 7823296 512-byte logical blocks: (4.00 GB/3.72 GiB)
[ 1204.638973] sd 20:0:0:0: [sdb] Write Protect is off
[ 1204.638977] sd 20:0:0:0: [sdb] Mode Sense: 0b 00 00 08
[ 1204.639616] sd 20:0:0:0: [sdb] No Caching mode page present
[ 1204.639620] sd 20:0:0:0: [sdb] Assuming drive cache: write through
[ 1204.642742] sd 20:0:0:0: [sdb] No Caching mode page present
[ 1204.642747] sd 20:0:0:0: [sdb] Assuming drive cache: write through
[ 1204.643615]  sdb: sdb1
[ 1204.646107] sd 20:0:0:0: [sdb] No Caching mode page present
[ 1204.646111] sd 20:0:0:0: [sdb] Assuming drive cache: write through
[ 1204.646115] sd 20:0:0:0: [sdb] Attached SCSI removable disk

any ideas?

Offline

#7 2012-07-09 19:18:41

mkkot
Member
From: Poland
Registered: 2009-12-20
Posts: 287

Re: [SOLVED] Device Notifier doesn't work in KDE 4.8.4

Works for me. Try udisks --mount /dev/sdc

Offline

#8 2012-07-09 19:46:26

mann138
Member
Registered: 2010-05-08
Posts: 34

Re: [SOLVED] Device Notifier doesn't work in KDE 4.8.4

doesn't work for me I get:

udisks --mount /dev/sdb
Cannot find device with major:minor 8:16: Message did not receive a reply (timeout by message bus)

Offline

#9 2012-07-09 20:17:54

mkkot
Member
From: Poland
Registered: 2009-12-20
Posts: 287

Re: [SOLVED] Device Notifier doesn't work in KDE 4.8.4

Have you applied what I written above? It still looks like dbus problem.

Offline

#10 2012-07-09 21:13:29

mann138
Member
Registered: 2010-05-08
Posts: 34

Re: [SOLVED] Device Notifier doesn't work in KDE 4.8.4

yes mkkot, let me add the complete info;

my daemons:

DAEMONS=(syslog-ng dbus networkmanager ntpd netfs samba cupsd crond @psd)

I'm starting KDE through KDM and not through .xinitrc although most solutions I've read are related to the .xinitrc method.

when I stick the pendrive in the machine it gets recognized by the system, as dmesg shows it and I can mount it manually, although KDE doesn't seem to recognize it, I checked the device notifier applet and it doesn't even get showed there...

Also, should I be in some user groups? like disk?

Offline

#11 2012-07-09 21:40:25

manc0ntr0
Member
Registered: 2012-07-06
Posts: 8

Re: [SOLVED] Device Notifier doesn't work in KDE 4.8.4

Whell, as I said in my message, whith --monitor command I have no response. I plugged in and out several times and 2 o 3 pendrives.


Yes, I have dbus in my DAEMONS array in rc.conf:

DAEMONS=(hwclock syslog-ng dbus cpufreq @network netfs @crond @alsa @cupsd)

and seems it's working:

# /etc/rc.d/dbus start
:: Starting D-BUS system messagebus                                                                                                                                     [BUSY]
Failed to start message bus: The pid file "/run/dbus/pid" exists, if the message bus is not running, remove this file             [FAIL] 
[root@linux manc0ntr0]# /etc/rc.d/dbus restart
:: Stopping D-BUS system messagebus                                                                                                                                     [DONE]
:: Starting D-BUS system messagebus                                                                                                                                     [DONE


My KDE starts trough /etc/inittab as is explained in wiki:

x:5:respawn:/usr/bin/kdm -nodaemon


As mann138 said, my system recognizes all pendrives but Device Notification doesn't.
I can mount them and automount rule works perfect, but no notifications.

Thanks

Offline

#12 2012-07-10 00:28:37

mann138
Member
Registered: 2010-05-08
Posts: 34

Re: [SOLVED] Device Notifier doesn't work in KDE 4.8.4

I will add that for me udisks --monitor doesn't recognize the usb flash when I plug it in/out...

udisks --monitor
Monitoring activity from the disks daemon. Press Ctrl+C to cancel.

edit:
I've been messing around with udev, udisks, and I think the main problem at least for me is not the device notifier, I think udisks is not recognizing my usb units... could it be something related to polkit?

Last edited by mann138 (2012-07-10 01:02:18)

Offline

#13 2012-07-10 02:58:26

pablo375
Member
Registered: 2012-07-10
Posts: 3

Re: [SOLVED] Device Notifier doesn't work in KDE 4.8.4

Hi there,

I have the same issue, but I'm using LXDE. In any case, I can't open the cd tray (I pushed eject button and nothing happened) and it looks like the unit would be unactivated, although during the boot process (in the post) it functions. In fact, I installed Arch from this unit. By the way, the dmesg output shows both devices (cd rom, usb) but phisically it doesn't response. Can you help me?

Offline

#14 2012-07-10 03:14:33

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,804

Re: [SOLVED] Device Notifier doesn't work in KDE 4.8.4

Moderator comment.
pablo375: Welcome to Arch Linux.   I am not sure your problem is the same as the OP's.  If you would, please spawn a new thread stating your problem and that you are using LXDE rather than KDE.  If you are convinced that it is relevant, feel free to link back to this thread.  You might check the output of mount and see if the media in the drive is mounted.  It will not eject unless it is dismounted.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#15 2012-07-10 18:48:27

mkkot
Member
From: Poland
Registered: 2009-12-20
Posts: 287

Re: [SOLVED] Device Notifier doesn't work in KDE 4.8.4

Okay, no idea actually. Try to run grpck to merge all groups files, check if you have any /etc/group.pacnew or /etc/shadow.pacnew and merge them. If you have any hal package, remove it. Add your user to storage group. Create a file:///etc/polkit-1/localauthority/50-local.d/10-udisks.pkla with content:

[Storage Permissions]
Identity=unix-group:storage
Action=org.freedesktop.udisks.*
ResultAny=no
ResultActive=yes
ResultInactive=no

It should allow all udisks actions to a storage group users.

Offline

#16 2012-07-10 19:24:15

mann138
Member
Registered: 2010-05-08
Posts: 34

Re: [SOLVED] Device Notifier doesn't work in KDE 4.8.4

Ok mkkot, I tried what you suggested but it didn't work either, I am completely clueless on this, but what i've gathered through reading a lot of different posts is mostly like some last update borked up kde... I can't really affirm this though as this is the first time I tried KDE...

Offline

#17 2012-07-10 19:29:36

mkkot
Member
From: Poland
Registered: 2009-12-20
Posts: 287

Re: [SOLVED] Device Notifier doesn't work in KDE 4.8.4

It is something with udisks/dbus/other freedesktop app, not KDE. I can assure you that here on my up-to-date system with KDE, device notifier works and udisks mounts all removable devices like a charm.

Offline

#18 2012-07-10 19:45:29

mann138
Member
Registered: 2010-05-08
Posts: 34

Re: [SOLVED] Device Notifier doesn't work in KDE 4.8.4

pretty damn weird as I have another machine running arch but with gnome and acts like a charm too... I think I'll start again from the scratches with this machine during the weekend and see what happens... will report back with my findings or if I find the solution first will post it back... thanks mkkot

Offline

#19 2012-07-10 23:42:44

manc0ntr0
Member
Registered: 2012-07-06
Posts: 8

Re: [SOLVED] Device Notifier doesn't work in KDE 4.8.4

mkkot, don't work for me.
I have a laptop with arch, I'll update it and see what happen.

Offline

#20 2012-07-11 04:08:26

pablo375
Member
Registered: 2012-07-10
Posts: 3

Re: [SOLVED] Device Notifier doesn't work in KDE 4.8.4

ewaller wrote:

Moderator comment.
You might check the output of mount and see if the media in the drive is mounted.  It will not eject unless it is dismounted.

Thanks for your fast reply. I think I'm gonna started a new thread with this topic, but I had bore with the same problem even when I installed first XFCE (it seems independently from desktop environment more than drivers configuration). The output of mount doesn't show that the drive would be mounted

proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
sys on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
dev on /dev type devtmpfs (rw,nosuid,relatime,size=124040k,nr_inodes=31010,mode=755)
run on /run type tmpfs (rw,nosuid,nodev,relatime,mode=755)
/dev/sda3 on / type ext4 (rw,relatime,data=ordered)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
shm on /dev/shm type tmpfs (rw,nosuid,nodev,relatime)
tmpfs on /tmp type tmpfs (rw,nosuid,nodev,relatime)
/dev/sda1 on /boot type ext2 (rw,relatime)
/dev/sda4 on /home type ext4 (rw,relatime,data=ordered)
binfmt on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,relatime)

Thanks again.

Offline

#21 2012-07-11 07:41:42

mkkot
Member
From: Poland
Registered: 2009-12-20
Posts: 287

Re: [SOLVED] Device Notifier doesn't work in KDE 4.8.4

Offline

#22 2012-07-15 03:43:18

jdranzer
Member
Registered: 2012-01-22
Posts: 1

Re: [SOLVED] Device Notifier doesn't work in KDE 4.8.4

Hello!

I was in a similar situation, I did a fresh Arch instalation with minimal KDE packages and the device notifier didn't work. Dolphin didn't show mounted partitions though using manual mounting in /etc/fstab worked fine.

So I reinstalled from scratch about 3 times (even using LXDE) and I finally realized that I was doing it wrong at the moment of update pacman before system update.

There was conflicts with some packages (tzselect, etc) like this:

glibc: /usr/bin/tzselect existe en el sistema de archivos
glibc: /usr/sbin/zdump existe en el sistema de archivos
glibc: /usr/sbin/zic existe en el sistema de archivos

So I renamed those files using mv to filename.old and thus I proceed to with pacman -Syu.

Then:

rm /etc/profile.d/locale.sh

pacman -Syu --ignore filesystem && rm -rf /var/run /var/lock && \
    pacman -S filesystem

Next is update the system and install KDE. When I ran KDE DE the device notifier finally worked fine.

I hope this can help you guys.

PD. Sorry for my english. smile

Last edited by jdranzer (2012-07-15 03:45:20)

Offline

#23 2012-07-16 03:51:57

pablo375
Member
Registered: 2012-07-10
Posts: 3

Re: [SOLVED] Device Notifier doesn't work in KDE 4.8.4

Hi jdranzer!

I believed I never could be to fix the system but you give me another idea. I remembered I just erase those files, so I'll try to reinstall everything again.


glibc: /usr/bin/tzselect existe en el sistema de archivos
glibc: /usr/sbin/zdump existe en el sistema de archivos
glibc: /usr/sbin/zic existe en el sistema de archivos

Thanks.

Offline

#24 2012-07-19 18:24:20

manc0ntr0
Member
Registered: 2012-07-06
Posts: 8

Re: [SOLVED] Device Notifier doesn't work in KDE 4.8.4

Well, I did a fresh install after system crashed without doing anything.

In first install after pacman update system crashed again, so I searched and searched what happens because it isn't normal. Problem was in glibc and packages like tzselect.
In one treath of this forum I found solution for me:

I have just made a new install and followed the instructions at Allan McRae's blog.
pacman -Sy
rm -rf /var/run /var/lock && pacman -Sf filesystem
pacman -S tzdata
pacman -U http://pkgbuild.com/~allan/glibc-2.16.0 … pkg.tar.xz
rm /etc/profile.d/locale.sh
pacman -Su --ignore glibc
pacman -Su

Then I have KDE minimal installation and now all is working fine, Device Notification too.

Many thanks to all of you.
Best regards.

Offline

#25 2012-07-19 20:50:27

mkkot
Member
From: Poland
Registered: 2009-12-20
Posts: 287

Re: [SOLVED] Device Notifier doesn't work in KDE 4.8.4

Please mark the topic as [Solved].

Offline

Board footer

Powered by FluxBB