Skip to contentSkip to conversation

bug: acpi ata_bay dock reminds undocked

DISCUSSION Pali Rohár 2 participants 10 messages Apr 29, 2014 – Aug 12, 2014 ACPI

lore
Share & tools
lore
#0 lore raw

Hello,

I have problem with sysfs entry docked

/sys/bus/platform/devices/dock.0/docked

for my media bay DVD drive on notebook Dell Latitude E6440.

After booting linux kernel docked is set to 1 (which is correct, DVD hw is inserted into sata dock). When I undock it via sysfs entry

/sys/bus/platform/devices/dock.0/undock

then kernel remove DVD device from system (no /dev/sr0 anymore) and docked sysfs entry is set to 0.

When I press eject button on DVD drive, I hear some spin up and kernel detect DVD device again (also udev create /dev/sr0). But docked sysfs entry remains set to 0. It will never be set back to 1 - only after reboot.

So this looks like bug somewhere and probably in linux acpi dock driver... Do you know to solve this problem? More applications checking docked sysfs entry for dock presence and returning 0 will mislead them.

Here is some info from sysfs about dock:

$ grep "" /sys/bus/platform/devices/dock.0/*
/sys/bus/platform/devices/dock.0/docked:0
/sys/bus/platform/devices/dock.0/flags:32
/sys/bus/platform/devices/dock.0/modalias:acpi:LNXIOBAY:
/sys/bus/platform/devices/dock.0/type:ata_bay
/sys/bus/platform/devices/dock.0/uevent:MODALIAS=acpi:LNXIOBAY:

If you need some more info let me know. I would be happy to have working docked sysfs entry.

Signature · 2 lines
Pali Rohár
[email protected]
#1 lore raw
Quoted 1 line · Pali Rohár

Hello,

Hi,

Quoted 34 lines

I have problem with sysfs entry docked

/sys/bus/platform/devices/dock.0/docked

for my media bay DVD drive on notebook Dell Latitude E6440.

After booting linux kernel docked is set to 1 (which is correct, DVD hw is inserted into sata dock). When I undock it via sysfs entry

/sys/bus/platform/devices/dock.0/undock

then kernel remove DVD device from system (no /dev/sr0 anymore) and docked sysfs entry is set to 0.

When I press eject button on DVD drive, I hear some spin up and kernel detect DVD device again (also udev create /dev/sr0). But docked sysfs entry remains set to 0. It will never be set back to 1 - only after reboot.

So this looks like bug somewhere and probably in linux acpi dock driver... Do you know to solve this problem? More applications checking docked sysfs entry for dock presence and returning 0 will mislead them.

Here is some info from sysfs about dock:

$ grep "" /sys/bus/platform/devices/dock.0/*
/sys/bus/platform/devices/dock.0/docked:0
/sys/bus/platform/devices/dock.0/flags:32
/sys/bus/platform/devices/dock.0/modalias:acpi:LNXIOBAY:
/sys/bus/platform/devices/dock.0/type:ata_bay
/sys/bus/platform/devices/dock.0/uevent:MODALIAS=acpi:LNXIOBAY:
Quoted 2 lines

If you need some more info let me know. I would be happy to have working docked sysfs entry.

Which kernel version(s) have you tried?

Signature · 2 lines
I speak only for myself.
Rafael J. Wysocki, Intel Open Source Technology Center.
#2 lore raw
Quoted 1 line · On Tuesday 29 April 2014 22:55:07 Rafael J. Wysocki wrote:

Which kernel version(s) have you tried?

3.15-rc3

Signature · 2 lines
Pali Rohár
[email protected]
#3 lore raw
Quoted 4 lines · Pali Rohár
Quoted 1 line · On Tuesday 29 April 2014 22:55:07 Rafael J. Wysocki wrote:

Which kernel version(s) have you tried?

3.15-rc3

Does it work with 3.14(.x) by chance?

Signature · 2 lines
I speak only for myself.
Rafael J. Wysocki, Intel Open Source Technology Center.
#4 lore raw
Quoted 7 lines · On Tuesday 29 April 2014 23:35:42 Rafael J. Wysocki wrote:
Quoted 4 lines · Pali Rohár
Quoted 1 line · On Tuesday 29 April 2014 22:55:07 Rafael J. Wysocki wrote:

Which kernel version(s) have you tried?

3.15-rc3

Does it work with 3.14(.x) by chance?

Tested with 3.14 and 3.8. Same problem, not working.

Signature · 2 lines
Pali Rohár
[email protected]
#5 lore raw
Quoted 10 lines · On Wednesday 30 April 2014 11:24:50 Pali Rohár wrote:
Quoted 7 lines · On Tuesday 29 April 2014 23:35:42 Rafael J. Wysocki wrote:
Quoted 4 lines · Pali Rohár
Quoted 1 line · On Tuesday 29 April 2014 22:55:07 Rafael J. Wysocki wrote:

Which kernel version(s) have you tried?

3.15-rc3

Does it work with 3.14(.x) by chance?

Tested with 3.14 and 3.8. Same problem, not working.

Rafael, any idea what to do now?

Signature · 2 lines
Pali Rohár
[email protected]
#6 lore raw
In reply to Pali Rohár
Quoted 10 lines · On Wednesday 30 April 2014 11:24:50 Pali Rohár wrote:
Quoted 7 lines · On Tuesday 29 April 2014 23:35:42 Rafael J. Wysocki wrote:
Quoted 4 lines · Pali Rohár
Quoted 1 line · On Tuesday 29 April 2014 22:55:07 Rafael J. Wysocki wrote:

Which kernel version(s) have you tried?

3.15-rc3

Does it work with 3.14(.x) by chance?

Tested with 3.14 and 3.8. Same problem, not working.

BUMP!

Rafael, do you need some other information?

Signature · 2 lines
Pali Rohár
[email protected]
#7 lore raw
Quoted 13 lines · Pali Rohár

--nextPart2204083.pLeiedbUui
Content-Type: Text/Plain;
charset="utf-8"
Content-Transfer-Encoding: quoted-printable

Quoted 6 lines · On Wednesday 30 April 2014 11:24:50 Pali Roh=C3=A1r wrote:
Quoted 5 lines · On Tuesday 29 April 2014 23:35:42 Rafael J. Wysocki wrote:
Quoted 4 lines · On Tuesday, April 29, 2014 11:00:01 PM Pali Roh=C3=A1r wrote:
Quoted 1 line · On Tuesday 29 April 2014 22:55:07 Rafael J. Wysocki wrote:

Which kernel version(s) have you tried?

=20
3.15-rc3

Quoted 8 lines
Quoted 4 lines
Quoted 2 lines

=20
Does it work with 3.14(.x) by chance?

=20
Tested with 3.14 and 3.8. Same problem, not working.

BUMP!

Rafael, do you need some other information?

I'll take care of this when I have the time, OK?

Signature · 2 lines
I speak only for myself.
Rafael J. Wysocki, Intel Open Source Technology Center.
#8 lore raw
Quoted 11 lines · On Monday 12 May 2014 02:00:29 Rafael J. Wysocki wrote:
Quoted 10 lines · Pali Rohár

--nextPart2204083.pLeiedbUui
Content-Type: Text/Plain;

charset="utf-8"

Content-Transfer-Encoding: quoted-printable

Quoted 2 lines · On Wednesday 30 April 2014 11:24:50 Pali Roh=C3=A1r wrote:
Quoted 1 line · On Tuesday 29 April 2014 23:35:42 Rafael J. Wysocki wrote:

On Tuesday, April 29, 2014 11:00:01 PM Pali Roh=C3=A1r

Quoted 1 line · wrote:
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

On Tuesday 29 April 2014 22:55:07 Rafael J. Wysocki

Quoted 12 lines · wrote:
Quoted 12 lines
Quoted 12 lines
Quoted 9 lines
Quoted 5 lines
Quoted 1 line

Which kernel version(s) have you tried?

=20

3.15-rc3

=20

Does it work with 3.14(.x) by chance?

=20

Quoted 7 lines
Quoted 5 lines
Quoted 1 line

Tested with 3.14 and 3.8. Same problem, not working.

BUMP!

Rafael, do you need some other information?

I'll take care of this when I have the time, OK?

Ok, I will wait.

Signature · 2 lines
Pali Rohár
[email protected]
#9 lore raw
Quoted 11 lines · On Monday 12 May 2014 07:48:16 Pali Rohár wrote:
Quoted 10 lines · On Monday 12 May 2014 02:00:29 Rafael J. Wysocki wrote:
Quoted 9 lines · Pali Rohár

--nextPart2204083.pLeiedbUui
Content-Type: Text/Plain;

charset="utf-8"

Content-Transfer-Encoding: quoted-printable

Quoted 1 line · On Wednesday 30 April 2014 11:24:50 Pali Roh=C3=A1r wrote:

On Tuesday 29 April 2014 23:35:42 Rafael J. Wysocki

Quoted 20 lines · wrote:
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

On Tuesday, April 29, 2014 11:00:01 PM Pali Roh=C3=A1r

Quoted 1 line · wrote:
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

On Tuesday 29 April 2014 22:55:07 Rafael J. Wysocki

Quoted 14 lines · wrote:
Quoted 14 lines
Quoted 13 lines
Quoted 9 lines
Quoted 5 lines
Quoted 1 line

Which kernel version(s) have you tried?

=20

3.15-rc3

=20

Does it work with 3.14(.x) by chance?

=20

Tested with 3.14 and 3.8. Same problem, not working.

Quoted 7 lines
Quoted 5 lines
Quoted 3 lines

BUMP!

Rafael, do you need some other information?

I'll take care of this when I have the time, OK?

Ok, I will wait.

Rafael, ping. Can you look at it?

Signature · 2 lines
Pali Rohár
[email protected]