docking/undocking support isn't included
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
acpi-support (Ubuntu) |
Fix Released
|
Medium
|
Unassigned |
Bug Description
I have an ibm x40 with a dock. docking/undocking doesn't work out of the box --
i had to download /etc/acpi/ and /etc/acpi/events files from the web and tweak
them. it seems like it would be fairly simple feature to add, especially now
that ibm-acpi.ko is included with the kernel.
here are my /etc/acpi/
dock.sh:
#!/bin/bash
status=
echo dock > /proc/acpi/ibm/dock
# if idel (cdrom) is already there exit
if [ -L /proc/ide/hdc ]; then
exit 1
fi
#else register it
sleep 1
/bin/sync
hotswap -c 1 rescan-ide
#note -- howswap is used instead of idectl because idectl has had problems on
debian-based systems.
undock.sh:
#!/bin/bash
status=
if [ "$status" == "docked" ]; then
/bin/sync
#make sure the bay's cdrom is unmounted
su my_user_name -c "killall -HUP nautilus"
#this is a hack to make sure nautilus isn't locking the device. there must be
better ways...
umount -l /cdrom
#idectl isn't workign well on debian based systems
#/usr/share/
#so use howswap instead:
#unregister ide1
howswap -c 1 unregister-ide
if [ -L /proc/ide/hdc ]; then
exit 1
fi
echo undock > /proc/acpi/ibm/dock
#end of status check if statement
fi
events/dock:
event=(ibm/dock GDCK 00000000 00000003|ibm/hotkey HKEY 00000080 00001008)
action=
events/undock:
event=(ibm/dock GDCK 00000003 00000001|ibm/hotkey HKEY 00000080 00001009)
action=
so i hope there will be some way to write up these kinds of files and put them
into /etc/acpi -- it'd be great if my system could dock out of the box and
without my hacks. and maybe even have a gnome-panel applet or some other way to
inform me that the dock is successful, or, if it isn't, what the problem is
(like: cdrom in use. close whatever applications may be using it and eject it.)
tags: | added: karmic patch thinkpad |
Changed in acpi-support (Ubuntu): | |
status: | Confirmed → Triaged |
I'll work on integrating this into acpi-support