ham5urg | The monitor orientation is not listed by it. I've found a dbus tool iio-sensor-proxy but don't like it too much. | 00:00 |
---|---|---|
fsmithred | monitor orientation? | 00:03 |
fsmithred | does xrandr show you what you want? | 00:03 |
ham5urg | xrandr shows the monitors but not the orientation. at least that is my interpretation when I look at the output. | 00:07 |
fsmithred | it doesn't reverse the numbers in the resolution? | 00:08 |
fsmithred | what are you going to do with it? | 00:09 |
ham5urg | no, no reversing. | 00:10 |
ham5urg | I want to flip the screen on behalf of the orientation. KDE is not willing to implement it. | 00:10 |
ham5urg | I write a bash script for it. | 00:10 |
ham5urg | did some nasty gdbus call. | 00:11 |
ham5urg | first i tried to write it in python. don't like the dbus library. | 00:12 |
ham5urg | but i don't like dbus too. | 00:12 |
ham5urg | https://paste.debian.net/1261185/ | 01:03 |
ham5urg | not finished | 01:04 |
gnarface | maybe something is exposed in /sys that tells the state so you can check it in an easier way? | 01:06 |
ham5urg | idk. I would like to | 01:08 |
ham5urg | didn't find something on the net | 01:08 |
rrq | "edid-decode /sys/class/drm/card0-eDP-1/edid" | 01:09 |
rrq | or even "xdd -p -l 2 -s 21 < /sys/class/drm/card0-eDP-1/edid" for bytes 21 and 22 | 01:10 |
ham5urg | rrq, what is .../edid ? | 01:10 |
ham5urg | no edid in /sys/class/drm/card0-eDP-1/ | 01:10 |
ham5urg | no | 01:11 |
ham5urg | sorry | 01:11 |
ham5urg | it is | 01:11 |
ham5urg | I was looking at the directories only | 01:11 |
rrq | https://en.wikipedia.org/wiki/Extended_Display_Identification_Data | 01:12 |
gnarface | (it's the display's firmware) | 01:12 |
ham5urg | rrq, is there another tool available? xdd is not in the repo anymore. | 01:16 |
ham5urg | Is it correct that /sys/class/drm/card0-eDP-1/edid hold the state of the orientation of the laptop? | 01:21 |
ham5urg | Can't find any diff in hexdump /sys/class/drm/card0-eDP-1/edid | 01:34 |
rwp | When you say "flip the screen" what do you mean? Do you mean inverted? But only if the monitor is rotated? | 01:38 |
ham5urg | I want to know the position of the sensor in space like 'normal', 'right-up', etc. | 01:39 |
rwp | If I rotate my display then the xrandr output shows that it is rotated. | 01:40 |
gnarface | could be not all drivers show that? | 01:42 |
rwp | "xrandr | grep eDP-1" results in "eDP-1 connected primary 900x1600+0+0 right" whereas normally it is "eDP-1 connected primary 1600x900+0+0" | 01:43 |
gnarface | if it's nvidia they might have stripped the functionality in favor of nvidia-settings stuff | 01:43 |
rwp | No idea about the nVidia drivers. I am using the in kernel Intel driver and the in kernel AMD GPU driver. | 01:45 |
ham5urg | Would like to use inotifywait on some file from sys if possible, instead of running xrandr 2 times a second. | 01:45 |
rwp | Wouldn't you simply set the inversion when setting the monitor rotation? Just do both at the same time? Once? | 01:46 |
ham5urg | I have some pc-tablets I would like to switch when the users rotate the device. | 01:47 |
rwp | Sounds like a fun prank. Meanwhile... Where is the tablet rotation done? There must be some hook available there to insert flipping and inverting. | 01:48 |
rrq | The "file" /sys/class/drm/card0-eDP-1/edid is the edid report from the monitor; I supose that directory represents the monitor so if there is something changing with changing the orientation, I believe then that's where it would be | 01:49 |
rrq | if its physical orientation of a device then it needs to have an accelerometer | 01:50 |
rrq | and if there's some kernel module for that then there would proabably be a dev/input/eventX for it | 01:51 |
ham5urg | rrq, it is somewhere in /sys/bus/iio/devices/iio:device* | 01:54 |
rrq | ok, maybe some file would tell which eventX it has | 01:56 |
rrq | I did some fiddling with accelerometer with some handset yonks ago; let's see if I remember anything :) | 01:56 |
rrq | the data comes repeatedly in small units expressing the X:Y:Z accelerations.. like 1 or 2 bytes each or possibly it reports a "delta timeseries" dx:dy:dz | 01:59 |
rrq | an example: https://developer.apple.com/documentation/coremotion/getting_raw_accelerometer_events | 02:02 |
rrq | (I worked with an android handset though) | 02:03 |
rrq | so 1) you'd need to figure out which eventX is ued, 2) the data format of its messages and then 3) the logic for mapping that into relative magnitudes of x:y device orientation | 02:04 |
rrq | (btw I see "xxd" in all Devuan repos) | 02:07 |
ham5urg_ | apt search xdd shows nothing | 02:11 |
ham5urg_ | /sys/bus/iio/devices/iio:device*/name is holding the string accel_3d if the device is an accelerometer. | 02:12 |
ham5urg_ | Found some pyhton code I will put a daemon on top | 02:13 |
ham5urg_ | rrq, sorry I entered 'xdd' | 02:16 |
ham5urg_ | my fault | 02:16 |
ham5urg_ | Not fully, your example had stated xdd: "xdd -p -l 2 -s 21 < /sys/class/drm/card0-eDP-1/edid" | 02:21 |
rrq | ah yes; sorry about that, I do that misspelling all the time :) | 02:22 |
APic | Hi | 22:54 |
* APic tries to build https://github.com/tnicolas42/bomberman | 22:54 | |
APic | It needs libfluidsynth-dev | 22:54 |
APic | But that Package depends on libsystemd-dev | 22:55 |
APic | How can i install libfluidsynth-dev and ignore that Dependency | 22:55 |
APic | Please? | 22:56 |
ribcage | I think you just need to wait, someone will answer eventually | 22:57 |
APic | Good | 22:58 |
APic | Not that urgent 😉 | 22:59 |
ribcage | or you can use the forum if you can't stay here for long | 23:02 |
ribcage | but of course it's more convenient on irc | 23:02 |
golinux | "Dependencies of libfluidsynth-dev on libsystemd-dev and libsystemd0" | 23:03 |
golinux | https://dev1galaxy.org/viewtopic.php?id=5330 | 23:03 |
golinux | APic: ^^^ | 23:04 |
golinux | Also https://lists.dyne.org/lurker/message/20221114.200624.1ae550e5.en.html | 23:06 |
golinux | Dependencies of libfluidsynth-dev on libsystemd-dev and libsystemd0 | 23:06 |
APic | golinux: Thanks | 23:16 |
Generated by irclog2html.py 2.17.0 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!