You are not logged in.

#1 2008-12-31 15:22:19

capnfabs
Member
From: Wollongong, Australia
Registered: 2008-12-27
Posts: 32
Website

[SOLVED] can't get devices to hotplug

Hi

I'm kinda new to archlinux, and having major trouble getting any devices to work if I plug them in after booting. For example, my USB modem works if plugged in from boot, same for my thumbdrive, but if I plug them in after booting, I can't seem to access them. Having said that, Udev does create the appropriate entries for them in the /dev directory. Symptoms include wvdial complaining that it can't access my modem (despite the fact that it can open /dev/ttyUSB0) and PCManFM not displaying any kind of media in the sidebar.

Does anyone have any ideas? Any help would be greatly appreciated.

I've got HAL and FAM running too, if that helps.

Thanks heaps!

CapnFabs.

Last edited by capnfabs (2009-01-06 12:01:33)

Offline

#2 2008-12-31 16:02:22

M177ER
Member
Registered: 2008-06-15
Posts: 148

Re: [SOLVED] can't get devices to hotplug

Edit - wrong answer (hotplugging)

Does fstab have an entry for the thumb drive? Also what DE are you using?

Last edited by M177ER (2008-12-31 16:04:43)

Offline

#3 2008-12-31 16:14:39

capnfabs
Member
From: Wollongong, Australia
Registered: 2008-12-27
Posts: 32
Website

Re: [SOLVED] can't get devices to hotplug

the only entries in fstab are for my swap and '/' partitions. I removed the cdrom and dvd ones and never added the thumbdrive one. I'm actually having trouble detecting CDs/DVDs in the aforementioned manner too.

I'm using LXDE for a desktop manager (and, as an aside, it's great!) but also had a tinker with XFCE and got the same results.

thanks heaps!

Offline

#4 2008-12-31 16:31:21

marxav
Member
From: Gatineau, PQ, Canada
Registered: 2006-09-24
Posts: 386

Re: [SOLVED] can't get devices to hotplug

I have set up a couple of eee701 with LXDE.
add your user to hal.  Make sure hal is running.  Check the wiki under LXDE

Offline

#5 2008-12-31 16:34:02

capnfabs
Member
From: Wollongong, Australia
Registered: 2008-12-27
Posts: 32
Website

Re: [SOLVED] can't get devices to hotplug

yep, i've done all that a number of times to no avail.

...actually, just reading through my /etc/group file now, do I need to be a member of the 'dbus' group too?

Offline

#6 2008-12-31 16:56:51

marxav
Member
From: Gatineau, PQ, Canada
Registered: 2006-09-24
Posts: 386

Re: [SOLVED] can't get devices to hotplug

No you don't have to be in group dbus.  But you should be in group storage...

Offline

#7 2008-12-31 19:13:50

pyther
Member
Registered: 2008-01-21
Posts: 1,395
Website

Re: [SOLVED] can't get devices to hotplug

^^
And you should also be in the optical group (for cd/dvd mounting)


Website - Blog - arch-home
Arch User since March 2005

Offline

#8 2008-12-31 23:14:46

capnfabs
Member
From: Wollongong, Australia
Registered: 2008-12-27
Posts: 32
Website

Re: [SOLVED] can't get devices to hotplug

thanks guys

i'm actually already a member of audio, optical, storage, power and hal, and have been right from when I installed hal. Still no luck. Any more ideas?? smile

Thanks again!

Offline

#9 2009-01-01 01:21:15

viga
Member
Registered: 2007-06-12
Posts: 112

Re: [SOLVED] can't get devices to hotplug

Take a look in wiki hal

and here:  http://bbs.archlinux.org/viewtopic.php?pid=248224

Offline

#10 2009-01-01 22:35:52

capnfabs
Member
From: Wollongong, Australia
Registered: 2008-12-27
Posts: 32
Website

Re: [SOLVED] can't get devices to hotplug

I've looked through the hal wiki a number of times to no avail.

Today, however, I opened dbus-monitor to look at the messages passing through the bus, when I plug in a device all messages have "(null destination)" as the destination.

I'm guessing this could well be the problem. Does this mean that pcmanfm is not subscribing to the messages (it IS running as a daemon)? Or that there is something wrong with my dbus configuration (I'm just using the out-of-the-box config)?

Thanks heaps for all your help/suggestions everyone.

Last edited by capnfabs (2009-01-01 22:46:05)

Offline

#11 2009-01-01 22:46:31

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: [SOLVED] can't get devices to hotplug

Out of curiosity, do you have both dbus and dbus-core installed? You may want to if you don't.

Offline

#12 2009-01-01 23:16:20

capnfabs
Member
From: Wollongong, Australia
Registered: 2008-12-27
Posts: 32
Website

Re: [SOLVED] can't get devices to hotplug

yes i do, they're both version 1.2.4-1. Thanks for checking smile

Offline

#13 2009-01-02 01:52:16

marxav
Member
From: Gatineau, PQ, Canada
Registered: 2006-09-24
Posts: 386

Re: [SOLVED] can't get devices to hotplug

did you try to mount manually? What is the output of dmesg when you insert the usb stick?

Offline

#14 2009-01-02 02:41:13

capnfabs
Member
From: Wollongong, Australia
Registered: 2008-12-27
Posts: 32
Website

Re: [SOLVED] can't get devices to hotplug

I can mount it manually, and it works without a problem. furthermore, i can just "pmount /dev/sdb" (or whatever device it happens to be) and it's not too bad, but i really want the GUI functionality.

the output of dmesg when the stick is inserted is

usb 4-1: new high speed USB device using ehci_hcd and address 5
usb 4-1: configuration #1 chosen from 1 choice
scsi4 : SCSI emulation for USB Mass Storage devices
usb-storage: device found at 5
usb-storage: waiting for device to settle before scanning
scsi 4:0:0:0: Direct-Access     Generic  STORAGE DEVICE   2254 PQ: 0 ANSI: 0
sd 4:0:0:0: [sdb] 1024000 512-byte hardware sectors (524 MB)
sd 4:0:0:0: [sdb] Write Protect is off
sd 4:0:0:0: [sdb] Mode Sense: 02 00 00 00
sd 4:0:0:0: [sdb] Assuming drive cache: write through
sd 4:0:0:0: [sdb] 1024000 512-byte hardware sectors (524 MB)
usb 4-1: reset high speed USB device using ehci_hcd and address 5
sd 4:0:0:0: [sdb] Write Protect is off
sd 4:0:0:0: [sdb] Mode Sense: 02 00 00 00
sd 4:0:0:0: [sdb] Assuming drive cache: write through
 sdb: unknown partition table
sd 4:0:0:0: [sdb] Attached SCSI removable disk
sd 4:0:0:0: Attached scsi generic sg2 type 0
usb-storage: device scan complete

and, for further reference, the output from dbus-monitor --system when the stick is inserted is

signal sender=:1.0 -> dest=(null destination) path=/org/freedesktop/Hal/Manager; interface=org.freedesktop.Hal.Manager; member=DeviceAdded
   string "/org/freedesktop/Hal/devices/usb_device_780_7100_0001538"
signal sender=:1.0 -> dest=(null destination) path=/org/freedesktop/Hal/Manager; interface=org.freedesktop.Hal.Manager; member=DeviceAdded
   string "/org/freedesktop/Hal/devices/usb_device_780_7100_0001538_if0"
signal sender=:1.0 -> dest=(null destination) path=/org/freedesktop/Hal/Manager; interface=org.freedesktop.Hal.Manager; member=DeviceAdded
   string "/org/freedesktop/Hal/devices/usb_device_780_7100_0001538_usbraw"
signal sender=:1.0 -> dest=(null destination) path=/org/freedesktop/Hal/Manager; interface=org.freedesktop.Hal.Manager; member=DeviceAdded
   string "/org/freedesktop/Hal/devices/usb_device_780_7100_0001538_if0_scsi_host"
signal sender=:1.0 -> dest=(null destination) path=/org/freedesktop/Hal/Manager; interface=org.freedesktop.Hal.Manager; member=DeviceAdded
   string "/org/freedesktop/Hal/devices/usb_device_780_7100_0001538_if0_scsi_host_scsi_device_lun0"
signal sender=:1.0 -> dest=(null destination) path=/org/freedesktop/Hal/Manager; interface=org.freedesktop.Hal.Manager; member=DeviceAdded
   string "/org/freedesktop/Hal/devices/usb_device_780_7100_0001538_if0_scsi_host_scsi_device_lun0_scsi_generic"

any ideas?
thanks again!

Offline

#15 2009-01-02 13:02:42

marxav
Member
From: Gatineau, PQ, Canada
Registered: 2006-09-24
Posts: 386

Re: [SOLVED] can't get devices to hotplug

I am running out of recommendation at the moment sad

Offline

#16 2009-01-02 13:08:58

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,896
Website

Re: [SOLVED] can't get devices to hotplug

ok do you get any output in lsusb? with any devices plugged in


Mr Green

Offline

#17 2009-01-03 01:44:30

capnfabs
Member
From: Wollongong, Australia
Registered: 2008-12-27
Posts: 32
Website

Re: [SOLVED] can't get devices to hotplug

yep, there's plenty of output, here's the output for lsusb:

Bus 005 Device 001: ID 1d6b:0001  
Bus 004 Device 003: ID 0780:7100  **
Bus 004 Device 001: ID 1d6b:0002  
Bus 003 Device 001: ID 1d6b:0001  
Bus 002 Device 002: ID 12d1:1001 Huawei Technologies Co., Ltd. E620 USB Modem
Bus 002 Device 001: ID 1d6b:0001  
Bus 001 Device 001: ID 1d6b:0001

The one marked with the ** is my thumbdrive, and you'll notice i'm also using my USB Wireless modem to connect to the internet smile

I actually got it to autodetect and mount with autoFS (which detects specific devices), but it just wouldn't work with anything more generic (I've tried both PCManFM and Thunar).

Can I just ask again, when I dbus-monitor --system, every message about the insertion of USB devices has a destination of (null destination). Does this mean that nothing is subscribing to the messages?

Thanks again for your help so far everyone!! smile

Offline

#18 2009-01-06 12:00:27

capnfabs
Member
From: Wollongong, Australia
Registered: 2008-12-27
Posts: 32
Website

Re: [SOLVED] can't get devices to hotplug

Ok everyone!! I discovered a completely idiot-proof solution!! Here it is: (wait for it, astoundingly simple)

pacman -Syu.

and then screw around with the fact that i got kernel panics on boot (there are a few great posts on this board about that) and all of a sudden everything started working.

Beats me :-/

Thanks for all your help!

Offline

Board footer

Powered by FluxBB