LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 09-24-2009, 03:33 PM   #1
mattydee
Member
 
Registered: Dec 2006
Location: Vancouver, BC
Distribution: Debian,Ubuntu,Slackware
Posts: 479

Rep: Reputation: 48
ejecting cd


I remember that in KDE 3, I used to be able to eject a cd/dvd mounted by hal by simply pressing the eject button on the drive itself. It would unmount and eject automatically.

In KDE4, once the drive is mounted, I have to go to the device notifier applet and click the eject button.

Is there a way to add the KDE3 feature back into KDE4?
 
Old 09-24-2009, 04:06 PM   #2
Chuck56
Member
 
Registered: Dec 2006
Location: Colorado, USA
Distribution: Slackware
Posts: 930

Rep: Reputation: 479Reputation: 479Reputation: 479Reputation: 479Reputation: 479
An alternative discussed a few days ago: http://www.linuxquestions.org/questi...mount.-756440/

Hope that helps.
 
Old 09-24-2009, 11:24 PM   #3
mattydee
Member
 
Registered: Dec 2006
Location: Vancouver, BC
Distribution: Debian,Ubuntu,Slackware
Posts: 479

Original Poster
Rep: Reputation: 48
I appreciate the help, but this doesn't solve the issue.

I'm wondering if this is a KDE4 issue or a Slackware one...
 
Old 09-24-2009, 11:30 PM   #4
mattydee
Member
 
Registered: Dec 2006
Location: Vancouver, BC
Distribution: Debian,Ubuntu,Slackware
Posts: 479

Original Poster
Rep: Reputation: 48
I tried in Xfce, and it gave me the following error:

Quote:
Failed to eject "/org/freedesktop/Hal/devices/storage_model_SONY_DVD_RW_DRU_710A".

Given device "/org/freedesktop/Hal/devices/storage_model_SONY_DVD_RW_DRU_710A" is not a volume or drive.
So I guess its a HAL issue...
 
Old 09-26-2009, 01:41 PM   #5
mattydee
Member
 
Registered: Dec 2006
Location: Vancouver, BC
Distribution: Debian,Ubuntu,Slackware
Posts: 479

Original Poster
Rep: Reputation: 48
Well, it looks like HAL sees the button being pressed but nothing is being done:

Code:
matty@ratbot:~$ lshal -m

Start monitoring devicelist:
-------------------------------------------------
11:36:51.222: storage_model_SONY_DVD_RW_DRU_710A property storage.removable.media_available = true
11:36:51.236: storage_model_SONY_DVD_RW_DRU_710A property storage.cdrom.write_speeds = {'8467', '7056', '5645', '4234', '2822', '2112', '1764', '1411', '706'}
11:36:51.238: storage_model_SONY_DVD_RW_DRU_710A property storage.cdrom.read_speed = 7056 (0x1b90)
11:36:53.031: volume_label_STARCRAFT added
11:36:59.513: volume_label_STARCRAFT property volume.mount_point = '/media/STARCRAFT'
11:36:59.517: volume_label_STARCRAFT property volume.is_mounted_read_only = true
11:36:59.519: volume_label_STARCRAFT property volume.is_mounted = true
11:37:19.006: storage_model_SONY_DVD_RW_DRU_710A condition EjectPressed =
11:37:29.006: storage_model_SONY_DVD_RW_DRU_710A condition EjectPressed =
I wonder why. How do I tell it now that when "EjectPressed =", I need it to do whatever it does when the eject is pressed in the device notifier widget.
 
Old 09-26-2009, 04:11 PM   #6
Woodsman
Senior Member
 
Registered: Oct 2005
Distribution: Slackware 14.1
Posts: 3,482

Rep: Reputation: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546Reputation: 546
Try the following from the command line:

eject -T

The command is a toggle to open or close the tray. Doesn't matter if a disk is inserted. If the command succeeds, then refer to the link provided above by Chuck56 for additional options.

Last edited by Woodsman; 09-26-2009 at 10:10 PM.
 
Old 09-26-2009, 07:19 PM   #7
mattydee
Member
 
Registered: Dec 2006
Location: Vancouver, BC
Distribution: Debian,Ubuntu,Slackware
Posts: 479

Original Poster
Rep: Reputation: 48
Quote:
Originally Posted by Woodsman View Post
Tr the following from the command line:

eject -T

The command is a toggle to open or close the tray. Doesn't matter if a disk is inserted. If the command succeeds, then refer to the link provided above by Chuck56 for additional options.
Ya, I've tried that before and it works.... sometimes. As stated above though, this is not really a solution as the problem remains: can't open the disc tray using the hardware eject button.

Sorry if I'm being picky about this, but it seems that if nothing is using the cd/dvd, then pressing the eject button should result in unmounting and ejecting. This is what is done with the device notifier anyway. Is it my imagination or was this working in slack 12.2?
 
Old 09-26-2009, 08:37 PM   #8
cwizardone
LQ Veteran
 
Registered: Feb 2007
Distribution: Slackware64-current with "True Multilib" and KDE4Town.
Posts: 9,095

Rep: Reputation: 7272Reputation: 7272Reputation: 7272Reputation: 7272Reputation: 7272Reputation: 7272Reputation: 7272Reputation: 7272Reputation: 7272Reputation: 7272Reputation: 7272
Quote:
Originally Posted by mattydee View Post
...Sorry if I'm being picky about this, but it seems that if nothing is using the cd/dvd, then pressing the eject button should result in unmounting and ejecting. This is what is done with the device notifier anyway. Is it my imagination or was this working in slack 12.2?
Not to worry, you are not hallucinating ("hal"-lucinating, ha ha ha). That is how it works in Slackware 12.2.

Last edited by cwizardone; 09-26-2009 at 08:40 PM.
 
Old 09-27-2009, 01:11 AM   #9
mattydee
Member
 
Registered: Dec 2006
Location: Vancouver, BC
Distribution: Debian,Ubuntu,Slackware
Posts: 479

Original Poster
Rep: Reputation: 48
Quote:
Originally Posted by cwizardone View Post
Not to worry, you are not hallucinating ("hal"-lucinating, ha ha ha). That is how it works in Slackware 12.2.
lol

It gets better:

Installing a game through wine that requires multiple discs... guess what happens. Yep, I need to insert disc 2, but the cd/dvd drive is locked and I

1. can't press the eject button: nothing happens. of course
2. can't use the eject -T option: can't umount since drive is in use
3. can't use the device notifier widget: plasma freezes

Nice.

SO what's going on here? Is it KDE4? Isn't hal the same version in 13 as in 12.2 (0.5.11)?

Last edited by mattydee; 09-27-2009 at 01:14 AM.
 
Old 10-03-2009, 02:47 AM   #10
mattydee
Member
 
Registered: Dec 2006
Location: Vancouver, BC
Distribution: Debian,Ubuntu,Slackware
Posts: 479

Original Poster
Rep: Reputation: 48
Well, looks like this is fixed in KDE 4.3.1... so it was KDE4 all along. Surprise.
 
Old 10-03-2009, 01:07 PM   #11
cwizardone
LQ Veteran
 
Registered: Feb 2007
Distribution: Slackware64-current with "True Multilib" and KDE4Town.
Posts: 9,095

Rep: Reputation: 7272Reputation: 7272Reputation: 7272Reputation: 7272Reputation: 7272Reputation: 7272Reputation: 7272Reputation: 7272Reputation: 7272Reputation: 7272Reputation: 7272
Quote:
Originally Posted by mattydee View Post
Well, looks like this is fixed in KDE 4.3.1... so it was KDE4 all along. Surprise.
Just checked it, and, yes, you are absolutely correct.
Problems with KDE 4? Who knew?!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
ejecting cd rom minm Linux - Newbie 9 08-23-2005 11:04 AM
Ejecting Unreadable CD kaixa Linux - General 6 05-19-2005 05:51 AM
Cdrom keeps ejecting. rentz Linux - Hardware 11 08-20-2004 05:15 PM
CD-rw problems Ejecting jklaroe Slackware 4 06-20-2004 03:22 PM
ejecting cd's priller Linux - Newbie 9 06-07-2004 04:33 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 03:35 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration