Radeon 3650HD laptop LVDS lid open/closed detection problem
Hello,
After fixing the dvi/hdmi detection problem I now have another problem with the HP EliteBook 8530p, which has Radeon 3650HD adapter.
Here's a summary of the environment:
- laptop connected to a docking station.
- external display in use, connected with DVI to the dock.
- laptop lid closed, so internal LVDS display is not used.
Now, when I start the laptop, I can see the BIOS and grub on the external DVI display. All fine so far. I select the Fedora 13 kernel, and Linux starts. I see the Fedora graphical boot on the external DVI display, just like it should be. GDM login prompt appears on the external DVI display, still everything fine.
And then it goes wrong. After I login to X, the external display only shows the background picture.. it turns out the desktop stuff has been started to the internal LVDS display, which shouldn't be used at all since the laptop lid is closed!!
When the laptop lid is closed, and external display is connected, I want to use only the external display..
Any ideas how to troubleshoot this one?
-- Pasi
Quoted 20 lines · Pasi Kärkkäinen
Hello,
After fixing the dvi/hdmi detection problem I now have another problem with the HP EliteBook 8530p, which has Radeon 3650HD adapter.
Here's a summary of the environment:
- laptop connected to a docking station.
- external display in use, connected with DVI to the dock.
- laptop lid closed, so internal LVDS display is not used.Now, when I start the laptop, I can see the BIOS and grub on the external DVI display. All fine so far. I select the Fedora 13 kernel, and Linux starts. I see the Fedora graphical boot on the external DVI display, just like it should be. GDM login prompt appears on the external DVI display, still everything fine.
And then it goes wrong. After I login to X, the external display only shows the background picture.. it turns out the desktop stuff has been started to the internal LVDS display, which shouldn't be used at all since the laptop lid is closed!!
Quoted 6 lines
When the laptop lid is closed, and external display is connected, I want to use only the external display..
Any ideas how to troubleshoot this one?
-- Pasi
It's better to open bug when you face issue rather than mail, as it's harder to track information in mail thread than in a bug. Your issue is not easily fixed because there is many laptop with broken acpi which report wrong lid status (some of them always report lid closed what ever is the lid status, other always report lid open, ... i am not expert on how broken this is but from what i have been told i should rather consider drinking than trying to look into it and then go to the drinking step).
Bottom line is that lid detection is unreliable thus so far we ignore it silently. I think the plan is to monitor lid status change and if we detect change from either open to close or close to open then we can start assuming that acpi lid status is reliable and act accordingly.
Cheers,
Jerome
Quoted 36 lines · Jerome Glisse
Quoted 20 lines · Pasi Kärkkäinen
Hello,
After fixing the dvi/hdmi detection problem I now have another problem with the HP EliteBook 8530p, which has Radeon 3650HD adapter.
Here's a summary of the environment:
- laptop connected to a docking station.
- external display in use, connected with DVI to the dock.
- laptop lid closed, so internal LVDS display is not used.Now, when I start the laptop, I can see the BIOS and grub on the external DVI display. All fine so far. I select the Fedora 13 kernel, and Linux starts. I see the Fedora graphical boot on the external DVI display, just like it should be. GDM login prompt appears on the external DVI display, still everything fine.
And then it goes wrong. After I login to X, the external display only shows the background picture.. it turns out the desktop stuff has been started to the internal LVDS display, which shouldn't be used at all since the laptop lid is closed!!
Quoted 6 lines
When the laptop lid is closed, and external display is connected, I want to use only the external display..
Any ideas how to troubleshoot this one?
-- Pasi
It's better to open bug when you face issue rather than mail, as it's harder to track information in mail thread than in a bug. Your issue is not easily fixed because there is many laptop with broken acpi which report wrong lid status (some of them always report lid closed what ever is the lid status, other always report lid open, ... i am not expert on how broken this is but from what i have been told i should rather consider drinking than trying to look into it and then go to the drinking step).
Quoted 5 lines
Bottom line is that lid detection is unreliable thus so far we ignore it silently. I think the plan is to monitor lid status change and if we detect change from either open to close or close to open then we can start assuming that acpi lid status is reliable and act accordingly.
In Nouveau we report connector_status_unknown for closed lids (On the kernel side unknown outputs are left disabled unless there's nothing else definitely connected: if lid detection doesn't work at all the system will still be usable). This would solve your problem if we made the X server set the first output known to be connected as RandR primary.
In short, I see two different "bugs" here:
* radeon reports connector_status_connected when the lid is closed.
* the X server doesn't select a primary output among the definitely connected ones.
Quoted 6 lines
Cheers,
Jerome
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
Quoted 19 lines · Francisco Jerez
Quoted 17 lines · Jerome Glisse
Quoted 16 lines · Pasi Kärkkäinen
Hello,
After fixing the dvi/hdmi detection problem I now have another problem with the HP EliteBook 8530p, which has Radeon 3650HD adapter.
Here's a summary of the environment:
- laptop connected to a docking station.
- external display in use, connected with DVI to the dock.
- laptop lid closed, so internal LVDS display is not used.Now, when I start the laptop, I can see the BIOS and grub on the external DVI display. All fine so far. I select the Fedora 13 kernel, and Linux starts. I see the Fedora graphical boot on the external DVI display, just like it should be. GDM login prompt appears on the external DVI display, still everything fine.
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
And then it goes wrong. After I login to X, the external display only shows the background picture.. it turns out the desktop stuff has been started to the internal LVDS display, which shouldn't be used at all since the laptop lid is closed!!
When the laptop lid is closed, and external display is connected, I want to use only the external display..
Any ideas how to troubleshoot this one?
Does it work ok if you boot up without the external display connected and then connect and enable the secondary display after you've logged in? I have a similar issue here; I think it's an issue with rhgb and starting X. If I boot with an external display, the entire plymouth load sequence works fine, but then when X starts the external display goes blank and the internal display hangs on the plymouth screen. On a related note, if I close the lid and turn off the LVDS output, gpm never blanks the external monitor. I have to manually force dpms with xset.
Quoted 24 lines
Quoted 12 lines
Quoted 3 lines
-- Pasi
It's better to open bug when you face issue rather than mail, as it's harder to track information in mail thread than in a bug. Your issue is not easily fixed because there is many laptop with broken acpi which report wrong lid status (some of them always report lid closed what ever is the lid status, other always report lid open, ... i am not expert on how broken this is but from what i have been told i should rather consider drinking than trying to look into it and then go to the drinking step).
Quoted 5 lines
Bottom line is that lid detection is unreliable thus so far we ignore it silently. I think the plan is to monitor lid status change and if we detect change from either open to close or close to open then we can start assuming that acpi lid status is reliable and act accordingly.
In Nouveau we report
connector_status_unknownfor closed lids (On the kernel side unknown outputs are left disabled unless there's nothing else definitely connected: if lid detection doesn't work at all the system will still be usable). This would solve your problem if we made the X server set the first output known to be connected as RandR primary.
Quoted 2 lines
In short, I see two different "bugs" here:
* radeon reportsconnector_status_connectedwhen the lid is closed.
Do we really want to report disconnected when the lid is closed? The monitor is still connected. Considering how unreliable lid events are I don't think that makes sense. We probably actually want dpms off, but connected which is more of a policy thing and should be handled by userspace.
Alex
Quoted 16 lines
* the X server doesn't select a primary output among the definitely connected ones.
Quoted 6 lines
Cheers,
Jerome
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
Quoted 63 lines · Alex Deucher
Quoted 19 lines · Francisco Jerez
Quoted 17 lines · Jerome Glisse
Quoted 16 lines · Pasi Kärkkäinen
Hello,
After fixing the dvi/hdmi detection problem I now have another problem with the HP EliteBook 8530p, which has Radeon 3650HD adapter.
Here's a summary of the environment:
- laptop connected to a docking station.
- external display in use, connected with DVI to the dock.
- laptop lid closed, so internal LVDS display is not used.Now, when I start the laptop, I can see the BIOS and grub on the external DVI display. All fine so far. I select the Fedora 13 kernel, and Linux starts. I see the Fedora graphical boot on the external DVI display, just like it should be. GDM login prompt appears on the external DVI display, still everything fine.
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
And then it goes wrong. After I login to X, the external display only shows the background picture.. it turns out the desktop stuff has been started to the internal LVDS display, which shouldn't be used at all since the laptop lid is closed!!
When the laptop lid is closed, and external display is connected, I want to use only the external display..
Any ideas how to troubleshoot this one?
Does it work ok if you boot up without the external display connected and then connect and enable the secondary display after you've logged in? I have a similar issue here; I think it's an issue with rhgb and starting X. If I boot with an external display, the entire plymouth load sequence works fine, but then when X starts the external display goes blank and the internal display hangs on the plymouth screen. On a related note, if I close the lid and turn off the LVDS output, gpm never blanks the external monitor. I have to manually force dpms with xset.
Quoted 24 lines
Quoted 12 lines
Quoted 3 lines
-- Pasi
It's better to open bug when you face issue rather than mail, as it's harder to track information in mail thread than in a bug. Your issue is not easily fixed because there is many laptop with broken acpi which report wrong lid status (some of them always report lid closed what ever is the lid status, other always report lid open, ... i am not expert on how broken this is but from what i have been told i should rather consider drinking than trying to look into it and then go to the drinking step).
Quoted 5 lines
Bottom line is that lid detection is unreliable thus so far we ignore it silently. I think the plan is to monitor lid status change and if we detect change from either open to close or close to open then we can start assuming that acpi lid status is reliable and act accordingly.
In Nouveau we report
connector_status_unknownfor closed lids (On the kernel side unknown outputs are left disabled unless there's nothing else definitely connected: if lid detection doesn't work at all the system will still be usable). This would solve your problem if we made the X server set the first output known to be connected as RandR primary.
Quoted 4 lines
Quoted 2 lines
In short, I see two different "bugs" here:
* radeon reportsconnector_status_connectedwhen the lid is closed.Do we really want to report disconnected when the lid is closed?
Definitely not, my point was that you could report connector_status_unknown.
Quoted 5 lines
The monitor is still connected. Considering how unreliable lid events are I don't think that makes sense. We probably actually want dpms off, but connected which is more of a policy thing and should be handled by userspace.
Quoted 18 lines
Alex
Quoted 16 lines
* the X server doesn't select a primary output among the definitely connected ones.
Quoted 6 lines
Cheers,
Jerome
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
Quoted 24 lines · Alex Deucher
Quoted 23 lines · Francisco Jerez
Quoted 21 lines · Jerome Glisse
Quoted 20 lines · Pasi Kärkkäinen
Hello,
After fixing the dvi/hdmi detection problem I now have another problem with the HP EliteBook 8530p, which has Radeon 3650HD adapter.
Here's a summary of the environment:
- laptop connected to a docking station.
- external display in use, connected with DVI to the dock.
- laptop lid closed, so internal LVDS display is not used.Now, when I start the laptop, I can see the BIOS and grub on the external DVI display. All fine so far. I select the Fedora 13 kernel, and Linux starts. I see the Fedora graphical boot on the external DVI display, just like it should be. GDM login prompt appears on the external DVI display, still everything fine.
And then it goes wrong. After I login to X, the external display only shows the background picture.. it turns out the desktop stuff has been started to the internal LVDS display, which shouldn't be used at all since the laptop lid is closed!!
Quoted 8 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
When the laptop lid is closed, and external display is connected, I want to use only the external display..
Any ideas how to troubleshoot this one?
Does it work ok if you boot up without the external display connected and then connect and enable the secondary display after you've logged in?
I just tried this.
I boot up the laptop with lid open, so ONLY the internal LVDS is active (DVI cable disconnected), and I get the GDM login prompt on the internal LVDS.
Then I plug in the external DVI display, and the external display gets automatically active when X starts. Gnome panel etc are on the internal LVDS, external DVI display only has the background image and nothing else.
So that works as expected. No problems there.
Quoted 8 lines
I have a similar issue here; I think it's an issue with rhgb and
starting X. If I boot with an external display, the entire plymouth load sequence works fine, but then when X starts the external display goes blank and the internal display hangs on the plymouth screen. On a related note, if I close the lid and turn off the LVDS output, gpm never blanks the external monitor. I have to manually force dpms with xset.
The other patch (0001-drm-radeon-kms-fix-shared-ddc-handling.patch) applied my system mostly works now, but here's a summary about the problem I still have with the lid detection:
- I boot up the laptop with lid closed (LVDS inactive) so there's only external DVI display connected. Kernel boot messages show up on the external DVI display, and GDM login prompt appears on the external DVI display. All fine so far.
- The actual problem: when X starts gnome panel etc show up on the internal LVDS display, which I can't see at all since the lid is closed! So those should go to the external DVI display only.. LVDS should be disconnected or inactive or something..
Any pointers appreciated where to look at in the source.. I can do some debugging.
-- Pasi
Quoted 62 lines · Pasi Kärkkäinen
Quoted 24 lines · Alex Deucher
Quoted 23 lines · Francisco Jerez
Quoted 21 lines · Jerome Glisse
Quoted 20 lines · Pasi Kärkkäinen
Hello,
After fixing the dvi/hdmi detection problem I now have another problem with the HP EliteBook 8530p, which has Radeon 3650HD adapter.
Here's a summary of the environment:
- laptop connected to a docking station.
- external display in use, connected with DVI to the dock.
- laptop lid closed, so internal LVDS display is not used.Now, when I start the laptop, I can see the BIOS and grub on the external DVI display. All fine so far. I select the Fedora 13 kernel, and Linux starts. I see the Fedora graphical boot on the external DVI display, just like it should be. GDM login prompt appears on the external DVI display, still everything fine.
And then it goes wrong. After I login to X, the external display only shows the background picture.. it turns out the desktop stuff has been started to the internal LVDS display, which shouldn't be used at all since the laptop lid is closed!!
Quoted 8 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
When the laptop lid is closed, and external display is connected, I want to use only the external display..
Any ideas how to troubleshoot this one?
Does it work ok if you boot up without the external display connected and then connect and enable the secondary display after you've logged in?
I just tried this.
I boot up the laptop with lid open, so ONLY the internal LVDS is active (DVI cable disconnected), and I get the GDM login prompt on the internal LVDS.
Then I plug in the external DVI display, and the external display gets automatically active when X starts. Gnome panel etc are on the internal LVDS, external DVI display only has the background image and nothing else.
So that works as expected. No problems there.
Quoted 8 lines
I have a similar issue here; I think it's an issue with rhgb and starting X. If I boot with an external display, the entire plymouth load sequence works fine, but then when X starts the external display goes blank and the internal display hangs on the plymouth screen. On a related note, if I close the lid and turn off the LVDS output, gpm never blanks the external monitor. I have to manually force dpms with xset.
The other patch (0001-drm-radeon-kms-fix-shared-ddc-handling.patch) applied my system mostly works now, but here's a summary about the problem I still have with the lid detection:
- I boot up the laptop with lid closed (LVDS inactive) so there's only external DVI display connected. Kernel boot messages show up on the external DVI display, and GDM login prompt appears on the external DVI display. All fine so far.
Quoted 5 lines
- The actual problem: when X starts gnome panel etc show up on the internal LVDS display, which I can't see at all since the lid is closed! So those should go to the external DVI display only.. LVDS should be disconnected or inactive or something..
Any pointers appreciated where to look at in the source.. I can do some debugging.
Your desktop session manager should check the lid status when it loads and attempt to do the right thing if there is an external monitor detected.
Alex
Quoted 67 lines · Alex Deucher
Quoted 66 lines · Pasi Kärkkäinen
Quoted 24 lines · Alex Deucher
Quoted 23 lines · Francisco Jerez
Quoted 21 lines · Jerome Glisse
Quoted 20 lines · Pasi Kärkkäinen
Hello,
After fixing the dvi/hdmi detection problem I now have another problem with the HP EliteBook 8530p, which has Radeon 3650HD adapter.
Here's a summary of the environment:
- laptop connected to a docking station.
- external display in use, connected with DVI to the dock.
- laptop lid closed, so internal LVDS display is not used.Now, when I start the laptop, I can see the BIOS and grub on the external DVI display. All fine so far. I select the Fedora 13 kernel, and Linux starts. I see the Fedora graphical boot on the external DVI display, just like it should be. GDM login prompt appears on the external DVI display, still everything fine.
And then it goes wrong. After I login to X, the external display only shows the background picture.. it turns out the desktop stuff has been started to the internal LVDS display, which shouldn't be used at all since the laptop lid is closed!!
Quoted 8 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
When the laptop lid is closed, and external display is connected, I want to use only the external display..
Any ideas how to troubleshoot this one?
Does it work ok if you boot up without the external display connected and then connect and enable the secondary display after you've logged in?
I just tried this.
I boot up the laptop with lid open, so ONLY the internal LVDS is active (DVI cable disconnected), and I get the GDM login prompt on the internal LVDS.
Then I plug in the external DVI display, and the external display gets automatically active when X starts. Gnome panel etc are on the internal LVDS, external DVI display only has the background image and nothing else.
So that works as expected. No problems there.
Quoted 8 lines
I have a similar issue here; I think it's an issue with rhgb and starting X. If I boot with an external display, the entire plymouth load sequence works fine, but then when X starts the external display goes blank and the internal display hangs on the plymouth screen. On a related note, if I close the lid and turn off the LVDS output, gpm never blanks the external monitor. I have to manually force dpms with xset.
The other patch (0001-drm-radeon-kms-fix-shared-ddc-handling.patch) applied my system mostly works now, but here's a summary about the problem I still have with the lid detection:
- I boot up the laptop with lid closed (LVDS inactive) so there's only external DVI display connected. Kernel boot messages show up on the external DVI display, and GDM login prompt appears on the external DVI display. All fine so far.
- The actual problem: when X starts gnome panel etc show up on the internal LVDS display, which I can't see at all since the lid is closed! So those should go to the external DVI display only.. LVDS should be disconnected or inactive or something..
Quoted 6 lines
Quoted 1 line
Any pointers appreciated where to look at in the source.. I can do some debugging.
Your desktop session manager should check the lid status when it loads and attempt to do the right thing if there is an external monitor detected.
Ok.
So you think it's not a bug in the lid detection?
-- Pasi
Quoted 70 lines · Pasi Kärkkäinen
Quoted 69 lines · Alex Deucher
Quoted 67 lines · Pasi Kärkkäinen
Quoted 24 lines · Alex Deucher
Quoted 23 lines · Francisco Jerez
Quoted 21 lines · Jerome Glisse
Quoted 20 lines · Pasi Kärkkäinen
Hello,
After fixing the dvi/hdmi detection problem I now have another problem with the HP EliteBook 8530p, which has Radeon 3650HD adapter.
Here's a summary of the environment:
- laptop connected to a docking station.
- external display in use, connected with DVI to the dock.
- laptop lid closed, so internal LVDS display is not used.Now, when I start the laptop, I can see the BIOS and grub on the external DVI display. All fine so far. I select the Fedora 13 kernel, and Linux starts. I see the Fedora graphical boot on the external DVI display, just like it should be. GDM login prompt appears on the external DVI display, still everything fine.
And then it goes wrong. After I login to X, the external display only shows the background picture.. it turns out the desktop stuff has been started to the internal LVDS display, which shouldn't be used at all since the laptop lid is closed!!
Quoted 8 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
When the laptop lid is closed, and external display is connected, I want to use only the external display..
Any ideas how to troubleshoot this one?
Does it work ok if you boot up without the external display connected and then connect and enable the secondary display after you've logged in?
I just tried this.
I boot up the laptop with lid open, so ONLY the internal LVDS is active (DVI cable disconnected), and I get the GDM login prompt on the internal LVDS.
Then I plug in the external DVI display, and the external display gets automatically active when X starts. Gnome panel etc are on the internal LVDS, external DVI display only has the background image and nothing else.
So that works as expected. No problems there.
Quoted 8 lines
I have a similar issue here; I think it's an issue with rhgb and starting X. If I boot with an external display, the entire plymouth load sequence works fine, but then when X starts the external display goes blank and the internal display hangs on the plymouth screen. On a related note, if I close the lid and turn off the LVDS output, gpm never blanks the external monitor. I have to manually force dpms with xset.
The other patch (0001-drm-radeon-kms-fix-shared-ddc-handling.patch) applied my system mostly works now, but here's a summary about the problem I still have with the lid detection:
- I boot up the laptop with lid closed (LVDS inactive) so there's only external DVI display connected. Kernel boot messages show up on the external DVI display, and GDM login prompt appears on the external DVI display. All fine so far.
- The actual problem: when X starts gnome panel etc show up on the internal LVDS display, which I can't see at all since the lid is closed! So those should go to the external DVI display only.. LVDS should be disconnected or inactive or something..
Any pointers appreciated where to look at in the source.. I can do some debugging.
Quoted 7 lines
Quoted 4 lines
Your desktop session manager should check the lid status when it loads and attempt to do the right thing if there is an external monitor detected.
Ok.
So you think it's not a bug in the lid detection?
Not sure. That's handled by apci, not the video driver. You can check it the lid is producing proper events by running:
cat /proc/acpi/button/lid/LID/state
with the lid open and closed. The desktop manager decides what the policy is for the lid (blank display, suspend, turn off the connector, etc.). It should also take into account other connected outputs, but I don't think it handles that too well at the moment.
Alex
Quoted 24 lines · Alex Deucher
Quoted 16 lines
Quoted 16 lines
Quoted 15 lines
Quoted 1 line
The other patch (0001-drm-radeon-kms-fix-shared-ddc-handling.patch) applied my system mostly works now, but here's a summary about the problem I still have with the lid detection:
- I boot up the laptop with lid closed (LVDS inactive) so there's only external DVI display connected. Kernel boot messages show up on the external DVI display, and GDM login prompt appears on the external DVI display. All fine so far.
- The actual problem: when X starts gnome panel etc show up on the internal LVDS display, which I can't see at all since the lid is closed! So those should go to the external DVI display only.. LVDS should be disconnected or inactive or something..
Any pointers appreciated where to look at in the source.. I can do some debugging.
Quoted 7 lines
Quoted 4 lines
Your desktop session manager should check the lid status when it loads and attempt to do the right thing if there is an external monitor detected.
Ok.
So you think it's not a bug in the lid detection?
Quoted 8 lines
Not sure. That's handled by apci, not the video driver. You can check it the lid is producing proper events by running:
cat/proc/acpi/button/lid/LID/state
with the lid open and closed. The desktop manager decides what the policy is for the lid (blank display, suspend, turn off the connector, etc.). It should also take into account other connected outputs, but I don't think it handles that too well at the moment.
Yes, the lid acpi stuff seems to work:
lid closed:
$ cat /proc/acpi/button/lid/LID/state state: closed
lid open:
$ cat /proc/acpi/button/lid/LID/state state: open
I also verified that the initial lid state is "closed" when the lid has been closed all the time during system startup and only external DVI display is in use.
(I modified /etc/rc5.d/S01sysstat to sleep+print+sleep so I can check it during system startup before X starts).
When the lid is closed xrandr says "LVDS connected", is that correct?
I think LVDS actually is ON when lid is closed, since I can immediately see everything when I open the lid.. correct colors etc.
So what's the component I should start looking at.. gnome-power-manager? or something else?
Actually.. I just noticed that already in GDM prompt the internal LVDS gets enabled/turned on, even when the lid is closed.. I think.
-- Pasi
Quoted 44 lines · Pasi Kärkkäinen
Quoted 24 lines · Alex Deucher
Quoted 16 lines
Quoted 16 lines
Quoted 15 lines
Quoted 1 line
The other patch (0001-drm-radeon-kms-fix-shared-ddc-handling.patch) applied my system mostly works now, but here's a summary about the problem I still have with the lid detection:
- I boot up the laptop with lid closed (LVDS inactive) so there's only external DVI display connected. Kernel boot messages show up on the external DVI display, and GDM login prompt appears on the external DVI display. All fine so far.
- The actual problem: when X starts gnome panel etc show up on the internal LVDS display, which I can't see at all since the lid is closed! So those should go to the external DVI display only.. LVDS should be disconnected or inactive or something..
Any pointers appreciated where to look at in the source.. I can do some debugging.
Quoted 7 lines
Quoted 4 lines
Your desktop session manager should check the lid status when it loads and attempt to do the right thing if there is an external monitor detected.
Ok.
So you think it's not a bug in the lid detection?Quoted 8 lines
Not sure. That's handled by apci, not the video driver. You can check it the lid is producing proper events by running:
cat/proc/acpi/button/lid/LID/state
with the lid open and closed. The desktop manager decides what the policy is for the lid (blank display, suspend, turn off the connector, etc.). It should also take into account other connected outputs, but I don't think it handles that too well at the moment.Yes, the lid acpi stuff seems to work:
lid closed:
$ cat /proc/acpi/button/lid/LID/state state: closedlid open:
$ cat /proc/acpi/button/lid/LID/state state: open
Quoted 8 lines
I also verified that the initial lid state is "closed" when the lid has been closed all the time during system startup and only external DVI display is in use.
(I modified
/etc/rc5.d/S01sysstatto sleep+print+sleep so I can check it during system startup before X starts).When the lid is closed xrandr says "LVDS connected", is that correct?
Yes. The LVDS is connected, even if you don't necessarily want to use it.
Quoted 9 lines
I think LVDS actually is ON when lid is closed, since I can immediately see everything when I open the lid.. correct colors etc.
So what's the component I should start looking at.. gnome-power-manager? or something else?
Actually.. I just noticed that already in GDM prompt the internal LVDS gets enabled/turned on, even when the lid is closed.. I think.
Yes, it's up to to gdm, gnome-power-manager, etc. to decide the display policy based on the lid state.
Alex
Quoted 49 lines · Alex Deucher
Quoted 48 lines · Pasi Kärkkäinen
Quoted 24 lines · Alex Deucher
Quoted 16 lines
Quoted 16 lines
Quoted 15 lines
Quoted 1 line
The other patch (0001-drm-radeon-kms-fix-shared-ddc-handling.patch) applied my system mostly works now, but here's a summary about the problem I still have with the lid detection:
- I boot up the laptop with lid closed (LVDS inactive) so there's only external DVI display connected. Kernel boot messages show up on the external DVI display, and GDM login prompt appears on the external DVI display. All fine so far.
- The actual problem: when X starts gnome panel etc show up on the internal LVDS display, which I can't see at all since the lid is closed! So those should go to the external DVI display only.. LVDS should be disconnected or inactive or something..
Any pointers appreciated where to look at in the source.. I can do some debugging.
Quoted 7 lines
Quoted 4 lines
Your desktop session manager should check the lid status when it loads and attempt to do the right thing if there is an external monitor detected.
Ok.
So you think it's not a bug in the lid detection?Quoted 8 lines
Not sure. That's handled by apci, not the video driver. You can check it the lid is producing proper events by running:
cat/proc/acpi/button/lid/LID/state
with the lid open and closed. The desktop manager decides what the policy is for the lid (blank display, suspend, turn off the connector, etc.). It should also take into account other connected outputs, but I don't think it handles that too well at the moment.Yes, the lid acpi stuff seems to work:
lid closed:
$ cat /proc/acpi/button/lid/LID/state state: closedlid open:
$ cat /proc/acpi/button/lid/LID/state state: openI also verified that the initial lid state is "closed" when the lid has been closed all the time during system startup and only external DVI display is in use.
Quoted 7 lines
Quoted 4 lines
(I modified
/etc/rc5.d/S01sysstatto sleep+print+sleep so I can check it during system startup before X starts).When the lid is closed xrandr says "LVDS connected", is that correct?
Yes. The LVDS is connected, even if you don't necessarily want to use it.
That's what I was thinking of. But good to get confirmation :)
Quoted 4 lines
Quoted 4 lines
I think LVDS actually is ON when lid is closed, since I can immediately see everything when I open the lid.. correct colors etc.
Quoted 9 lines
Quoted 5 lines
So what's the component I should start looking at.. gnome-power-manager? or something else?
Actually.. I just noticed that already in GDM prompt the internal LVDS gets enabled/turned on, even when the lid is closed.. I think.
Yes, it's up to to gdm, gnome-power-manager, etc. to decide the display policy based on the lid state.
Ok. Is there a way to monitor the status of drm from /proc or /sys or from somewhere?
I guess I'll have to start reading GDM code to check what it does..
-- Pasi
Quoted 33 lines · Pasi Kärkkäinen
Quoted 16 lines
Quoted 16 lines
Quoted 1 line
Yes, the lid acpi stuff seems to work:
lid closed:
$ cat /proc/acpi/button/lid/LID/state state: closedlid open:
$ cat /proc/acpi/button/lid/LID/state state: openI also verified that the initial lid state is "closed" when the lid has been closed all the time during system startup and only external DVI display is in use.
Quoted 7 lines
Quoted 4 lines
(I modified
/etc/rc5.d/S01sysstatto sleep+print+sleep so I can check it during system startup before X starts).When the lid is closed xrandr says "LVDS connected", is that correct?
Yes. The LVDS is connected, even if you don't necessarily want to use it.
That's what I was thinking of. But good to get confirmation :)
Quoted 7 lines
Quoted 7 lines
I think LVDS actually is ON when lid is closed, since I can immediately see everything when I open the lid.. correct colors etc.
So what's the component I should start looking at.. gnome-power-manager? or something else?
Quoted 9 lines
Quoted 6 lines
Quoted 2 lines
Actually.. I just noticed that already in GDM prompt the internal LVDS gets enabled/turned on, even when the lid is closed.. I think.
Yes, it's up to to gdm, gnome-power-manager, etc. to decide the display policy based on the lid state.
Ok. Is there a way to monitor the status of drm from /proc or /sys or from somewhere?
Back to this..
so "/proc/acpi/button/lid/LID/state" seems to work properly on my laptop,
but is there a way to monitor the state of the drm/kms outputs from /proc, /sys or from somewhere?
I'd like to see the state before X is started, and verify what happens when GDM is started etc.. (ie. if outputs are enabled/active or not).
-- Pasi
Quoted 44 lines · Pasi Kärkkäinen
Quoted 33 lines · Pasi Kärkkäinen
Quoted 16 lines
Quoted 16 lines
Quoted 1 line
Yes, the lid acpi stuff seems to work:
lid closed:
$ cat /proc/acpi/button/lid/LID/state state: closedlid open:
$ cat /proc/acpi/button/lid/LID/state state: openI also verified that the initial lid state is "closed" when the lid has been closed all the time during system startup and only external DVI display is in use.
Quoted 7 lines
Quoted 4 lines
(I modified
/etc/rc5.d/S01sysstatto sleep+print+sleep so I can check it during system startup before X starts).When the lid is closed xrandr says "LVDS connected", is that correct?
Yes. The LVDS is connected, even if you don't necessarily want to use it.
That's what I was thinking of. But good to get confirmation :)
Quoted 7 lines
Quoted 7 lines
I think LVDS actually is ON when lid is closed, since I can immediately see everything when I open the lid.. correct colors etc.
So what's the component I should start looking at.. gnome-power-manager? or something else?
Quoted 9 lines
Quoted 6 lines
Quoted 2 lines
Actually.. I just noticed that already in GDM prompt the internal LVDS gets enabled/turned on, even when the lid is closed.. I think.
Yes, it's up to to gdm, gnome-power-manager, etc. to decide the display policy based on the lid state.
Ok. Is there a way to monitor the status of drm from /proc or /sys or from somewhere?
Quoted 8 lines
Back to this..
so "
/proc/acpi/button/lid/LID/state" seems to work properly on my laptop,
but is there a way to monitor the state of the drm/kms outputs from /proc, /sys or from somewhere?I'd like to see the state before X is started, and verify what happens when GDM is started etc.. (ie. if outputs are enabled/active or not).
Ah, found it:
$ ls /sys/class/drm/card0 card0-DVI-D-1 card0-LVDS-1 dev power uevent card0-HDMI Type A-1 card0-VGA-1 device subsystem
$ cat /sys/class/drm/card0/card0-LVDS-1/status connected
$ cat /sys/class/drm/card0/card0-LVDS-1/enabled enabled
$ cat /sys/class/drm/card0/card0-LVDS-1/modes 1680x1050 1400x1050 1280x1024 1440x900 1280x960 1280x854 1280x800 1280x720 1152x768 1024x768 800x600 848x480 720x480 640x480
-- Pasi
Quoted 60 lines · Pasi Kärkkäinen
Quoted 44 lines · Pasi Kärkkäinen
Quoted 33 lines · Pasi Kärkkäinen
Quoted 16 lines
Quoted 16 lines
Quoted 1 line
Yes, the lid acpi stuff seems to work:
lid closed:
$ cat /proc/acpi/button/lid/LID/state state: closedlid open:
$ cat /proc/acpi/button/lid/LID/state state: openI also verified that the initial lid state is "closed" when the lid has been closed all the time during system startup and only external DVI display is in use.
Quoted 7 lines
Quoted 4 lines
(I modified
/etc/rc5.d/S01sysstatto sleep+print+sleep so I can check it during system startup before X starts).When the lid is closed xrandr says "LVDS connected", is that correct?
Yes. The LVDS is connected, even if you don't necessarily want to use it.
That's what I was thinking of. But good to get confirmation :)
Quoted 7 lines
Quoted 7 lines
I think LVDS actually is ON when lid is closed, since I can immediately see everything when I open the lid.. correct colors etc.
So what's the component I should start looking at.. gnome-power-manager? or something else?
Quoted 9 lines
Quoted 6 lines
Quoted 2 lines
Actually.. I just noticed that already in GDM prompt the internal LVDS gets enabled/turned on, even when the lid is closed.. I think.
Yes, it's up to to gdm, gnome-power-manager, etc. to decide the display policy based on the lid state.
Ok. Is there a way to monitor the status of drm from /proc or /sys or from somewhere?
Quoted 8 lines
Back to this..
so "
/proc/acpi/button/lid/LID/state" seems to work properly on my laptop,
but is there a way to monitor the state of the drm/kms outputs from /proc, /sys or from somewhere?I'd like to see the state before X is started, and verify what happens when GDM is started etc.. (ie. if outputs are enabled/active or not).
Ah, found it:
$ ls /sys/class/drm/card0 card0-DVI-D-1 card0-LVDS-1 dev power uevent card0-HDMI Type A-1 card0-VGA-1 device subsystem
Quoted 6 lines
$ cat /sys/class/drm/card0/card0-LVDS-1/status connected$ cat /sys/class/drm/card0/card0-LVDS-1/enabled enabled
So I added those to rc.local so that they get executed before GDM.. and I booted up the laptop with the lid closed..
And the result was: lid state "closed", lvds-status "connected" and lvds-enabled was "enabled"..
Does that mean Fedora plymouth is doing it wrong,
or is t possible the driver itself always enabled the lvds, even when the lid is closed?
-- Pasi
Quoted 21 lines · Pasi Kärkkäinen
Quoted 14 lines
Quoted 7 lines
so "
/proc/acpi/button/lid/LID/state" seems to work properly on my laptop,
but is there a way to monitor the state of the drm/kms outputs from /proc, /sys or from somewhere?I'd like to see the state before X is started, and verify what happens when GDM is started etc.. (ie. if outputs are enabled/active or not).
Ah, found it:
$ ls /sys/class/drm/card0 card0-DVI-D-1 card0-LVDS-1 dev power uevent card0-HDMI Type A-1 card0-VGA-1 device subsystemQuoted 6 lines
$ cat /sys/class/drm/card0/card0-LVDS-1/status connected$ cat /sys/class/drm/card0/card0-LVDS-1/enabled enabled
Quoted 8 lines
So I added those to rc.local so that they get executed before GDM.. and I booted up the laptop with the lid closed..
And the result was: lid state "closed", lvds-status "connected" and lvds-enabled was "enabled"..
Does that mean Fedora plymouth is doing it wrong,
or is t possible the driver itself always enabled the lvds, even when the lid is closed?
I did some more investigations. I'm currently using Fedora 13 Linux 2.6.34.6-47.fc13.x86_64 kernel. I hacked the initrd image to echo debug stuff right after drm modules are loaded,
and *before* plymouth is started (and then sleep for some time so that I have time to see the debug values.)
The result was this:
acpi lid/state: closed
lvds-1/status: connected
lvds-1/enabled: enabled
So to me it looks like the problem is in the driver itself.. lvds shouldn't get enabled (turned on) when the lid is closed..
-- Pasi
Quoted 35 lines · Pasi Kärkkäinen
Quoted 21 lines · Pasi Kärkkäinen
Quoted 14 lines
Quoted 7 lines
so "
/proc/acpi/button/lid/LID/state" seems to work properly on my laptop,
but is there a way to monitor the state of the drm/kms outputs from /proc, /sys or from somewhere?I'd like to see the state before X is started, and verify what happens when GDM is started etc.. (ie. if outputs are enabled/active or not).
Ah, found it:
$ ls /sys/class/drm/card0 card0-DVI-D-1 card0-LVDS-1 dev power uevent card0-HDMI Type A-1 card0-VGA-1 device subsystemQuoted 6 lines
$ cat /sys/class/drm/card0/card0-LVDS-1/status connected$ cat /sys/class/drm/card0/card0-LVDS-1/enabled enabledQuoted 8 lines
So I added those to rc.local so that they get executed before GDM.. and I booted up the laptop with the lid closed..
And the result was: lid state "closed", lvds-status "connected" and lvds-enabled was "enabled"..
Does that mean Fedora plymouth is doing it wrong,
or is t possible the driver itself always enabled the lvds, even when the lid is closed?I did some more investigations. I'm currently using Fedora 13 Linux 2.6.34.6-47.fc13.x86_64 kernel. I hacked the initrd image to echo debug stuff right after drm modules are loaded,
and *before* plymouth is started (and then sleep for some time so that I have time to see the debug values.)
Quoted 8 lines
The result was this:
acpi lid/state: closed
lvds-1/status: connected
lvds-1/enabled: enabledSo to me it looks like the problem is in the driver itself.. lvds shouldn't get enabled (turned on) when the lid is closed..
As I've stated previously, the driver always reports LVDS as connected because it is always connected. It's up to userspace to decide on what policy (enabled or disabled) to implement when the lid is open vs closed.
Alex
Quoted 4 lines
-- Pasi
Quoted 42 lines · Alex Deucher
Quoted 41 lines · Pasi Kärkkäinen
Quoted 21 lines · Pasi Kärkkäinen
Quoted 14 lines
Quoted 7 lines
so "
/proc/acpi/button/lid/LID/state" seems to work properly on my laptop,
but is there a way to monitor the state of the drm/kms outputs from /proc, /sys or from somewhere?I'd like to see the state before X is started, and verify what happens when GDM is started etc.. (ie. if outputs are enabled/active or not).
Ah, found it:
$ ls /sys/class/drm/card0 card0-DVI-D-1 card0-LVDS-1 dev power uevent card0-HDMI Type A-1 card0-VGA-1 device subsystemQuoted 6 lines
$ cat /sys/class/drm/card0/card0-LVDS-1/status connected$ cat /sys/class/drm/card0/card0-LVDS-1/enabled enabledQuoted 8 lines
So I added those to rc.local so that they get executed before GDM.. and I booted up the laptop with the lid closed..
And the result was: lid state "closed", lvds-status "connected" and lvds-enabled was "enabled"..
Does that mean Fedora plymouth is doing it wrong,
or is t possible the driver itself always enabled the lvds, even when the lid is closed?I did some more investigations. I'm currently using Fedora 13 Linux 2.6.34.6-47.fc13.x86_64 kernel. I hacked the initrd image to echo debug stuff right after drm modules are loaded,
and *before* plymouth is started (and then sleep for some time so that I have time to see the debug values.)The result was this:
acpi lid/state: closed
lvds-1/status: connected
lvds-1/enabled: enabled
Quoted 8 lines
Quoted 2 lines
So to me it looks like the problem is in the driver itself.. lvds shouldn't get enabled (turned on) when the lid is closed..
As I've stated previously, the driver always reports LVDS as connected because it is always connected. It's up to userspace to decide on what policy (enabled or disabled) to implement when the lid is open vs closed.
Yep, I do realize it's always connected.
But the question was supposed to be more about the enabled/disabled part.. It isn't possible to check the acpi lid status from the driver?
-- Pasi
Quoted 52 lines · Pasi Kärkkäinen
Quoted 42 lines · Alex Deucher
Quoted 41 lines · Pasi Kärkkäinen
Quoted 21 lines · Pasi Kärkkäinen
Quoted 14 lines
Quoted 7 lines
so "
/proc/acpi/button/lid/LID/state" seems to work properly on my laptop,
but is there a way to monitor the state of the drm/kms outputs from /proc, /sys or from somewhere?I'd like to see the state before X is started, and verify what happens when GDM is started etc.. (ie. if outputs are enabled/active or not).
Ah, found it:
$ ls /sys/class/drm/card0 card0-DVI-D-1 card0-LVDS-1 dev power uevent card0-HDMI Type A-1 card0-VGA-1 device subsystemQuoted 6 lines
$ cat /sys/class/drm/card0/card0-LVDS-1/status connected$ cat /sys/class/drm/card0/card0-LVDS-1/enabled enabledQuoted 8 lines
So I added those to rc.local so that they get executed before GDM.. and I booted up the laptop with the lid closed..
And the result was: lid state "closed", lvds-status "connected" and lvds-enabled was "enabled"..
Does that mean Fedora plymouth is doing it wrong,
or is t possible the driver itself always enabled the lvds, even when the lid is closed?I did some more investigations. I'm currently using Fedora 13 Linux 2.6.34.6-47.fc13.x86_64 kernel. I hacked the initrd image to echo debug stuff right after drm modules are loaded,
and *before* plymouth is started (and then sleep for some time so that I have time to see the debug values.)The result was this:
acpi lid/state: closed
lvds-1/status: connected
lvds-1/enabled: enabledQuoted 8 lines
Quoted 2 lines
So to me it looks like the problem is in the driver itself.. lvds shouldn't get enabled (turned on) when the lid is closed..
As I've stated previously, the driver always reports LVDS as connected because it is always connected. It's up to userspace to decide on what policy (enabled or disabled) to implement when the lid is open vs closed.
Quoted 4 lines
Yep, I do realize it's always connected.
But the question was supposed to be more about the enabled/disabled part.. It isn't possible to check the acpi lid status from the driver?
It is possible but:
1. Acpi lid status is very unreliable on a lot of notebooks
2. Policy is set in userspace, so your desktop manager should decide what to enable in what cases.
Also there are laptops with built in color management tools that require the panel be on when the lid is closed to run.
Alex
Quoted 4 lines
-- Pasi
Quoted 53 lines · Alex Deucher
Quoted 52 lines · Pasi Kärkkäinen
Quoted 50 lines · Alex Deucher
Quoted 35 lines · Pasi Kärkkäinen
Quoted 21 lines · Pasi Kärkkäinen
Quoted 14 lines
Quoted 7 lines
so "
/proc/acpi/button/lid/LID/state" seems to work properly on my laptop,
but is there a way to monitor the state of the drm/kms outputs from /proc, /sys or from somewhere?I'd like to see the state before X is started, and verify what happens when GDM is started etc.. (ie. if outputs are enabled/active or not).
Ah, found it:
$ ls /sys/class/drm/card0 card0-DVI-D-1 card0-LVDS-1 dev power uevent card0-HDMI Type A-1 card0-VGA-1 device subsystemQuoted 6 lines
$ cat /sys/class/drm/card0/card0-LVDS-1/status connected$ cat /sys/class/drm/card0/card0-LVDS-1/enabled enabledQuoted 8 lines
So I added those to rc.local so that they get executed before GDM.. and I booted up the laptop with the lid closed..
And the result was: lid state "closed", lvds-status "connected" and lvds-enabled was "enabled"..
Does that mean Fedora plymouth is doing it wrong,
or is t possible the driver itself always enabled the lvds, even when the lid is closed?I did some more investigations. I'm currently using Fedora 13 Linux 2.6.34.6-47.fc13.x86_64 kernel. I hacked the initrd image to echo debug stuff right after drm modules are loaded,
and *before* plymouth is started (and then sleep for some time so that I have time to see the debug values.)Quoted 8 lines
The result was this:
acpi lid/state: closed
lvds-1/status: connected
lvds-1/enabled: enabledSo to me it looks like the problem is in the driver itself.. lvds shouldn't get enabled (turned on) when the lid is closed..
As I've stated previously, the driver always reports LVDS as connected because it is always connected. It's up to userspace to decide on what policy (enabled or disabled) to implement when the lid is open vs closed.
Quoted 9 lines
Quoted 4 lines
Yep, I do realize it's always connected.
But the question was supposed to be more about the enabled/disabled part.. It isn't possible to check the acpi lid status from the driver?
It is possible but:
1. Acpi lid status is very unreliable on a lot of notebooks
Yeah.. seems to work fine on mine though.
Quoted 3 lines
2. Policy is set in userspace, so your desktop manager should decide what to enable in what cases.
Police in userspace makes sense..
Quoted 3 lines
Also there are laptops with built in color management tools that require the panel be on when the lid is closed to run.
Hmm.. ok.
So I guess I'll have to continue with plymouth/gdm/Xorg people..
Thanks!
-- Pasi
Quoted 28 lines · Jerome Glisse
Quoted 20 lines · Pasi Kärkkäinen
Hello,
After fixing the dvi/hdmi detection problem I now have another problem with the HP EliteBook 8530p, which has Radeon 3650HD adapter.
Here's a summary of the environment:
- laptop connected to a docking station.
- external display in use, connected with DVI to the dock.
- laptop lid closed, so internal LVDS display is not used.Now, when I start the laptop, I can see the BIOS and grub on the external DVI display. All fine so far. I select the Fedora 13 kernel, and Linux starts. I see the Fedora graphical boot on the external DVI display, just like it should be. GDM login prompt appears on the external DVI display, still everything fine.
And then it goes wrong. After I login to X, the external display only shows the background picture.. it turns out the desktop stuff has been started to the internal LVDS display, which shouldn't be used at all since the laptop lid is closed!!
Quoted 6 lines
When the laptop lid is closed, and external display is connected, I want to use only the external display..
Any ideas how to troubleshoot this one?
-- Pasi
Quoted 8 lines
It's better to open bug when you face issue rather than mail, as it's harder to track information in mail thread than in a bug. Your issue is not easily fixed because there is many laptop with broken acpi which report wrong lid status (some of them always report lid closed what ever is the lid status, other always report lid open, ... i am not expert on how broken this is but from what i have been told i should rather consider drinking than trying to look into it and then go to the drinking step).
Hey, I'm from Finland, so drinking and debugging is not a problem ;)
Quoted 5 lines
Bottom line is that lid detection is unreliable thus so far we ignore it silently. I think the plan is to monitor lid status change and if we detect change from either open to close or close to open then we can start assuming that acpi lid status is reliable and act accordingly.
I hate to play the "windows card" but the lid detection seems to work in windows.. so there's a way to make it work :)
-- Pasi