[Kernel-packages] [Bug 1782177] Re: Screen sometimes jumps to full brightness on resume from suspend

2019-06-28 Thread Kai-Heng Feng
Does this issue still happen?

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1782177

Title:
  Screen sometimes jumps to full brightness on resume from suspend

Status in Linux:
  Won't Fix
Status in linux package in Ubuntu:
  Incomplete

Bug description:
  At night, I usually turn my brightness down as far as it will go using
  the brightness keys. This makes it dim, but visible and not off. When
  I walk away for a while, the screen goes to sleep, and when I come
  back and move the mouse, the screen jumps to full brightness, which is
  very unpleasant at night. Investigating, it seems that the brightness
  in intel_backlight is getting reset to 4437, but the one in
  acpi_video0 reads 0.

  $ for file in brightness max_brightness actual_brightness;
  > do
  >   for directory in /sys/class/backlight/intel_backlight/ 
/sys/class/backlight/acpi_video0/
  > do
  > echo $directory$file : $(cat $directory$file)
  > done
  > done
  /sys/class/backlight/intel_backlight/brightness : 4437
  /sys/class/backlight/acpi_video0/brightness : 0
  /sys/class/backlight/intel_backlight/max_brightness : 4437
  /sys/class/backlight/acpi_video0/max_brightness : 15
  /sys/class/backlight/intel_backlight/actual_brightness : 4437
  /sys/class/backlight/acpi_video0/actual_brightness : 0

  After I press the button to increase the brightness one notch, they
  are back in sync, and then I can turn it back down as well.

  $ for file in brightness max_brightness actual_brightness;
  >  do
  >for directory in /sys/class/backlight/intel_backlight/ 
/sys/class/backlight/acpi_video0/
  >  do
  >  echo $directory$file : $(cat $directory$file)
  >  done
  >  done
  /sys/class/backlight/intel_backlight/brightness : 53
  /sys/class/backlight/acpi_video0/brightness : 1
  /sys/class/backlight/intel_backlight/max_brightness : 4437
  /sys/class/backlight/acpi_video0/max_brightness : 15
  /sys/class/backlight/intel_backlight/actual_brightness : 53
  /sys/class/backlight/acpi_video0/actual_brightness : 1

  This is on a fresh install of xubuntu 18.04. Seems like a regression
  from 16.04, which I ran on the same laptop without this issue.

To manage notifications about this bug go to:
https://bugs.launchpad.net/linux/+bug/1782177/+subscriptions

-- 
Mailing list: https://launchpad.net/~kernel-packages
Post to : kernel-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kernel-packages
More help   : https://help.launchpad.net/ListHelp


[Kernel-packages] [Bug 1782177] Re: Screen sometimes jumps to full brightness on resume from suspend

2018-11-27 Thread Bug Watch Updater
** Changed in: linux
   Status: Incomplete => Won't Fix

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1782177

Title:
  Screen sometimes jumps to full brightness on resume from suspend

Status in Linux:
  Won't Fix
Status in linux package in Ubuntu:
  Incomplete

Bug description:
  At night, I usually turn my brightness down as far as it will go using
  the brightness keys. This makes it dim, but visible and not off. When
  I walk away for a while, the screen goes to sleep, and when I come
  back and move the mouse, the screen jumps to full brightness, which is
  very unpleasant at night. Investigating, it seems that the brightness
  in intel_backlight is getting reset to 4437, but the one in
  acpi_video0 reads 0.

  $ for file in brightness max_brightness actual_brightness;
  > do
  >   for directory in /sys/class/backlight/intel_backlight/ 
/sys/class/backlight/acpi_video0/
  > do
  > echo $directory$file : $(cat $directory$file)
  > done
  > done
  /sys/class/backlight/intel_backlight/brightness : 4437
  /sys/class/backlight/acpi_video0/brightness : 0
  /sys/class/backlight/intel_backlight/max_brightness : 4437
  /sys/class/backlight/acpi_video0/max_brightness : 15
  /sys/class/backlight/intel_backlight/actual_brightness : 4437
  /sys/class/backlight/acpi_video0/actual_brightness : 0

  After I press the button to increase the brightness one notch, they
  are back in sync, and then I can turn it back down as well.

  $ for file in brightness max_brightness actual_brightness;
  >  do
  >for directory in /sys/class/backlight/intel_backlight/ 
/sys/class/backlight/acpi_video0/
  >  do
  >  echo $directory$file : $(cat $directory$file)
  >  done
  >  done
  /sys/class/backlight/intel_backlight/brightness : 53
  /sys/class/backlight/acpi_video0/brightness : 1
  /sys/class/backlight/intel_backlight/max_brightness : 4437
  /sys/class/backlight/acpi_video0/max_brightness : 15
  /sys/class/backlight/intel_backlight/actual_brightness : 53
  /sys/class/backlight/acpi_video0/actual_brightness : 1

  This is on a fresh install of xubuntu 18.04. Seems like a regression
  from 16.04, which I ran on the same laptop without this issue.

To manage notifications about this bug go to:
https://bugs.launchpad.net/linux/+bug/1782177/+subscriptions

-- 
Mailing list: https://launchpad.net/~kernel-packages
Post to : kernel-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kernel-packages
More help   : https://help.launchpad.net/ListHelp


[Kernel-packages] [Bug 1782177] Re: Screen sometimes jumps to full brightness on resume from suspend

2018-11-19 Thread Bug Watch Updater
Launchpad has imported 8 comments from the remote bug at
https://bugs.freedesktop.org/show_bug.cgi?id=108703.

If you reply to an imported comment from within Launchpad, your comment
will be sent to the remote bug automatically. Read more about
Launchpad's inter-bugtracker facilities at
https://help.launchpad.net/InterBugTracking.


On 2018-11-10T01:18:16+00:00 Luke-schlather wrote:

At night, I usually turn my brightness down as far as it will go using
the brightness keys. This makes it dim, but visible and not off. When I
walk away for a while, the screen goes to sleep, and when I come back
and move the mouse, the screen jumps to full brightness, which is very
unpleasant at night. Investigating, it seems that the brightness in
intel_backlight is getting reset to 4437, but the one in acpi_video0
reads 0.

This can be triggered by running xset dpms force standby. Here's the
conflicting brightness values:

$ for file in brightness max_brightness actual_brightness;
> do
> for directory in /sys/class/backlight/intel_backlight/ 
/sys/class/backlight/acpi_video0/
> do
> echo $directory$file : $(cat $directory$file)
> done
> done
/sys/class/backlight/intel_backlight/brightness : 4437
/sys/class/backlight/acpi_video0/brightness : 0
/sys/class/backlight/intel_backlight/max_brightness : 4437
/sys/class/backlight/acpi_video0/max_brightness : 15
/sys/class/backlight/intel_backlight/actual_brightness : 4437
/sys/class/backlight/acpi_video0/actual_brightness : 0

After I press the button to increase the brightness one notch, they are
back in sync, and then I can turn it back down as well.

$ for file in brightness max_brightness actual_brightness;
> do
> for directory in /sys/class/backlight/intel_backlight/ 
/sys/class/backlight/acpi_video0/
> do
> echo $directory$file : $(cat $directory$file)
> done
> done
/sys/class/backlight/intel_backlight/brightness : 53
/sys/class/backlight/acpi_video0/brightness : 1
/sys/class/backlight/intel_backlight/max_brightness : 4437
/sys/class/backlight/acpi_video0/max_brightness : 15
/sys/class/backlight/intel_backlight/actual_brightness : 53
/sys/class/backlight/acpi_video0/actual_brightness : 1

This is on a fresh install of Xubuntu 18.04 with default packages
including the latest version of the i915 Intel Driver which is active.
Seems like a regression from Xubuntu 16.04, which I ran on the same
laptop without this issue.

I initially filed this as a bug in XFCE power manager but after some
troubleshooting there I can reproduce the same issue under Gnome as
well.

Original bug with troubleshooting:
https://bugs.launchpad.net/ubuntu/+source/xfce4-power-
manager/+bug/1782177

Reply at:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1782177/comments/7


On 2018-11-12T08:36:35+00:00 Lakshminarayana-vudum wrote:

Luke, Can you set kernel parameters drm.debug=0x1e log_buf_len=4M and
reboot the machine. Reproduce the issue and attach the dmesg log from
boot. This way we know more information about the issue.

BTW have you tried this issue with drm-tip?
(https://cgit.freedesktop.org/drm-tip)

Reply at:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1782177/comments/8


On 2018-11-13T18:51:59+00:00 Luke-schlather wrote:

Created attachment 142454
DMESG output with drm.debug enabled

Reply at:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1782177/comments/9


On 2018-11-14T08:01:53+00:00 Lakshminarayana-vudum wrote:

Jani, any comments here? verifying with latest drm-tip will help here?

Reply at:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1782177/comments/10


On 2018-11-14T08:30:47+00:00 Jani-nikula wrote:

I don't think we have any fixes in drm-tip that should affect this; for
that matter I don't recall changes in the area that should regress
either. Backlight has been fairly solid for some years now.

1) Please paste the sysfs attributes *before* display gets disabled.

2) Is the behaviour reproducible if you don't go to minimum before
disabling display? I.e. stay at the next higher level. Or, use

# echo 1 > /sys/class/backlight/intel_backlight/brightness

to stay above 0.

We do have a check in place to crank the brightness to max if it's at
the minimum upon encoder enable. However, that bit policy has been in
place for ages.

Reply at:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1782177/comments/11


On 2018-11-14T08:31:58+00:00 Jani-nikula wrote:

(In reply to Jani Nikula from comment #4)
> We do have a check in place to 

[Kernel-packages] [Bug 1782177] Re: Screen sometimes jumps to full brightness on resume from suspend

2018-11-19 Thread Theo Linkspfeifer
** Bug watch added: freedesktop.org Bugzilla #108703
   https://bugs.freedesktop.org/show_bug.cgi?id=108703

** Also affects: linux via
   https://bugs.freedesktop.org/show_bug.cgi?id=108703
   Importance: Unknown
   Status: Unknown

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1782177

Title:
  Screen sometimes jumps to full brightness on resume from suspend

Status in Linux:
  Unknown
Status in linux package in Ubuntu:
  Incomplete

Bug description:
  At night, I usually turn my brightness down as far as it will go using
  the brightness keys. This makes it dim, but visible and not off. When
  I walk away for a while, the screen goes to sleep, and when I come
  back and move the mouse, the screen jumps to full brightness, which is
  very unpleasant at night. Investigating, it seems that the brightness
  in intel_backlight is getting reset to 4437, but the one in
  acpi_video0 reads 0.

  $ for file in brightness max_brightness actual_brightness;
  > do
  >   for directory in /sys/class/backlight/intel_backlight/ 
/sys/class/backlight/acpi_video0/
  > do
  > echo $directory$file : $(cat $directory$file)
  > done
  > done
  /sys/class/backlight/intel_backlight/brightness : 4437
  /sys/class/backlight/acpi_video0/brightness : 0
  /sys/class/backlight/intel_backlight/max_brightness : 4437
  /sys/class/backlight/acpi_video0/max_brightness : 15
  /sys/class/backlight/intel_backlight/actual_brightness : 4437
  /sys/class/backlight/acpi_video0/actual_brightness : 0

  After I press the button to increase the brightness one notch, they
  are back in sync, and then I can turn it back down as well.

  $ for file in brightness max_brightness actual_brightness;
  >  do
  >for directory in /sys/class/backlight/intel_backlight/ 
/sys/class/backlight/acpi_video0/
  >  do
  >  echo $directory$file : $(cat $directory$file)
  >  done
  >  done
  /sys/class/backlight/intel_backlight/brightness : 53
  /sys/class/backlight/acpi_video0/brightness : 1
  /sys/class/backlight/intel_backlight/max_brightness : 4437
  /sys/class/backlight/acpi_video0/max_brightness : 15
  /sys/class/backlight/intel_backlight/actual_brightness : 53
  /sys/class/backlight/acpi_video0/actual_brightness : 1

  This is on a fresh install of xubuntu 18.04. Seems like a regression
  from 16.04, which I ran on the same laptop without this issue.

To manage notifications about this bug go to:
https://bugs.launchpad.net/linux/+bug/1782177/+subscriptions

-- 
Mailing list: https://launchpad.net/~kernel-packages
Post to : kernel-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kernel-packages
More help   : https://help.launchpad.net/ListHelp


[Kernel-packages] [Bug 1782177] Re: Screen sometimes jumps to full brightness on resume from suspend

2018-11-15 Thread Joseph Salisbury
Did this issue start happening after an update/upgrade?  Was there a
prior kernel version where you were not having this particular problem?

Would it be possible for you to test the latest upstream kernel? Refer
to https://wiki.ubuntu.com/KernelMainlineBuilds . Please test the latest
v4.20 kernel[0].

If this bug is fixed in the mainline kernel, please add the following
tag 'kernel-fixed-upstream'.

If the mainline kernel does not fix this bug, please add the tag:
'kernel-bug-exists-upstream'.

Once testing of the upstream kernel is complete, please mark this bug as
"Confirmed".


Thanks in advance.

[0] http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.20-rc2


** Changed in: linux (Ubuntu)
   Importance: Undecided => Medium

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1782177

Title:
  Screen sometimes jumps to full brightness on resume from suspend

Status in linux package in Ubuntu:
  Incomplete

Bug description:
  At night, I usually turn my brightness down as far as it will go using
  the brightness keys. This makes it dim, but visible and not off. When
  I walk away for a while, the screen goes to sleep, and when I come
  back and move the mouse, the screen jumps to full brightness, which is
  very unpleasant at night. Investigating, it seems that the brightness
  in intel_backlight is getting reset to 4437, but the one in
  acpi_video0 reads 0.

  $ for file in brightness max_brightness actual_brightness;
  > do
  >   for directory in /sys/class/backlight/intel_backlight/ 
/sys/class/backlight/acpi_video0/
  > do
  > echo $directory$file : $(cat $directory$file)
  > done
  > done
  /sys/class/backlight/intel_backlight/brightness : 4437
  /sys/class/backlight/acpi_video0/brightness : 0
  /sys/class/backlight/intel_backlight/max_brightness : 4437
  /sys/class/backlight/acpi_video0/max_brightness : 15
  /sys/class/backlight/intel_backlight/actual_brightness : 4437
  /sys/class/backlight/acpi_video0/actual_brightness : 0

  After I press the button to increase the brightness one notch, they
  are back in sync, and then I can turn it back down as well.

  $ for file in brightness max_brightness actual_brightness;
  >  do
  >for directory in /sys/class/backlight/intel_backlight/ 
/sys/class/backlight/acpi_video0/
  >  do
  >  echo $directory$file : $(cat $directory$file)
  >  done
  >  done
  /sys/class/backlight/intel_backlight/brightness : 53
  /sys/class/backlight/acpi_video0/brightness : 1
  /sys/class/backlight/intel_backlight/max_brightness : 4437
  /sys/class/backlight/acpi_video0/max_brightness : 15
  /sys/class/backlight/intel_backlight/actual_brightness : 53
  /sys/class/backlight/acpi_video0/actual_brightness : 1

  This is on a fresh install of xubuntu 18.04. Seems like a regression
  from 16.04, which I ran on the same laptop without this issue.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1782177/+subscriptions

-- 
Mailing list: https://launchpad.net/~kernel-packages
Post to : kernel-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kernel-packages
More help   : https://help.launchpad.net/ListHelp


[Kernel-packages] [Bug 1782177] Re: Screen sometimes jumps to full brightness on resume from suspend

2018-11-10 Thread Theo Linkspfeifer
** Package changed: xfce4-power-manager (Ubuntu) => linux (Ubuntu)

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1782177

Title:
  Screen sometimes jumps to full brightness on resume from suspend

Status in linux package in Ubuntu:
  Incomplete

Bug description:
  At night, I usually turn my brightness down as far as it will go using
  the brightness keys. This makes it dim, but visible and not off. When
  I walk away for a while, the screen goes to sleep, and when I come
  back and move the mouse, the screen jumps to full brightness, which is
  very unpleasant at night. Investigating, it seems that the brightness
  in intel_backlight is getting reset to 4437, but the one in
  acpi_video0 reads 0.

  $ for file in brightness max_brightness actual_brightness;
  > do
  >   for directory in /sys/class/backlight/intel_backlight/ 
/sys/class/backlight/acpi_video0/
  > do
  > echo $directory$file : $(cat $directory$file)
  > done
  > done
  /sys/class/backlight/intel_backlight/brightness : 4437
  /sys/class/backlight/acpi_video0/brightness : 0
  /sys/class/backlight/intel_backlight/max_brightness : 4437
  /sys/class/backlight/acpi_video0/max_brightness : 15
  /sys/class/backlight/intel_backlight/actual_brightness : 4437
  /sys/class/backlight/acpi_video0/actual_brightness : 0

  After I press the button to increase the brightness one notch, they
  are back in sync, and then I can turn it back down as well.

  $ for file in brightness max_brightness actual_brightness;
  >  do
  >for directory in /sys/class/backlight/intel_backlight/ 
/sys/class/backlight/acpi_video0/
  >  do
  >  echo $directory$file : $(cat $directory$file)
  >  done
  >  done
  /sys/class/backlight/intel_backlight/brightness : 53
  /sys/class/backlight/acpi_video0/brightness : 1
  /sys/class/backlight/intel_backlight/max_brightness : 4437
  /sys/class/backlight/acpi_video0/max_brightness : 15
  /sys/class/backlight/intel_backlight/actual_brightness : 53
  /sys/class/backlight/acpi_video0/actual_brightness : 1

  This is on a fresh install of xubuntu 18.04. Seems like a regression
  from 16.04, which I ran on the same laptop without this issue.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1782177/+subscriptions

-- 
Mailing list: https://launchpad.net/~kernel-packages
Post to : kernel-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kernel-packages
More help   : https://help.launchpad.net/ListHelp