Comments (21)
This bug has been open for some time now. I hope it gets more attention.
https://bugzilla.kernel.org/show_bug.cgi?id=214675
from asus-fliplock-driver.
I've got similar issues to what's described here, the output of sudo libinput debug-events
gets me:
-event14 DEVICE_ADDED Video Bus seat0 default group1 cap:k
-event0 DEVICE_ADDED Lid Switch seat0 default group2 cap:S
-event1 DEVICE_ADDED Power Button seat0 default group3 cap:k
-event7 DEVICE_ADDED ELAN9008:00 04F3:4065 Stylus seat0 default group4 cap:T size 300x190mm calib
-event4 DEVICE_ADDED ELAN9008:00 04F3:4065 seat0 default group4 cap:t size 312x191mm ntouches 10 calib
-event11 DEVICE_ADDED ASUE140D:00 04F3:31B9 Mouse seat0 default group5 cap:p left scroll-nat scroll-button
-event12 DEVICE_ADDED ASUE140D:00 04F3:31B9 Touchpad seat0 default group5 cap:pg size 129x72mm tap(dl off) left scroll-nat scroll-2fg-edge click-buttonareas-clickfinger dwt-on dwtp-on
-event13 DEVICE_ADDED ASUE140D:00 04F3:31B9 Keyboard seat0 default group5 cap:k
-event15 DEVICE_ADDED Asus WMI hotkeys seat0 default group6 cap:k
-event2 DEVICE_ADDED AT Translated Set 2 keyboard seat0 default group7 cap:k
event2 KEYBOARD_KEY +0.000s *** (-1) pressed
event2 KEYBOARD_KEY +0.146s *** (-1) pressed
This was also after rotating the screen and flipping it to tablet mode. Model UN5401, AMD 6800H.
So, no "switch" event, or tablet mode callout.
Having done a lot of searching, it seems like this might be part of the "amd_sfh" module. I was also hoping to find a manual script for swapping to tablet mode, but it seems like that happens at a lower level, and relies on the libinput
events.
I would love to report this upstream to the appropriate place to help debug, but I don't know where that would be. Can someone point me towards it?
from asus-fliplock-driver.
Hi, thank you for creating an issue.
Can you please run this command sudo libinput debug-events
and do a flip with your laptop? Post the result here. You should see this as me (this driver reacts to these events):
$ sudo libinput debug-events
...
-event4 DEVICE_ADDED Asus WMI hotkeys seat0 default group11 cap:k
...
-event4 KEYBOARD_KEY +0.623s KEY_PROG2 (149) pressed
event4 KEYBOARD_KEY +0.623s KEY_PROG2 (149) released
-event29 DEVICE_ADDED Intel HID switches seat0 default group16 cap:S
event29 SWITCH_TOGGLE +0.722s switch tablet-mode state 1
-event29 SWITCH_TOGGLE +1.174s switch tablet-mode state 0
-event4 KEYBOARD_KEY +1.175s KEY_PROG2 (149) pressed
event4 KEYBOARD_KEY +1.175s KEY_PROG2 (149) released
...
from asus-fliplock-driver.
Ye, I was just debugging the problem and it looks like it doesn't emit the event at all. Probably the device is not supported properly in the kernel? I was thinking about this place: https://github.com/torvalds/linux/blob/master/drivers/platform/x86/asus-nb-wmi.c
from asus-fliplock-driver.
It might be a reason. Do you use intel as me or amd? I already met someone with amd but sorry, do not know if he solved / figured out what was the problem.
from asus-fliplock-driver.
What you can do is check if the kernel module is installed / supported by your distro (I use Ubuntu 20.04 based distro), and is running without problems. If is amd not your case I recommend you try to enable module by yourself & disable module what your laptop is using atm and I believe it should work. Good luck. Stay in touch!
from asus-fliplock-driver.
Atm your laptop when is flipped to tablet mode disable at least the keyboard or not?
from asus-fliplock-driver.
I have AMD. It doesn't disable anything.
I think the kernel module is loaded. I see all these inputs:
marek@marek-zenbook:~$ ls /dev/input/by-path/
pci-0000:04:00.4-usb-0:2:1.0-event platform-AMDI0010:03-event-mouse
platform-AMDI0010:00-event platform-AMDI0010:03-mouse
platform-AMDI0010:00-event-mouse platform-asus-nb-wmi-event
platform-AMDI0010:00-mouse platform-i8042-serio-0-event-kbd
platform-AMDI0010:03-event-kbd
I think platform-asus-nb-wmi-event
should be emitting the event.
(And sorry Im answering late, I don't see any notification anywhere)
from asus-fliplock-driver.
Hey, did anyone ever get this fixed, I have the same laptop and have this problem?
Thanks
from asus-fliplock-driver.
I have a UN5401RA and am dying to see this fixed!
If there is anything i can do to help, glad to do it! Fedora 38 under the hood here.
Thanks a lot for the touchpad driver btw works like a charm!
from asus-fliplock-driver.
@beankylla Hello there :)
Thanks a lot for the touchpad driver btw works like a charm!
Glad to hear that, put a star if you like and do not hesitate to create any issue in case you face something.
Please try to run this command $ sudo acpi_listen
and then flip laptop. Do you see as output any row which contain something like video/tabletmode
?
from asus-fliplock-driver.
@beankylla ping
In my case I see:
$ sudo acpi_listen
[sudo] password for ldrahnik:
video/tabletmode TBLT 0000008A 00000001 # flip to tablet mode
...
video/tabletmode TBLT 0000008A 00000000 # flip back to laptop mode
...
What do you see on AMD device?
from asus-fliplock-driver.
Hi!
nope nothing happens :(
absolutely no feedback / line stay emtpy
from asus-fliplock-driver.
@beankylla Try $ sudo libinput debug-events
, do you receive any events during switching your laptop to tablet mode and back? (KEY_F22/F23 for example)
from asus-fliplock-driver.
@ldrahnik nope not if i don't accidently touche screen or keyboard, just tried again ^^'
edit: i just tried again with Fedora 39 and no dice. even kernel 6.5.10 does not seem to have what we need ^^'
from asus-fliplock-driver.
Any luck finding the place where we should report/ try to fix this upstream? Having the same issue unfortunately.
from asus-fliplock-driver.
We got an update
AFAIK the issue rely on the fact that amd-sfh do not support lid angle sensors as of today, but I'm not sure if this laptop use that driver or ASUS has invented something else for handling it and therefore the driver is fully missing.
Not sure how we can continue our search towards the correct place to report a bug.
from asus-fliplock-driver.
Found some documentation. Go to https://docs.kernel.org/admin-guide/abi-testing.html and search for /sys/bus/surface_aggregator/devices/01:0e:01:00:01/state
.
But as far as I understood, this is only for testing/debugging. I think.
from asus-fliplock-driver.
Related Issues (8)
- Not working with Zenbook 14 Flip OLED (UN5401, AMD Ryzen 5000 Series) HOT 8
- Doesn't work on zenbook 14. HOT 1
- Cant Boot into Desktop after installation HOT 8
- No asus_touchpad.service file to uncomment HOT 4
- Could you make it work with model UN5401RA-DB74T HOT 4
- Take into consideration display rotation when is not Rotation lock used
- Remove subprocess(..., shell=True, ..)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from asus-fliplock-driver.