From: ori@eigenstate.org
To: 9fans@9fans.net
Subject: Re: [9fans] Adjust Thinkpad Screen Brightness
Date: Sun, 28 May 2023 15:17:38 -0400 [thread overview]
Message-ID: <C038E36837F492C6A9B873DC9AD07D81@eigenstate.org> (raw)
In-Reply-To: <16852918170.Dc4450F.32826@composer.9fans.topicbox.com>
Quoth zxcdewqa8@gmail.com:
> Hi
>
> Is there anyway to adjust my laptop's (T440P) screen brightness?
>
> Thanks!
not nicely integrated. Depending on your card, something like
this may work:
#!/bin/rc
# SBLC_PWM_CTL2: bytes 15:0, range 0 (off) to v>>16 (full)
if(! ~ $#* 1){
echo usage: $0 factor
exit 'usage'
}
echo -n type igfx > /dev/vgactl
v=`{seg -Lr igfxmmio 0x400000 0xc8254}
if(~ $#v 0)
exit 'no such named segment'
v=`{echo 'v='$v'; v & ~0xffff | ((v>>16) / '$1')' | pc -n}
if(! ~ $#v 1)
exit 'invalid factor'
sleep 0.1
seg -Lw igfxmmio 0x400000 0xc8254 $v
You'll have to figure out where the backlight PWM register is
on your model of video card if this doesn't just work out of
the box.
------------------------------------------
9fans: 9fans
Permalink: https://9fans.topicbox.com/groups/9fans/T4c4247ec1c0429f6-Mc5341681965ce6a9c895bf53
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription
next prev parent reply other threads:[~2023-05-28 19:17 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-05-28 16:36 zxcdewqa8
2023-05-28 19:17 ` ori [this message]
2023-05-29 2:36 ` Anthony Martin
2023-05-30 4:25 ` zxcdewqa8
2023-06-07 7:01 ` plan6
2023-06-07 21:27 ` mkf9
2023-06-07 21:42 ` unobe
2023-06-07 22:57 ` Anthony Martin
2023-06-08 7:16 ` plan6
2023-06-08 7:53 ` unobe
2023-06-08 8:12 ` unobe
2023-06-08 8:08 ` plan6
2023-06-09 6:35 ` zxcdewqa8
2023-06-09 7:37 ` unobe
2023-06-09 18:11 ` ori
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=C038E36837F492C6A9B873DC9AD07D81@eigenstate.org \
--to=ori@eigenstate.org \
--cc=9fans@9fans.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).