geonix n00b
Joined: 07 Jul 2005 Posts: 41 Location: Minsk
|
Posted: Thu Mar 27, 2008 8:27 pm Post subject: ivman 0.6.14 eject problem patch |
|
|
I have an issue with single ivman instance running as a user on my laptop.
I can mount any devices w/o any problems .
After the mounting of any DVD disk I can access and use it ,
Problem occurs when when I'am trying to eject disk.
I'am pressing eject button on my dvd tray , but nothing happens. tray failed to open.
After some more investigation I found that problem is ivman in user mode can't eject device which is not mountable.
It checks in the hal_device_condition function when eject pressed , and if the device mountable , ejects it.
Problem is input device for hal_device_condition is /dev/sr0 which is really not moutable.
I created small patch for hal_device_condition which replaces udi of the dvd device with udi of mounted disk and things started work ok.
patch and modifyed ivman ebuild located here:
http://myspacefilehosting.com/llgzf/ivman_eject_patch.tar_bz2.html
when emerge will be finished don't forget to copy /etc/ivman/IvmConfigConditions.xml to the ~/.ivman which is home directory of the user which runs ivman.
I added eject rule in IvmConfigConditions.xml which is invoked when EjectButton pressed.
Problem occurs only when running single ivman instance as a non root user.
I heard that a lot of people running 2 instances of ivman , but basically 1 single instance work pretty well expect the issue i mentioned. _________________ Higher ,greater, further
2.6.37-gentoo-r2 x86_64 Intel(R) Core(TM)2 Duo CPU T8300 @ 2.40GHz GenuineIntel GNU/Linux
Dell inspiron 1525 |
|