[Powerdevil] [Bug 454161] Brightness stuck at 30%

2022-06-30 Thread Nate Graham
https://bugs.kde.org/show_bug.cgi?id=454161

Nate Graham  changed:

   What|Removed |Added

 CC||davm...@davmor2.co.uk

--- Comment #34 from Nate Graham  ---
*** Bug 455960 has been marked as a duplicate of this bug. ***

-- 
You are receiving this mail because:
You are watching all bug changes.

[Powerdevil] [Bug 454161] Brightness stuck at 30%

2022-06-27 Thread Nate Graham
https://bugs.kde.org/show_bug.cgi?id=454161

--- Comment #33 from Nate Graham  ---
*** Bug 455256 has been marked as a duplicate of this bug. ***

-- 
You are receiving this mail because:
You are watching all bug changes.

[Powerdevil] [Bug 454161] Brightness stuck at 30%

2022-06-27 Thread Nate Graham
https://bugs.kde.org/show_bug.cgi?id=454161

Nate Graham  changed:

   What|Removed |Added

   Version Fixed In||5.25.1

-- 
You are receiving this mail because:
You are watching all bug changes.

[Powerdevil] [Bug 454161] Brightness stuck at 30%

2022-06-22 Thread MiXiM
https://bugs.kde.org/show_bug.cgi?id=454161

MiXiM  changed:

   What|Removed |Added

 CC||contact@fairsoft.koeln

--- Comment #32 from MiXiM  ---
Hi, same issue here in KDE Neon,
Dell XPS15 9570, latest stable updates,
 thanks to Patrick van Elk for the workaround,
works 4 me 2

sudo apt install powerdevil=4:5.24.5-0xneon+20.04+focal+release+build47
powerdevil-data=4:5.24.5-0xneon+20.04+focal+release+build47

-- 
You are receiving this mail because:
You are watching all bug changes.

[Powerdevil] [Bug 454161] Brightness stuck at 30%

2022-06-16 Thread bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=454161

--- Comment #31 from poomk...@yahoo.com ---
Note to self: Affected version of powerdevil is
4:5.25.0-0xneon+20.04+focal+release+build49

-- 
You are receiving this mail because:
You are watching all bug changes.

[Powerdevil] [Bug 454161] Brightness stuck at 30%

2022-06-16 Thread ratijas
https://bugs.kde.org/show_bug.cgi?id=454161

ratijas  changed:

   What|Removed |Added

  Latest Commit|https://invent.kde.org/plas |https://invent.kde.org/plas
   |ma/powerdevil/commit/2ebe65 |ma/powerdevil/commit/dd74cd
   |5d220c9167b66893a823b2fff2e |bdd3849fbd86e6613ef7ecab6c7
   |2b8a531 |857cb89

--- Comment #30 from ratijas  ---
Git commit dd74cdbdd3849fbd86e6613ef7ecab6c7857cb89 by ivan tkachenko.
Committed on 16/06/2022 at 18:17.
Pushed by ratijas into branch 'Plasma/5.25'.

upower: Prevent integer overflow during new brightness computation

Provably, if two integers can fit in 31 bits each, the result of their
multiplication is expressible in 62 bits (let alone 63 available). So,
this should be safe. And the division can't do much harm: the divisor
is always at least 1, and worst case scenario — it would be so big that
the overall results becomes zero.

This code still assumes that the allowed brightness values can fit in 32
bits int, which is not totally unreasonable so far.


(cherry picked from commit 2ebe655d220c9167b66893a823b2fff2e2b8a531)

M  +7-4daemon/backends/upower/backlighthelper.cpp

https://invent.kde.org/plasma/powerdevil/commit/dd74cdbdd3849fbd86e6613ef7ecab6c7857cb89

-- 
You are receiving this mail because:
You are watching all bug changes.

[Powerdevil] [Bug 454161] Brightness stuck at 30%

2022-06-16 Thread ratijas
https://bugs.kde.org/show_bug.cgi?id=454161

ratijas  changed:

   What|Removed |Added

 Resolution|--- |FIXED
  Latest Commit||https://invent.kde.org/plas
   ||ma/powerdevil/commit/2ebe65
   ||5d220c9167b66893a823b2fff2e
   ||2b8a531
 Status|CONFIRMED   |RESOLVED

--- Comment #29 from ratijas  ---
Git commit 2ebe655d220c9167b66893a823b2fff2e2b8a531 by ivan tkachenko.
Committed on 15/06/2022 at 22:24.
Pushed by ratijas into branch 'master'.

upower: Prevent integer overflow during new brightness computation

Provably, if two integers can fit in 31 bits each, the result of their
multiplication is expressible in 62 bits (let alone 63 available). So,
this should be safe. And the division can't do much harm: the divisor
is always at least 1, and worst case scenario — it would be so big that
the overall results becomes zero.

This code still assumes that the allowed brightness values can fit in 32
bits int, which is not totally unreasonable so far.

M  +7-4daemon/backends/upower/backlighthelper.cpp

https://invent.kde.org/plasma/powerdevil/commit/2ebe655d220c9167b66893a823b2fff2e2b8a531

-- 
You are receiving this mail because:
You are watching all bug changes.

[Powerdevil] [Bug 454161] Brightness stuck at 30%

2022-06-16 Thread bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=454161

cbd...@gmail.com changed:

   What|Removed |Added

 Status|ASSIGNED|CONFIRMED
 CC||cbd...@gmail.com

--- Comment #28 from cbd...@gmail.com ---
Same issue here in KDE Neon, thanks to Patrick van Elk for the workaround 

sudo apt install powerdevil=4:5.24.5-0xneon+20.04+focal+release+build47
powerdevil-data=4:5.24.5-0xneon+20.04+focal+release+build47

-- 
You are receiving this mail because:
You are watching all bug changes.

[Powerdevil] [Bug 454161] Brightness stuck at 30%

2022-06-16 Thread bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=454161

andrea.i...@gmail.com changed:

   What|Removed |Added

 CC||andrea.i...@gmail.com

-- 
You are receiving this mail because:
You are watching all bug changes.

[Powerdevil] [Bug 454161] Brightness stuck at 30%

2022-06-16 Thread Mathias Homann
https://bugs.kde.org/show_bug.cgi?id=454161

--- Comment #27 from Mathias Homann  ---
Works for me on a MSI Prestige 14 running openSUSE Tumbleweed. RPMs for
Tumbleweed containing that fix can be found on OBS at
https://build.opensuse.org/package/show/home:lemmy04:branches:KDE:Frameworks5/powerdevil5

-- 
You are receiving this mail because:
You are watching all bug changes.

[Powerdevil] [Bug 454161] Brightness stuck at 30%

2022-06-16 Thread K900
https://bugs.kde.org/show_bug.cgi?id=454161

K900  changed:

   What|Removed |Added

 CC||m...@0upti.me

--- Comment #26 from K900  ---
Also works for me on Dell Latitude 5420.

-- 
You are receiving this mail because:
You are watching all bug changes.

[Powerdevil] [Bug 454161] Brightness stuck at 30%

2022-06-16 Thread Antonio Rojas
https://bugs.kde.org/show_bug.cgi?id=454161

Antonio Rojas  changed:

   What|Removed |Added

 CC||mathias.hom...@opensuse.org

--- Comment #25 from Antonio Rojas  ---
*** Bug 455382 has been marked as a duplicate of this bug. ***

-- 
You are receiving this mail because:
You are watching all bug changes.

[Powerdevil] [Bug 454161] Brightness stuck at 30%

2022-06-16 Thread Antonio Rojas
https://bugs.kde.org/show_bug.cgi?id=454161

Antonio Rojas  changed:

   What|Removed |Added

 CC||raitarohik...@protonmail.co
   ||m

--- Comment #24 from Antonio Rojas  ---
*** Bug 455381 has been marked as a duplicate of this bug. ***

-- 
You are receiving this mail because:
You are watching all bug changes.

[Powerdevil] [Bug 454161] Brightness stuck at 30%

2022-06-15 Thread Aurélien COUDERC
https://bugs.kde.org/show_bug.cgi?id=454161

--- Comment #23 from Aurélien COUDERC  ---
(In reply to Nate Graham from comment #19)
> Can affected folks test that patch? ^^

Works for me on top of the Debian package on an XPS 7390.

-- 
You are receiving this mail because:
You are watching all bug changes.

[Powerdevil] [Bug 454161] Brightness stuck at 30%

2022-06-15 Thread Sam James
https://bugs.kde.org/show_bug.cgi?id=454161

--- Comment #22 from Sam James  ---
(In reply to Nate Graham from comment #19)
> Can affected folks test that patch? ^^

Works for me.

-- 
You are receiving this mail because:
You are watching all bug changes.

[Powerdevil] [Bug 454161] Brightness stuck at 30%

2022-06-15 Thread bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=454161

alejandros...@gmail.com changed:

   What|Removed |Added

 CC||alejandros...@gmail.com
   Platform|Archlinux Packages  |Neon Packages

--- Comment #21 from alejandros...@gmail.com ---
Same happening here

Operating System: KDE neon 5.25
KDE Plasma Version: 5.25.0
KDE Frameworks Version: 5.95.0
Qt Version: 5.15.4
Kernel Version: 5.13.0-48-generic (64-bit)
Graphics Platform: X11
Graphics Processor: Mesa Intel® UHD Graphics 620

-- 
You are receiving this mail because:
You are watching all bug changes.

[Powerdevil] [Bug 454161] Brightness stuck at 30%

2022-06-15 Thread ichramm
https://bugs.kde.org/show_bug.cgi?id=454161

--- Comment #20 from ichramm  ---
(In reply to Nate Graham from comment #19)
> Can affected folks test that patch? ^^

It works! (KDE Neon User Edition on Dell XPS 7590).

Steps:

* Created a new branch over the tag v5.25.0
* Cherry-picked Ivan's commit
* cd build && cmake .. && make && sudo make install

-- 
You are receiving this mail because:
You are watching all bug changes.

[Powerdevil] [Bug 454161] Brightness stuck at 30%

2022-06-15 Thread Nate Graham
https://bugs.kde.org/show_bug.cgi?id=454161

--- Comment #19 from Nate Graham  ---
Can affected folks test that patch? ^^

-- 
You are receiving this mail because:
You are watching all bug changes.

[Powerdevil] [Bug 454161] Brightness stuck at 30%

2022-06-15 Thread Bug Janitor Service
https://bugs.kde.org/show_bug.cgi?id=454161

Bug Janitor Service  changed:

   What|Removed |Added

 Status|CONFIRMED   |ASSIGNED

--- Comment #18 from Bug Janitor Service  ---
A possibly relevant merge request was started @
https://invent.kde.org/plasma/powerdevil/-/merge_requests/94

-- 
You are receiving this mail because:
You are watching all bug changes.

[Powerdevil] [Bug 454161] Brightness stuck at 30%

2022-06-15 Thread eduard
https://bugs.kde.org/show_bug.cgi?id=454161

eduard  changed:

   What|Removed |Added

 CC||edua...@bredax.com

--- Comment #17 from eduard  ---
Same workaround for KUbuntu :

sudo apt install powerdevil=4:5.24.4-0ubuntu1 powerdevil-data=4:5.24.4-0ubuntu1
libpowerdevilcore2=4:5.24.4-0ubuntu1 libpowerdevilui5=4:5.24.4-0ubuntu1

-- 
You are receiving this mail because:
You are watching all bug changes.

[Powerdevil] [Bug 454161] Brightness stuck at 30%

2022-06-15 Thread Antonio Rojas
https://bugs.kde.org/show_bug.cgi?id=454161

Antonio Rojas  changed:

   What|Removed |Added

 CC||alej@gmail.com

--- Comment #16 from Antonio Rojas  ---
*** Bug 455348 has been marked as a duplicate of this bug. ***

-- 
You are receiving this mail because:
You are watching all bug changes.

[Powerdevil] [Bug 454161] Brightness stuck at 30%

2022-06-15 Thread Antonio Rojas
https://bugs.kde.org/show_bug.cgi?id=454161

Antonio Rojas  changed:

   What|Removed |Added

 CC||jramirez...@gmail.com

--- Comment #15 from Antonio Rojas  ---
*** Bug 455347 has been marked as a duplicate of this bug. ***

-- 
You are receiving this mail because:
You are watching all bug changes.

[Powerdevil] [Bug 454161] Brightness stuck at 30%

2022-06-15 Thread Sam James
https://bugs.kde.org/show_bug.cgi?id=454161

Sam James  changed:

   What|Removed |Added

 CC||laimislsec...@gmail.com

--- Comment #14 from Sam James  ---
*** Bug 455308 has been marked as a duplicate of this bug. ***

-- 
You are receiving this mail because:
You are watching all bug changes.

[Powerdevil] [Bug 454161] Brightness stuck at 30%

2022-06-15 Thread Sam James
https://bugs.kde.org/show_bug.cgi?id=454161

--- Comment #13 from Sam James  ---
*** Bug 455307 has been marked as a duplicate of this bug. ***

-- 
You are receiving this mail because:
You are watching all bug changes.

[Powerdevil] [Bug 454161] Brightness stuck at 30%

2022-06-15 Thread ratijas
https://bugs.kde.org/show_bug.cgi?id=454161

ratijas  changed:

   What|Removed |Added

   Assignee|plasma-b...@kde.org |m...@ratijas.tk
 CC||m...@ratijas.tk

-- 
You are receiving this mail because:
You are watching all bug changes.

[Powerdevil] [Bug 454161] Brightness stuck at 30%

2022-06-15 Thread Nate Graham
https://bugs.kde.org/show_bug.cgi?id=454161

Nate Graham  changed:

   What|Removed |Added

   Priority|HI  |VHI

-- 
You are receiving this mail because:
You are watching all bug changes.

[Powerdevil] [Bug 454161] Brightness stuck at 30%

2022-06-15 Thread Patrick van Elk
https://bugs.kde.org/show_bug.cgi?id=454161

--- Comment #12 from Patrick van Elk  ---
Temporary workaround for KDE Neon:

sudo apt install powerdevil=4:5.24.5-0xneon+20.04+focal+release+build47
powerdevil-data=4:5.24.5-0xneon+20.04+focal+release+build47

-- 
You are receiving this mail because:
You are watching all bug changes.

[Powerdevil] [Bug 454161] Brightness stuck at 30%

2022-06-15 Thread Rik Mills
https://bugs.kde.org/show_bug.cgi?id=454161

Rik Mills  changed:

   What|Removed |Added

   Severity|normal  |major
   Priority|NOR |HI

-- 
You are receiving this mail because:
You are watching all bug changes.

[Powerdevil] [Bug 454161] Brightness stuck at 30%

2022-06-15 Thread bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=454161

tro...@free.fr changed:

   What|Removed |Added

 CC||tro...@free.fr

--- Comment #11 from tro...@free.fr ---
I'm having the same issue : https://bugs.kde.org/show_bug.cgi?id=455307

-- 
You are receiving this mail because:
You are watching all bug changes.

[Powerdevil] [Bug 454161] Brightness stuck at 30%

2022-06-15 Thread Patrick van Elk
https://bugs.kde.org/show_bug.cgi?id=454161

Patrick van Elk  changed:

   What|Removed |Added

 CC||patr...@aedifex.nl

-- 
You are receiving this mail because:
You are watching all bug changes.

[Powerdevil] [Bug 454161] Brightness stuck at 30%

2022-06-15 Thread Federico Cuello
https://bugs.kde.org/show_bug.cgi?id=454161

Federico Cuello  changed:

   What|Removed |Added

 CC||fe...@fedux.com.ar

-- 
You are receiving this mail because:
You are watching all bug changes.

[Powerdevil] [Bug 454161] Brightness stuck at 30%

2022-06-15 Thread bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=454161

poomk...@yahoo.com changed:

   What|Removed |Added

 CC||poomk...@yahoo.com

--- Comment #10 from poomk...@yahoo.com ---
"Me-too"-ing this bug.
* For me, this happens without the laptop ever going below 30% post-update.
* Both the slider and the keys have the same effect.

-- 
You are receiving this mail because:
You are watching all bug changes.

[Powerdevil] [Bug 454161] Brightness stuck at 30%

2022-06-15 Thread Rik Mills
https://bugs.kde.org/show_bug.cgi?id=454161

Rik Mills  changed:

   What|Removed |Added

 CC||rikmi...@kde.org

-- 
You are receiving this mail because:
You are watching all bug changes.

[Powerdevil] [Bug 454161] Brightness stuck at 30%

2022-06-14 Thread Aurélien COUDERC
https://bugs.kde.org/show_bug.cgi?id=454161

--- Comment #9 from Aurélien COUDERC  ---
(In reply to Nate Graham from comment #6)
> Are you using the slider in the Battery & Brightness applet? Does it work if
> you click on a position in the track rather than dragging the handle?

I’ve reverted the commits for some time now, but as far as I remember both the
slider and the keys had the same effect.

It was not only blocking at ~20 % but the brightness was also flickering
between steps until it reached that level. So it would do something like 6%,
8%, 2%, 12%, 1%, 16%, 3%, 18% (not precisely these numbers but you get the
idea).

-- 
You are receiving this mail because:
You are watching all bug changes.

[Powerdevil] [Bug 454161] Brightness stuck at 30%

2022-06-14 Thread Andreas Sturmlechner
https://bugs.kde.org/show_bug.cgi?id=454161

Andreas Sturmlechner  changed:

   What|Removed |Added

 CC||ast...@gentoo.org

-- 
You are receiving this mail because:
You are watching all bug changes.

[Powerdevil] [Bug 454161] Brightness stuck at 30%

2022-06-14 Thread Sam James
https://bugs.kde.org/show_bug.cgi?id=454161

--- Comment #8 from Sam James  ---
(In reply to Aurélien COUDERC from comment #3)
> Same issue on Debian unstable working on packaging 5.25 beta.
> 
> https://invent.kde.org/plasma/powerdevil/-/commit/
> 761fc8a4bf4bd70bcd9aca63fc67382c94ecf884
> https://invent.kde.org/plasma/powerdevil/-/commit/
> 94f8186804d8a67459a11673b602c55e34db25ad
> 

Thanks. Reverting these sorts out the issue for me too.

Gentoo, KDE Plasma 5.25, Frameworks 5.95.0.
Dell XPS 15 9510, but using Intel graphics.

-- 
You are receiving this mail because:
You are watching all bug changes.

[Powerdevil] [Bug 454161] Brightness stuck at 30%

2022-06-14 Thread Sam James
https://bugs.kde.org/show_bug.cgi?id=454161

Sam James  changed:

   What|Removed |Added

 CC||s...@gentoo.org

-- 
You are receiving this mail because:
You are watching all bug changes.

[Powerdevil] [Bug 454161] Brightness stuck at 30%

2022-06-14 Thread Cor Blom
https://bugs.kde.org/show_bug.cgi?id=454161

Cor Blom  changed:

   What|Removed |Added

 CC||corne...@solcon.nl

-- 
You are receiving this mail because:
You are watching all bug changes.

[Powerdevil] [Bug 454161] Brightness stuck at 30%

2022-06-14 Thread Nate Graham
https://bugs.kde.org/show_bug.cgi?id=454161

Nate Graham  changed:

   What|Removed |Added

 CC||object-obj...@outlook.com

--- Comment #7 from Nate Graham  ---
*** Bug 455256 has been marked as a duplicate of this bug. ***

-- 
You are receiving this mail because:
You are watching all bug changes.

[Powerdevil] [Bug 454161] Brightness stuck at 30%

2022-06-14 Thread Nate Graham
https://bugs.kde.org/show_bug.cgi?id=454161

--- Comment #6 from Nate Graham  ---
Are you using the slider in the Battery & Brightness applet? Does it work if
you click on a position in the track rather than dragging the handle?

-- 
You are receiving this mail because:
You are watching all bug changes.

[Powerdevil] [Bug 454161] Brightness stuck at 30%

2022-06-07 Thread Nate Graham
https://bugs.kde.org/show_bug.cgi?id=454161

Nate Graham  changed:

   What|Removed |Added

 CC||k...@privat.broulik.de,
   ||meve...@gmail.com,
   ||n...@kde.org

--- Comment #5 from Nate Graham  ---
It does seem hardware-dependent. I cannot reproduce with my laptop that has an
Intel HD 620 iGPU and no dedicated GPU. I'm CCing some people who might be able
to help, and will ping the original author.

-- 
You are receiving this mail because:
You are watching all bug changes.

[Powerdevil] [Bug 454161] Brightness stuck at 30%

2022-06-05 Thread Aurélien COUDERC
https://bugs.kde.org/show_bug.cgi?id=454161

Aurélien COUDERC  changed:

   What|Removed |Added

   Keywords||regression

-- 
You are receiving this mail because:
You are watching all bug changes.

[Powerdevil] [Bug 454161] Brightness stuck at 30%

2022-05-31 Thread Aurélien COUDERC
https://bugs.kde.org/show_bug.cgi?id=454161

Aurélien COUDERC  changed:

   What|Removed |Added

 Ever confirmed|0   |1
 Status|REPORTED|CONFIRMED

--- Comment #4 from Aurélien COUDERC  ---
Quick note to say that for me it’s a serious bug.

The brightness I get with the bug is more around 20% and makes it barely usable
during daytime.

-- 
You are receiving this mail because:
You are watching all bug changes.

[Powerdevil] [Bug 454161] Brightness stuck at 30%

2022-05-31 Thread Aurélien COUDERC
https://bugs.kde.org/show_bug.cgi?id=454161

Aurélien COUDERC  changed:

   What|Removed |Added

 CC||couc...@debian.org

--- Comment #3 from Aurélien COUDERC  ---
Same issue on Debian unstable working on packaging 5.25 beta.

Others (at least from Kubuntu) don’t have the issue so not sure if the hardware
or kernel is involved.
My kernel is 5.17.6, and the laptop an XPS 13 7390.

The issue is linked to the following commit :
Write brightness to all raw devices
   
https://invent.kde.org/plasma/powerdevil/-/commit/761fc8a4bf4bd70bcd9aca63fc67382c94ecf884

Reverting it and its followup :
Fix Commit 761fc8a4
   
https://invent.kde.org/plasma/powerdevil/-/commit/94f8186804d8a67459a11673b602c55e34db25ad

fixes the issue for me.

-- 
You are receiving this mail because:
You are watching all bug changes.

[Powerdevil] [Bug 454161] Brightness stuck at 30%

2022-05-25 Thread Bruno Pitrus
https://bugs.kde.org/show_bug.cgi?id=454161

Bruno Pitrus  changed:

   What|Removed |Added

 CC||brunopit...@hotmail.com

--- Comment #2 from Bruno Pitrus  ---
Seems to be same as this SUSE bug:
https://bugzilla.opensuse.org/show_bug.cgi?id=1199907

-- 
You are receiving this mail because:
You are watching all bug changes.

[Powerdevil] [Bug 454161] Brightness stuck at 30%

2022-05-23 Thread luisbocanegra
https://bugs.kde.org/show_bug.cgi?id=454161

luisbocanegra  changed:

   What|Removed |Added

 CC||luisbocanegra...@gmail.com

--- Comment #1 from luisbocanegra  ---
I'm having this bug too, in my case it happens even when with the brightness
setting disabled in Energy Saving options.

Trying to set it manually is also affected:
```sh
qdbus local.org_kde_powerdevil
/org/kde/Solid/PowerManagement/Actions/BrightnessControl
org.kde.Solid.PowerManagement.Actions.BrightnessControl.setBrightness 4
```

While:
```sh
echo 4 | sudo tee /sys/class/backlight/intel_backlight/brightness
```
works

SOFTWARE/OS VERSIONS (Same as reporter)
Linux/KDE Plasma: Arch Linux (Arch Linux Packages)
KDE Plasma Version: 5.24.90
KDE Frameworks Version: 5.94.0
Qt Version: 5.15.4
Kernel Version: 5.17.9-arch1-1 (64-bit)
Graphics Platform: X11

HARDWARE
Processors: Intel i7-9750H
Graphics Processor: Mesa Intel® UHD Graphics 630
Manufacturer: HP
Product Name: OMEN by HP Laptop 15-dc1xxx

-- 
You are receiving this mail because:
You are watching all bug changes.