I have a 2 in one convertible HP pavilion laptop. On Windows I can flip it the whole way around and turn it into a laptop, or put it in easel mode so that the keyboard is disabled and when I set it on my lap keyboard down no key presses would be detected. This is not working on my Ubuntu 16.04.

Also, on Windows, when I put the 2 in one into tent mode, the screen automatically flips for me. (don't use tent THAT much but do occasionally). I know I can flip the screen on settings but that's a bit cumbersome.

The second feature (screen flip) I can do without, but the first one (keyboard disabled when flipped) I really need. Any way to get this running? thanks!


None that I'm aware of or could find. See https://askubuntu.com/a/572270/570692

As it says in the question, there are some Dell convertibles running 12.04, but I know Dell uses it's own proprietary drivers and background services to get their devices running.

You could write custom scripts to i.e. disable the keyboard and turn on onboard (the on-screen-keyboard). I don't know about the sensors that make windows switch automatically. Maybe you can access those via /sys/class/... if they are recognized by the kernel out of the box, but I wouldn't bet on it. You can bind your scripts to keyboard shortcuts or make a launcher. You can make your life a lot easier, but it's a bit of work to get started. Hope this helps.

  • I am not experienced. Unfortunately this is bad news because it will make tablet mode difficult to use. Also that link doesn't give much about keyboard shutdown. What type of script would be required to turn off/on the keyboard? sorry for my inexperience – Artful Aardvark Jul 21 '16 at 7:17
  • See here. You will have to see if the id stays the same when connecting USB input devices etc. It's gonna take a lot of tweaking and fiddling I'm afraid. Good reference to learn scripting is tldp. – jr98 Jul 21 '16 at 9:15
  • tried that and got results in hastebin.com/igebujotux.coffee – Artful Aardvark Jul 21 '16 at 17:26
  • wonder why it ends in .coffee lol – Artful Aardvark Jul 21 '16 at 17:27
  • Works for me... Did you try a "real" id and not the virtual core pointer (= 2) ? (you would disable every mouse, touchpad, etc connected now and in the future until you enable it again) – jr98 Jul 21 '16 at 18:14

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.