libera/#devuan/ Saturday, 2022-11-19

ham5urgThe 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
fsmithredmonitor orientation?00:03
fsmithreddoes xrandr show you what you want?00:03
ham5urgxrandr shows the monitors but not the orientation. at least that is my interpretation when I look at the output.00:07
fsmithredit doesn't reverse the numbers in the resolution?00:08
fsmithredwhat are you going to do with it?00:09
ham5urgno, no reversing.00:10
ham5urgI want to flip the screen on behalf of the orientation. KDE is not willing to implement it.00:10
ham5urgI write a bash script for it.00:10
ham5urgdid some nasty gdbus call.00:11
ham5urgfirst i tried to write it in python. don't like the dbus library.00:12
ham5urgbut i don't like dbus too.00:12
ham5urghttps://paste.debian.net/1261185/01:03
ham5urgnot finished01:04
gnarfacemaybe something is exposed in /sys that tells the state so you can check it in an easier way?01:06
ham5urgidk. I would like to01:08
ham5urgdidn't find something on the net01:08
rrq"edid-decode /sys/class/drm/card0-eDP-1/edid"01:09
rrqor even "xdd -p -l 2 -s 21 < /sys/class/drm/card0-eDP-1/edid" for bytes 21 and 2201:10
ham5urgrrq, what is .../edid ?01:10
ham5urgno edid in /sys/class/drm/card0-eDP-1/01:10
ham5urgno01:11
ham5urgsorry01:11
ham5urgit is01:11
ham5urgI was looking at the directories only01:11
rrqhttps://en.wikipedia.org/wiki/Extended_Display_Identification_Data01:12
gnarface(it's the display's firmware)01:12
ham5urgrrq, is there another tool available? xdd is not in the repo anymore.01:16
ham5urgIs it correct that /sys/class/drm/card0-eDP-1/edid hold the state of the orientation of the laptop?01:21
ham5urgCan't find any diff in hexdump /sys/class/drm/card0-eDP-1/edid01:34
rwpWhen you say "flip the screen" what do you mean?  Do you mean inverted?  But only if the monitor is rotated?01:38
ham5urgI want to know the position of the sensor in space like 'normal', 'right-up', etc.01:39
rwpIf I rotate my display then the xrandr output shows that it is rotated.01:40
gnarfacecould 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
gnarfaceif it's nvidia they might have stripped the functionality in favor of nvidia-settings stuff01:43
rwpNo idea about the nVidia drivers.  I am using the in kernel Intel driver and the in kernel AMD GPU driver.01:45
ham5urgWould like to use inotifywait on some file from sys if possible, instead of running xrandr 2 times a second.01:45
rwpWouldn't you simply set the inversion when setting the monitor rotation?  Just do both at the same time?  Once?01:46
ham5urgI have some pc-tablets I would like to switch when the users rotate the device.01:47
rwpSounds 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
rrqThe "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 be01:49
rrqif its physical orientation of a device then it needs to have an accelerometer01:50
rrqand if there's some kernel module for that then there would proabably be a dev/input/eventX for it01:51
ham5urgrrq, it is somewhere in /sys/bus/iio/devices/iio:device*01:54
rrqok, maybe some file would tell which eventX it has01:56
rrqI did some fiddling with accelerometer with some handset yonks ago; let's see if I remember anything :)01:56
rrqthe 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:dz01:59
rrqan example: https://developer.apple.com/documentation/coremotion/getting_raw_accelerometer_events02:02
rrq(I worked with an android handset though)02:03
rrqso 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 orientation02:04
rrq(btw I see "xxd" in all Devuan repos)02:07
ham5urg_apt search xdd shows nothing02: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 top02:13
ham5urg_rrq, sorry I entered 'xdd'02:16
ham5urg_my fault02:16
ham5urg_Not fully, your example had stated xdd: "xdd -p -l 2 -s 21 < /sys/class/drm/card0-eDP-1/edid"02:21
rrqah yes; sorry about that, I do that misspelling all the time :)02:22
APicHi22:54
* APic tries to build https://github.com/tnicolas42/bomberman22:54
APicIt needs libfluidsynth-dev22:54
APicBut that Package depends on libsystemd-dev22:55
APicHow can i install libfluidsynth-dev and ignore that Dependency22:55
APicPlease?22:56
ribcageI think you just need to wait, someone will answer eventually22:57
APicGood22:58
APicNot that urgent 😉22:59
ribcageor you can use the forum if you can't stay here for long23:02
ribcagebut of course it's more convenient on irc23:02
golinux"Dependencies of libfluidsynth-dev on libsystemd-dev and libsystemd0"23:03
golinuxhttps://dev1galaxy.org/viewtopic.php?id=533023:03
golinuxAPic: ^^^23:04
golinuxAlso https://lists.dyne.org/lurker/message/20221114.200624.1ae550e5.en.html23:06
golinuxDependencies of libfluidsynth-dev on libsystemd-dev and libsystemd023:06
APicgolinux: Thanks23:16

Generated by irclog2html.py 2.17.0 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!