Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Yoga 11e event source? #31

Open
singpolyma opened this issue Nov 3, 2023 · 1 comment
Open

Yoga 11e event source? #31

singpolyma opened this issue Nov 3, 2023 · 1 comment

Comments

@singpolyma
Copy link

I am running a Yoga 11e which the readme implies has been tested with this script, but I can't figure out where the event should come from. Any of the monitoring commands I run, nothing seems to print when I fold the laptop to tablet mode.

I got something working based on the old version in git history using accelerometers and that works fine, but I guess probably that approach was stopped because you need to poll often and it can suck battery?

Thanks for any tips about this.

@alesya-h
Copy link
Owner

I didn't test it personally, here's the pull-request where it was added https://github.com/alesya-h/linux_detect_tablet_mode/pull/30/files . It specifically mentions 11e gen6 , so you might have a different device.

As for the older approach, no, it was sunset because modern laptops standardised on using this event, and before that using a pair of accelerometers was an implementation detail for some Lenovo laptops (maybe some others too), when this event wasn't issued by the kernel. Once this event became supported on my laptop I made the current version of the script because it seemed both simpler and more generic. If the old version works for you it's great, that's why I kept it around.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants