[prev in list] [next in list] [prev in thread] [next in thread] 

List:       linux-thinkpad
Subject:    Re: [ltp] T520 Linux Mint / button ThinkVantage
From:       Иван Ниагара <niagara.iv () gmail ! com>
Date:       2022-08-19 10:24:12
Message-ID: CAMHy6UAJP54zmQzWnUYqfDy9Pgv_79UUJaQMCQsU64LNtt-B4Q () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


It's simple, but it works.

Thank you!

-----
С уважением,
Иван Владимирович Ниагара
Mail: niagara.iv@gmail.com
Phone: +79232350060
Skype: ivan.niagara
Telegram <https://t.me/Niagara_iv>
Facebook <https://www.facebook.com/niagara.iv>
Best regard,
Ivan Niagara


пт, 19 авг. 2022 г. в 16:27, Marius Gedminas <marius@gedmin.as>:

> On Thu, Aug 18, 2022 at 05:26:25PM +0700, Иван Ниагара wrote:
> > Many years I have used the T520 with linux.
> > I have an idea to hang some job on the blue button "ThinkVantage" on the
> 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 = 25dec!
> --
> The linux-thinkpad mailing list home page is at:
> http://mailman.linux-thinkpad.org/mailman/listinfo/linux-thinkpad

[Attachment #5 (text/html)]

<div dir="ltr"><div class="gmail_default" \
style="font-family:georgia,serif;font-size:large">It&#39;s simple, but it \
works.</div><div class="gmail_default" \
style="font-family:georgia,serif;font-size:large"><br></div><div \
class="gmail_default" style="font-family:georgia,serif;font-size:large">Thank \
you!</div><div><div dir="ltr" class="gmail_signature" \
data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div \
dir="ltr"><div dir="ltr"><div><span style="color:rgb(102,102,102)"><br>-----<br>С \
уважением,<br>Иван Владимирович Ниагара<br>Mail: <a \
href="mailto:niagara.iv@gmail.com" target="_blank">niagara.iv@gmail.com</a><br>Phone: \
+79232350060</span></div><div><span style="color:rgb(102,102,102)">Skype: \
ivan.niagara</span><span style="color:rgb(102,102,102)"><br></span></div><div><font \
color="#666666"><a href="https://t.me/Niagara_iv" \
target="_blank">Telegram</a></font><br><a href="https://www.facebook.com/niagara.iv" \
target="_blank">Facebook</a><br></div><div><span style="color:rgb(102,102,102)">Best \
regard,</span><br></div><div><font color="#666666">Ivan Niagara</font><br><span \
style="color:rgb(102,102,102)"></span></div></div></div></div></div></div></div></div><br></div><br><div \
class="gmail_quote"><div dir="ltr" class="gmail_attr">пт, 19 авг. 2022 г. в \
16:27, Marius Gedminas &lt;<a \
href="mailto:marius@gedmin.as">marius@gedmin.as</a>&gt;:<br></div><blockquote \
class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid \
rgb(204,204,204);padding-left:1ex">On Thu, Aug 18, 2022 at 05:26:25PM +0700, Иван \
Ниагара 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  code, not as another 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 Linux<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.   How, specifically, depends on your desktop environment.   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 \
shell<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 = 25dec!<br>
-- <br>
The linux-thinkpad mailing list home page is at:<br>
<a href="http://mailman.linux-thinkpad.org/mailman/listinfo/linux-thinkpad" \
rel="noreferrer" target="_blank">http://mailman.linux-thinkpad.org/mailman/listinfo/linux-thinkpad</a></blockquote></div>



[Attachment #6 (text/plain)]

-- 
The linux-thinkpad mailing list home page is at:
http://mailman.linux-thinkpad.org/mailman/listinfo/linux-thinkpad

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic