backlight
Hi,
I'm running linux 2.6.28-rc6-00007-ged31348 on my Thinkpad T61, with Intel GM965. Under X, brightness keys work fine most of the time, but in some case it fails (for example after a dpms force off, but not always). Switching to console and back to X fix the problem for a time.
Another weird stuff is that, in single user, I have no way to control the backlight. Using brightness key doesn't work,
and /sys/class/backlight/acpi_video0 doesn't do anything.
I know there was a lot of enhancements with OpRegion stuff for 2.6.27 and 2.6.28, and it's maybe not finished, but are those problems known?
Cheers, and many thanks for the good work :)
Signature · 1 line
Yves-Alexis
Len Brown
reviewerRe: [intel/acpi] backlight - T61
Quoted 4 lines · Yves-Alexis Perez
I'm running linux 2.6.28-rc6-00007-ged31348 on my Thinkpad T61, with Intel GM965. Under X, brightness keys work fine most of the time, but in some case it fails (for example after a dpms force off, but not always). Switching to console and back to X fix the problem for a time.
How to you invoke DPMS?
I'm running the latest 2.6.28 on top of FC9, and I find that if I use the hot keys to dim the screen all the way, and then I'm idle for a period, the screen pretends to go black. (X foolishly paits the pixels black, but keeps the backlight on) Then when I touch the mouse to wake it up, my screen unlock prompt is at full brightness, and so is my screen when I unlock. So it seems that X forgot that I set the brightness. (though clicking the brightness hotkey shows the widget still
thinks I'm at minimum brightness, so that part remembered...)
Now the backlight is totally screwed up.
I use the hotkeys to get to minimum brightness, but something thinks I'm still at maximum brightness, because after some idle time, the screen all by itself goes bright.
Quoted 3 lines
Another weird stuff is that, in single user, I have no way to control the backlight. Using brightness key doesn't work,
and/sys/class/backlight/acpi_video0doesn't do anything.
There are actually two text consoles -- CTRL-ALT-F1 while X is running and single-user mode.
The hot keys have never worked for either of these modes.
I would hope that X (i915) should be able to handle brightness in CTRL-ALT-F1 mode the same way that it does in GUI mode, but that doesn't seem to be working.
Then there is single-user-mode, where X never ran
and the i915 may not even be loaded...
We used to have /sys/class/backlight and /proc/acpi/video available and they used to work in single-user mode (as well as in CTRL-ALT-F1) mode. This was due to there being two video devices. Unfortunately, we deleted the one what works in this scenario.
Try this patch, which brings it back.
thanks,
-Len
Quoted 1 line
From
d5b5f1bf810dcc87d5d6adb6efbaee8bff6d796cMon Sep 17 00:00:00 2001
From: Len Brown <[email protected]>
Date: Fri, 28 Nov 2008 14:02:52 -0500
Subject: [PATCH] Partial revert "ACPI: video: Ignore devices that aren't present in hardware"
Organization: Intel Open Source Technology Center
22c13f9d8179f4c9caecfcb60a95214562b9addc
"ACPI: video: Ignore devices that aren't present in hardware"
caused the 2nd /proc/acpi/video
and /sys/firmware/backlight device to go away,
making software brightness control unavailable
in single-user-mode and X text-console-mode,
on a Thinkpad T61.
--- drivers/acpi/video.c | 6 ------ 1 files changed, 0 insertions(+), 6 deletions(-)
drivers/acpi/video.c +0 -6
@@ -845,16 +845,10 @@ static void acpi_video_bus_find_cap(struct acpi_video_bus *video)static int acpi_video_bus_check (struct acpi_video_bus *video) {acpi_status status = -ENOENT ; -struct device *dev;if (!video)return -EINVAL ; - dev =acpi_get_physical_pci_device (video->device->handle); -if (!dev) -return -ENODEV ; -put_device (dev); -/* Since there is no HID, CID and so on for VGA driver, we have * to check well known required nodes. */
Signature · 1 line
1.6.0.4.836.gd5cb
Re: [intel/acpi] backlight - T61
Quoted 40 lines · Len Brown
Quoted 4 lines · Yves-Alexis Perez
I'm running linux 2.6.28-rc6-00007-ged31348 on my Thinkpad T61, with Intel GM965. Under X, brightness keys work fine most of the time, but in some case it fails (for example after a dpms force off, but not always). Switching to console and back to X fix the problem for a time.
How to you invoke DPMS?
I'm running the latest 2.6.28 on top of FC9, and I find that if I use the hot keys to dim the screen all the way, and then I'm idle for a period, the screen pretends to go black. (X foolishly paits the pixels black, but keeps the backlight on) Then when I touch the mouse to wake it up, my screen unlock prompt is at full brightness, and so is my screen when I unlock. So it seems that X forgot that I set the brightness. (though clicking the brightness hotkey shows the widget still
thinks I'm at minimum brightness, so that part remembered...)Now the backlight is totally screwed up.
I use the hotkeys to get to minimum brightness, but something thinks I'm still at maximum brightness, because after some idle time, the screen all by itself goes bright.Quoted 3 lines
Another weird stuff is that, in single user, I have no way to control the backlight. Using brightness key doesn't work,
and/sys/class/backlight/acpi_video0doesn't do anything.There are actually two text consoles -- CTRL-ALT-F1 while X is running and single-user mode.
The hot keys have never worked for either of these modes.
I would hope that X (i915) should be able to handle brightness in CTRL-ALT-F1 mode the same way that it does in GUI mode, but that doesn't seem to be working.
Then there is single-user-mode, where X never ran
and the i915 may not even be loaded...
Quoted 7 lines
We used to have
/sys/class/backlightand/proc/acpi/videoavailable and they used to work in single-user mode (as well as in CTRL-ALT-F1) mode. This was due to there being two video devices. Unfortunately, we deleted the one what works in this scenario.Try this patch, which brings it back.
No!!!
Not again.
It will work, but it is wrong.
You might poke on HW IO which is not there.
The latest ThinkPads and your T61, if you have the latest BIOS, are known to work with IGD aka OpRegion support.
This is the code which should switch your backlight:drivers/gpu/drm/i915/i915_opregion.c
and this is the spec describing how it should work:
http://intellinuxgraphics.org/ACPI_IGD_OpRegion_%20Spec.pdf
Thomas
Quoted 45 lines
thanks,
-LenFrom
d5b5f1bf810dcc87d5d6adb6efbaee8bff6d796cMon Sep 17 00:00:00 2001
From: Len Brown <[email protected]>
Date: Fri, 28 Nov 2008 14:02:52 -0500
Subject: [PATCH] Partial revert "ACPI: video: Ignore devices that aren't present in hardware" Organization: Intel Open Source Technology Center
22c13f9d8179f4c9caecfcb60a95214562b9addc
"ACPI: video: Ignore devices that aren't present in hardware"caused the 2nd
/proc/acpi/video
and/sys/firmware/backlightdevice to go away,
making software brightness control unavailable
in single-user-mode and X text-console-mode,
on a Thinkpad T61.Signed-off-by Len Brown <[email protected]>--- drivers/acpi/video.c | 6 ------ 1 files changed, 0 insertions(+), 6 deletions(-)drivers/acpi/video.c +0
-0@@ -845,16 +845,10 @@ static void acpi_video_bus_find_cap(struct
acpi_video_bus*video) static intacpi_video_bus_check(struct acpi_video_bus *video)
{drivers/acpi/video.c +0
-6acpi_status status = -ENOENT ; -struct device *dev;if (!video)return -EINVAL ; - dev =acpi_get_physical_pci_device (video->device->handle); -if (!dev) -return -ENODEV ; -put_device (dev); -/* Since there is no HID, CID and so on for VGA driver, we have * to check well known required nodes. */
Re: [intel/acpi] backlight - T61
In reply to Len BrownQuoted 8 lines · Len Brown
Quoted 4 lines · Yves-Alexis Perez
I'm running linux 2.6.28-rc6-00007-ged31348 on my Thinkpad T61, with Intel GM965. Under X, brightness keys work fine most of the time, but in some case it fails (for example after a dpms force off, but not always). Switching to console and back to X fix the problem for a time.
How to you invoke DPMS?
xorg.conf:
Section "ServerFlags"
Option "StandbyTime" "0" Option "SuspendTime" "0" Option "OffTime" "5"
EndSection
Quoted 11 lines
I'm running the latest 2.6.28 on top of FC9, and I find that if I use the hot keys to dim the screen all the way, and then I'm idle for a period, the screen pretends to go black. (X foolishly paits the pixels black, but keeps the backlight on) Then when I touch the mouse to wake it up, my screen unlock prompt is at full brightness, and so is my screen when I unlock. So it seems that X forgot that I set the brightness. (though clicking the brightness hotkey shows the widget still
thinks I'm at minimum brightness, so that part remembered...)
Quoted 5 lines
Now the backlight is totally screwed up.
I use the hotkeys to get to minimum brightness, but something thinks I'm still at maximum brightness, because after some idle time, the screen all by itself goes bright.
Well I think that gnome-power-manager might be in your way, not sure.
Quoted 9 lines
Quoted 4 lines
Another weird stuff is that, in single user, I have no way to control the backlight. Using brightness key doesn't work,
and/sys/class/backlight/acpi_video0doesn't do anything.There are actually two text consoles -- CTRL-ALT-F1 while X is running and single-user mode.
The hot keys have never worked for either of these modes.
Yes I know, that's why I'm asking here. They are not supposed to work atm because OpRegion needs X support. What I was asking is if there was something in cooking for that. But what puzzles me is that even the /sys/class/backlight/acpi_video0 doesn't work.
Quoted 8 lines
I would hope that X (i915) should be able to handle brightness in CTRL-ALT-F1 mode the same way that it does in GUI mode, but that doesn't seem to be working.
Then there is single-user-mode, where X never ran
and the i915 may not even be loaded...
Quoted 7 lines
We used to have
/sys/class/backlightand/proc/acpi/videoavailable and they used to work in single-user mode (as well as in CTRL-ALT-F1) mode. This was due to there being two video devices. Unfortunately, we deleted the one what works in this scenario.Try this patch, which brings it back.
No, I don't want to revert those patches, they are there for a reason. But yeah there is some console support missing, which may be working on.
Cheers,
Signature · 1 line
Yves-Alexis
Re: [intel/acpi] backlight - T61
Quoted 42 lines · Yves-Alexis Perez
Quoted 8 lines · Len Brown
Quoted 4 lines · Yves-Alexis Perez
I'm running linux 2.6.28-rc6-00007-ged31348 on my Thinkpad T61, with Intel GM965. Under X, brightness keys work fine most of the time, but in some case it fails (for example after a dpms force off, but not always). Switching to console and back to X fix the problem for a time.
How to you invoke DPMS?
xorg.conf:
Section "ServerFlags"Option "StandbyTime" "0" Option "SuspendTime" "0" Option "OffTime" "5"EndSection
Quoted 11 lines
I'm running the latest 2.6.28 on top of FC9, and I find that if I use the hot keys to dim the screen all the way, and then I'm idle for a period, the screen pretends to go black. (X foolishly paits the pixels black, but keeps the backlight on) Then when I touch the mouse to wake it up, my screen unlock prompt is at full brightness, and so is my screen when I unlock. So it seems that X forgot that I set the brightness. (though clicking the brightness hotkey shows the widget still
thinks I'm at minimum brightness, so that part remembered...)Quoted 5 lines
Now the backlight is totally screwed up.
I use the hotkeys to get to minimum brightness, but something thinks I'm still at maximum brightness, because after some idle time, the screen all by itself goes bright.Well I think that gnome-power-manager might be in your way, not sure.
Quoted 8 lines
Quoted 4 lines
Another weird stuff is that, in single user, I have no way to control the backlight. Using brightness key doesn't work,
and/sys/class/backlight/acpi_video0doesn't do anything.There are actually two text consoles -- CTRL-ALT-F1 while X is running and single-user mode.
Quoted 6 lines
Quoted 1 line
The hot keys have never worked for either of these modes.
Yes I know, that's why I'm asking here. They are not supposed to work atm because OpRegion needs X support. What I was asking is if there was something in cooking for that. But what puzzles me is that even the
/sys/class/backlight/acpi_video0doesn't work.
when poking the /sys/class/backlight/acpi_video0/, ACPI will do nothing but notifying the graphics, only the i915 driver can change the backlight if it's loaded.
Quoted 8 lines
Quoted 8 lines
I would hope that X (i915) should be able to handle brightness in CTRL-ALT-F1 mode the same way that it does in GUI mode, but that doesn't seem to be working.
Then there is single-user-mode, where X never ran
and the i915 may not even be loaded...
Quoted 8 lines
Quoted 7 lines
We used to have
/sys/class/backlightand/proc/acpi/videoavailable and they used to work in single-user mode (as well as in CTRL-ALT-F1) mode. This was due to there being two video devices. Unfortunately, we deleted the one what works in this scenario.Try this patch, which brings it back.
this (both X and ACPI cam control the backlight, in different ways) is dangerous as we know,
and IMO, removing such interfaces and controlling backlight only in the native graphics driver is what the IGD OpRegion designed for.
Quoted 3 lines
No, I don't want to revert those patches, they are there for a reason. But yeah there is some console support missing, which may be working on.
IMO, after loading i915 driver, the ACPI backlight I/F can work again, right?
If this is true, why not always loading i915 both in X and console mode? the kernel mode setting should not only work for X mode.
thanks,
rui
Len Brown
reviewerRe: [intel/acpi] backlight - T61
Quoted 4 lines
IMO, after loading i915 driver, the ACPI backlight I/F can work again, right?
No.
hotkeys have never worked in console mode,
but in 2.6.27, echo into /proc and /sys did work in console mode and in 2.6.28 they do not. So this is a regression.
Quoted 2 lines
If this is true, why not always loading i915 both in X and console mode? the kernel mode setting should not only work for X mode.
I agree that the i915 driver should handle brightness, no matter if we are in GUI mode or console mode. Unfortunately, today it doesn't seem to do anything in console mode.
That is why I pointed out that the regression here was when we deleted the /proc and /sys nodes that actualy work from console mode...
On a brightner note, I'm pleased to report that after upgrading my T61 to FC10 from FC9, the brightness suddenly became consistent across screen saver events. ie. the brightness I set via hotkey before the screen saver event was restored after the screen comes back from screen blank.
However, testing FC10 with the latest upstream kernel, including the i915 changes that appeared today... it seems that GUI mode forgets the brighness when I switch to console mode. Eg. If I use /sys or hotkeys in GUI mode to reduce brightness to 0, it stays dim when I switch to console mode, but switches back to max brightness when
I switch back to GUI mode.
-Len
Re: [intel/acpi] backlight - T61
Quoted 6 lines · Len Brown
Quoted 3 lines
IMO, after loading i915 driver, the ACPI backlight I/F can work again, right?
No.
hotkeys have never worked in console mode,
that's bad. We should try to work this out.
len, can you please send me the acpidump output of your x60?
Quoted 20 lines
but in 2.6.27, echo into /proc and /sys did work in console mode and in 2.6.28 they do not. So this is a regression.
Quoted 2 lines
If this is true, why not always loading i915 both in X and console mode? the kernel mode setting should not only work for X mode.
I agree that the i915 driver should handle brightness, no matter if we are in GUI mode or console mode. Unfortunately, today it doesn't seem to do anything in console mode.
That is why I pointed out that the regression here was when we deleted the /proc and /sys nodes that actualy work from console mode...
On a brightner note, I'm pleased to report that after upgrading my T61 to FC10 from FC9, the brightness suddenly became consistent across screen saver events. ie. the brightness I set via hotkey before the screen saver event was restored after the screen comes back from screen blank.
Quoted 8 lines
However, testing FC10 with the latest upstream kernel, including the i915 changes that appeared today... it seems that GUI mode forgets the brighness when I switch to console mode. Eg. If I use /sys or hotkeys in GUI mode to reduce brightness to 0, it stays dim when I switch to console mode, but switches back to max brightness when
I switch back to GUI mode.
hah, that's a done by X.
ZhenYu pointed out that the graphics driver will set the backlight to maximum if it is 0 when switching to GUI.
what if reducing the brightness to a lower but not 0 level? it should switch back to the original value, right?
cc ZhenYU. :)
thanks,
rui
--
To unsubscribe from this list: send the line "unsubscribe linux-acpi" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Re: [intel/acpi] backlight - T61
Quoted 9 lines · Zhang Rui
Quoted 9 lines
However, testing FC10 with the latest upstream kernel, including the i915 changes that appeared today... it seems that GUI mode forgets the brighness when I switch to console mode. Eg. If I use /sys or hotkeys in GUI mode to reduce brightness to 0, it stays dim when I switch to console mode, but switches back to max brightness when
I switch back to GUI mode.
Quoted 6 lines
hah, that's a done by X.
ZhenYu pointed out that the graphics driver will set the backlight to maximum if it is 0 when switching to GUI.
what if reducing the brightness to a lower but not 0 level? it should switch back to the original value, right?
cc ZhenYU. :)
This depends on the backlight control method used by Xorg video driver. We have this comment in the driver from Jesse I think,
/*
* If we're going from off->on we may need to turn on the backlight.
* We should use the saved value whenever possible, but on some
* machines 0 is a valid backlight value (due to an external backlight
* controller for example), so on them, when turning LVDS back on,
* they'll always re-maximize the brightness.
*/
if (!(INREG(PP_CONTROL) & POWER_TARGET_ON) &&
dev_priv->backlight_duty_cycle == 0) dev_priv->backlight_duty_cycle = dev_priv->backlight_max;
It looks if we're using kernel backlight method, '0' should be a human sensible dim level instead of meaningless near-to-black level, right?
So how about this patch against current xf86-video-intel?
---
src/i830_lvds.c +2 -1
@@ -400,7 +400,8 @@ i830SetLVDSPanelPower(xf86OutputPtr output, Bool on)* they'll always re-maximize the brightness. */ if (!(INREG (PP_CONTROL ) &POWER_TARGET_ON ) && - dev_priv->backlight_duty_cycle ==0 ) + dev_priv->backlight_duty_cycle ==0 && + pI830->backlight_control_method <BCM_KERNEL ) dev_priv->backlight_duty_cycle = dev_priv->backlight_max;OUTREG (PP_CONTROL ,INREG (PP_CONTROL ) |POWER_TARGET_ON );
---
p.s Len, if for intel graphics specific issue, we have another [email protected] for such discuss. Thanks.
--
To unsubscribe from this list: send the line "unsubscribe linux-acpi" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Re: [Intel-gfx] [intel/acpi] backlight - T61
Quoted 40 lines · Zhenyu Wang
Quoted 8 lines
Quoted 8 lines
However, testing FC10 with the latest upstream kernel, including the i915 changes that appeared today... it seems that GUI mode forgets the brighness when I switch to console mode. Eg. If I use /sys or hotkeys in GUI mode to reduce brightness to 0, it stays dim when I switch to console mode, but switches back to max brightness when
I switch back to GUI mode.Quoted 6 lines
hah, that's a done by X.
ZhenYu pointed out that the graphics driver will set the backlight to maximum if it is 0 when switching to GUI.
what if reducing the brightness to a lower but not 0 level? it should switch back to the original value, right?
cc ZhenYU. :)This depends on the backlight control method used by Xorg video driver. We have this comment in the driver from Jesse I think,
/*
* If we're going fromoff->onwe may need to turn on the backlight.
* We should use the saved value whenever possible, but on some
* machines 0 is a valid backlight value (due to an external backlight
* controller for example), so on them, when turning LVDS back on,
* they'll always re-maximize the brightness.
*/
if (!(INREG(PP_CONTROL) &POWER_TARGET_ON) &&dev_priv->backlight_duty_cycle == 0) dev_priv->backlight_duty_cycle = dev_priv->backlight_max;It looks if we're using kernel backlight method, '0' should be a human sensible dim level instead of meaningless near-to-black level, right?
So how about this patch against current xf86-video-intel?
---
src/i830_lvds.c +0
-0
src/i830_lvds.c i830SetLVDSPanelPower(xf86OutputPtr output, Bool on)
Quoted 10 lines
src/i830_lvds.c +2
-2@@ -400,7 +400,8 @@ i830SetLVDSPanelPower(xf86OutputPtr output, Bool on)* they'll always re-maximize the brightness. */ if (!(INREG (PP_CONTROL ) &POWER_TARGET_ON ) && - dev_priv->backlight_duty_cycle ==0 ) + dev_priv->backlight_duty_cycle ==0 && + pI830->backlight_control_method <BCM_KERNEL ) dev_priv->backlight_duty_cycle = dev_priv->backlight_max;OUTREG (PP_CONTROL ,INREG (PP_CONTROL ) |POWER_TARGET_ON ); ---
I've tested this patch on T61 just fine. I push this to xf86-video-intel master now.
Signature · 3 lines
Open Source Technology Center, Intel ltd. $gpg --keyserver wwwkeys.pgp.net --recv-keys 4D781827
Re: [intel/acpi] backlight - T61
In reply to Zhenyu WangQuoted 53 lines · Zhenyu Wang
Quoted 9 lines · Zhang Rui
Quoted 8 lines
However, testing FC10 with the latest upstream kernel, including the i915 changes that appeared today... it seems that GUI mode forgets the brighness when I switch to console mode. Eg. If I use /sys or hotkeys in GUI mode to reduce brightness to 0, it stays dim when I switch to console mode, but switches back to max brightness when
I switch back to GUI mode.Quoted 6 lines
hah, that's a done by X.
ZhenYu pointed out that the graphics driver will set the backlight to maximum if it is 0 when switching to GUI.
what if reducing the brightness to a lower but not 0 level? it should switch back to the original value, right?
cc ZhenYU. :)This depends on the backlight control method used by Xorg video driver. We have this comment in the driver from Jesse I think,
/*
* If we're going fromoff->onwe may need to turn on the backlight.
* We should use the saved value whenever possible, but on some
* machines 0 is a valid backlight value (due to an external backlight
* controller for example), so on them, when turning LVDS back on,
* they'll always re-maximize the brightness.
*/
if (!(INREG(PP_CONTROL) &POWER_TARGET_ON) &&dev_priv->backlight_duty_cycle == 0) dev_priv->backlight_duty_cycle = dev_priv->backlight_max;It looks if we're using kernel backlight method, '0' should be a human sensible dim level instead of meaningless near-to-black level, right?
So how about this patch against current xf86-video-intel?
---
src/i830_lvds.c +2
-2@@ -400,7 +400,8 @@ i830SetLVDSPanelPower(xf86OutputPtr output, Bool on)* they'll always re-maximize the brightness. */ if (!(INREG (PP_CONTROL ) &POWER_TARGET_ON ) && - dev_priv->backlight_duty_cycle ==0 ) + dev_priv->backlight_duty_cycle ==0 && + pI830->backlight_control_method <BCM_KERNEL ) dev_priv->backlight_duty_cycle = dev_priv->backlight_max;OUTREG (PP_CONTROL ,INREG (PP_CONTROL ) |POWER_TARGET_ON ); ---
Quoted 2 lines
p.s Len, if for intel graphics specific issue, we have another [email protected] for such discuss. Thanks.
I'd be a little happier with a != BCM_KERNEL, but other than that it seems fine.
Signature · 12 lines
Jesse Barnes, Intel Open Source Technology Center ------------------------------------------------------------------------------ SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada. The future of the web can't happen without you. Join us at MIX09 to help pave the way to the Next Web now. Learn more and register at http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/ -- _______________________________________________ Dri-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/dri-devel
Quoted 6 lines · Yves-Alexis Perez
Hi,
I'm running linux 2.6.28-rc6-00007-ged31348 on my Thinkpad T61, with Intel GM965. Under X, brightness keys work fine most of the time, but in some case it fails (for example after a dpms force off, but not always). Switching to console and back to X fix the problem for a time.
Will you please confirm whether the issue still exists if DPMS is not used?
Quoted 4 lines
Another weird stuff is that, in single user, I have no way to control the backlight. Using brightness key doesn't work,
and/sys/class/backlight/acpi_video0doesn't do anything.
Can you confirm whether the i915 driver is loaded in single user mode? If not, please load it and see whether the interface
of /sys/class/backlight/* can work.
Quoted 5 lines
I know there was a lot of enhancements with OpRegion stuff for 2.6.27 and 2.6.28, and it's maybe not finished, but are those problems known?
Cheers, and many thanks for the good work :)
Len Brown
reviewerQuoted 10 lines · Zhao Yakui
Quoted 6 lines · Yves-Alexis Perez
Hi,
I'm running linux 2.6.28-rc6-00007-ged31348 on my Thinkpad T61, with Intel GM965. Under X, brightness keys work fine most of the time, but in some case it fails (for example after a dpms force off, but not always). Switching to console and back to X fix the problem for a time.
Will you please confirm whether the issue still exists if DPMS is not used?
I don't have DPMS enabled, and if editing xorg.conf is required to enable it, I never will.
Quoted 7 lines
Quoted 3 lines
Another weird stuff is that, in single user, I have no way to control the backlight. Using brightness key doesn't work,
and/sys/class/backlight/acpi_video0doesn't do anything.Can you confirm whether the i915 driver is loaded in single user mode? If not, please load it and see whether the interface
of/sys/class/backlight/*can work.
In 2.6.28...
in single user mode, i915 is not loaded,/sys/class/backlight/acpi_video0 does NOT work
modprobe of i915 does not change this.
In 2.6.27
in single user mode, i915 is not loaded,/sys/class/backlight/acpi_video0 does NOT work/sys/class/backlight/acpi_video1 DOES work
modprobe of i915 does not change this.
-Len
On Sun, Nov 30, 2008 at 10:28:30PM -0500, Len Brown wrote:
(Cc:ing Jesse)
Quoted 4 lines
in single user mode, i915 is not loaded,
/sys/class/backlight/acpi_video0does NOT workmodprobe of i915 does not change this.
Jesse, are IRQs being delivered to the drm code when X isn't the foreground VT? If not, this would seem to need fixing.
Signature · 1 line
Matthew Garrett | [email protected]
Quoted 11 lines · Matthew Garrett
On Sun, Nov 30, 2008 at 10:28:30PM -0500, Len Brown wrote:
(Cc:ing Jesse)
Quoted 4 lines
in single user mode, i915 is not loaded,
/sys/class/backlight/acpi_video0does NOT workmodprobe of i915 does not change this.
Jesse, are IRQs being delivered to the drm code when X isn't the foreground VT? If not, this would seem to need fixing.
The X driver calls into the DRM to disable IRQs when it releases the VT, but we could make that just affect vblank interrupts if needed (yay more i915_irq.c changes).
Jesse
Quoted 7 lines · Jesse Barnes
Quoted 2 lines · Matthew Garrett
Jesse, are IRQs being delivered to the drm code when X isn't the foreground VT? If not, this would seem to need fixing.
The X driver calls into the DRM to disable IRQs when it releases the VT, but we could make that just affect vblank interrupts if needed (yay more
i915_irq.cchanges).
Yeah, I think that's going to be necessary unfortunately, otherwise we lose support for changing brightness outside X.
Signature · 1 line
Matthew Garrett | [email protected]
Quoted 9 lines · Zhao Yakui
Quoted 6 lines · Yves-Alexis Perez
Hi,
I'm running linux 2.6.28-rc6-00007-ged31348 on my Thinkpad T61, with Intel GM965. Under X, brightness keys work fine most of the time, but in some case it fails (for example after a dpms force off, but not always). Switching to console and back to X fix the problem for a time.
Will you please confirm whether the issue still exists if DPMS is not used?
I've disabled DPMS in xorg.conf (setting all times to 0) and will report back. But basically I think it was broken only after a DPMS event.
Quoted 5 lines
Quoted 4 lines
Another weird stuff is that, in single user, I have no way to control the backlight. Using brightness key doesn't work,
and/sys/class/backlight/acpi_video0doesn't do anything.Can you confirm whether the i915 driver is loaded in single user mode?
It's not
Quoted 2 lines
If not, please load it and see whether the interface of
/sys/class/backlight/*can work.
When loading it, I still only have acpi_video0 (which is good, at least I don't have two devices), but it doesnt work. Echoing stuff in brightness changes the value inside, and in actual_brightness, but the screen doesn't dim.
This is using 2.6.28-rc6-00184-gd9d060a
Cheers,
Signature · 1 line
Yves-Alexis