Re: T520 Linux Mint / button ThinkVantage

Иван Ниагара <[email protected]> Fri, 19 Aug 2022 17:24:12 +0700
Newsgroups gmane.linux.hardware.thinkpad
Message-ID <CAMHy6UAJP54zmQzWnUYqfDy9Pgv_79UUJaQMCQsU64LNtt-B4Q@mail.gmail.com>
--===============2047771028863211965==
Content-Type: multipart/alternative; boundary="000000000000d207bf05e6958071"

--000000000000d207bf05e6958071
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

It's simple, but it works.

Thank you!

-----
=D0=A1 =D1=83=D0=B2=D0=B0=D0=B6=D0=B5=D0=BD=D0=B8=D0=B5=D0=BC,
=D0=98=D0=B2=D0=B0=D0=BD =D0=92=D0=BB=D0=B0=D0=B4=D0=B8=D0=BC=D0=B8=D1=80=
=D0=BE=D0=B2=D0=B8=D1=87 =D0=9D=D0=B8=D0=B0=D0=B3=D0=B0=D1=80=D0=B0
Mail: [email protected]
Phone: +79232350060
Skype: ivan.niagara
Telegram <https://t.me/Niagara_iv>
Facebook <https://www.facebook.com/niagara.iv>
Best regard,
Ivan Niagara


=D0=BF=D1=82, 19 =D0=B0=D0=B2=D0=B3. 2022 =D0=B3. =D0=B2 16:27, Marius Gedm=
inas <[email protected]>:

> On Thu, Aug 18, 2022 at 05:26:25PM +0700, =D0=98=D0=B2=D0=B0=D0=BD =D0=9D=
=D0=B8=D0=B0=D0=B3=D0=B0=D1=80=D0=B0 wrote:
> > Many years I have used the T520 with linux.
> > I have an idea to hang some job on the blue button "ThinkVantage" on th=
e
> top of
> > the notebook keyboard.
> >
> > I suppose, this button has a different interrupt code, not as another
> button on
> > the keyboard.
>
> I'm not sure how it's all wired at the hardware level, but the Linux
> userspace sees a regular key event.
>
> I've always mapped it to lock screen.
>
> > The jobs may be:
> > - turn power off
> > - erase some files or memory
> > - etc.
> >
> > Is it possible?
>
> Sure.  How, specifically, depends on your desktop environment.  I use
> GNOME so I'd do it from gnome-control-center -> Keyboard shortcuts.
> If you want a custom action ("erase some files", I'm not sure how you'd
> erase "memory"), you can create a custom shortcut that runs a shell
> script that can do whatever you want.
>
> Regards,
> Marius Gedminas
> --
> Why do geeks think Halloween and Christmas occur on the same day?
> Because 31oct =3D 25dec!
> --
> The linux-thinkpad mailing list home page is at:
> http://mailman.linux-thinkpad.org/mailman/listinfo/linux-thinkpad

--000000000000d207bf05e6958071
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div class=3D"gmail_default" style=3D"font-family:georgia,=
serif;font-size:large">It&#39;s simple, but it works.</div><div class=3D"gm=
ail_default" style=3D"font-family:georgia,serif;font-size:large"><br></div>=
<div class=3D"gmail_default" style=3D"font-family:georgia,serif;font-size:l=
arge">Thank you!</div><div><div dir=3D"ltr" class=3D"gmail_signature" data-=
smartmail=3D"gmail_signature"><div dir=3D"ltr"><div><div dir=3D"ltr"><div d=
ir=3D"ltr"><div dir=3D"ltr"><div><span style=3D"color:rgb(102,102,102)"><br=
>-----<br>=D0=A1 =D1=83=D0=B2=D0=B0=D0=B6=D0=B5=D0=BD=D0=B8=D0=B5=D0=BC,<br=
>=D0=98=D0=B2=D0=B0=D0=BD =D0=92=D0=BB=D0=B0=D0=B4=D0=B8=D0=BC=D0=B8=D1=80=
=D0=BE=D0=B2=D0=B8=D1=87 =D0=9D=D0=B8=D0=B0=D0=B3=D0=B0=D1=80=D0=B0<br>Mail=
: <a href=3D"mailto:[email protected]" target=3D"_blank">niagara.iv@gmai=
l.com</a><br>Phone: +79232350060</span></div><div><span style=3D"color:rgb(=
102,102,102)">Skype: ivan.niagara</span><span style=3D"color:rgb(102,102,10=
2)"><br></span></div><div><font color=3D"#666666"><a href=3D"https://t.me/N=
iagara_iv" target=3D"_blank">Telegram</a></font><br><a href=3D"https://www.=
facebook.com/niagara.iv" target=3D"_blank">Facebook</a><br></div><div><span=
 style=3D"color:rgb(102,102,102)">Best regard,</span><br></div><div><font c=
olor=3D"#666666">Ivan Niagara</font><br><span style=3D"color:rgb(102,102,10=
2)"></span></div></div></div></div></div></div></div></div><br></div><br><d=
iv class=3D"gmail_quote"><div dir=3D"ltr" class=3D"gmail_attr">=D0=BF=D1=82=
, 19 =D0=B0=D0=B2=D0=B3. 2022 =D0=B3. =D0=B2 16:27, Marius Gedminas &lt;<a =
href=3D"mailto:[email protected]">[email protected]</a>&gt;:<br></div><blockq=
uote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-left:1p=
x solid rgb(204,204,204);padding-left:1ex">On Thu, Aug 18, 2022 at 05:26:25=
PM +0700, =D0=98=D0=B2=D0=B0=D0=BD =D0=9D=D0=B8=D0=B0=D0=B3=D0=B0=D1=80=D0=
=B0 wrote:<br>
&gt; Many years I have used the T520 with linux.<br>
&gt; I have an idea to hang some job on the blue button &quot;ThinkVantage&=
quot; on the top of<br>
&gt; the notebook keyboard.<br>
&gt; <br>
&gt; I suppose, this button has a different interrupt=C2=A0code, not as ano=
ther button on<br>
&gt; the keyboard.<br>
<br>
I&#39;m not sure how it&#39;s all wired at the hardware level, but the Linu=
x<br>
userspace sees a regular key event.<br>
<br>
I&#39;ve always mapped it to lock screen.<br>
<br>
&gt; The jobs may be:<br>
&gt; - turn power off<br>
&gt; - erase some files or memory<br>
&gt; - etc.<br>
&gt; <br>
&gt; Is it possible?<br>
<br>
Sure.=C2=A0 How, specifically, depends on your desktop environment.=C2=A0 I=
 use<br>
GNOME so I&#39;d do it from gnome-control-center -&gt; Keyboard shortcuts.<=
br>
If you want a custom action (&quot;erase some files&quot;, I&#39;m not sure=
 how you&#39;d<br>
erase &quot;memory&quot;), you can create a custom shortcut that runs a she=
ll<br>
script that can do whatever you want.<br>
<br>
Regards,<br>
Marius Gedminas<br>
-- <br>
Why do geeks think Halloween and Christmas occur on the same day?<br>
Because 31oct =3D 25dec!<br>
-- <br>
The linux-thinkpad mailing list home page is at:<br>
<a href=3D"http://mailman.linux-thinkpad.org/mailman/listinfo/linux-thinkpa=
d" rel=3D"noreferrer" target=3D"_blank">http://mailman.linux-thinkpad.org/m=
ailman/listinfo/linux-thinkpad</a></blockquote></div>

--000000000000d207bf05e6958071--

--===============2047771028863211965==
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: base64
Content-Disposition: inline

LS0gClRoZSBsaW51eC10aGlua3BhZCBtYWlsaW5nIGxpc3QgaG9tZSBwYWdlIGlzIGF0OgpodHRw
Oi8vbWFpbG1hbi5saW51eC10aGlua3BhZC5vcmcvbWFpbG1hbi9saXN0aW5mby9saW51eC10aGlu
a3BhZA==

--===============2047771028863211965==--