LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 04-19-2010, 02:07 PM   #1
SaintDanBert
Senior Member
 
Registered: Jan 2009
Location: "North Shore" Louisiana USA
Distribution: Mint-20.1 with Cinnamon
Posts: 1,771
Blog Entries: 3

Rep: Reputation: 108Reputation: 108
laptop drive docking and un-docking


My laptop has a "docking station" that has a "drive bay". The bay might contain (1) DVD, (2) HDD, (3) battery. Can someone help me sort out what needs to happen?

I want to use the "drive bay" HDD as a backup device:
** insert the drive
** "udev rules" or other magic happens to release the DVD
** other things happen to prompt and install the HDD
** more "udev rules" to activate the HDD for use
** scripts run using rsync and friends loading HDD with important stuff
** other scripts run to sync the HDD with off-sight
** still other scripts run to release the HDD and prompt for DVD install
(Everything mostly automatic except for hardware remove and insert.)

Under WinXP/Pro Tablet Edition, I can do the following while running with the "docking station" attached.

1. Use the system tray tool to stop and remove the DVD drive (with or without media present)
2. Insert the HDD (it gets recognized and scanned etc like a USB or flash drive)
3. Use the HDD like any other drive
4. Use the system tray tool to stop and remove the HDD
5. Insert the DVD (drive recognized; if media present, it gets scanned etc like a USB or flash drive)

I can do this as often as I want without the need to reboot (grin) other than normal winXP reboot demands.

Linux does not let me do this. I would like to know how to get this working.

ANALYSIS
** Using dynamic device features, the DVD exists in limbo until media gets loaded. At that point, one gets asked what to do with the media or something launches automatically. I think this is controlled by udev rules. THEREFORE Unless there is media, there is nothing to stop or unmount or eject or whatever.
** If you somehow [typically reboot] remove the DVD and load the HDD, there is a device one might stop or unmount or eject. That all seems to work.
** When you replace the DVD, various bad things happen. They range from "drive not found" to "hung system" to "software crash".
** When I un-dock the entire "docking station" the system goes to hibernate. On wake from hibernate, the "docking station" has been dealt with docked vs. undocked. WinXP behaves this same way.

It seems to me that this is just a "udev rules" problem, but there might be some black magic and dragons that are lurking below the surface.

My Hardware is:
  • Lenovo Thinkpad X61-tablet
  • 4 GB ram, 512 GB disk
  • X6 Ultra-base
  • Ubuntu Jaunty (v9.04)

Cheers,
~~~ 0;-Dan
 
  


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
Docking Station for Linux laptop preeth26 Linux - Hardware 4 06-24-2007 11:28 AM
IBM laptop with docking station mjjzf Linux - Hardware 0 01-22-2007 08:11 AM
laptop + docking station does NOT boot timpie Linux - Laptop and Netbook 3 03-02-2004 02:40 PM
docking a laptop - eth0 sadanapalli Linux - Software 4 04-09-2003 04:22 PM
woes with video in docking laptop heiseltc Linux - Hardware 0 10-01-2002 05:32 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 06:44 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