Bug#388160: Bug #388160: acpi-support: please support ibm docking/undocking

2008-06-21 Thread Jon Dowland
On Wed, Jun 18, 2008 at 07:00:03PM +0100, Jon Dowland wrote:
 I shall try issuing an eject request to the bay prior to
 the dock and see what heppens then.
 
 Investigations continue...

Backporting bay from git HEAD in the kernel showed that it
wasn't actually grabbing the device properly, something
else was (the ide layer I think).

I heard some important patches against libata went into
2.6.26, so I tried that -

and it worked! undocking and redocking was fine. This time,
I didn't have a /dev/hdc since apparently libata grabbed
all the devices, my hdd and dvd were rebadged sda and sr0.

I've heard some reports on linux-thinkpad that a HDD in the
bay doesn't work properly with 2.6.26. I'll see if I can
find out more.

Based on this, so far, I'm thinking:

eject request received
kernel 2.6.26?
honour it
else:
bay present?
deny it
else:
honour it


-- 
Jon Dowland



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#388160: Bug #388160: acpi-support: please support ibm docking/undocking

2008-06-18 Thread Jon Dowland
On Mon, Jun 02, 2008 at 09:55:08PM +0200, Bart Samwel wrote:
 H. If it does horrible things in those cases, I need
 something that  absolutely only does stuff when it's safe.
 Don't want to break other  people's systems! But if you
 can provide something that works only for  the dock in
 absence of the bay, then I'd be very happy to include it.

I'm taking a look at this right now with kernel 
2.6.25-2-686. Things are looking good:

booting attached to the dock, I can undock by prodding the
/sys/devices/platform/dock.0/undock, redocking happens
automatically.

All attached devices: USB subsystem, ethernet, display,
disappeared on remove and reappeared on dock, automatically.

[ ideally my display would reconfigure itself to be
smaller: my tft is 1280x1024, my lcd is 1024x768 and shows
the upper corner of this size after undocking. But I don't
think that's an acpi-support issue ]

I tried inserting the bay after boot - the
sys/bus/platform/bay.0 tree appeared, and present under
that heirarchy correctly represents whether the bay is
there or not.

I haven't convinced the contents of the bay to appear yet
(a CD-ROM device) --but nothing has broken.

You need to include the event and shellscript that I
attached to the LP bug (with all the commented out code
stripped - it's no use) for the hotkey to work on my
thinkpad (and probably all other thinkpads)

I'm going to try booting with the bay and see what
difference that makes, then check the kernel history to see
whether there's been any fixes applie since 25 in the bay
module that might be relevant.

I'll prepare a patch with the shellscript/event tidied up
for the most recent acpi-support package at the end of
tonight, plus any stuff needed for bay support too.

-- 
Jon Dowland



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#388160: Bug #388160: acpi-support: please support ibm docking/undocking

2008-06-18 Thread Jon Dowland
On Wed, Jun 18, 2008 at 06:10:02PM +0100, Jon Dowland wrote:
 I'm going to try booting with the bay and see what
 difference that makes

booting with the bay in meant I could see the DVD-ROM drive
on boot. I tried mounting it, issuing an undock request to
the dock driver and physically undocking. kern.log started
complaining about I/O errors on hdc (the DVD-ROM drive).

I then tried unmounting it and re-inserting a disc; at this
point the machine hard locked. There's nothing in the
kern.log from the hard lock.

I shall try issuing an eject request to the bay prior to
the dock and see what heppens then.

Investigations continue...


-- 
Jon Dowland



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#388160: Bug #388160: acpi-support: please support ibm docking/undocking

2008-06-02 Thread Jon Dowland
On Mon, May 26, 2008 at 09:28:29PM +0200, Bart Samwel wrote:
 Have you found out anything more about this recently? I'd like to get
 a fix in before release time if it's not working out of the box yet.
 Even a hack will do if it just makes things work. Do the scripts you
 uploaded to the Ubuntu bug report work for you on Debian?

Hello - I haven't looked at this for some time, but yes, the patches I
posted at launchpad were developed on Debian against the debian package.

I still have my trusty x40, the dock and an ultrabay. I will try and
look at this again this week.

The patches sort out docking and undocking in the absence of the bay,
but they don't work with the bay (in fact I think horrible things happen
if you try). At the very least bay-detection may be necessary, if not
support.

Thanks!



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#388160: Bug #388160: acpi-support: please support ibm docking/undocking

2008-06-02 Thread Bart Samwel

Hi Jon,

Jon Dowland wrote:

On Mon, May 26, 2008 at 09:28:29PM +0200, Bart Samwel wrote:

Have you found out anything more about this recently? I'd like to get
a fix in before release time if it's not working out of the box yet.
Even a hack will do if it just makes things work. Do the scripts you
uploaded to the Ubuntu bug report work for you on Debian?


Hello - I haven't looked at this for some time, but yes, the patches I
posted at launchpad were developed on Debian against the debian package.

I still have my trusty x40, the dock and an ultrabay. I will try and
look at this again this week.

The patches sort out docking and undocking in the absence of the bay,
but they don't work with the bay (in fact I think horrible things happen
if you try). At the very least bay-detection may be necessary, if not
support.


H. If it does horrible things in those cases, I need something that 
absolutely only does stuff when it's safe. Don't want to break other 
people's systems! But if you can provide something that works only for 
the dock in absence of the bay, then I'd be very happy to include it.


Cheers,
Bart



--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#388160: acpi-support: please support ibm docking/undocking

2007-10-09 Thread Bart Samwel
Hi there,

I've picked up the maintainership of acpi-support a while ago, and I'm
willing to look into implementing this (if only to get rid of the bug
report thats muddying my view of the remaining real bugs ;-) ).

Could you please provide me with, for docking and undocking:
1. the output of the command acpi_listen (which should be run while
(un)docking)
2. what's logged in /var/log/syslog

This will help me figure out what needs to be done.

Cheers,
Bart





Bug#388160: acpi-support: please support ibm docking/undocking

2006-09-19 Thread Raphael Hertzog
On Mon, 18 Sep 2006, Jon Dowland wrote:
 However, one thing that I used to do manually for acpid was
 manage dock/undock events sent by my thinkpad x40 when I use
 my ultrabase.  These events used to be generated by the
 ibm_acpi module.
 
 I understand that having ibm_acpi manage the hotplugging is
 deprecated now. It's not clear to me how I can use my
 ultrabase with the new scheme, but I imagine the un/dock me
 please events are still carried over ACPI, which means
 events would still go in this package.
 
 Do you happen to know how these events are managed under the
 new scheme? 

Nope.

 Either way, is this the correct place to file a wishlist bug and patches? :)

Yes. With patches. My main motivation to integrate acpi-support (which
comes really from Ubuntu) has been to have correct suspend support for my
laptop but I'm not an ACPI expert and I don't have the time to become one.

So I have difficulties handling bug reports against this package. So
bugreports *with* patches are definitely useful. :-)

Cheers,
-- 
Raphaël Hertzog

Premier livre français sur Debian GNU/Linux :
http://www.ouaza.com/livre/admin-debian/



Bug#388160: acpi-support: please support ibm docking/undocking

2006-09-18 Thread Jon Dowland
Package: acpi-support
Version: 0.86-1
Severity: wishlist

Hello there. I see acpi-support does what I have previously
had to do manually in the past, thank you :)

However, one thing that I used to do manually for acpid was
manage dock/undock events sent by my thinkpad x40 when I use
my ultrabase.  These events used to be generated by the
ibm_acpi module.

I understand that having ibm_acpi manage the hotplugging is
deprecated now. It's not clear to me how I can use my
ultrabase with the new scheme, but I imagine the un/dock me
please events are still carried over ACPI, which means
events would still go in this package.

Do you happen to know how these events are managed under the
new scheme? Either way, is this the correct place to file a
wishlist bug and patches? :)

-- System Information:
Debian Release: testing/unstable
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.17-2-686
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)

Versions of packages acpi-support depends on:
ii  acpid1.0.4-5 Utilities for using ACPI power man
ii  dmidecode2.8-2   Dump Desktop Management Interface 
ii  finger   0.17-10 user information lookup program
ii  hdparm   6.6-1   tune hard disk parameters for high
ii  laptop-detect0.12.1  attempt to detect a laptop
ii  libc62.3.6.ds1-4 GNU C Library: Shared libraries
ii  lsb-base 3.1-10  Linux Standard Base 3.1 init scrip
ii  powermgmt-base   1.24Common utils and configs for power
ii  radeontool   1.5-3   utility to control ATI Radeon back
ii  toshset  1.71-1.1Access much of the Toshiba laptop 
ii  vbetool  0.7-1+b1run real-mode video BIOS code to a
ii  xbase-clients1:7.1.ds-3  miscellaneous X clients

Versions of packages acpi-support recommends:
ii  laptop-mode-tools 1.31-1 Scripts to spin down hard drive an

-- no debconf information


signature.asc
Description: Digital signature