Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Gnome 2.8 - hald/dbus/gnome-volume-manager issues
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
altorus
Tux's lil' helper
Tux's lil' helper


Joined: 17 Aug 2003
Posts: 89
Location: Melbourne, Australia

PostPosted: Fri Oct 15, 2004 12:45 pm    Post subject: Gnome 2.8 - hald/dbus/gnome-volume-manager issues Reply with quote

Sorry for yet another hald gnome 2.8 related thread but i've not found much help thru forums seraches on this one. And yes I'm giving the full story to the situation.

First up, it was working perfectly last night (but lets face it all problems are like that)

My gnome 2.8 install was build with USE="hal", dbus/hotplug/hald are loaded (in that order i might add), and i'm running a udev system. I started playing around with my /etc/conf.d/rc to go pure udev without reading the how to (silly me), have since gone back to devfsd, set the yes flag for the device tarball, gone back to udev, and its all good again. Gnome-volume-manager is also starting up with gnome tho for troubleshooting i killed that process, and started it again on a console so i see the output.

Now, my usb mp3 player is picked up fine. The first plug takes a while (read 15 seconds) but it does pickup. Subsequent plugins are picked up near instantly. This is fine by me

Now cds on the other hand are another matter entirely. GVM does not register cd open/close events with a disc in. The only way it will pick them up is if i manually mount and then unmount the cdrom. As soon as i mount it by hand, gvm reports:

Code:
manager.c/711: New Device: /org/freedesktop/Hal/devices/block_22_0
manager.c/711: New Device: /org/freedesktop/Hal/devices/block_CDROM
manager.c/747: Changed: /dev/hdc
mount: /dev/hdc already mounted or /mnt/cdrom busy
mount: according to mtab, /dev/hdc is already mounted on /mnt/cdrom
manager.c/826: Mounted: /org/freedesktop/Hal/devices/block_CDROM


Yes i realize i should have used /media/dvdrom (as it is a dvd drive, but it does the same either way.

Unmounting and ejecting produces these results:

Code:

manager.c/854: Unmounted: /org/freedesktop/Hal/devices/block_CDROM
manager.c/772: Device removed: /org/freedesktop/Hal/devices/block_CDROM


Now closing the cd drive again (after a manual mount) and it works perfectly:

Code:

manager.c/711: New Device: /org/freedesktop/Hal/devices/block_CDROM
manager.c/747: Changed: /dev/hdc
manager.c/826: Mounted: /org/freedesktop/Hal/devices/block_CDROM


For the record my fstab for the device reads like so:
Code:
/dev/hdc                /mnt/cdrom      iso9660         noauto,ro,users         0 0



So yeah, any ideas? If more info is needed please let me know, but i'm lost for ideas here. I might try editing fstab to /media/dvdrom instead of /mnt/cdrom, but as my mp3 drive is is done 'old-style' in the fstab i don't see this beeing an issue

And why is it that we don't learn from our mistakes - namely if it ain't broke don't fix it, the whole setup was perfect last nite :|
Back to top
View user's profile Send private message
tilt
n00b
n00b


Joined: 16 Nov 2003
Posts: 36
Location: Stuttgart

PostPosted: Fri Oct 15, 2004 6:01 pm    Post subject: Reply with quote

Have you emerged the stable x86 udev ebuild or the ~x86 one? Try the latter if you haven't done so yet.
Back to top
View user's profile Send private message
altorus
Tux's lil' helper
Tux's lil' helper


Joined: 17 Aug 2003
Posts: 89
Location: Melbourne, Australia

PostPosted: Sat Oct 16, 2004 2:00 am    Post subject: Reply with quote

1111111 reads and 1 response - thanks :)

Yeah i did switch to the latest udev, heres all the various programs versions for you
sys-fs/udev-034-r1
sys-apps/hal-0.2.98-r1
gnome-extra/hal-device-manager-0.2.98
sys-apps/dbus-0.22-r1
gnome-base/gnome-volume-manager-1.0.2-r1
Back to top
View user's profile Send private message
D-e-e
n00b
n00b


Joined: 22 Apr 2003
Posts: 27
Location: Canada

PostPosted: Sat Oct 16, 2004 2:35 am    Post subject: Reply with quote

I had problems with hal/dbus until I compiled and used a kernel that had support for kernel user space events. There is a config option for this, although it is not available for every kernel at this time.
_________________
--- D-e-e
Back to top
View user's profile Send private message
altorus
Tux's lil' helper
Tux's lil' helper


Joined: 17 Aug 2003
Posts: 89
Location: Melbourne, Australia

PostPosted: Sat Oct 16, 2004 3:48 am    Post subject: Reply with quote

You know, I like the sound of that kernel option.

I just ran gnome-volume-manager by hand on my similarly misbehaving desktop, but it worked fine. The only difference b/w these two machines i can peg is different kernel version, My laptop is 2.8.1 whereas the desktop is still on 2.6.6.

I'll examine the setup on each of these machines to see if i can sort out the prob, i may downgrade my laptop kernel just to check, but at least i have one working system to trouobleshoot with (on the other one of course, i'm not touching an already working setup.

Just out of interest D-e-e what is that kernel option?

I might actually wimp out and use my desktop packages on the laptop. I'll document any results

Hopefully i'll get a solution soon. Looks like exam studying will have to wait.
Back to top
View user's profile Send private message
altorus
Tux's lil' helper
Tux's lil' helper


Joined: 17 Aug 2003
Posts: 89
Location: Melbourne, Australia

PostPosted: Sat Oct 16, 2004 4:53 am    Post subject: Reply with quote

OK.

I've ruled out software and kernel differences between the two systems, however volume management still just works on one and works oddly on the other system. The laptop is still getting exactly the same issues, namely anything that isn't a cdrom will mount up perfectly, whereas the cdrom will only mount up automatically after its been mount/dismounted manually.

Perhaps its a hardware issue.

The system it works on is an nforce2 based AMD 2500+ with a Lite-On dvd drive. a hdc: LITEON DVD-ROM LTD163D, ATAPI CD/DVD-ROM drive
hdc: ATAPI 48X DVD-ROM drive, 512kB Cache, UDMA(33)
to be exact.

The laptop is an ALi bases 1800+ with a compaq dvd drive

0000:00:00.0 Host bridge: ATI Technologies Inc: Unknown device cab0 (rev 13)
0000:00:01.0 PCI bridge: ATI Technologies Inc U1/A3 AGP Bridge [IGP 320M] (rev 01)
0000:00:02.0 USB Controller: ALi Corporation USB 1.1 Controller (rev 03)
0000:00:07.0 ISA bridge: ALi Corporation M1533 PCI to ISA Bridge [Aladdin IV]
0000:00:08.0 Multimedia audio controller: ALi Corporation M5451 PCI AC-Link Controller Audio Device (rev 02)
0000:00:0a.0 CardBus bridge: Texas Instruments PCI1410 PC card Cardbus Controller (rev 02)
0000:00:0b.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C+ (rev 20)
0000:00:0c.0 Communication controller: Conexant HSF 56k HSFi Modem (rev 01)
0000:00:0f.0 USB Controller: ALi Corporation USB 1.1 Controller (rev 03)
0000:00:10.0 IDE interface: ALi Corporation M5229 IDE (rev c4)
0000:00:11.0 Bridge: ALi Corporation M7101 PMU
0000:01:05.0 VGA compatible controller: ATI Technologies Inc Radeon Mobility U1
and
hdc: Compaq DVD-ROM GDR-8081N, ATAPI CD/DVD-ROM drive


edit: actually, come to think of it, even on the very first night it was 'working' the laptop did behave like this.
Back to top
View user's profile Send private message
tilt
n00b
n00b


Joined: 16 Nov 2003
Posts: 36
Location: Stuttgart

PostPosted: Sat Oct 16, 2004 5:17 am    Post subject: Reply with quote

altorus wrote:
sys-fs/udev-034-r1


There's a udev-039 in ~x86.

If you say it never worked properly on your laptop it could indeed be a hardware issue. You could try to write a custom udev rule for your cdrom drive to change its node (like /dev/compaqdvd). Maybe it'll work then?

http://www.reactivated.net/udevrules.php
Back to top
View user's profile Send private message
altorus
Tux's lil' helper
Tux's lil' helper


Joined: 17 Aug 2003
Posts: 89
Location: Melbourne, Australia

PostPosted: Sat Oct 16, 2004 5:59 am    Post subject: Reply with quote

That udev link was very useful, but for some reason my cd rom rules are not being picked up.

I used both his cdrom example, and the multiple symlink style in the 10-local.rules file

I'll try updating udev.
Back to top
View user's profile Send private message
D-e-e
n00b
n00b


Joined: 22 Apr 2003
Posts: 27
Location: Canada

PostPosted: Sat Oct 16, 2004 10:45 pm    Post subject: Reply with quote

altorus wrote:
Just out of interest D-e-e what is that kernel option?

using Linux Kernel v2.6.9-rc2-mm2, with make menuconfig, the help for this option appears as follows:
Quote:
CONFIG_KOBJECT_UEVENT: │
│ │
│ This option enables the kernel userspace event layer, which is a │
│ simple mechanism for kernel-to-user communication over a netlink │
│ socket. │
│ The goal of the kernel userspace events layer is to provide a simple │
│ and efficient events system, that notifies userspace about kobject │
│ state changes. This will enable applications to just listen for │
│ events instead of polling system devices and files. │
│ Hotplug events (kobject addition and removal) are also available on │
│ the netlink socket in addition to the execution of /sbin/hotplug if │
│ CONFIG_HOTPLUG is enabled. │
│ │
│ Say Y, unless you are building a system requiring minimal memory │
│ consumption.


the option apears at General setup -> Kernel Userspace Events.

I think that dbus can work without this, but this option and dbus were meant to compliment each other. I was reading some stuff on the kernel mailing list, and I believe it was said that this option would be in the mainline kernel for 2.6.10.
_________________
--- D-e-e
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum