You are not logged in.

#1 2019-02-28 08:01:44

jfhill92
Member
Registered: 2019-02-28
Posts: 1

Lenovo Thinkpad X200t - Screen Rotation and Hotkeys Setup

I have been at this for months. I can't get screen rotation working and don't necessarily want it done automatically. I have attempted to follow wiki instructions before posting this and just haven't had any luck. I am currently running KDE on a Lenovo Thinkpad X200 Tablet. Tried to assign the bezel buttons using xbindkeys to no avail. KDE seems to recognize the lock button perfectly fine which I also have a redundant lock key that's Fn+F2 but I do understand why it exists as the keyboard is covered when in tablet mode. What is it using by default to map those keys? How is that one working and not the others? It's not bound in '.xbindkeysrc'. I don't have too many problems but this one eludes me. I would like to be able to use this notebook in tablet mode. I am running a 32GB SSD in it so I don't have much space. However being as it's an older daily driver, it works fine for what I need it to do which would be primarily for filling out PDF forms, checking e-mail, writing code, and I carry it with me instead of my heavier and larger notebook when out on short trips.

Offline

#2 2020-06-06 23:07:40

hbn50h
Member
Registered: 2020-06-06
Posts: 1

Re: Lenovo Thinkpad X200t - Screen Rotation and Hotkeys Setup

late but it took me time to figure out for myself too;
i am on X200T with i3 and the bezel buttons did not return any acpi event or scancode. after adding atkbd.softraw=o as kernel parameter, it did show scancodes for all buttons as 67 6c 68 66 from left to right respectively. then it needed to be mapped to keycodes which i did with setkeycodes, mine was 153 148 154 149 respectively for previously generated scancodes. finally, i bind script to toggle the orientation for screen to the second button on the bezel with xbindkeysrc. however, this worked perfectly in laptop mode but would not in tablet mode. after reading few non-english forums on internet, xinput set-int-prop 11 "Device Enabled" 8 0 did the trick.
finally, i created two scripts: one to setkeycodes and xinput enable thinkpad extra buttons and made it autostart adding custom "anything.service" like so -> "/etc/systemd/system/anything.service" and the other to toggle the orientation of the display 90 degrees on each click. now work perfectly.
however, what i wanted was to automatically rotate screen when in tablet mode, i tried to bind the script in handler.sh in "/etc/acpi/handler.sh" with acpi event "video/tabletmode" (which the tablet returned with acpi_listen), it did not work. this is one of the posts i encountered when trying to search for this problem so i thought i would write as i got it working now.

Offline

Board footer

Powered by FluxBB