Yoga Laptop - Autodisable Keyboard when screen folded back to use as tablet?
BodhiThis forum is for the discussion of Bodhi Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
that command dose not work? Is there something I need to install?
< EDIT> Found it journalctl -f
This dose not seem to trigger anything when I fold the screen back... nice try though.. that is basically what I am trying to do, this just didn't work.
Last edited by questionsBot; 07-06-2020 at 09:42 PM.
This dose not seem to trigger anything when I fold the screen back... nice try though.. that is basically what I am trying to do, this just didn't work.
What was strange though is that in Kubuntu when I folded it backwards it said "touchpad disabled" as a popup. So while the keyboard still tryped and made the tablet mode unusable, it did recognize that it was folded and disabled the touchpad.
I tried a few of the distros and all of them had the touchpad disable, even if it didn't say so.
Kubuntu
LinuxLite
BodHi
Yes BodHi.. so the BodHi Live Boot did recognize the fold and used that to disable to touchpad... but like all of them, that did not disable the actual keyboard
trying the same method of watching journalctl -f with one of these systems may provide some output.
another couple of thoughts after posting that: if your bodhi installation isn't addressing whatever that event or switch might be, it may not be enough just to find out what another system calls it. if you manage to catch the event in journalctl and figure out what the switch/hardware is called, sudo lshw (lspci or lsusb also might help depending on the setup) may help you get some additional information about how it is set up in that system.
I bet you can bind folding it to disable keyboard automatically... probably ACPI bindings? Or maybe key bindings. Both in settings panel under input. Then bind them to your script. See if it can "add" that action.
prompted me to search for "acpi binding for convertible laptop lid". the first listing was this page using a similar system (-ish: thinkpad x230 with 16.04). the premise is about the same except that person wanted to disable the touchpad instead of the keyboard. there is a clear explanation about how to capture the lid flipping event and then convert that into an acpi binding as enigma9o7 suggested.
Yeah I wasn't very clear. Go into settings panel/input/acpi bindings, and click add. then move the laptop lid as desired, to see if it can see that action. If so, then you can assign it to a command that calls your script.
Yeah I wasn't very clear. Go into settings panel/input/acpi bindings, and click add. then move the laptop lid as desired, to see if it can see that action. If so, then you can assign it to a command that calls your script.
unfortunately it dose not do anything. I click and and fold the screen but nothing seems to occur.
Something must happen, as when you normally do it, the trackpad turns off. So there must be some event getting triggered? The funny thing was when I had the "Add" thing open, the trackpad turned off when I folded it back but didn't turn back on when I folded it back. it usually dose so I assumed it was because of the "add" thing running.
as the acpi bindings tool didn't work, i wanted to add that i tried the suggestion on the page i mentioned here:
Quote:
Originally Posted by cordx
this page using a similar system (-ish: thinkpad x230 with 16.04). the premise is about the same except that person wanted to disable the touchpad instead of the keyboard. there is a clear explanation about how to capture the lid flipping event and then convert that into an acpi binding as enigma9o7 suggested.
the first tool used (acpi_listen) doesn't seem to exist (at least it isn't on my system and i couldn't find a package for it) for ubuntu 18.04. installing acpitool does also install acpid which might help if you decide to try this route or something similar.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.