[ltp] T520 Linux Mint / button ThinkVantage

Иван Ниагара niagara.iv at gmail.com
Fri Aug 19 12:24:12 CEST 2022


It's simple, but it works.

Thank you!

-----
С уважением,
Иван Владимирович Ниагара
Mail: niagara.iv at 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 at 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.linux-thinkpad.org/pipermail/linux-thinkpad/attachments/20220819/80111ca7/attachment.html>


More information about the Linux-Thinkpad mailing list