Date: Fri, 3 Feb 2023 07:50:28 -0800 (PST) From: "Rodney W. Grimes" <freebsd-rwg@gndrsh.dnsmgr.net> To: Poul-Henning Kamp <phk@phk.freebsd.dk> Cc: Emmanuel Vadot <manu@bidouilliste.com>, "parv/FreeBSD" <parv.0zero9+freebsd@gmail.com>, freebsd-current@FreeBSD.org Subject: Re: Could not change brightness anymore with i915kms & acpi_video modules c 202211 Message-ID: <202302031550.313FoSft051413@gndrsh.dnsmgr.net> In-Reply-To: <202302030846.3138kSMO006053@critter.freebsd.dk>
next in thread | previous in thread | raw e-mail | index | archive | help
> -------- > Emmanuel Vadot writes: > > On Thu, 02 Feb 2023 20:58:58 +0000 > > "Poul-Henning Kamp" <phk@phk.freebsd.dk> wrote: > > > > > -------- > > > parv/FreeBSD writes: > > > > > > > > Does backlight(8) works for you? > > > > > > > > Thanks for the clue. It does! It does ... > > > > > > > > - I get the same number back via "backlight" without any arguments as > > > > what I gave it earlier. There was no reporting of value being > > > > subtracted by one; > > > > > > Sorry for the delay in reporting back. > > > > > > I consistently read one less back, except for 0 and 100. > > > > Even 50 ? > > # backlight > brightness: 0 > # backlight 50 > # backlight > brightness: 49 > # backlight 25 > # backlight > brightness: 24 > # backlight 75 > # backlight > brightness: 74 > > yes This smells like a zero-bias byte rounding issue... Ie, if the backlight intensity register is 8 bit, having values 0 to 255, and we scale 50% to 256 * 50% == 128 or do we scale to 255 * 50% == 127, and then reverse it as 127/255 == 49. > > > So if you have, let's say brightness at 50%, and you plug an external > > monitor, brightness goes up to 100% ? > > No, plugging and unplugging does not change the backlight. > > But when the screen saver has kicked in, and I wake it up again, it comes > back at 100, (and reads back as 100) > > -- > Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 > phk@FreeBSD.ORG | TCP/IP since RFC 956 > FreeBSD committer | BSD since 4.3-tahoe > Never attribute to malice what can adequately be explained by incompetence. > > -- Rod Grimes rgrimes@freebsd.org
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202302031550.313FoSft051413>