Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with 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.
So I've been searching for a while about this. I want to do some scripting for HP x360 Laptops. These models have "hinge screens"; the screens can flip backwards till 360 degrees.
The first thing I need to do for my script is to detect the angle of the screen. How can I do that??
...I have one x360 laptop with a standard Ubuntu 16.04 64bit. I installed it beside a windows 10 that was already there. win10 has a tablet mode. That's what I'm trying to do.
Later on I want to make the touchpad and keyboard buttons inactive when the screen is flipped beyond some angle. And to make the screen rotate.
It should have accelerometer to detect that. I have a very similar Lenovo laptop that I know with Windows detected through accelerometer. However, I kinda hate the screen flipping, so unfortunately I've never attempted to get it working in linux. But if you can get the accelerometer working, reading that will allow you to set scripts to do what you want.
Probably wouldn't be able to detect angle, but everything else you wanted to do. No idea for detecting angle. My Lenovo does detect angle and once it passes x* it disables the keyboard (although stupidly doesn't disable the touchpad), never looked into HOW it does it though.
Last edited by Timothy Miller; 10-11-2016 at 01:46 PM.
DEFINITELY Windows. I've never used it in "tablet" mode with linux to test (despite it being on it's 3rd distribution). I only bought it because I got a killer deal (they were still selling over $600 new, got it for $310 booted 1 time ever and his son decided he couldn't use such a small screen) and I use it strictly as a laptop, I don't even use the touchscreen.
hehehe I see I wish I could have got that deal LOL XD
but how come you don't like the touch screen? It's very handy with pdfs and on-screen writing! I'm a student so I have to read lots of pdfs. I can't find a piece of software that's good with "writing on pdfs" though.
I really want to get that tablet mode going so that I can use it as a book without the keyboard or the touchpad interfering.
awesome!! let me know! I'm not very optimistic though XD
On my Lenovo Yoga 700 11, the keyboard is disabled after ~320* of rotation, so very nearly into full tablet mode. It's still active well past 180* (flat).
Last edited by Timothy Miller; 10-13-2016 at 04:13 PM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.